Class for encapsulating possible domain boundary conditions for CdrSolver.
More...
#include <CD_CdrDomainBC.H>
|
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. More...
|
|
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.
|
|
Class for encapsulating possible domain boundary conditions for CdrSolver.
- Note
- This class is used in CdrSolver to populate boundary conditions, letting the solver pick between various scenarios, such as wall boundary conditions, data-based boundary conditions, function-based boundary conditions etc. This class is just a placeholder for that functionality – it does not provide any discretization whatsoever.
-
This class will be run-time safe in the sense that its default constructor provides a fully functional object which (shouldn't) cause run-time errors.
◆ FluxFunction
Function which maps f(R^3,t) : R. Used for setting the associated value and boundary condition type.
- Parameters
-
[in] | a_position | Physical position |
[in] | a_time | Time |
- Returns
- Returns flux in time and space
◆ CdrDomainBC() [1/3]
CdrDomainBC::CdrDomainBC |
( |
| ) |
|
|
inline |
Initializing constructor.
This populates m_bcTypes and m_bcFunctions with BcType::Wall and flux functions which return zero (i.e., also wall).
◆ CdrDomainBC() [2/3]
CdrDomainBC::CdrDomainBC |
( |
const CdrDomainBC & |
a_other | ) |
|
|
default |
Copy constructor.
- Parameters
-
◆ CdrDomainBC() [3/3]
CdrDomainBC::CdrDomainBC |
( |
const CdrDomainBC && |
a_other | ) |
|
|
delete |
Disallowed copy constructor.
- Parameters
-
◆ domainSide()
Create a domain side from dir/side.
- Parameters
-
[in] | a_dir | Coordinate direction |
[in] | a_side | Low/high side |
- Returns
- Returns std::pair<int, Side::LoHiSide>(a_dir, a_sit)
◆ getBcFunction()
Get the BC type on a particular domain side.
- Parameters
-
[in] | a_domainSide | Domain side |
- Returns
- Returns the BC function on the domain side
◆ getBcType()
Get the BC type on a particular domain side.
- Parameters
-
[in] | a_domainSide | Domain side |
- Returns
- Returns the BC type on the domain side
◆ operator=() [1/2]
Disallowed move assignment.
- Parameters
-
◆ operator=() [2/2]
Copy assignment.
- Parameters
-
◆ setBcFunction()
Set the BC type on a domain side.
- Parameters
-
[in] | a_domainSide | Domain side |
[in] | a_function | Flux function on domain side |
◆ setBcType()
void CdrDomainBC::setBcType |
( |
const DomainSide & |
a_domainSide, |
|
|
const BcType & |
a_bcType |
|
) |
| |
|
inline |
Set the BC type on a domain side.
- Parameters
-
[in] | a_domainSide | Domain side |
[in] | a_bcType | Domain BC type |
The documentation for this class was generated from the following files: