chombo-discharge
Public Member Functions | Protected Attributes | List of all members
CdrSpecies Class Referenceabstract

Abstract class that describes the scalar quantity that is advected in CdrSolver. More...

#include <CD_CdrSpecies.H>

Inheritance diagram for CdrSpecies:
Inheritance graph
[legend]

Public Member Functions

 CdrSpecies ()
 Weak constructor.
 
 CdrSpecies (const std::string a_name, const int a_chargeNumber, const bool a_isMobile, const bool a_isDiffusive)
 Full constructor. More...
 
virtual ~CdrSpecies ()
 Destructor (does nothing)
 
virtual Real initialData (const RealVect a_pos, const Real a_time) const =0
 Initial data. More...
 
virtual std::string getName () const
 Return name.
 
virtual int getChargeNumber () const
 Return charge.
 
virtual bool isDiffusive () const
 Diffusive species or not.
 
virtual bool isMobile () const
 Mobile species or not.
 
virtual const List< PointParticle > & getInitialParticles () const
 Get initial particles.
 
List< PointParticle > & getInitialParticles ()
 Get initial particles.
 

Protected Attributes

std::string m_name
 Cdr_Species name.
 
int m_chargeNumber
 Charge.
 
bool m_isDiffusive
 Diffusive CdrSpecies or not.
 
bool m_isMobile
 Mobile CdrSpecies or not.
 
List< PointParticlem_initialParticles
 Initial particles.
 

Detailed Description

Abstract class that describes the scalar quantity that is advected in CdrSolver.

Instantiations of CdrSpecies (i.e., derived classes thereof) can be passed into CdrSolver in order to provide run-time information to the class. The user will typically set a name for the advected quantity, the chargeNumber (if there is one), and whether or not advection and diffusion is turned on or off.

Constructor & Destructor Documentation

◆ CdrSpecies()

CdrSpecies::CdrSpecies ( const std::string  a_name,
const int  a_chargeNumber,
const bool  a_isMobile,
const bool  a_isDiffusive 
)

Full constructor.

Parameters
[in]a_nameName of the species
[in]a_chargeNumberCharge number
[in]a_isMbileMobile or not
[in]a_isDiffusiveDiffusive or not

Member Function Documentation

◆ initialData()

Real CdrSpecies::initialData ( const RealVect  a_pos,
const Real  a_time 
) const
pure virtual

The documentation for this class was generated from the following files: