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

    Arguments
    mesh (Mesh)

    The mesh

    sub_domain (SubDomain)

    Sub domain defining the restriction

  • Restriction(mesh, sub_domain, dim)

    Create restriction from subdomain to entities of arbitrary dimension

    Arguments
    mesh (Mesh)

    The mesh

    sub_domain (SubDomain)

    Sub domain defining the restriction

    dim (int)

    Dimension of restriction

  • 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.

  • 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.

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