Struct BoundaryCondition

Struct Documentation

struct BoundaryCondition

Simple data structure to specify boundary conditions. Its stores the BC-type in type and an array of 3 values in values. For a Dirichlet-BC only values[0] is used to specify the value of the BC. For a robin boundary condition we use all 3 values in the form

\[a\phi + b \mathbf{n} \frac{\partial \phi}{\partial \mathbf{x}} = f \]
where \( a \), \( b \) and \( f \) map to values[0], values[1] and values[2], respectively.

Public Members

BCType type = BCType::DIRICHLET
std::array<double, 3> values = {0, 0, 0}