12 #ifndef CD_CdrDomainBCImplem_H
13 #define CD_CdrDomainBCImplem_H
17 #include <CD_NamespaceHeader.H>
25 auto wallBc = [](
const RealVect a_position,
const Real a_time) -> Real {
29 for (
int dir = 0; dir < SpaceDim; dir++) {
30 for (SideIterator sit; sit.ok(); ++sit) {
45 return std::make_pair(a_dir, a_side);
72 #include <CD_NamespaceFooter.H>
Declaration of domain boundary condition types for CdrSolver.
~CdrDomainBC()
Destructor. Does nothing.
Definition: CD_CdrDomainBCImplem.H:39
const FluxFunction & getBcFunction(const DomainSide &a_domainSide) const
Get the BC type on a particular domain side.
Definition: CD_CdrDomainBCImplem.H:55
void setBcFunction(const DomainSide &a_domainSide, const FluxFunction &a_function)
Set the BC type on a domain side.
Definition: CD_CdrDomainBCImplem.H:67
CdrDomainBC()
Initializing constructor.
Definition: CD_CdrDomainBCImplem.H:19
std::function< Real(const RealVect a_position, const Real a_time)> FluxFunction
Function which maps f(R^3,t) : R. Used for setting the associated value and boundary condition type.
Definition: CD_CdrDomainBC.H:51
const BcType & getBcType(const DomainSide &a_domainSide) const
Get the BC type on a particular domain side.
Definition: CD_CdrDomainBCImplem.H:49
std::map< DomainSide, FluxFunction > m_bcFunctions
BC functions on various domain edges.
Definition: CD_CdrDomainBC.H:145
std::map< DomainSide, BcType > m_bcTypes
BC types on various domain edges.
Definition: CD_CdrDomainBC.H:140
std::pair< int, Side::LoHiSide > DomainSide
Alias for mapping a direction and side. The first element in pair is the coordinate direction and the...
Definition: CD_CdrDomainBC.H:56
void setBcType(const DomainSide &a_domainSide, const BcType &a_bcType)
Set the BC type on a domain side.
Definition: CD_CdrDomainBCImplem.H:61
BcType
Boundary condition types for the CDR solvers.
Definition: CD_CdrDomainBC.H:37
DomainSide domainSide(const int a_dir, const Side::LoHiSide a_side) const
Create a domain side from dir/side.
Definition: CD_CdrDomainBCImplem.H:43