HDF5File¶
-
class
dolfin.cpp.io.
HDF5File
(*args)¶ Bases:
dolfin.cpp.common.Variable
Constructor. file_mode should “a” (append), “w” (write) or “r” (read).
-
attributes
()¶
-
close
()¶ Close file
-
flush
()¶ Flush buffered I/O to disk
-
has_dataset
()¶ Check if dataset exists in HDF5 file
-
read
()¶ Overloaded versions
read(x, dataset_name, true)
Read vector from file
read(u, name)
Read Function from file and distribute data according to the Mesh and dofmap associated with the Function
read(mesh, name)
Read Mesh from file
read(meshfunction, name)
Read MeshFunction from file
read(meshfunction, name)
Read MeshFunction from file
read(meshfunction, name)
Read MeshFunction from file
read(meshfunction, name)
Read MeshFunction from file
read(mesh_values, name)
Read MeshValueCollection from file
read(mesh_values, name)
Read MeshValueCollection from file
read(mesh_values, name)
Read MeshValueCollection from file
-
thisown
¶ The membership flag
-
write
()¶ Overloaded versions
write(x, name)
Write Vector to file in a format suitable for re-reading
write(mesh, name)
Write Mesh to file in a format suitable for re-reading
write(mesh, cell_dim, name)
Write Mesh of given cell dimension to file in a format suitable for re-reading
write(u, name)
Write Function to file in a format suitable for re-reading
write(u, name, timestamp)
Write Function to file with a timestamp
write(meshfunction, name)
Write MeshFunction to file in a format suitable for re-reading
write(meshfunction, name)
Write MeshFunction to file in a format suitable for re-reading
write(meshfunction, name)
Write MeshFunction to file in a format suitable for re-reading
write(meshfunction, name)
Write MeshFunction to file in a format suitable for re-reading
write(mesh_values, name)
Write MeshValueCollection to file
write(mesh_values, name)
Write MeshValueCollection to file
write(mesh_values, name)
Write MeshValueCollection to file
-