EnSightReader#
- class EnSightReader(*args, **kwargs)[source]#
EnSight Reader for .case files.
Wraps vtkGenericEnSightReader.
Examples#
Download Python source code | Download Jupyter notebook
>>> import pyvista as pv
>>> from pyvista import examples
>>> from pathlib import Path
>>> filename = examples.download_cylinder_crossflow(load=False)
>>> Path(filename).name
'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,
... )
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. |
Inherited Attributes#
Return the status of all cell arrays. |
|
Return the status of all point arrays. |
|
Return the list of all cell array names. |
|
Return mapping from regex pattern matching associated with this class. |
|
Return the file extensions associated with this class. |
|
Return the number of cell arrays. |
|
Return the number of point arrays. |
|
Return or set the filename or directory of the reader. |
|
Return the list of all point array names. |
|
Return the vtk Reader object. |
|
All time or iteration values. |
Methods#
|
Set active time or iteration by index. |
|
Set the active time set by index. |
|
Set active time or iteration value. |
|
Value of time point or iteration by index. |
Inherited Methods#
Get status of cell array with name. |
|
Disable all cell arrays. |
|
Disable all point arrays. |
|
Disable cell array with name. |
|
Disable point array with name. |
|
Enable all cell arrays. |
|
Enable all point arrays. |
|
Enable cell array with name. |
|
Enable point array with name. |
|
Hide the progress bar when loading the file. |
|
Get status of point array with name. |
|
Read data in file. |
|
Show a progress bar when loading the file. |