Hide Table of Contents
AddInitialConditionForDynamicStudy Method (ICWLoadsAndRestraintsManager)

Creates the initial (time = 0) condition for displacements, velocities, or accelerations in modal time history and nonlinear dynamic studies.

.NET Syntax

Visual Basic (Declaration) 
Function AddInitialConditionForDynamicStudy( _
   ByVal NType As System.Integer, _
   ByVal NSelectionType As System.Integer, _
   ByVal DispArray As System.Object, _
   ByVal RefEntity As System.Object, _
   ByVal NUnits As System.Integer, _
   ByVal BDir1 As System.Integer, _
   ByVal DVal1 As System.Double, _
   ByVal BDir2 As System.Integer, _
   ByVal DVal2 As System.Double, _
   ByVal BDir3 As System.Integer, _
   ByVal DVal3 As System.Double, _
   ByRef ErrorCode As System.Integer _
) As CWDynamicInitialCondition
Visual Basic (Usage) 
Dim instance As ICWLoadsAndRestraintsManager
Dim NType As System.Integer
Dim NSelectionType As System.Integer
Dim DispArray As System.Object
Dim RefEntity As System.Object
Dim NUnits As System.Integer
Dim BDir1 As System.Integer
Dim DVal1 As System.Double
Dim BDir2 As System.Integer
Dim DVal2 As System.Double
Dim BDir3 As System.Integer
Dim DVal3 As System.Double
Dim ErrorCode As System.Integer
Dim value As CWDynamicInitialCondition
 
value = instance.AddInitialConditionForDynamicStudy(NType, NSelectionType, DispArray, RefEntity, NUnits, BDir1, DVal1, BDir2, DVal2, BDir3, DVal3, ErrorCode)
C# 
CWDynamicInitialCondition AddInitialConditionForDynamicStudy( 
   System.int NType,
   System.int NSelectionType,
   System.object DispArray,
   System.object RefEntity,
   System.int NUnits,
   System.int BDir1,
   System.double DVal1,
   System.int BDir2,
   System.double DVal2,
   System.int BDir3,
   System.double DVal3,
   out System.int ErrorCode
)
C++/CLI 
CWDynamicInitialCondition^ AddInitialConditionForDynamicStudy( 
&   System.int NType,
&   System.int NSelectionType,
&   System.Object^ DispArray,
&   System.Object^ RefEntity,
&   System.int NUnits,
&   System.int BDir1,
&   System.double DVal1,
&   System.int BDir2,
&   System.double DVal2,
&   System.int BDir3,
&   System.double DVal3,
&   [Out] System.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, or plane reference geometry
NUnits
If NType is swsDynamicinitialConditionType_e.... Then units are as defined in ...
swsDynamicInitialConditionType_Displacement swsLinearUnit_e
swsDynamicInitialConditionType_Velocity swsVelocityUnit_e
swsDynamicInitialConditionType_Acceleration swsAccelerationUnit_e
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, 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, 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 an edge, 0 to not; valid only if RefEntity is set to a planar face, reference plane, cylindrical face, edge, or null
DVal3
Value along the normal to the plane or along an edge; valid only if BDir3 = 1
ErrorCode

Error code as defined in swsDynamicInitialConditionError_e

Return Value

ICWDynamicInitialCondition

Example

 

See Also

Availability

SOLIDWORKS Simulation API 2012 SP0


Provide feedback on this topic

SOLIDWORKS welcomes your feedback concerning the presentation, accuracy, and thoroughness of the documentation. Use the form below to send your comments and suggestions about this topic directly to our documentation team. The documentation team cannot answer technical support questions. Click here for information about technical support.

* Required

 
*Email:  
Subject:   Feedback on Help Topics
Page:   AddInitialConditionForDynamicStudy Method (ICWLoadsAndRestraintsManager)
*Comment:  
*   I acknowledge I have read and I hereby accept the privacy policy under which my Personal Data will be used by Dassault Systèmes

Print Topic

Select the scope of content to print:




x

We have detected you are using a browser version older than Internet Explorer 7. For optimized display, we suggest upgrading your browser to Internet Explorer 7 or newer.

 Never show this message again
x

Web Help Content Version: API Help (English only) 2017 SP05

To disable Web help from within SOLIDWORKS and use local help instead, click Help > Use SOLIDWORKS Web Help.

To report problems encountered with the Web help interface and search, contact your local support representative. To provide feedback on individual help topics, use the “Feedback on this topic” link on the individual topic page.