pyvista.Nek5000Reader#
- class Nek5000Reader(*args, **kwargs)[source]#
Class for reading .nek5000 files produced by Nek5000 and NekRS.
Wraps vtkNek5000Reader.
Added in version 0.45.0.
Note
This reader requires vtk version >=9.3.0.
Examples
>>> import pyvista as pv >>> from pyvista import examples >>> filename = examples.download_nek5000(load=False) >>> reader = pv.get_reader(filename) >>> mesh = reader.read() >>> mesh.plot(scalars='Velocity', cpos='xy')
Methods#
Get status of cell array with name. |
|
Disable all cell arrays. |
|
Disable cell array with name. |
|
Disable merging coincident GLL points from different spectral elements on read. |
|
Disable spectral element IDs to be shown as cell data. |
|
Enable all cell arrays. |
|
Enable cell array with name. |
|
Enable merging coincident GLL points from different spectral elements on read. |
|
Enable spectral element IDs to be shown as cell data. |
|
|
Set active time or iteration by index. |
|
Set active time or iteration value. |
|
Value of time point or iteration by index. |
Attributes#
Active time point. |
|
Active time or iteration value. |
|
Return the list of all cell array names. |
|
Return the number of cell arrays. |
|
Return number of time points or iterations available to read. |
|
All time or iteration values. |