*SetBodyIC() - body pair

Sets the initial conditions for a body pair.

Syntax

*SetBodyIC(body_name, vx_l, vy_l, vz_l, 
                                wx_l, wy_l, wz_l, 
                                vx_r, vy_r, vz_r, 
                                wx_r, wy_r, wz_r)

Arguments

body_name
The variable name of an existing body pair.
Data type: varname
vx_l, vy_l, vz_l, wx_l, wy_l, wz_l,
The initial conditions of the left body.
Data type: real
vx_r, vy_r, vz_r, wx_r, wy_r, wz_r
The initial conditions of the right body.
Data type: real

Example

*BodyPair(b_wheel, "wheel", p_wheel_cm)
*SetPoint(p_wc, 10, -210, 130)
*SetBodyIC(b_wheel, 10, 25, 50, 75, , 100, 
 10, 25, 50, 75, , -100)

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.