pyvista.Nek5000Reader#
- class Nek5000Reader(*args, **kwargs)[source]#
Class for reading .nek5000 files produced by Nek5000 and NekRS.
Added in version 0.45.0.
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.
Enable all cell arrays.
Enable cell array with name.
Nek5000Reader.set_active_time_point
(time_point)Set active time or iteration by index.
Nek5000Reader.set_active_time_value
(time_value)Set active time or iteration value.
Nek5000Reader.time_point_value
(time_point)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.