# dolfinx.cpp.io

I/O module

Classes

`VTKFile`(self, comm, filename, mode) |
`VTXMeshPolicy`(*values) |
`VTXWriter_float32`() |
`VTXWriter_float64`() |
`XDMFFile`(self, comm, filename, file_mode[, ...]) |

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

  Bases: `object`

  close
  write

class dolfinx.cpp.io.VTXMeshPolicy(*values)

  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(*values)

    Bases: `Enum`

    ASCII = 1
    HDF5 = 0
  close
  property comm

    (self) -> MPICommWrapper

  flush
  read_cell_type
  read_geometry_data
  read_information
  read_meshtags
  read_topology_data
  write_function
  write_geometry
  write_information
  write_mesh
  write_meshtags