InitialCondition (hwx.inspire.motion)#
- class InitialCondition(self, **kwds)#
Bases:
MotionObject
Represents the velocity of parts/rigid groups at the beginning of the simulation.
# Name
Type
folder
str
icon
str
Variable
property
property
property
# Name
Description
hideICs
()Hides the graphical glyphs for the initial condition objects.
showICs
(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.
Example
from hwx import inspire from hwx.inspire import motion model = inspire.newModel() model.createSolidBlock() a = motion.AngularInitialCondition(parts = model.parts) i = motion.TranslationalInitialCondition(parts = model.parts) model.gravityMagnitude = 0 analysis = motion.MbdAnalysis() analysis.analyze(dtout=1/5) inspire.fitView()
- property magnitude#
Specifies the magnitude of the initial velocity.
- property referenceFrame#
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.
- property parts#
List of parts for which initial conditions are specified.
- property rigidGroups#
List of rigid group which initial conditions are specified.
- property location#
Specifies the location of the initial condition object.
- property direction#
Specifies the direction of the initial condition object..
- property velocity#
Returns and sets the initial velocity of the object.
- property position#
Specifies the position of the initial condition object.
- property movable#
Specifies if the object can be moved using the move tool.
If yes then getting/setting the object.position must be implemented.
Can be True, False or a subset of “TX TY TZ RX RY RZ”.
- snapToCG()#
Snaps the initial condition object to first part’s center of gravity.