pyvista.PVDReader#
- class PVDReader(*args, **kwargs)[source]#
PVD Reader for .pvd files.
Examples
>>> import pyvista as pv >>> from pyvista import examples >>> filename = examples.download_wavy(load=False) >>> filename.split("/")[-1] # omit the path 'wavy.pvd' >>> reader = pv.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')
Methods
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
Return all active datasets.
Return the active readers.
Active time or iteration value.
Return all datasets.
Return number of time points or iterations available to read.
All time or iteration values.