pyvista.XdmfReader#

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

XdmfReader for .xdmf files.

Parameters:
pathstr

Path of the XDMF file to read.

Notes

We currently can’t inspect the time values for this reader.

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()
https://d33wubrfki0l68.cloudfront.net/788db21a842c681c5a0edca5e83e7b3bb57119f6/0a6e4/_images/pyvista-xdmfreader-1_00_00.png

Methods

XdmfReader.set_active_time_value(time_value)

Attributes

XdmfReader.number_grids

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