nodal_rotation#
- PostProcessing.nodal_rotation(component='ALL')[source]#
Nodal X, Y, or Z structural rotation
Equilvanent MAPDL commands: :rtype:
ndarray
PRNSOL, ROT, X
PRNSOL, ROT, Y
PRNSOL, ROT, Z
- Parameters:
- component
str
,optional
Structural rotational component to retrieve. Must be
'X'
,'Y'
,'Z'
, or'ALL'
. Defaults to'ALL'
.
- component
- Returns:
numpy.ndarray
Numpy array with nodal X, Y, Z, or all structural rotations.
Notes
This command always returns all nodal rotations regardless of if the nodes are selected or not. Use the
selected_nodes
mask to get the currently selected nodes.Examples
Nodal rotation in all dimensions for current result.
>>> mapdl.post1() >>> mapdl.set(1, 1) >>> mapdl.post_processing.nodal_rotation('ALL') array([[0., 0., 0.], [0., 0., 0.], [0., 0., 0.], ..., [0., 0., 0.], [0., 0., 0.], [0., 0., 0.]])
Nodes corresponding to the nodal rotations.
>>> mapdl.mesh.nnum_all array([ 1, 2, 3, ..., 7215, 7216, 7217], dtype=int32)