nodal_rotation#
- PostProcessing.nodal_rotation(component='ALL')[source]#
Nodal X, Y, or Z structural rotation
Equilvanent MAPDL commands: :rtype:
ndarrayPRNSOL, ROT, XPRNSOL, ROT, YPRNSOL, ROT, Z
- Parameters:
- component
str,optional Structural rotational component to retrieve. Must be
'X','Y','Z', or'ALL'. Defaults to'ALL'.
- component
- Returns:
numpy.ndarrayNumpy 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_nodesmask 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)