pyvista.EnSightReader#
- class EnSightReader(*args, **kwargs)[source]#
EnSight Reader for .case files.
Examples
>>> import pyvista as pv >>> from pyvista import examples >>> filename = examples.download_cylinder_crossflow(load=False) >>> filename.split("/")[-1] # omit the path 'cylinder_Re35.case' >>> reader = pv.get_reader(filename) >>> mesh = reader.read() >>> mesh.plot( ... scalars="velocity", ... component=1, ... clim=[-20, 20], ... cpos='xy', ... cmap='RdBu', ... show_scalar_bar=False, ... )
Methods
EnSightReader.set_active_time_point
(time_point)Set active time or iteration by index.
EnSightReader.set_active_time_set
(time_set)Set the active time set 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
Return the index of the active time set of the reader.
Active time or iteration value.
Return number of time points or iterations available to read.