nodal_component_stress#
- PostProcessing.nodal_component_stress(component)[source]#
Nodal component stress.
Equilvanent MAPDL commands: :rtype:
ndarrayVGET, PARM, NODE, , S, XPRNSOL, S, COMP
- Parameters:
- component
str,optional Nodal component stress component to retrieve. Must be
'X','Y','Z','XY','YZ', or'XZ'.
- component
- Returns:
numpy.ndarrayNumpy array containing the nodal component stress for the selected
component.
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 stress in the X direction for the first result
>>> mapdl.post1() >>> mapdl.set(1, 1) >>> mapdl.post_processing.nodal_component_stress('X') 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)