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.CameraPositionCamera position from plotter. Can be reused as an input parameter to use the same camera position for future plots. Only returned when
return_cposisTrue.
Notes
If
graphics_backend=GraphicsBackend.PYVISTA(default), this function usesMapdlPlotterYou can pass key arguments toMapdlPlotterusingkwargsargument. For example,show_axes,background, etc.Examples
Plot the average element component stress in the X direction.
>>> mapdl.post_processing.plot_element_stress("X")