plot_element_stress#
- PostProcessing.plot_element_stress(component, option='AVG', show_elem_numbering=False, **kwargs)#
Plot element component or principal stress.
One value per element. Either minimum, maximum, or average of all nodes in each element.
- Parameters:
- component
str
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
- option
str
,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).
- show_elem_numberingbool,
optional
Plot the element numbers of the elements.
- **kwargs
dict
,optional
Keyword arguments passed to
MapdlPlotter
- component
- Returns:
pyvista.plotting.renderer.CameraPosition
Camera position from plotter. Can be reused as an input parameter to use the same camera position for future plots. Only returned when
return_cpos
isTrue
.
Notes
If
vkt=True
(default), this function usesMapdlPlotter
You can pass key arguments toMapdlPlotter
usingkwargs
argument. For example,show_axes
,background
, etc.Examples
Plot the average element component stress in the X direction.
>>> mapdl.post_processing.plot_element_stress("X")