Restriction.h¶
Note
The documentation on this page was automatically extracted from the DOLFIN C++ code and may need to be edited or expanded.
-
class
Restriction
¶ 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.
-
Restriction
(const Mesh &mesh, const SubDomain &sub_domain)¶ Create cell-based restriction from subdomain
-
Restriction
(const Mesh &mesh, const SubDomain &sub_domain, std::size_t dim)¶ Create restriction from subdomain to entities of arbitrary dimension
-
Restriction
(const MeshFunction<std::size_t> &domain_markers, std::size_t domain_number)¶ Create restriction from domain markers
- Arguments
- domain_markers (
MeshFunction
<std::size_t>) - Domain markers for the cells of the mesh.
- domain_number (std::size_t)
- Identifier for domain.
- domain_markers (
Create restriction from domain markers (shared pointer version)
- Arguments
- domain_markers (
MeshFunction
<std::size_t>) - Domain markers for the cells of the mesh.
- domain_number (std::size_t)
- Identifier for domain.
- domain_markers (
-
std::size_t
dim
() const¶ Return topological dimension of restriction
-
bool
contains
(const MeshEntity &entity) const¶ Check whether restriction contains entity
-
bool
contains
(std::size_t d, std::size_t i) const¶ Check whether restriction contains entity (d, i)
-