|
chombo-discharge
|
Encapsulation of species settings and initial conditions for CDR species in CdrPlasma. More...
#include <CD_CdrSpeciesJSON.H>


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. | |
| CdrSpeciesJSON (const CdrSpeciesJSON &a_other)=delete | |
| Disallowed constructor. | |
| CdrSpeciesJSON (const CdrSpeciesJSON &&a_other)=delete | |
| Disallowed move constructor. | |
| CdrSpeciesJSON & | operator= (const CdrSpeciesJSON &a_other)=delete |
| Disallowed copy assignment. | |
| CdrSpeciesJSON & | operator= (const CdrSpeciesJSON &&a_other)=delete |
| Disallowed move assignment. | |
| 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. | |
| Real | initialData (const RealVect a_pos, const Real a_time) const override final |
| Initial data function. | |
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. | |
| 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< PointParticle > | m_initialParticles |
| Initial particles. | |
Encapsulation of species settings and initial conditions for CDR species in CdrPlasma.
| 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.
| [in] | a_name | Species name |
| [in] | a_Z | Charge number |
| [in] | a_mobile | Mobile species or not |
| [in] | a_diffusive | Diffusive species or not |
| [in] | a_initialData | Initial data function |
|
delete |
Disallowed constructor.
| [in] | a_other | Other species |
|
delete |
Disallowed move constructor.
| [in] | a_other | Other species |
| 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.
| [in] | a_name | Species name |
| [in] | a_Z | Charge number |
| [in] | a_mobile | Mobile species or not |
| [in] | a_diffusive | Diffusive species or not |
| [in] | a_initialData | Initial data function |
|
finaloverridevirtual |
Initial data function.
| [in] | a_pos | Physical coordinates |
| [in] | a_time | Time |
Implements CdrSpecies.
|
delete |
Disallowed move assignment.
| [in] | a_other | Other species |
|
delete |
Disallowed copy assignment.
| [in] | a_other | Other species |