Skip to content

Struct ae108::cpppetsc::LabelConstraints

template <int Dim>

ClassList > ae108 > cpppetsc > LabelConstraints

Boundary condition label defined by a condition on the coordinates. More...

  • #include <BoundaryCondition.h>

Public Attributes

Type Name
std::function< bool(std::span< const PetscReal, CoordDim >)> condition
PetscInt label_value = {-1}

Public Static Attributes

Type Name
constexpr int CoordDim = Dim

Detailed Description

Remark:

Used to mark boundary cells with the label value

Public Attributes Documentation

variable condition

std::function<bool(std::span<const PetscReal, CoordDim>)> ae108::cpppetsc::LabelConstraints< Dim >::condition;

Predicate evaluated on a mesh point's coordinates; returns true if the point belongs to this boundary.


variable label_value

PetscInt ae108::cpppetsc::LabelConstraints< Dim >::label_value;

The label value assigned to mesh points for which condition holds.


Public Static Attributes Documentation

variable CoordDim

constexpr int ae108::cpppetsc::LabelConstraints< Dim >::CoordDim;


The documentation for this class was generated from the following file cpppetsc/src/include/ae108/cpppetsc/BoundaryCondition.h