Rodin::Geometry::Face class

Represents a face (codimension-1 element) in a mesh.

Faces are polytopes of dimension $ d-1 $ where $ d $ is the mesh dimension:

  • Triangles or quadrilaterals in 3D meshes
  • Segments in 2D meshes

Faces are crucial for:

  • Boundary condition application
  • Interface problems
  • Flux computations

Base classes

class Polytope
Base class for all geometric elements in finite element meshes.

Public types

using Parent = Polytope
Parent class type.

Constructors, destructors, conversion operators

Face(Index index, const MeshBase& mesh)
Constructs a face with given index.
Face(const Face& other)
Copy constructor.
Face(Face&& other)
Move constructor.

Public functions

auto isBoundary() const -> bool
Checks if this face is on the mesh boundary.
auto isInterface() const -> bool
Checks if this face is an interface between regions.

Function documentation

Rodin::Geometry::Face::Face(Index index, const MeshBase& mesh)

Constructs a face with given index.

Parameters
index in Index of the face in the mesh
mesh in Reference to the containing mesh

bool Rodin::Geometry::Face::isBoundary() const

Checks if this face is on the mesh boundary.

Returns True if the face is a boundary face, false otherwise

A face is on the boundary if it belongs to only one cell.

bool Rodin::Geometry::Face::isInterface() const

Checks if this face is an interface between regions.

Returns True if the face separates different material regions

An interface face connects cells with different attributes.