Create an IMAT_CS coordinate system object.
cs=imat_cs
cs=imat_cs([])
cs=imat_cs(s)
cs=imat_cs(id,cs,name,color,type,matrix)
The IMAT_CS class contains FEM coordinate system information. It provides a number of methods for working with the data.
IMAT_CS with no arguments will create an object with the global cartesian system defined.
IMAT_CS(0) or IMAT_CS([]) will create an empty object.
IMAT_CS(S), where S is a structure containing fields with the same name as the properties of IMAT_CS will convert the structure into an IMAT_CS object.
IMAT_CS(ID,...) where the input argument are the same as the ADD method, will create an IMAT_CS with the node information added.
The IMAT_CS object contains several properties that define the coordinate systems:
.part | 1x2 cell array containing an integer and a string. This is used for export to Universal files. |
.id |
Coordinate system ID (list must be unique and -1 or greater) |
.name |
Cell array of strings containing the coordinate system names |
.color |
Vector of coordinate system colors (non-negative). The colors follow the I-deas convention. |
.type |
Coordinate system type 0 = cartesian 1 = cylindrical 2 = spherical |
.matrix |
4x3xN matrix containing the transformation matrices. The upper 3x3 contains the transformation matrix, and the 4th row contains the origin of this coordinate system in global coordinates. |
The transformation matrix is defined as the transformation from global
to local coordinates:
COORD_LOCAL = T * (COORD_GLOBAL - OFFSET)
where T is the upper 3x3 of .matrix, and offset is the 4th row of .matrix.
imat_fem, imat_node, imat_elem, imat_tl, imat_fem/partition, imat_fem/validate