dolfinx.cpp.mesh

Mesh library module

Classes

CellType(value[, names, module, qualname, ...])

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

Geometry_float32(self, index_map, dofmap[, ...])

Geometry object

Geometry_float64(self, index_map, dofmap[, ...])

Geometry object

GhostMode(value[, names, module, qualname, ...])

MeshTags_float64(self, arg0, arg1, arg2[, ...])

MeshTags object

MeshTags_int32(self, arg0, arg1, arg2[, ...])

MeshTags object

MeshTags_int64(self, arg0, arg1, arg2[, ...])

MeshTags object

MeshTags_int8(self, arg0, arg1, arg2[, ...])

MeshTags object

Mesh_float32(self, comm, topology, geometry)

Mesh object

Mesh_float64(self, comm, topology, geometry)

Mesh object

Topology(self, comm, cell_type)

Topology object

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

Bases: Enum

hexahedron = -8
interval = 2
property name

(self) -> object

point = 1
prism = -6
pyramid = -5
quadrilateral = -4
tetrahedron = 4
triangle = 3
class dolfinx.cpp.mesh.DiagonalType(value, names=<not given>, *values, module=None, qualname=None, type=None, start=1, boundary=None)

Bases: Enum

crossed = 2
left = 0
left_right = 4
right = 1
right_left = 5
class dolfinx.cpp.mesh.Geometry_float32(self, index_map: dolfinx.cpp.common.IndexMap, dofmap: ndarray[dtype=int32, shape=(*, *), order='C', writable=False], element: dolfinx.cpp.fem.CoordinateElement_float32, x: ndarray[dtype=float32, shape=(*, *), writable=False], input_global_indices: ndarray[dtype=int64, shape=(*), order='C', writable=False])

Bases: object

Geometry object

property cmap

The coordinate map

cmaps

The ith coordinate map

property dim

Geometric dimension

property dofmap

(self) -> numpy.ndarray[dtype=int32, writable=False]

dofmaps

Get the geometry dofmap associated with coordinate element i (mixed topology)

index_map
property input_global_indices

(self) -> numpy.ndarray[dtype=int64, writable=False]

property x

Return coordinates of all geometry points. Each row is the coordinate of a point.

class dolfinx.cpp.mesh.Geometry_float64(self, index_map: dolfinx.cpp.common.IndexMap, dofmap: ndarray[dtype=int32, shape=(*, *), order='C', writable=False], element: dolfinx.cpp.fem.CoordinateElement_float64, x: ndarray[dtype=float64, shape=(*, *), writable=False], input_global_indices: ndarray[dtype=int64, shape=(*), order='C', writable=False])

Bases: object

Geometry object

property cmap

The coordinate map

cmaps

The ith coordinate map

property dim

Geometric dimension

property dofmap

(self) -> numpy.ndarray[dtype=int32, writable=False]

dofmaps

Get the geometry dofmap associated with coordinate element i (mixed topology)

index_map
property input_global_indices

(self) -> numpy.ndarray[dtype=int64, writable=False]

property x

Return coordinates of all geometry points. Each row is the coordinate of a point.

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

Bases: Enum

none = 0
shared_facet = 1
shared_vertex = 2
class dolfinx.cpp.mesh.MeshTags_float64(self, arg0: dolfinx.cpp.mesh.Topology, arg1: int, arg2: ndarray[dtype=int32, shape=(*), order='C', writable=False], arg3: ndarray[dtype=float64, shape=(*), order='C', writable=False], /)

Bases: object

MeshTags object

property dim

(self) -> int

property dtype

(self) -> str

find
property indices

(self) -> numpy.ndarray[dtype=int32, writable=False]

property name

(self) -> str

property topology

(self) -> dolfinx.cpp.mesh.Topology

property values

(self) -> numpy.ndarray[dtype=float64, writable=False]

class dolfinx.cpp.mesh.MeshTags_int32(self, arg0: dolfinx.cpp.mesh.Topology, arg1: int, arg2: ndarray[dtype=int32, shape=(*), order='C', writable=False], arg3: ndarray[dtype=int32, shape=(*), order='C', writable=False], /)

Bases: object

MeshTags object

property dim

(self) -> int

property dtype

(self) -> str

find
property indices

(self) -> numpy.ndarray[dtype=int32, writable=False]

property name

(self) -> str

property topology

(self) -> dolfinx.cpp.mesh.Topology

property values

(self) -> numpy.ndarray[dtype=int32, writable=False]

class dolfinx.cpp.mesh.MeshTags_int64(self, arg0: dolfinx.cpp.mesh.Topology, arg1: int, arg2: ndarray[dtype=int32, shape=(*), order='C', writable=False], arg3: ndarray[dtype=int64, shape=(*), order='C', writable=False], /)

Bases: object

MeshTags object

property dim

(self) -> int

property dtype

(self) -> str

find
property indices

(self) -> numpy.ndarray[dtype=int32, writable=False]

property name

(self) -> str

property topology

(self) -> dolfinx.cpp.mesh.Topology

property values

(self) -> numpy.ndarray[dtype=int64, writable=False]

class dolfinx.cpp.mesh.MeshTags_int8(self, arg0: dolfinx.cpp.mesh.Topology, arg1: int, arg2: ndarray[dtype=int32, shape=(*), order='C', writable=False], arg3: ndarray[dtype=int8, shape=(*), order='C', writable=False], /)

Bases: object

MeshTags object

property dim

(self) -> int

property dtype

(self) -> str

find
property indices

(self) -> numpy.ndarray[dtype=int32, writable=False]

property name

(self) -> str

property topology

(self) -> dolfinx.cpp.mesh.Topology

property values

(self) -> numpy.ndarray[dtype=int8, writable=False]

class dolfinx.cpp.mesh.Mesh_float32(self, comm: MPICommWrapper, topology: dolfinx.cpp.mesh.Topology, geometry: dolfinx.cpp.mesh.Geometry_float32)

Bases: object

Mesh object

property comm

(self) -> MPICommWrapper

property geometry

Mesh geometry

property name

(self) -> str

property topology

Mesh topology

class dolfinx.cpp.mesh.Mesh_float64(self, comm: MPICommWrapper, topology: dolfinx.cpp.mesh.Topology, geometry: dolfinx.cpp.mesh.Geometry_float64)

Bases: object

Mesh object

property comm

(self) -> MPICommWrapper

property geometry

Mesh geometry

property name

(self) -> str

property topology

Mesh topology

class dolfinx.cpp.mesh.Topology(self, comm: MPICommWrapper, cell_type: dolfinx.cpp.mesh.CellType)

Bases: object

Topology object

property cell_type

(self) -> dolfinx.cpp.mesh.CellType

property comm

(self) -> MPICommWrapper

connectivity
create_connectivity
create_entities
create_entity_permutations
property dim

Topological dimension

property entity_types

(self) -> list[list[dolfinx.cpp.mesh.CellType]]

get_cell_permutation_info
get_facet_permutations
index_map
index_maps
interprocess_facets
property original_cell_index

(self) -> numpy.ndarray[dtype=int64, writable=False]

set_connectivity
set_index_map