chombo-discharge
CD_DischargeInceptionSpecies.H
Go to the documentation of this file.
1 /* chombo-discharge
2  * Copyright © 2021 SINTEF Energy Research.
3  * Please refer to Copyright.txt and LICENSE in the chombo-discharge root directory.
4  */
5 
12 #ifndef CD_DischargeInceptionSpecies_H
13 #define CD_DischargeInceptionSpecies_H
14 
15 // Our includes
16 #include <CD_CdrSpecies.H>
17 #include <CD_NamespaceHeader.H>
18 
19 namespace Physics {
20  namespace DischargeInception {
21 
27  {
28  public:
35  DischargeInceptionSpecies(const std::function<Real(const RealVect& a_pos)>& a_initialData,
36  const bool a_mobile,
37  const bool a_diffusive)
38  {
39  m_initialData = a_initialData;
40  m_isMobile = a_mobile;
41  m_isDiffusive = a_diffusive;
42  m_chargeNumber = 0;
43  m_name = "Ion distribution";
44  }
45 
50  {}
51 
58  Real
59  initialData(const RealVect a_pos, const Real a_time) const override
60  {
61  return m_initialData(a_pos);
62  }
63 
64  protected:
68  std::function<Real(const RealVect& a_pos)> m_initialData;
69  };
70  } // namespace DischargeInception
71 } // namespace Physics
72 
73 #include <CD_NamespaceFooter.H>
74 
75 #endif
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
bool m_isMobile
Mobile CdrSpecies or not.
Definition: CD_CdrSpecies.H:114
bool m_isDiffusive
Diffusive CdrSpecies or not.
Definition: CD_CdrSpecies.H:109
int m_chargeNumber
Charge.
Definition: CD_CdrSpecies.H:104
std::string m_name
Cdr_Species name.
Definition: CD_CdrSpecies.H:99
Advection and diffused species for DischargeInceptionStepper.
Definition: CD_DischargeInceptionSpecies.H:27
virtual ~DischargeInceptionSpecies()
Destructor.
Definition: CD_DischargeInceptionSpecies.H:49
DischargeInceptionSpecies(const std::function< Real(const RealVect &a_pos)> &a_initialData, const bool a_mobile, const bool a_diffusive)
Constructor.
Definition: CD_DischargeInceptionSpecies.H:35
std::function< Real(const RealVect &a_pos)> m_initialData
Initial ion density.
Definition: CD_DischargeInceptionSpecies.H:68
Real initialData(const RealVect a_pos, const Real a_time) const override
Initial data.
Definition: CD_DischargeInceptionSpecies.H:59
Name containing various physics models for running chombo-discharge code.
Definition: CD_AdvectionDiffusion.H:15