Usage Reference for pyvisfile.xdmf
¶
This implementation targets XDMF3 and takes available fields directly from the code in the xdmf library. Additional documentation can be found online, but (at the time of this writing, December 2020) does not appear to be kept up to date.
Writing¶
- class pyvisfile.xdmf.DataArray(components: tuple[DataItem, ...], *, name: str | None = None, acenter: AttributeCenter | None = None, atype: AttributeType | None = None)[source]¶
An array represented as a list of
DataItem
s.- __init__(components: tuple[DataItem, ...], *, name: str | None = None, acenter: AttributeCenter | None = None, atype: AttributeType | None = None)[source]¶
- Parameters:
components – a description of each component of an array.
name – name of the array. This name will be used if the array is added as an attribute, otherwise the names of the components are used.
- class pyvisfile.xdmf.NumpyDataArray(ary: ndarray[Any, dtype[Any]], *, acenter: AttributeCenter | None = None, name: str | None = None)[source]¶
- class pyvisfile.xdmf.XdmfUnstructuredGrid(points: DataArray, connectivity: DataArray, *, topology_type: Topology | TopologyType, name: str | None = None, geometry_type: GeometryType | None = None)[source]¶
Bases:
XdmfGrid
- __init__(points: DataArray, connectivity: DataArray, *, topology_type: Topology | TopologyType, name: str | None = None, geometry_type: GeometryType | None = None)[source]¶