chombo-discharge
Public Member Functions | Protected Attributes | List of all members
Physics::AdvectionDiffusion::AdvectionDiffusionSpecies Class Reference

Advection and diffused species for AdvectionDiffusionStepper. More...

#include <CD_AdvectionDiffusionSpecies.H>

Inheritance diagram for Physics::AdvectionDiffusion::AdvectionDiffusionSpecies:
Inheritance graph
[legend]
Collaboration diagram for Physics::AdvectionDiffusion::AdvectionDiffusionSpecies:
Collaboration graph
[legend]

Public Member Functions

 AdvectionDiffusionSpecies (const std::function< Real(const RealVect &a_pos)> &a_initialData, const bool a_mobile, const bool a_diffusive)
 Constructor. More...
 
virtual ~AdvectionDiffusionSpecies ()
 Destructor.
 
Real initialData (const RealVect a_pos, const Real a_time) const override
 Initial data. More...
 
- Public Member Functions inherited from CdrSpecies
 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 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::function< Real(const RealVect &a_pos)> m_initialData
 
- Protected Attributes inherited from CdrSpecies
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

Advection and diffused species for AdvectionDiffusionStepper.

The initial conditions and mobility/diffusion settings are initialized upon construction.

Constructor & Destructor Documentation

◆ AdvectionDiffusionSpecies()

Physics::AdvectionDiffusion::AdvectionDiffusionSpecies::AdvectionDiffusionSpecies ( const std::function< Real(const RealVect &a_pos)> &  a_initialData,
const bool  a_mobile,
const bool  a_diffusive 
)
inline

Constructor.

Parameters
[in]a_initialDataInitial data
[in]a_mobileMobile or not
[in]a_diffusiveDiffusive or not

Member Function Documentation

◆ initialData()

Real Physics::AdvectionDiffusion::AdvectionDiffusionSpecies::initialData ( const RealVect  a_pos,
const Real  a_time 
) const
inlineoverridevirtual

Initial data.

This returns a super-Gaussian blob.

Parameters
[in]a_posPosition.
[in]a_timeTime

Implements CdrSpecies.


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