|
chombo-discharge
|
Encapsulation of species settings and initial conditiosn for use with CdrPlasma. This is for tracked species. More...
#include <CD_NeutralSpeciesJSON.H>
Public Types | |
| using | NumberDensityFunction = std::function< Real(const RealVect a_pos)> |
| Alias for initial data function. | |
Public Member Functions | |
| NeutralSpeciesJSON () | |
| Default constructor. Must subsequently call define. | |
| NeutralSpeciesJSON (const std::string a_name, const Real a_molarFraction, const NumberDensityFunction a_function) | |
| Full constructor. Calls the define function. | |
| virtual | ~NeutralSpeciesJSON () |
| Destructor. | |
| void | define (const std::string a_name, const Real a_molarFraction, const NumberDensityFunction a_function) |
| Full constructor. Calls the define function. | |
| Real | operator() (const RealVect a_pos) const |
| Get (number) density at the physical coordinates. | |
| Real | getMolarFraction () const |
| Get the molar fraction. | |
| std::string | getName () const |
| Get the species name. | |
Protected Attributes | |
| bool | m_isDefined |
| Make sure model has initial data. | |
| std::string | m_name |
| Neutral species name. | |
| Real | m_molarFraction |
| Molar fraction. | |
| NumberDensityFunction | m_function |
| Initial data function. Set by CdrPlasmaGenericModel. | |
Encapsulation of species settings and initial conditiosn for use with CdrPlasma. This is for tracked species.
| NeutralSpeciesJSON::NeutralSpeciesJSON | ( | const std::string | a_name, |
| const Real | a_molarFraction, | ||
| const NumberDensityFunction | a_function | ||
| ) |
Full constructor. Calls the define function.
| [in] | a_name | Species name |
| [in] | a_molarFraction | Molar fraction |
| [in] | a_function | Number density function |
| void NeutralSpeciesJSON::define | ( | const std::string | a_name, |
| const Real | a_molarFraction, | ||
| const NumberDensityFunction | a_function | ||
| ) |
Full constructor. Calls the define function.
| [in] | a_name | Species name |
| [in] | a_molarFraction | Molar fraction |
| [in] | a_function | Number density function |
| Real NeutralSpeciesJSON::getMolarFraction | ( | ) | const |
Get the molar fraction.
| std::string NeutralSpeciesJSON::getName | ( | ) | const |
Get the species name.
Get (number) density at the physical coordinates.
| [in] | a_pos | Physical position |