pyvista.read_exodus

Contents

pyvista.read_exodus#

read_exodus(
filename: str | Path,
animate_mode_shapes: bool = True,
apply_displacements: bool = True,
displacement_magnitude: float = 1.0,
read_point_data: bool = True,
read_cell_data: bool = True,
enabled_sidesets: Iterable[str | int] | None = None,
) DataSet | MultiBlock[source]#

Read an ExodusII file ('.e' or '.exo').

Parameters:
filenamestr, Path

The path to the exodus file to read.

animate_mode_shapesbool, default: True

When True then this reader will report a continuous time range [0,1] and animate the displacements in a periodic sinusoid.

apply_displacementsbool, default: True

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_magnitudefloat, default: 1.0

This is a number between 0 and 1 that is used to scale the DisplacementMagnitude in a sinusoidal pattern.

read_point_databool, default: True

Read in data associated with points.

read_cell_databool, default: True

Read in data associated with cells.

enabled_sidesetsIterable[str | int], optional

The name of the array that store the mapping from side set cells back to the global id of the elements they bound.

Returns:
pyvista.DataSet

Wrapped PyVista dataset.

Examples

>>> import pyvista as pv
>>> data = pv.read_exodus('mymesh.exo')