XdmfReader#

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

XdmfReader for .xdmf files.

Wraps vtkXdmfReader.

Parameters:
pathstr

Path of the XDMF file to read.

Examples#

Download Python source code | Download Jupyter notebook

>>> import pyvista as pv
>>> from pyvista import examples
>>> from pathlib import Path
>>> filename = examples.download_meshio_xdmf(load=False)
>>> reader = pv.get_reader(filename)
>>> Path(filename).name
'out.xdmf'
>>> mesh = reader.read()
>>> mesh.plot()
../../../_images/pyvista-XdmfReader-7df3534369b94f33_00_00.png

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.

Inherited Attributes#

PointCellDataSelection.all_cell_arrays_status

Return the status of all cell arrays.

PointCellDataSelection.all_point_arrays_status

Return the status of all point arrays.

PointCellDataSelection.cell_array_names

Return the list of all cell array names.

_FileIOBase.extension_patterns

Return mapping from regex pattern matching associated with this class.

_FileIOBase.extensions

Return the file extensions associated with this class.

PointCellDataSelection.number_cell_arrays

Return the number of cell arrays.

PointCellDataSelection.number_point_arrays

Return the number of point arrays.

BaseReader.path

Return or set the filename or directory of the reader.

PointCellDataSelection.point_array_names

Return the list of all point array names.

BaseReader.reader

Return the vtk Reader object.

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.

Inherited Methods#

PointCellDataSelection.cell_array_status

Get status of cell array with name.

PointCellDataSelection.disable_all_cell_arrays

Disable all cell arrays.

PointCellDataSelection.disable_all_point_arrays

Disable all point arrays.

PointCellDataSelection.disable_cell_array

Disable cell array with name.

PointCellDataSelection.disable_point_array

Disable point array with name.

PointCellDataSelection.enable_all_cell_arrays

Enable all cell arrays.

PointCellDataSelection.enable_all_point_arrays

Enable all point arrays.

PointCellDataSelection.enable_cell_array

Enable cell array with name.

PointCellDataSelection.enable_point_array

Enable point array with name.

BaseReader.hide_progress

Hide the progress bar when loading the file.

PointCellDataSelection.point_array_status

Get status of point array with name.

BaseReader.read

Read data in file.

BaseReader.show_progress

Show a progress bar when loading the file.