read_exodus#
- read_exodus(filename, animate_mode_shapes=True, apply_displacements=True, displacement_magnitude=1.0, read_point_data=True, read_cell_data=True, enabled_sidesets=None)[source]#
Read an ExodusII file (
'.e'
or'.exo'
).- Parameters
- filename
str
The path to the exodus file to read.
- animate_mode_shapesbool,
optional
When
True
then this reader will report a continuous time range [0,1] and animate the displacements in a periodic sinusoid.- apply_displacementsbool,
optional
Geometric locations can include displacements. When
True
, the nodal positions are ‘displaced’ by the standard exodus displacement vector. If displacements are turned off, the user can explicitly add them by applying a warp filter.- displacement_magnitudebool,
optional
This is a number between 0 and 1 that is used to scale the
DisplacementMagnitude
in a sinusoidal pattern.- read_point_databool,
optional
Read in data associated with points. Default
True
.- read_cell_databool,
optional
Read in data associated with cells. Default
True
.- enabled_sidesets
str
orint
,optional
The name of the array that store the mapping from side set cells back to the global id of the elements they bound.
- filename
- Returns
pyvista.DataSet
Wrapped PyVista dataset.
Examples
>>> import pyvista as pv >>> from pyvista import examples >>> data = read_exodus('mymesh.exo')