dolfinx.cpp.io¶
I/O module
Functions
|
|
|
|
|
|
|
Classes
|
|
|
-
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.
write(self: dolfinx.cpp.io.VTKFile, u: List[dolfinx.cpp.fem.Function], t: float = 0.0) -> None
write(self: dolfinx.cpp.io.VTKFile, u: List[dolfinx::fem::Function<std::complex<double> >], t: float = 0.0) -> None
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.
read_geometry_data(self: dolfinx.cpp.io.XDMFFile, name: str = ‘mesh’, xpath: str = ‘/Xdmf/Domain’) -> numpy.ndarray[numpy.float64]
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_topology_data
(self: dolfinx.cpp.io.XDMFFile, name: str = 'mesh', xpath: str = '/Xdmf/Domain') → numpy.ndarray[numpy.int64]¶
-
write_function
(*args, **kwargs)¶ Overloaded function.
write_function(self: dolfinx.cpp.io.XDMFFile, function: dolfinx.cpp.fem.Function, t: float, mesh_xpath: str) -> None
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¶
-
class
-
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]¶