HMIN_form_system()
Creates a valid system from three nodes and writes the information to HyperMesh.
Syntax
HMIN_form_system(HM_entityidtype systemid, int type, char code, double origin[3], double axis[3], double plane[3],HM_entityidtype syscolid)
Type
HyperMesh hminlib Function
Description
Creates a valid system from three nodes and writes the information to HyperMesh.
Inputs
- systemid
- The ID of the system.
- type
- The type of system to be written.
- 0 - For a Cartesian system.
- 1 - For a cylindrical system.
- 2 - For a spherical system.
- code
- The code value is used to determine which point defines two of the three X, Y, or Z vectors of the system. The third vector is then defined by calculating the cross product of the origin to axis and origin to plane vectors. Code is interpreted by HMIN_unpacksystemcode() in the following manner:
- origin
- The coordinates of the point which specify the system's origin.
- axis
- The coordinates of the point which specify the system's axis.
- plane
- The coordinates of the point which specify the plane of the system.
- syscolid
- The ID of the system collector.
Example
- 0 - If function is executed successfully.
- 1 - If the origin to axis vector is invalid.
- 2 - If the origin to plane vector is invalid or if the origin to plane and origin to axis vectors cannot be made perpendicular.
- 3 - If the third vector created from the origin to plane and origin to axis vectors is invalid.
Errors
None.