InitialCondition (hwx.inspire.motion)¶
Represents the velocity of parts/rigid groups at the beginning of the simulation.
- Inherits:
MotionObject (hwx.inspire.motion)
Attributes¶
active: Bool
direction: Direction
location: Location
magnitude: Double
name: Attribute
parts: Attribute
referenceFrame: Attribute
rigidGroups: Attribute
visible: Bool
Properties¶
Public Methods¶
Attribute Details¶
active : Bool¶
Returns or sets the object activeness.
Setting this on or off sets all children. Setting to True sets all the parents active too.
direction : Direction¶
Specifies the direction of the initial condition object..
location : Location (units=”length”)¶
Specifies the location of the initial condition object.
magnitude : Double (units=”velocity”)¶
Specifies the magnitude of the initial velocity.
name : Attribute¶
Returns or sets the name of the object.
It can be any text string, including spaces, although it’s best to avoid using the following characters: ” ‘ * ? and $.
While these characters are allowed, they could create difficulties when you export the model to other applications.
parts : Attribute¶
List of parts for which initial conditions are specified.
referenceFrame : Attribute¶
Specifies a reference system.
Positionable: The position of the initial condition is set using the Move tool.
System: The direction is dictated by the selected local system.
rigidGroups : Attribute¶
List of rigid group which initial conditions are specified.
visible : Bool¶
Determines whether the object is visible in the graphics window.
Setting this on or off sets all children. Setting to True sets all the parents visible too.
Property Details¶
- property position¶
Specifies the position of the initial condition object.
- property velocity¶
Returns and sets the initial velocity of the object.
Method Details¶
- classmethod hideICs(cls)¶
Hides the graphical glyphs for the initial condition objects.
- classmethod showICs(cls, on=True)¶
Shows the graphical glyphs for the initial condition objects.
- snapToCG(self)¶
Snaps the initial condition object to first part’s center of gravity.