Restriction¶
-
class
dolfin.cpp.mesh.
Restriction
(*args)¶ Bases:
object
This class represents a restriction of a mesh to a subdomain, which can be defined as a subset of all the cells, the facets, or possibly lower dimensional entities of the mesh.
Overloaded versions
Restriction(mesh, sub_domain)
Create cell-based restriction from subdomain
Restriction(mesh, sub_domain, dim)
Create restriction from subdomain to entities of arbitrary dimension
Restriction(domain_markers, domain_number)
Create restriction from domain markers
- Arguments
- domain_markers (
MeshFunction
) Domain markers for the cells of the mesh.
- domain_number (int)
Identifier for domain.
- domain_markers (
Restriction(domain_markers, domain_number)
Create restriction from domain markers (shared pointer version)
- Arguments
- domain_markers (
MeshFunction
) Domain markers for the cells of the mesh.
- domain_number (int)
Identifier for domain.
- domain_markers (
-
contains
()¶ Overloaded versions
contains(entity)
Check whether restriction contains entity
contains(d, i)
Check whether restriction contains entity (d, i)
-
dim
()¶ Return topological dimension of restriction
-
mesh
()¶ Return the full unrestricted mesh
-
thisown
¶ The membership flag