24#ifndef FREEFLOW_NAVIERSTOKES_BOUNDARY_TYPES_HH
25#define FREEFLOW_NAVIERSTOKES_BOUNDARY_TYPES_HH
44 for (
int eqIdx=0; eqIdx < numEq; ++eqIdx)
65 for (
int eqIdx=0; eqIdx < numEq; ++eqIdx)
81 template<
class T =
void>
90 template<
class T =
void>
121 for (
int i = 0; i < numEq; ++i)
148 for (
int i = 0; i < numEq; ++i)
Class to specify the type of a boundary.
Definition: common/boundarytypes.hh:38
void resetEq(int eqIdx)
Reset the boundary types for one equation.
Definition: common/boundarytypes.hh:63
Template which always yields a false value.
Definition: typetraits.hh:35
Class to specify the type of a boundary condition for the Navier-Stokes model.
Definition: freeflow/navierstokes/boundarytypes.hh:38
void setAllSymmetry()
Sets a symmetry boundary condition for all equations.
Definition: freeflow/navierstokes/boundarytypes.hh:63
void resetEq(const int eqIdx)
Reset the boundary types for one equation.
Definition: freeflow/navierstokes/boundarytypes.hh:51
bool hasBeaversJoseph() const
Returns true if some equation is used to specify a Beavers-Joseph(-Saffman) boundary condition.
Definition: freeflow/navierstokes/boundarytypes.hh:119
void setAllNeumann()
Prevent setting all boundary conditions to Neumann.
Definition: freeflow/navierstokes/boundarytypes.hh:91
std::array< NavierStokesBoundaryInfo, numEq > boundaryInfo_
Definition: freeflow/navierstokes/boundarytypes.hh:163
bool isOutflow(const int eqIdx) const
Returns true if an outflow boundary condition was set.
Definition: freeflow/navierstokes/boundarytypes.hh:140
NavierStokesBoundaryTypes()
Definition: freeflow/navierstokes/boundarytypes.hh:42
void setOutflow(const int eqIdx)
Set an outflow boundary condition.
Definition: freeflow/navierstokes/boundarytypes.hh:130
void setBeaversJoseph(const int eqIdx)
Set a boundary condition for a single equation to Beavers-Joseph(-Saffmann) (special case of Dirichle...
Definition: freeflow/navierstokes/boundarytypes.hh:100
void setAllDirichlet()
Prevent setting all boundary conditions to Dirichlet.
Definition: freeflow/navierstokes/boundarytypes.hh:82
bool isSymmetry() const
Returns true if the there is a symmetry boundary condition.
Definition: freeflow/navierstokes/boundarytypes.hh:75
bool isBeaversJoseph(const int eqIdx) const
Returns true if an equation is used to specify a Beavers-Joseph(-Saffman) boundary condition.
Definition: freeflow/navierstokes/boundarytypes.hh:112
bool hasOutflow() const
Returns true if some equation has an outflow boundary condition.
Definition: freeflow/navierstokes/boundarytypes.hh:146
use bitfields to minimize the size
Definition: freeflow/navierstokes/boundarytypes.hh:157
bool isBeaversJoseph
Definition: freeflow/navierstokes/boundarytypes.hh:160
bool isSymmetry
Definition: freeflow/navierstokes/boundarytypes.hh:158
bool isOutflow
Definition: freeflow/navierstokes/boundarytypes.hh:159
Class to specify the type of a boundary.