pyvista.PVDReader

class PVDReader(filename)

PVD Reader for .pvd files.

Examples

>>> import pyvista
>>> from pyvista import examples
>>> filename = examples.download_wavy(load=False)
>>> filename.split("/")[-1]  # omit the path
'wavy.pvd'
>>> reader = pyvista.get_reader(filename)
>>> reader.time_values  
[0.0, 1.0, 2.0, 3.0, ... 12.0, 13.0, 14.0]
>>> reader.set_active_time_point(5)
>>> reader.active_time_value
5.0
>>> mesh = reader.read()[0]  # MultiBlock mesh with only 1 block
>>> mesh.plot(scalars='z')
../../../_images/pyvista-PVDReader-1_00_00.png

Methods

PVDReader.read()

Read data from PVD timepoint.

PVDReader.set_active_time_point(time_point)

Set active time or iteration by index.

PVDReader.set_active_time_value(time_value)

Set active time or iteration value.

PVDReader.time_point_value(time_point)

Value of time point or iteration by index.

Attributes

PVDReader.active_datasets

Return all active datasets.

PVDReader.active_readers

Return the active readers.

PVDReader.active_time_value

Active time or iteration value.

PVDReader.datasets

Return all datasets.

PVDReader.number_time_points

Return number of time points or iterations available to read.

PVDReader.reader

Return the PVDReader.

PVDReader.time_values

All time or iteration values.