|
chombo-discharge
|
Class for encapsulating possible domain boundary conditions for CdrSolver. More...
#include <CD_CdrDomainBC.H>
Public Types | |
| enum class | BcType { DataBased , Wall , Function , Outflow , Solver } |
| Boundary condition types for the CDR solvers. | |
| using | FluxFunction = std::function< Real(const RealVect a_position, const Real a_time)> |
| Function which maps f(R^3,t) : R. Used for setting the associated value and boundary condition type. | |
| using | DomainSide = std::pair< int, Side::LoHiSide > |
| Alias for mapping a direction and side. The first element in pair is the coordinate direction and the second is the low/high end in that direction. | |
Public Member Functions | |
| CdrDomainBC () | |
| Initializing constructor. | |
| CdrDomainBC (const CdrDomainBC &a_other)=default | |
| Copy constructor. | |
| CdrDomainBC (const CdrDomainBC &&a_other)=delete | |
| Disallowed copy constructor. | |
| CdrDomainBC & | operator= (const CdrDomainBC &a_other)=default |
| Copy assignment. | |
| CdrDomainBC & | operator= (const CdrDomainBC &&a_other)=delete |
| Disallowed move assignment. | |
| DomainSide | domainSide (const int a_dir, const Side::LoHiSide a_side) const |
| Create a domain side from dir/side. | |
| ~CdrDomainBC () | |
| Destructor. Does nothing. | |
| const BcType & | getBcType (const DomainSide &a_domainSide) const |
| Get the BC type on a particular domain side. | |
| const FluxFunction & | getBcFunction (const DomainSide &a_domainSide) const |
| Get the BC type on a particular domain side. | |
| void | setBcType (const DomainSide &a_domainSide, const BcType &a_bcType) |
| Set the BC type on a domain side. | |
| void | setBcFunction (const DomainSide &a_domainSide, const FluxFunction &a_function) |
| Set the BC type on a domain side. | |
Protected Attributes | |
| std::map< DomainSide, BcType > | m_bcTypes |
| BC types on various domain edges. | |
| std::map< DomainSide, FluxFunction > | m_bcFunctions |
| BC functions on various domain edges. | |
Class for encapsulating possible domain boundary conditions for CdrSolver.
Function which maps f(R^3,t) : R. Used for setting the associated value and boundary condition type.
| [in] | a_position | Physical position |
| [in] | a_time | Time |
|
inline |
Initializing constructor.
This populates m_bcTypes and m_bcFunctions with BcType::Wall and flux functions which return zero (i.e., also wall).
|
default |
Copy constructor.
| [in] | a_other | Other |
|
delete |
Disallowed copy constructor.
| [in] | a_other | Other |
|
inline |
Create a domain side from dir/side.
| [in] | a_dir | Coordinate direction |
| [in] | a_side | Low/high side |
|
inline |
Get the BC type on a particular domain side.
| [in] | a_domainSide | Domain side |
|
inline |
Get the BC type on a particular domain side.
| [in] | a_domainSide | Domain side |
|
delete |
Disallowed move assignment.
| [in] | a_other | Other |
|
default |
Copy assignment.
| [in] | a_other | Other |
|
inline |
Set the BC type on a domain side.
| [in] | a_domainSide | Domain side |
| [in] | a_function | Flux function on domain side |
|
inline |
Set the BC type on a domain side.
| [in] | a_domainSide | Domain side |
| [in] | a_bcType | Domain BC type |