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.Copy constructor.
Parameters: MeshConnectivity & connectivity (const) – -
clear
()¶ Clear all data.
Return type: void
-
hash
()¶ Hash of connections.
Return type: std::size_t
-
init
()¶ Initialize number of entities and number of connections (equal for all)
Parameters: - num_entities (std::size_t) –
- num_connections (std::size_t) –
Return type: void
-
set_global_size
()¶ Set
global number of connections for all local entities.Parameters: std::vector< unsigned int > & num_global_connections (const) – Return type: void
-
size
()¶ Return total number of connections.
Return type: std::size_t
-
size_global
()¶ Return global number of connections for given entity.
Parameters: entity (std::size_t) – Return type: std::size_t
-
str
()¶ Return informal string representation (pretty-print)
Parameters: verbose (bool) – Return type: std::string
-
thisown
¶ The membership flag
-