chombo-discharge
Public Types | Public Member Functions | Protected Attributes | List of all members
Physics::CdrPlasma::CdrSpeciesJSON Class Reference

Encapsulation of species settings and initial conditions for CDR species in CdrPlasma. More...

#include <CD_CdrSpeciesJSON.H>

Inheritance diagram for Physics::CdrPlasma::CdrSpeciesJSON:
Inheritance graph
[legend]
Collaboration diagram for Physics::CdrPlasma::CdrSpeciesJSON:
Collaboration graph
[legend]

Public Types

using InitFunction = std::function< Real(const RealVect a_pos, const Real a_time)>
 Alias for initial data function.
 

Public Member Functions

 CdrSpeciesJSON ()=default
 Default constructor. Must subsequently call define.
 
 CdrSpeciesJSON (const std::string a_name, const int a_Z, const bool a_diffusive, const bool a_mobile, const InitFunction a_initialData)
 Full constructor. Calls the define function. More...
 
 CdrSpeciesJSON (const CdrSpeciesJSON &a_other)=delete
 Disallowed constructor. More...
 
 CdrSpeciesJSON (const CdrSpeciesJSON &&a_other)=delete
 Disallowed move constructor. More...
 
CdrSpeciesJSONoperator= (const CdrSpeciesJSON &a_other)=delete
 Disallowed copy assignment. More...
 
CdrSpeciesJSONoperator= (const CdrSpeciesJSON &&a_other)=delete
 Disallowed move assignment. More...
 
virtual ~CdrSpeciesJSON ()
 Destructor.
 
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. More...
 
Real initialData (const RealVect a_pos, const Real a_time) const override final
 Initial data function. 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

bool m_isDefined
 Make sure model has initial data.
 
InitFunction m_initFunction
 Initial data function.
 
- 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

Encapsulation of species settings and initial conditions for CDR species in CdrPlasma.

Constructor & Destructor Documentation

◆ CdrSpeciesJSON() [1/3]

CdrSpeciesJSON::CdrSpeciesJSON ( const std::string  a_name,
const int  a_Z,
const bool  a_diffusive,
const bool  a_mobile,
const InitFunction  a_initialData 
)

Full constructor. Calls the define function.

Parameters
[in]a_nameSpecies name
[in]a_ZCharge number
[in]a_mobileMobile species or not
[in]a_diffusiveDiffusive species or not
[in]a_initialDataInitial data function

◆ CdrSpeciesJSON() [2/3]

Physics::CdrPlasma::CdrSpeciesJSON::CdrSpeciesJSON ( const CdrSpeciesJSON a_other)
delete

Disallowed constructor.

Parameters
[in]a_otherOther species

◆ CdrSpeciesJSON() [3/3]

Physics::CdrPlasma::CdrSpeciesJSON::CdrSpeciesJSON ( const CdrSpeciesJSON &&  a_other)
delete

Disallowed move constructor.

Parameters
[in]a_otherOther species

Member Function Documentation

◆ define()

void CdrSpeciesJSON::define ( const std::string  a_name,
const int  a_Z,
const bool  a_diffusive,
const bool  a_mobile,
const InitFunction  a_initialData 
)

Define function.

Parameters
[in]a_nameSpecies name
[in]a_ZCharge number
[in]a_mobileMobile species or not
[in]a_diffusiveDiffusive species or not
[in]a_initialDataInitial data function

◆ initialData()

Real CdrSpeciesJSON::initialData ( const RealVect  a_pos,
const Real  a_time 
) const
finaloverridevirtual

Initial data function.

Parameters
[in]a_posPhysical coordinates
[in]a_timeTime

Implements CdrSpecies.

◆ operator=() [1/2]

CdrSpeciesJSON& Physics::CdrPlasma::CdrSpeciesJSON::operator= ( const CdrSpeciesJSON &&  a_other)
delete

Disallowed move assignment.

Parameters
[in]a_otherOther species

◆ operator=() [2/2]

CdrSpeciesJSON& Physics::CdrPlasma::CdrSpeciesJSON::operator= ( const CdrSpeciesJSON a_other)
delete

Disallowed copy assignment.

Parameters
[in]a_otherOther species

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