Main Content

structuralIC

(To be removed) Set initial conditions for a transient structural model

structuralIC will be removed. Use cellIC, faceIC, edgeIC, and vertexIC instead. (since R2023a) For more information on updating your code, see Version History.

Description

structuralIC(structuralmodel,"Displacement",u0,"Velocity",v0) sets initial displacement and velocity for the entire geometry.

example

structuralIC(___RegionType,RegionID) sets initial displacement and velocity for a particular geometry region using the arguments from the previous syntax.

structuralIC(structuralmodel,Sresults) sets initial displacement and velocity using the solution Sresults from a previous structural analysis on the same geometry. If Sresults is obtained by solving a transient structural problem, then structuralIC uses the solution Sresults for the last time-step.

structuralIC(structuralmodel,Sresults,iT) uses the solution Sresults for the time-step iT from a previous structural analysis on the same geometry.

struct_ic = structuralIC(___) returns a handle to the structural initial conditions object.

Examples

collapse all

Specify initial velocity values for the entire geometry and for a particular face.

Create a transient dynamic model for a 3-D problem.

structuralmodel = createpde("structural","transient-solid");

Create a geometry and include it into the model. Plot the geometry.

gm = multicuboid(0.06,0.005,0.01);
structuralmodel.Geometry = gm;
pdegplot(structuralmodel,"FaceLabels","on","FaceAlpha",0.5)
view(50,20)

Figure contains an axes object. The axes object contains 6 objects of type quiver, text, patch, line.

Specify the zero initial velocity on the entire geometry. When you specify only the initial velocity or initial displacement, structuralIC assumes that the omitted parameter is zero. For example, here the initial displacement is also zero.

structuralIC(structuralmodel,"Velocity",[0;0;0])
ans = 
  GeometricStructuralICs with properties:

             RegionType: 'Cell'
               RegionID: 1
    InitialDisplacement: []
        InitialVelocity: [3×1 double]

Update the initial velocity on face 2 to model impulsive excitation.

structuralIC(structuralmodel,"Face",2,"Velocity",[0;60;0])
ans = 
  GeometricStructuralICs with properties:

             RegionType: 'Face'
               RegionID: 2
    InitialDisplacement: []
        InitialVelocity: [3×1 double]

Input Arguments

collapse all

Transient structural model, specified as a StructuralModel object. The model contains the geometry, mesh, structural properties of the material, body loads, boundary loads, boundary conditions, and initial conditions.

Example: structuralmodel = createpde("structural","transient-solid")

Initial displacement, specified as a numeric vector or function handle. A numeric vector must contain two elements for a 2-D model and three elements for a 3-D model. The elements represent the components of initial displacement.

Use a function handle to specify spatially varying initial displacement. The function must return a two-row matrix for a 2-D model and a three-row matrix for a 3-D model. Each column of the matrix corresponds to the initial displacement at the coordinates provided by the solver. For details, see More About.

Example: structuralIC(structuralmodel,"Face",[2,5],"Displacement",[0;0;0.01])

Data Types: double | function_handle

Initial velocity, specified as a numeric vector or function handle. A numeric vector must contain two elements for a 2-D model and three elements for a 3-D model. The elements represent the components of initial velocity.

Use a function handle to specify spatially varying initial velocity. The function must return a two-row matrix for a 2-D model and a three-row matrix for a 3-D model. Each column of the matrix corresponds to the initial velocity at the coordinates provided by the solver. For details, see More About.

Example: structuralIC(structuralmodel,"Face",[2,5],"Displacement",[0;0;0.01],"Velocity",[0;60;0])

Data Types: double | function_handle

Geometric region type, specified as "Face", "Edge", "Vertex", or "Cell".

When you apply multiple initial condition assignments, the solver uses these precedence rules for determining the initial condition.

  • For multiple assignments to the same geometric region, the solver uses the last applied setting.

  • For separate assignments to a geometric region and the boundaries of that region, the solver uses the specified assignment on the region and chooses the assignment on the boundary as follows. The solver gives an "Edge" assignment precedence over a "Face" assignment, even if you specify a "Face" assignment after an "Edge" assignment. The precedence levels are "Vertex" (highest precedence), "Edge", "Face", "Cell" (lowest precedence).

  • For an assignment made with the results object, the solver uses that assignment instead of all previous assignments.

Example: structuralIC(structuralmodel,"Face",[2,5],"Displacement",[0;0;0.01],"Velocity",[0;60;0])

Data Types: char

Geometric region ID, specified as a vector of positive integers. Find the region IDs by using pdegplot.

Example: structuralIC(structuralmodel,"Face",[2,5],"Displacement",[0;0;0.01],"Velocity",[0;60;0])

Data Types: double

Structural model solution, specified as a StaticStructuralResults or TransientStructuralResults object. Create Sresults by using solve.

Time index, specified as a positive integer.

Example: structuralIC(structuralmodel,Sresults,21)

Data Types: double

Output Arguments

collapse all

Handle to initial conditions, returned as a GeometricStructuralICs or NodalStructuralICs object. See GeometricStructuralICs Properties and NodalStructuralICs Properties.

structuralIC associates the structural initial condition with the geometric region in the case of a geometric assignment, or the nodes in the case of a results-based assignment.

More About

collapse all

Version History

Introduced in R2018a

collapse all