element_stress

PostProcessing.element_stress(component, option='AVG')

Return element component or principal stress.

One value per element. Either minimum, maximum, or average of all nodes in each element.

Equilvanent MAPDL commands:

  • ETABLE,VALUES,S,X

  • PRETAB,VALUES or *VGET,TMP,ELEM,1,ETAB,VALUES

Parameters
componentstr

Element stress to retrieve. One of the following:

X, Y, Z, XY, YZ, XZ

Component stress.

1, 2, 3

Principal stress.

INT

Stress intensity.

EQV

Equivalent stress

optionstr, optional

Option for storing element table data. One of the following:

  • "MIN" : Store minimum element nodal value of the specified item component.

  • "MAX" : Store maximum element nodal value of the specified item component.

  • "AVG" : Store averaged element centroid value of the specified item component (default).

Returns
numpy.ndarray

Numpy array of stresses.

Examples

Return the average element component stress in the X direction.

>>> arr = mapdl.post_processing.element_stress("X")
>>> arr.shape
(2080, 3)
>>> arr
array([-0.29351357, -0.37027832, -0.37340827, ...,  0.        ,
        0.        ,  0.        ])
Return type

ndarray