nodal_principal_stress

PostProcessing.nodal_principal_stress(component)

Nodal principal stress.

Equilvanent MAPDL commands:

  • *VGET, PARM, NODE, , S, 1

  • PRNSOL, S, PRIN

Parameters
componentstr, optional

Nodal component stress component to retrieve. Must be '1', '2', or '3'

Returns
numpy.ndarray

Numpy array containing the nodal principal stress.

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 stress in the S1 direction for the first result.

>>> mapdl.post1()
>>> mapdl.set(1, 1)
>>> mapdl.post_processing.nodal_principal_stress('1')
    array([0.60024621, 0.61625265, 0.65081825, ...,
           0.        , 0.        , 0.        ])

Corresponding nodes.

>>> mapdl.mesh.nnum_all
array([   1,    2,    3, ..., 7215, 7216, 7217], dtype=int32)
Return type

ndarray