imat_fem/renumber


Purpose

Renumber an IMAT_FEM using the supplied increments.

Syntax

g=renumber(fem,ics,ind,iel,itl)

Description

RENUMBER will renumber a FEM based on the supplied increments. ICS is the coordinate system increment. IND is the node increment. IEL is the element increment. ITL is the traceline increment. Passing in 0 or an empty matrix for any of these will case that particular entity type to not be renumbered.

Any of the increment variables may also be a vector of the same length as the number of entities.

Examples

>> g=renumber(fem,1,100,[],0)     % Renumber the coordinate systems and nodes by a scalar increment

g =

IMAT_FEM Finite Element Model
         1 coordinate system
       527 nodes
       675 elements
         0 tracelines

>> g=renumber(fem,1,100)          % Same as above

fem2 =

IMAT_FEM Finite Element Model
         1 coordinate system
       527 nodes
       675 elements
         0 tracelines

>> g=renumber(fem,0,1:527)          % Renumber nodes using a vector of increasing increments

fem2 =

IMAT_FEM Finite Element Model
         1 coordinate system
       527 nodes
       675 elements
         0 tracelines