Encapsulation of a background species for usage with ItoKMCJSON.
More...
#include <CD_ItoKMCBackgroundSpecies.H>
|
using | MolarFraction = std::function< Real(const RealVect a_pos)> |
| Alias for position-dependent molar fraction.
|
|
Encapsulation of a background species for usage with ItoKMCJSON.
◆ ItoKMCBackgroundSpecies()
ItoKMCBackgroundSpecies::ItoKMCBackgroundSpecies |
( |
const std::string & |
a_name, |
|
|
const MolarFraction & |
a_molarFraction |
|
) |
| |
|
noexcept |
Full constructor. Calls the define function.
- Parameters
-
[in] | a_name | Species name |
[in] | a_molarFraction | Molar fraction |
◆ define()
void ItoKMCBackgroundSpecies::define |
( |
const std::string & |
a_name, |
|
|
const MolarFraction & |
a_molarFraction |
|
) |
| |
|
noexcept |
Define function. Puts object in usable state.
- Parameters
-
[in] | a_name | Species name |
[in] | a_molarFraction | Molar fraction |
◆ getName()
std::string ItoKMCBackgroundSpecies::getName |
( |
| ) |
const |
|
noexcept |
Get the species name.
- Returns
- m_name
◆ molarFraction()
Real ItoKMCBackgroundSpecies::molarFraction |
( |
const RealVect |
a_pos | ) |
const |
|
noexcept |
Get molar fraction at the physical coordinates.
- Parameters
-
[in] | a_pos | Physical position |
The documentation for this class was generated from the following files: