plot_element_displacement#
- PostProcessing.plot_element_displacement(component='NORM', option='AVG', show_elem_numbering=False, **kwargs)#
Plot element displacement.
- Parameters:
- component
str,optional Structural displacement component to retrieve. Must be
"X","Y","Z", or"NORM".- 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 mean normalized element displacement for the first result in the “X” direction.
>>> mapdl.post1() >>> mapdl.set(1, 1) >>> mapdl.post_processing.plot_element_displacement( ... "NORM", ... option="AVG" ... )