MeshConnectivity¶
-
class
dolfin.cpp.mesh.
MeshConnectivity
(*args)¶ Bases:
object
Mesh connectivity stores a sparse data structure of connections (incidence relations) between mesh entities for a fixed pair of topological dimensions.
The connectivity can be specified either by first giving the number of entities and the number of connections for each entity, which may either be equal for all entities or different, or by giving the entire (sparse) connectivity pattern.
Overloaded versions
MeshConnectivity(d0, d1)
Create empty connectivity between given dimensions (d0 – d1)
MeshConnectivity(connectivity)
Copy constructor
-
clear
()¶ Clear all data
-
empty
()¶ Return true if the total number of connections is equal to zero
-
hash
()¶ Hash of connections
-
init
()¶ Overloaded versions
init(num_entities, num_connections)
Initialize number of entities and number of connections (equal for all)
init(num_connections)
Initialize number of entities and number of connections (individually)
-
set_global_size
()¶ Set global number of connections for all local entities
-
size
()¶ Overloaded versions
size()
Return total number of connections
size(entity)
Return number of connections for given entity
-
size_global
()¶ Return global number of connections for given entity
-
str
()¶ Return informal string representation (pretty-print)
-
thisown
¶ The membership flag