TranslationalInitialCondition (hwx.inspire.motion.InitialCondition)#

class TranslationalInitialCondition(self, **kwds)#

Bases: InitialCondition

Defines translational velocity for one or more parts.

Velocity initial conditions can be used to set parts into motion immediately with a prescribed velocity. In this way no “ramp up” time is required, unlike what you see when using a velocity actuator which has a profile function that begins from a velocity of zero.


from hwx import inspire
from hwx.inspire import motion

model = inspire.newModel()
a = motion.AngularInitialCondition(parts =
i = motion.TranslationalInitialCondition(parts =
model.gravityMagnitude = 0

analysis = motion.MbdAnalysis()