dolfinx.cpp.io

I/O module

Functions

extract_local_entities(arg0, arg1, arg2, arg3)

get_vtk_cell_type(arg0, arg1)

perm_gmsh(arg0, arg1)

perm_vtk(arg0, arg1)

Classes

VTKFile(self, comm, filename, mode)

XDMFFile(self, comm, filename, file_mode, …)

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

Bases: pybind11_builtins.pybind11_object

close(self: dolfinx.cpp.io.VTKFile) None
write(*args, **kwargs)

Overloaded function.

  1. write(self: dolfinx.cpp.io.VTKFile, u: List[dolfinx.cpp.fem.Function], t: float = 0.0) -> None

  2. write(self: dolfinx.cpp.io.VTKFile, u: List[dolfinx::fem::Function<std::complex<double> >], t: float = 0.0) -> None

  3. write(self: dolfinx.cpp.io.VTKFile, mesh: dolfinx.cpp.mesh.Mesh, t: float = 0.0) -> None

class dolfinx.cpp.io.XDMFFile(self: dolfinx.cpp.io.XDMFFile, comm: MPICommWrapper, filename: str, file_mode: str, encoding: dolfinx.cpp.io.XDMFFile.Encoding = <Encoding.HDF5: 0>) None

Bases: pybind11_builtins.pybind11_object

class Encoding(self: dolfinx.cpp.io.XDMFFile.Encoding, value: int) None

Bases: pybind11_builtins.pybind11_object

Members:

HDF5

ASCII

ASCII = <Encoding.ASCII: 1>
HDF5 = <Encoding.HDF5: 0>
property name
property value
close(self: dolfinx.cpp.io.XDMFFile) None
comm(self: dolfinx.cpp.io.XDMFFile) MPICommWrapper
read_cell_type(self: dolfinx.cpp.io.XDMFFile, name: str = 'mesh', xpath: str = '/Xdmf/Domain') Tuple[dolfinx.cpp.mesh.CellType, int]
read_geometry_data(*args, **kwargs)

Overloaded function.

  1. read_geometry_data(self: dolfinx.cpp.io.XDMFFile, name: str = ‘mesh’, xpath: str = ‘/Xdmf/Domain’) -> numpy.ndarray[numpy.float64]

  2. read_geometry_data(self: dolfinx.cpp.io.XDMFFile, name: str = ‘mesh’, xpath: str = ‘/Xdmf/Domain’) -> xt::xtensor_container<xt::uvector<double, std::allocator<double> >, 2ul, (xt::layout_type)1, xt::xtensor_expression_tag>

read_information(self: dolfinx.cpp.io.XDMFFile, name: str, xpath: str = '/Xdmf/Domain') str
read_meshtags(self: dolfinx.cpp.io.XDMFFile, mesh: dolfinx.cpp.mesh.Mesh, name: str, xpath: str = '/Xdmf/Domain') dolfinx.cpp.mesh.MeshTags_int32
read_topology_data(self: dolfinx.cpp.io.XDMFFile, name: str = 'mesh', xpath: str = '/Xdmf/Domain') numpy.ndarray[numpy.int64]
write_function(*args, **kwargs)

Overloaded function.

  1. write_function(self: dolfinx.cpp.io.XDMFFile, function: dolfinx.cpp.fem.Function, t: float, mesh_xpath: str) -> None

  2. write_function(self: dolfinx.cpp.io.XDMFFile, function: dolfinx::fem::Function<std::complex<double> >, t: float, mesh_xpath: str) -> None

write_geometry(self: dolfinx.cpp.io.XDMFFile, geometry: dolfinx.cpp.mesh.Geometry, name: str = 'geometry', xpath: str = '/Xdmf/Domain') None
write_information(self: dolfinx.cpp.io.XDMFFile, name: str, value: str, xpath: str = '/Xdmf/Domain') None
write_mesh(self: dolfinx.cpp.io.XDMFFile, mesh: dolfinx.cpp.mesh.Mesh, xpath: str = '/Xdmf/Domain') None
write_meshtags(self: dolfinx.cpp.io.XDMFFile, meshtags: dolfinx.cpp.mesh.MeshTags_int32, geometry_xpath: str = '/Xdmf/Domain/Grid/Geometry', xpath: str = '/Xdmf/Domain') None
dolfinx.cpp.io.extract_local_entities(arg0: dolfinx.cpp.mesh.Mesh, arg1: int, arg2: numpy.ndarray[numpy.int64], arg3: numpy.ndarray[numpy.int32]) Tuple[numpy.ndarray[numpy.int32], numpy.ndarray[numpy.int32]]
dolfinx.cpp.io.get_vtk_cell_type(arg0: dolfinx.cpp.mesh.Mesh, arg1: int) int
dolfinx.cpp.io.perm_gmsh(arg0: dolfinx.cpp.mesh.CellType, arg1: int) List[int]
dolfinx.cpp.io.perm_vtk(arg0: dolfinx.cpp.mesh.CellType, arg1: int) List[int]