12 #ifndef CD_CdrSpeciesJSON_H
13 #define CD_CdrSpeciesJSON_H
23 #include <CD_NamespaceHeader.H>
37 using InitFunction = std::function<Real(
const RealVect a_pos,
const Real a_time)>;
54 const bool a_diffusive,
98 define(
const std::string a_name,
100 const bool a_diffusive,
110 initialData(
const RealVect a_pos,
const Real a_time)
const override final;
126 #include <CD_NamespaceFooter.H>
Declaration of a class that passes information into CdrSolver (e.g., initial conditions).
Abstract class that describes the scalar quantity that is advected in CdrSolver.
Definition: CD_CdrSpecies.H:30
Encapsulation of species settings and initial conditions for CDR species in CdrPlasma.
Definition: CD_CdrSpeciesJSON.H:32
bool m_isDefined
Make sure model has initial data.
Definition: CD_CdrSpeciesJSON.H:116
virtual ~CdrSpeciesJSON()
Destructor.
Definition: CD_CdrSpeciesJSON.cpp:30
std::function< Real(const RealVect a_pos, const Real a_time)> InitFunction
Alias for initial data function.
Definition: CD_CdrSpeciesJSON.H:37
Real initialData(const RealVect a_pos, const Real a_time) const override final
Initial data function.
Definition: CD_CdrSpeciesJSON.cpp:49
CdrSpeciesJSON(const CdrSpeciesJSON &a_other)=delete
Disallowed constructor.
CdrSpeciesJSON()=default
Default constructor. Must subsequently call define.
CdrSpeciesJSON & operator=(const CdrSpeciesJSON &&a_other)=delete
Disallowed move assignment.
void define(const std::string a_name, const int a_Z, const bool a_diffusive, const bool a_mobile, const InitFunction a_initialData)
Define function.
Definition: CD_CdrSpeciesJSON.cpp:34
CdrSpeciesJSON & operator=(const CdrSpeciesJSON &a_other)=delete
Disallowed copy assignment.
CdrSpeciesJSON(const CdrSpeciesJSON &&a_other)=delete
Disallowed move constructor.
InitFunction m_initFunction
Initial data function.
Definition: CD_CdrSpeciesJSON.H:121
Name containing various physics models for running chombo-discharge code.
Definition: CD_AdvectionDiffusion.H:15