13#ifndef CD_CDRSPECIESJSON_H
14#define CD_CDRSPECIESJSON_H
24#include <CD_NamespaceHeader.H>
38 using InitFunction = std::function<Real(
const RealVect a_pos,
const Real a_time)>;
55 const bool a_diffusive,
99 define(
const std::string& a_name,
101 const bool a_diffusive,
112 initialData(
const RealVect& a_pos,
const Real a_time)
const override final;
128#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:31
Encapsulation of species settings and initial conditions for CDR species in CdrPlasma.
Definition CD_CdrSpeciesJSON.H:33
bool m_isDefined
Make sure model has initial data.
Definition CD_CdrSpeciesJSON.H:118
virtual ~CdrSpeciesJSON()
Destructor.
std::function< Real(const RealVect a_pos, const Real a_time)> InitFunction
Alias for initial data function.
Definition CD_CdrSpeciesJSON.H:38
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 & operator=(const CdrSpeciesJSON &&a_other)=delete
Disallowed move assignment.
CdrSpeciesJSON & operator=(const CdrSpeciesJSON &a_other)=delete
Disallowed copy 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()=default
Default constructor. Must subsequently call define.
CdrSpeciesJSON(const CdrSpeciesJSON &&a_other)=delete
Disallowed move constructor.
InitFunction m_initFunction
Initial data function.
Definition CD_CdrSpeciesJSON.H:123
Namespace containing physics models for use with chombo-discharge.
Definition CD_AdvectionDiffusion.H:16