pyvista.EnSightReader

class EnSightReader(filename)

EnSight Reader for .case files.

Examples

>>> import pyvista
>>> from pyvista import examples
>>> filename = examples.download_cylinder_crossflow(load=False)
>>> filename.split("/")[-1]  # omit the path
'cylinder_Re35.case'
>>> reader = pyvista.get_reader(filename)
>>> mesh = reader.read()
>>> mesh.plot(scalars="velocity", component=1, clim=[-20, 20],
...           cpos='xy', cmap='RdBu', show_scalar_bar=False)
../../../_images/pyvista-EnSightReader-1_00_00.png

Methods

EnSightReader.cell_array_status(name)

Get status of cell array with name.

EnSightReader.disable_all_cell_arrays()

Disable all cell arrays.

EnSightReader.disable_all_point_arrays()

Disable all point arrays.

EnSightReader.disable_cell_array(name)

Disable cell array with name.

EnSightReader.disable_point_array(name)

Disable point array with name.

EnSightReader.enable_all_cell_arrays()

Enable all cell arrays.

EnSightReader.enable_all_point_arrays()

Enable all point arrays.

EnSightReader.enable_cell_array(name)

Enable cell array with name.

EnSightReader.enable_point_array(name)

Enable point array with name.

EnSightReader.point_array_status(name)

Get status of point array with name.

EnSightReader.read()

Read data in file.

EnSightReader.set_active_time_point(time_point)

Set active time or iteration by index.

EnSightReader.set_active_time_value(time_value)

Set active time or iteration value.

EnSightReader.time_point_value(time_point)

Value of time point or iteration by index.

Attributes

EnSightReader.active_time_value

Active time or iteration value.

EnSightReader.all_cell_arrays_status

Return the status of all cell arrays.

EnSightReader.all_point_arrays_status

Return the status of all point arrays.

EnSightReader.cell_array_names

Return the list of all cell array names.

EnSightReader.number_cell_arrays

Return the number of cell arrays.

EnSightReader.number_point_arrays

Return the number of point arrays.

EnSightReader.number_time_points

Return number of time points or iterations available to read.

EnSightReader.point_array_names

Return the list of all point array names.

EnSightReader.reader

Return the vtk Reader object.

EnSightReader.time_values

All time or iteration values.