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.
|
| |
|
|
| ItoKMCBackgroundSpecies () noexcept |
| | Default constructor. Must subsequently call the define function.
|
| |
| | ItoKMCBackgroundSpecies (const std::string &a_name, const MolarFraction &a_molarFraction) noexcept |
| | Full constructor. Calls the define function.
|
| |
|
virtual | ~ItoKMCBackgroundSpecies () noexcept |
| | Destructor.
|
| |
| void | define (const std::string &a_name, const MolarFraction &a_molarFraction) noexcept |
| | Define function. Puts object in usable state.
|
| |
| Real | molarFraction (const RealVect &a_pos) const noexcept |
| | Get molar fraction at a physical position.
|
| |
| std::string | getName () const noexcept |
| | Get the species name.
|
| |
|
|
bool | m_isDefined |
| | Make sure model has initial data.
|
| |
|
std::string | m_name |
| | Neutral species name.
|
| |
|
MolarFraction | m_molarFraction |
| | Initial data function.
|
| |
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 a physical position.
- Parameters
-
| [in] | a_pos | Physical position. |
- Returns
- Molar fraction of this background species at a_pos.
The documentation for this class was generated from the following files: