13#ifndef CD_ITOKMCBACKGROUNDSPECIES_H
14#define CD_ITOKMCBACKGROUNDSPECIES_H
23#include <CD_NamespaceHeader.H>
98#include <CD_NamespaceFooter.H>
Encapsulation of a background species for usage with ItoKMCJSON.
Definition CD_ItoKMCBackgroundSpecies.H:32
Real molarFraction(const RealVect &a_pos) const noexcept
Get molar fraction at a physical position.
Definition CD_ItoKMCBackgroundSpecies.cpp:39
std::string getName() const noexcept
Get the species name.
Definition CD_ItoKMCBackgroundSpecies.cpp:47
void define(const std::string &a_name, const MolarFraction &a_molarFraction) noexcept
Define function. Puts object in usable state.
Definition CD_ItoKMCBackgroundSpecies.cpp:31
ItoKMCBackgroundSpecies() noexcept
Default constructor. Must subsequently call the define function.
Definition CD_ItoKMCBackgroundSpecies.cpp:19
MolarFraction m_molarFraction
Initial data function.
Definition CD_ItoKMCBackgroundSpecies.H:93
std::string m_name
Neutral species name.
Definition CD_ItoKMCBackgroundSpecies.H:88
std::function< Real(const RealVect a_pos)> MolarFraction
Alias for position-dependent molar fraction.
Definition CD_ItoKMCBackgroundSpecies.H:37
bool m_isDefined
Make sure model has initial data.
Definition CD_ItoKMCBackgroundSpecies.H:83
Namespace containing physics models for use with chombo-discharge.
Definition CD_AdvectionDiffusion.H:16