*SetBodyIC() - single body

Sets the initial conditions for a body.

Syntax

*SetBodyIC(body_name, vx, vy, vz, wx, wy, wz)

Arguments

body_name
The variable name of an existing body.
Data type: varname
vx, vy, vz
Initial translational velocity along the X, Y, and Z coordinates.
Data type: real
wx, wy, wz
Initial rotational velocity along the X, Y, and Z coordinates.
Data type: real

Example

*Body(b_axle, "axle", p_wc)
*Body(b_wheel, "wheel", p_wheel_cm)
*Point(p_wc, "Center")
*SetBodyIC(b_wheel, 10, 20, , , , 1)
*SetBodyIC(b_axle, b_wheel.vx, b_wheel.vy)

Context

*BeginMdl()

*DefineAnalysis()

*DefineSystem()

Comments

Arguments can be empty, real, or expressions. If an argument is empty, the last setting for the corresponding initial condition component is retained.