Class which maps boundary condition types to a side and direction.
More...
#include <CD_EddingtonSP1DomainBc.H>
|
| enum class | BcType { Dirichlet
, Neumann
, Larsen
} |
| | Boundary condition type.
|
| |
|
using | BcFunction = 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.
|
| |
|
using | Bc = std::pair< BcType, BcFunction > |
| | Alias for mapping a bctype and function.
|
| |
|
|
std::map< DomainSide, Bc > | m_bcFunctions |
| | This holds the map to the boundary condition type and side. The first entry in the map is the direction and side of the boundary condition. The other entry in the map is the BC type, and the associated function which returns the value in space and time of the BC.
|
| |
Class which maps boundary condition types to a side and direction.
This class is simply meant to hold boundary conditions for use in EddingtonSP1. It provides no functionality otherwise,
◆ EddingtonSP1DomainBc() [1/2]
Copy constructor.
- Parameters
-
◆ EddingtonSP1DomainBc() [2/2]
Disallowedd move constructor.
- Parameters
-
◆ getBc() [1/2]
Returns the boundary condition for a side and direction.
- Parameters
-
| [in] | a_domainSide | Coordinate direction and siden |
- Note
- If the boundary condition for the associated side and direction has not been previously set, this routine will cause a run-time error.
- Returns
- Bc
◆ getBc() [2/2]
Returns the boundary condition for a side and direction.
- Parameters
-
| [in] | a_domainSide | Coordinate direction and siden |
- Note
- If the boundary condition for the associated side and direction has not been previously set, this routine will cause a run-time error.
- Returns
- Bc
◆ operator=() [1/2]
Disallowed move assignment.
- Parameters
-
◆ operator=() [2/2]
Copy assignment.
- Parameters
-
- Returns
- Return value
◆ setBc()
| void EddingtonSP1DomainBc::setBc |
( |
const DomainSide |
a_domainSide, |
|
|
const Bc & |
a_bc |
|
) |
| |
Set the boundary condition on a domain side. You must set both the type, and the associated function.
- Parameters
-
| [in] | a_domainSide | Coordinate direction and side |
| [in] | a_bc | BC type and function |
- Note
- If the boundary condition had been set previously, this code will overwrite the previous setting.
The documentation for this class was generated from the following files: