dolfinx.cpp.io

I/O module

Classes

FidesMeshPolicy

FidesWriter_float32()

FidesWriter object

FidesWriter_float64()

FidesWriter object

VTKFile(self, comm, filename, mode)

VTXMeshPolicy

VTXWriter_float32()

VTXWriter_float64()

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

class dolfinx.cpp.io.FidesMeshPolicy

Bases: object

reuse = dolfinx.cpp.io.FidesMeshPolicy.reuse
update = dolfinx.cpp.io.FidesMeshPolicy.update
class dolfinx.cpp.io.FidesWriter_float32(self, comm: MPICommWrapper, filename: os.PathLike, mesh: dolfinx.cpp.mesh.Mesh_float32, engine: str = 'BPFile')
class dolfinx.cpp.io.FidesWriter_float32(self, comm: MPICommWrapper, filename: os.PathLike, u: list[Union[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 = dolfinx.cpp.io.FidesMeshPolicy.update)

Bases: object

FidesWriter object

close
write
class dolfinx.cpp.io.FidesWriter_float64(self, comm: MPICommWrapper, filename: os.PathLike, mesh: dolfinx.cpp.mesh.Mesh_float64, engine: str = 'BPFile')
class dolfinx.cpp.io.FidesWriter_float64(self, comm: MPICommWrapper, filename: os.PathLike, u: list[Union[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 = dolfinx.cpp.io.FidesMeshPolicy.update)

Bases: object

FidesWriter object

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

Bases: object

close
write
class dolfinx.cpp.io.VTXMeshPolicy

Bases: object

reuse = dolfinx.cpp.io.VTXMeshPolicy.reuse
update = dolfinx.cpp.io.VTXMeshPolicy.update
class dolfinx.cpp.io.VTXWriter_float32(self, comm: MPICommWrapper, filename: os.PathLike, mesh: dolfinx.cpp.mesh.Mesh_float32, engine: str)
class dolfinx.cpp.io.VTXWriter_float32(self, comm: MPICommWrapper, filename: os.PathLike, u: list[Union[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 = dolfinx.cpp.io.VTXMeshPolicy.update)

Bases: object

close
write
class dolfinx.cpp.io.VTXWriter_float64(self, comm: MPICommWrapper, filename: os.PathLike, mesh: dolfinx.cpp.mesh.Mesh_float64, engine: str)
class dolfinx.cpp.io.VTXWriter_float64(self, comm: MPICommWrapper, filename: os.PathLike, u: list[Union[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 = dolfinx.cpp.io.VTXMeshPolicy.update)

Bases: object

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

Bases: object

class Encoding

Bases: object

ASCII = dolfinx.cpp.io.Encoding.ASCII
HDF5 = dolfinx.cpp.io.Encoding.HDF5
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