XDMFFile.h

Note

The documentation on this page was automatically extracted from the DOLFIN C++ code and may need to be edited or expanded.

class XDMFFile

Parent class(es)

This class supports the output of meshes and functions in XDMF (http://www.xdmf.org) format. It creates an XML file that describes the data and points to a HDF5 file that stores the actual problem data. Output of data in parallel is supported.

XDMF is not suitable for checkpointing as it may decimate some data.

XDMFFile(MPI_Comm comm, const std::string filename)

Constructor

void operator<<(const Mesh &mesh)

Save a mesh for visualisation, with e.g. ParaView. Creates a HDF5 file to store the mesh, and a related XDMF file with metadata.

void read(Mesh &mesh, bool use_partition_from_file)

Read in a mesh from the associated HDF5 file, optionally using stored partitioning, if possible when the same number of processes are being used.

void operator>>(Mesh &mesh)

Read in a mesh from the associated HDF5 file

void operator<<(const Function &u)

Save a Function to XDMF/HDF5 files for visualisation.

void operator<<(const std::pair<const Function *, double> ut)

Save Function + time stamp to file

void operator<<(const MeshFunction<bool> &meshfunction)

Save MeshFunction to file

void write(const std::vector<Point> &points)

Save a cloud of points to file

void write(const std::vector<Point> &points, const std::vector<double> &values)

Save a cloud of points, with scalar values

void operator>>(MeshFunction<bool> &meshfunction)

Read first MeshFunction from file