12#ifndef FREEFLOW_NAVIERSTOKES_BOUNDARY_TYPES_HH
13#define FREEFLOW_NAVIERSTOKES_BOUNDARY_TYPES_HH
32 for (
int eqIdx=0; eqIdx < numEq; ++eqIdx)
53 for (
int eqIdx=0; eqIdx < numEq; ++eqIdx)
69 template<
class T =
void>
78 template<
class T =
void>
109 for (
int i = 0; i < numEq; ++i)
136 for (
int i = 0; i < numEq; ++i)
Class to specify the type of a boundary.
Definition: common/boundarytypes.hh:26
void resetEq(int eqIdx)
Reset the boundary types for one equation.
Definition: common/boundarytypes.hh:51
Class to specify the type of a boundary condition for the Navier-Stokes model.
Definition: freeflow/navierstokes/boundarytypes.hh:26
void setAllSymmetry()
Sets a symmetry boundary condition for all equations.
Definition: freeflow/navierstokes/boundarytypes.hh:51
void resetEq(const int eqIdx)
Reset the boundary types for one equation.
Definition: freeflow/navierstokes/boundarytypes.hh:39
bool hasBeaversJoseph() const
Returns true if some equation is used to specify a Beavers-Joseph(-Saffman) boundary condition.
Definition: freeflow/navierstokes/boundarytypes.hh:107
void setAllNeumann()
Prevent setting all boundary conditions to Neumann.
Definition: freeflow/navierstokes/boundarytypes.hh:79
std::array< NavierStokesBoundaryInfo, numEq > boundaryInfo_
Definition: freeflow/navierstokes/boundarytypes.hh:151
bool isOutflow(const int eqIdx) const
Returns true if an outflow boundary condition was set.
Definition: freeflow/navierstokes/boundarytypes.hh:128
NavierStokesBoundaryTypes()
Definition: freeflow/navierstokes/boundarytypes.hh:30
void setOutflow(const int eqIdx)
Set an outflow boundary condition.
Definition: freeflow/navierstokes/boundarytypes.hh:118
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:88
void setAllDirichlet()
Prevent setting all boundary conditions to Dirichlet.
Definition: freeflow/navierstokes/boundarytypes.hh:70
bool isSymmetry() const
Returns true if the there is a symmetry boundary condition.
Definition: freeflow/navierstokes/boundarytypes.hh:63
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:100
bool hasOutflow() const
Returns true if some equation has an outflow boundary condition.
Definition: freeflow/navierstokes/boundarytypes.hh:134
Class to specify the type of a boundary.
Template which always yields a false value.
Definition: common/typetraits/typetraits.hh:24
use bitfields to minimize the size
Definition: freeflow/navierstokes/boundarytypes.hh:145
bool isBeaversJoseph
Definition: freeflow/navierstokes/boundarytypes.hh:148
bool isSymmetry
Definition: freeflow/navierstokes/boundarytypes.hh:146
bool isOutflow
Definition: freeflow/navierstokes/boundarytypes.hh:147