Creates the initial (time = 0) displacements, velocities, or accelerations in modal time history and nonlinear dynamic studies.
.NET Syntax
Visual Basic (Declaration) | |
---|
Function AddInitialConditionForDynamicStudy( _
ByVal NType As Integer, _
ByVal NSelectionType As Integer, _
ByVal DispArray As Object, _
ByVal RefEntity As Object, _
ByVal NUnits As Integer, _
ByVal BDir1 As Integer, _
ByVal DVal1 As Double, _
ByVal BDir2 As Integer, _
ByVal DVal2 As Double, _
ByVal BDir3 As Integer, _
ByVal DVal3 As Double, _
ByRef ErrorCode As Integer _
) As CWDynamicInitialCondition |
Visual Basic (Usage) | |
---|
Dim instance As ICWLoadsAndRestraintsManager
Dim NType As Integer
Dim NSelectionType As Integer
Dim DispArray As Object
Dim RefEntity As Object
Dim NUnits As Integer
Dim BDir1 As Integer
Dim DVal1 As Double
Dim BDir2 As Integer
Dim DVal2 As Double
Dim BDir3 As Integer
Dim DVal3 As Double
Dim ErrorCode As Integer
Dim value As CWDynamicInitialCondition
value = instance.AddInitialConditionForDynamicStudy(NType, NSelectionType, DispArray, RefEntity, NUnits, BDir1, DVal1, BDir2, DVal2, BDir3, DVal3, ErrorCode)
|
C# | |
---|
CWDynamicInitialCondition AddInitialConditionForDynamicStudy(
int NType,
int NSelectionType,
object DispArray,
object RefEntity,
int NUnits,
int BDir1,
double DVal1,
int BDir2,
double DVal2,
int BDir3,
double DVal3,
out int ErrorCode
) |
C++/CLI | |
---|
CWDynamicInitialCondition^ AddInitialConditionForDynamicStudy(
& int NType,
& int NSelectionType,
& Object^ DispArray,
& Object^ RefEntity,
& int NUnits,
& int BDir1,
& double DVal1,
& int BDir2,
& double DVal2,
& int BDir3,
& double DVal3,
& [Out] int ErrorCode
) |
Parameters
- NType
- Type of dynamic initial condition as defined in swsDynamicInitialConditionType_e
- NSelectionType
- Type of selection as defined in swsSelectionType_e
- DispArray
- Array of components, bodies, or faces to which to apply the initial condition
- RefEntity
- Face, edge, plane, or axis reference geometry
- NUnits
- BDir1
- 1 to set a value along plane direction 1 or along a radial direction, 0 to not; valid only if RefEntity is set to a planar face, reference plane, cylindrical face, cylindrical axis, or null
- DVal1
- Value along plane direction 1 or along a radial direction; valid only if BDir1 = 1
- BDir2
- 1 to set a value along plane direction 2 or along a circumferential direction, 0 to not; valid only if RefEntity is set to a planar face, reference plane, cylindrical face, cylindrical axis, or null
- DVal2
- Value along plane direction 2 or along a circumferential direction; valid only if BDir2 = 1
- BDir3
- 1 to set a value along the normal to the plane or along a cylindrical axis or along an edge, 0 to not; valid only if RefEntity is set to a planar face, reference plane, cylindrical face, cylindrical axis, edge, or null
- DVal3
- Value along the normal to the plane or along a cylindrical axis or along an edge; valid only if BDir3 = 1
- ErrorCode
Error code as defined in swsDynamicInitialConditionError_e
Return Value
ICWDynamicInitialCondition
See Also
Availability
SolidWorks Simulation API 2012 SP0