pyvista.XdmfReader#

class XdmfReader(*args, **kwargs)[source]#

XdmfReader for .xdmf files.

Parameters:
pathstr

Path of the XDMF file to read.

Examples

>>> import pyvista as pv
>>> from pyvista import examples
>>> filename = examples.download_meshio_xdmf(load=False)
>>> reader = pv.get_reader(filename)
>>> filename.split("/")[-1]  # omit the path
'out.xdmf'
>>> mesh = reader.read()
>>> mesh.plot()
../../../_images/pyvista-XdmfReader-1_00_00.png

Methods

XdmfReader.set_active_time_point(time_point)

Set active time or iteration by index.

XdmfReader.set_active_time_value(time_value)

Set active time or iteration value.

XdmfReader.time_point_value(time_point)

Value of time point or iteration by index.

Attributes

XdmfReader.active_time_value

Active time or iteration value.

XdmfReader.number_grids

Return the number of grids that can be read by the reader.

XdmfReader.number_time_points

Return number of time points or iterations available to read.

XdmfReader.time_values

All time or iteration values.