ansys.mapdl.core.Mapdl.mapvar#
- Mapdl.mapvar(option='', matid='', istrtstress='', ntenstress='', istrtstrain='', ntenstrain='', istrtvect='', nvect='', **kwargs)#
Defines tensors and vectors in user-defined state variables for rezoning and in 2D to 3D analyses.
Mechanical APDL Command: MAPVAR
- Parameters:
- option
str DEFINE- Define variables for the specifiedMatIdmaterial ID (default).LIST- List the defined variables for the specifiedMatIdmaterial ID.
- matid
str The material ID for the state variables which you are defining (
Option= DEFINE) or listing (Option= LIST).When
Option= LIST, the default value for this argument is ALL (which lists all defined variables). WhenOption= DEFINE, you must explicitly specify a material ID.- istrtstress
str The start position of stress-like tensors in the state variables. This value must be either a positive integer or 0 (meaning no stress-like tensors).
- ntenstress
str The number of stress-like tensors in the state variables. This value must be either a positive integer (or 0), and all stress-like tensors must be contiguous.
- istrtstrain
str The start position of strain-like tensors in the state variables. This value must be either a positive integer or 0 (meaning no strain-like tensors).
- ntenstrain
str The number of strain-like tensors in the state variables. This value must be either a positive integer (or 0), and all strain-like tensors must be contiguous.
- istrtvect
str The start position of vectors in the state variables. This value must be either a positive integer or 0 (meaning no vectors).
- nvect
str The number of vectors in the state variables. This value must be either a positive integer (or 0), and all vectors must be contiguous.
- option
Notes
The mapvar command identifies the tensors and vectors in user-defined state variables ( tb,STATE) for user-defined materials ( tb,USER and UserMat or UserMatTh ) or user- defined creep laws ( tb,CREEP,,,,100 and UserCreep ).
To handle large-rotation effects and to correctly differentiate between tensor- and vector-mapping, specify the start position of specific state variables. For stress-like tensors, the shear components saved as state variables are the tensor component. For strain-like tensors, the shear components saved as state variables are twice the tensor components. Therefore, issue the mapvar command to define the stress-like and strain-like tensors individually. The command ensures that user-defined state variables are mapped correctly during rezoning and in 2D to 3D analyses.
In a rezoning operation, mapvar must be issued after remeshing ( remesh,FINISH) but before mapping ( mapsolve ).