pyvista.Nek5000Reader

Contents

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')
../../../_images/pyvista-Nek5000Reader-1_00_00.png

Methods

Nek5000Reader.cell_array_status(name)

Get status of cell array with name.

Nek5000Reader.disable_all_cell_arrays()

Disable all cell arrays.

Nek5000Reader.disable_cell_array(name)

Disable cell array with name.

Nek5000Reader.enable_all_cell_arrays()

Enable all cell arrays.

Nek5000Reader.enable_cell_array(name)

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

Nek5000Reader.active_time_point

Active time point.

Nek5000Reader.active_time_value

Active time or iteration value.

Nek5000Reader.cell_array_names

Return the list of all cell array names.

Nek5000Reader.number_cell_arrays

Return the number of cell arrays.

Nek5000Reader.number_time_points

Return number of time points or iterations available to read.

Nek5000Reader.time_values

All time or iteration values.