imat_fem/chgunits


Purpose

Convert an IMAT_FEM to a different system of units

Syntax

fem = chgunits(fem,from,to)

Description

CHGUNITS converts FEM from one unit system to another, and returns the result in FEM. FROM and TO should be either unit strings or 5x1 vectors of factors such as those returned by GETUNITS. If FROM is not specified, it is assumed to be the current units system returned by GETUNITS.

For coordinate systems, the origin offset is transformed.

For nodes, coordinates are transformed according to the storage (.cs(:,3)) coordinate system type:

Type Description Transformed coordinates
0 Cartesian X Y Z
1 Cylindrical R Z
2 Spherical 0

 

For elements, extra data is transformed according to the element type:

Category Type Extra data transformed
2D Cartesian .t, corner thickness

 

See Also

getunits