*PointmassBody()
Creates a point mass body entity.
Syntax
*PointmassBody(pmb_name,"pmb_label",[cm_origin],[lprf_origin])
Arguments
- pmb_name
- The variable name of the point mass body.
- pmb_label
- The descriptive label of the point mass body.
- cm_origin
- An optional argument for the center of mass of the point mass body.
- lprf_origin
- An optional argument for the local part reference frame of the point mass body.
Example
*BeginMDL( the_model, "The Model" )
*Point( p_1, "Point 1" )
*Point( p_2, "Point 2" )
*SetPoint( p_1, 21, 22, 23 )
*SetPoint( p_2, 24, 25, 26 )
*PointmassBody( pmb_1, "Point mass body 1", p_1, p_2 )
*SetPointmassBody( pmb_1, 10 )
*SetPointmassBodyIC( pmb_1, 71, 72, 73 )
*SetPointmassBodyICFlag( pmb_1, TRUE, TRUE, TRUE )
*EndMDL()
Context
Properties
| Property | Returns Data Type | Description |
|---|---|---|
| auto_color_index | integer | The value of the index representing the color to be used for graphics attached to this entity (unless overridden by the individual graphic). |
| cg | Point | The point where the center of mass is located. |
| draw_graphic | boolean | Set to TRUE if the graphic is to be displayed in the model window. |
| id | integer | Solver input deck ID number. |
| id_string | string | The ID represented as a string. |
| label | string | The descriptive label of the point mass body. |
| lprf | Marker | The local part reference frame of the point mass body. |
| mass | real | The value of the mass of the point mass body. |
| material | Material | The material setting that is applied to graphics attached to this body. |
| note | string | The note on the entity. |
| num | integer | The unique identification number within MDL. |
| point_mass | boolean | Always TRUE for this entity. |
| shade_mode | Can be set to USE_MATERIAL, TRANSPARENT, OPAQUE, or OFF. | |
| state | boolean | Control state (TRUE or FALSE). This parameter is read only and cannot be directly changed by the user (see user_state). |
| usecm | boolean | Set to TRUE if the center of mass marker is to be used. |
| uselprf | boolean | Set to TRUE if the local part reference frame is to be used. |
| use_in_fit | boolean | Set to TRUE if the graphics associated with this entity are to be included when "Fit" is selected. |
| user_state | boolean | The state that can be set by the user (TRUE or FALSE). |
| use_vx | boolean | Set to TRUE if the vx initial velocity is to be used. |
| use_vy | boolean | Set to TRUE if the vy initial velocity is to be used. |
| use_vz | boolean | Set to TRUE if the vz initial velocity is to be used. |
| varname | string | The variable name of the user constraint. |
| vx | real | The initial translational velocity in the x direction relative to ground. |
| vy | real | The initial translational velocity in the y direction relative to ground. |
| vz | real | The initial translational velocity in the z direction relative to ground. |
| wire_mode | Can be set to WIREFRAME, FEATURE_LINES, or FREE_EDGE_LINES. |
Comments
A point mass body contains no inertial information.