FacetCell

class dolfin.cpp.mesh.FacetCell(mesh: dolfin.cpp.mesh.BoundaryMesh, facet: dolfin.cpp.mesh.Cell)

Bases: dolfin.cpp.mesh.Cell

This class represents a cell in a mesh incident to a facet on the boundary. It is useful in cases where one needs to iterate over a boundary mesh and access the corresponding cells in the original mesh.

Create cell on mesh corresponding to given facet (cell) on boundary.

Parameters:
  • BoundaryMesh & mesh (const) –
  • Cell & facet (const) –
facet_index()

Return local index of facet with respect to the cell.

Return type:std::size_t
thisown

The membership flag