*SetBodyIC() - all bodies in a system
Sets the initial conditions for all bodies in a system.
Syntax
*SetBodyIC(sys_name|BODIES, vx, vy, vz,
wx, wy, wz)
Arguments
- sys_name
- The variable name of an existing system.
- BODIES
- If BODIES is specified, the initial conditions for all bodies in the current scope are set.
- vx, vy, vz, wx, wy, wz
- The initial conditions.
Example
*System(sys_frnt, "Front suspension", sysdef_frnt,
b_body)
*SetBodyIC(sys_frnt, 1000, 0, 0, 0, 0, 0)
*SetBodyIC(sys_frnt.b_wheel, , , , , , 100)
*System(sys_driveline, "Driveline", sysdef_driveline,
sys_frnt.b_wheel)
*SetSystem(sys_driveline)
*SetBodyIC(BODIES, model_sys_frnt.b_wheel.vx, , , , ,
model.sys_frnt.b_wheel.wz)
Context
Comments
The *SetBodyIC() statement sets the initial conditions for all the bodies in the system. If the BODIES argument is used, it sets initial conditions for all bodies in the system to which the current scope is set.
Arguments can be empty, real, or expressions.