dolfinx.cpp.io

I/O module

Classes

FidesMeshPolicy(value[, names, module, ...])

FidesWriter_float32()

FidesWriter object

FidesWriter_float64()

FidesWriter object

VTKFile(self, comm, filename, mode)

VTXMeshPolicy(value[, names, module, ...])

VTXWriter_float32()

VTXWriter_float64()

XDMFFile(self, comm, filename, file_mode[, ...])

class dolfinx.cpp.io.FidesMeshPolicy(value, names=<not given>, *values, module=None, qualname=None, type=None, start=1, boundary=None)

Bases: Enum

reuse = 1
update = 0
class dolfinx.cpp.io.FidesWriter_float32(self, comm: MPICommWrapper, filename: str | os.PathLike, mesh: dolfinx.cpp.mesh.Mesh_float32, engine: str = 'BPFile')
class dolfinx.cpp.io.FidesWriter_float32(self, comm: MPICommWrapper, filename: str | os.PathLike, u: collections.abc.Sequence[dolfinx.cpp.fem.Function_float32 | dolfinx::fem::Function<double, float> | dolfinx.cpp.fem.Function_complex64 | dolfinx::fem::Function<std::complex<double>, float>], engine: str = 'BPFile', policy: dolfinx.cpp.io.FidesMeshPolicy = FidesMeshPolicy.update)

Bases: object

FidesWriter object

close
write
class dolfinx.cpp.io.FidesWriter_float64(self, comm: MPICommWrapper, filename: str | os.PathLike, mesh: dolfinx.cpp.mesh.Mesh_float64, engine: str = 'BPFile')
class dolfinx.cpp.io.FidesWriter_float64(self, comm: MPICommWrapper, filename: str | os.PathLike, u: collections.abc.Sequence[dolfinx::fem::Function<float, double> | dolfinx.cpp.fem.Function_float64 | dolfinx::fem::Function<std::complex<float>, double> | dolfinx.cpp.fem.Function_complex128], engine: str = 'BPFile', policy: dolfinx.cpp.io.FidesMeshPolicy = FidesMeshPolicy.update)

Bases: object

FidesWriter object

close
write
class dolfinx.cpp.io.VTKFile(self, comm: MPICommWrapper, filename: str | os.PathLike, mode: str)

Bases: object

close
write
class dolfinx.cpp.io.VTXMeshPolicy(value, names=<not given>, *values, module=None, qualname=None, type=None, start=1, boundary=None)

Bases: Enum

reuse = 1
update = 0
class dolfinx.cpp.io.VTXWriter_float32(self, comm: MPICommWrapper, filename: str | os.PathLike, mesh: dolfinx.cpp.mesh.Mesh_float32, engine: str)
class dolfinx.cpp.io.VTXWriter_float32(self, comm: MPICommWrapper, filename: str | os.PathLike, u: collections.abc.Sequence[dolfinx.cpp.fem.Function_float32 | dolfinx::fem::Function<double, float> | dolfinx.cpp.fem.Function_complex64 | dolfinx::fem::Function<std::complex<double>, float>], engine: str = 'BPFile', policy: dolfinx.cpp.io.VTXMeshPolicy = VTXMeshPolicy.update)

Bases: object

close
write
class dolfinx.cpp.io.VTXWriter_float64(self, comm: MPICommWrapper, filename: str | os.PathLike, mesh: dolfinx.cpp.mesh.Mesh_float64, engine: str)
class dolfinx.cpp.io.VTXWriter_float64(self, comm: MPICommWrapper, filename: str | os.PathLike, u: collections.abc.Sequence[dolfinx::fem::Function<float, double> | dolfinx.cpp.fem.Function_float64 | dolfinx::fem::Function<std::complex<float>, double> | dolfinx.cpp.fem.Function_complex128], engine: str = 'BPFile', policy: dolfinx.cpp.io.VTXMeshPolicy = VTXMeshPolicy.update)

Bases: object

close
write
class dolfinx.cpp.io.XDMFFile(self, comm: MPICommWrapper, filename: str | os.PathLike, file_mode: str, encoding: dolfinx.cpp.io.XDMFFile.Encoding = Encoding.HDF5)

Bases: object

class Encoding(value, names=<not given>, *values, module=None, qualname=None, type=None, start=1, boundary=None)

Bases: Enum

ASCII = 1
HDF5 = 0
close
property comm

(self) -> MPICommWrapper

read_cell_type
read_geometry_data
read_information
read_meshtags
read_topology_data
write_function
write_geometry
write_information
write_mesh
write_meshtags