*SetPointmassBodyIC() - point mass body pair

Sets the initial conditions of a point mass body pair.

Syntax

*SetPointmassBodyIC(pmb_name, vx_l, vy_l, vz_l, vx_r, vy_r, vz_r)

Arguments

pmb_name
The variable name of an existing point mass body.
Data type: varname
vx_l, vy_l, vz_l
Initial translational velocity along the X, Y, and Z coordinates for the left body.
Data type: real
vx_r, vy_r, vz_r
Initial translational velocity along the X, Y, and Z coordinates for the right body.
Data type: real

Example

*BeginMDL(model, "The model")
*PointPair(p_3, "Point 3 pair")
*PointPair(p_4, "Point 4 pair")
*SetPoint(p_3, LEFT, 31, 32, 33)
*SetPoint(p_4, LEFT, 34, 35, 36)
 
*PointmassBodyPair(pmb_2, "Point mass body 2", p_3, p_4)
*SetPointmassBody(pmb_2, LEFT, 15)
*SetPointmassBodyIC(pmb_2, 81, 82, 83, 84, 85, 86)
*SetPointmassBodyICFlag(pmb_2, TRUE, TRUE, TRUE, TRUE, TRUE, TRUE)
*EndMDL()

Context

*BeginMdl()

*DefineAnalysis()

*DefineSystem()