Encapsulation of species settings and initial conditiosn for use with CdrPlasma. This is for tracked species.
More...
#include <CD_NeutralSpeciesJSON.H>
|
using | NumberDensityFunction = std::function< Real(const RealVect a_pos)> |
| Alias for initial data function.
|
|
Encapsulation of species settings and initial conditiosn for use with CdrPlasma. This is for tracked species.
◆ NeutralSpeciesJSON()
NeutralSpeciesJSON::NeutralSpeciesJSON |
( |
const std::string |
a_name, |
|
|
const Real |
a_molarFraction, |
|
|
const NumberDensityFunction |
a_function |
|
) |
| |
Full constructor. Calls the define function.
- Parameters
-
[in] | a_name | Species name |
[in] | a_molarFraction | Molar fraction |
[in] | a_function | Number density function |
◆ define()
void NeutralSpeciesJSON::define |
( |
const std::string |
a_name, |
|
|
const Real |
a_molarFraction, |
|
|
const NumberDensityFunction |
a_function |
|
) |
| |
Full constructor. Calls the define function.
- Parameters
-
[in] | a_name | Species name |
[in] | a_molarFraction | Molar fraction |
[in] | a_function | Number density function |
◆ getMolarFraction()
Real NeutralSpeciesJSON::getMolarFraction |
( |
| ) |
const |
Get the molar fraction.
- Returns
- m_molarFraction
◆ getName()
std::string NeutralSpeciesJSON::getName |
( |
| ) |
const |
Get the species name.
- Returns
- m_name
◆ operator()()
Real NeutralSpeciesJSON::operator() |
( |
const RealVect |
a_pos | ) |
const |
Get (number) density at the physical coordinates.
- Parameters
-
[in] | a_pos | Physical position |
The documentation for this class was generated from the following files: