Encapsulation of species settings and initial conditions for CDR species in CdrPlasma.
More...
#include <CD_CdrSpeciesJSON.H>
|
using | InitFunction = std::function< Real(const RealVect a_pos, const Real a_time)> |
| Alias for initial data function.
|
|
|
| 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...
|
|
CdrSpeciesJSON & | operator= (const CdrSpeciesJSON &a_other)=delete |
| Disallowed copy assignment. More...
|
|
CdrSpeciesJSON & | operator= (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...
|
|
| 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.
|
|
Encapsulation of species settings and initial conditions for CDR species in CdrPlasma.
◆ 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_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 |
◆ CdrSpeciesJSON() [2/3]
Physics::CdrPlasma::CdrSpeciesJSON::CdrSpeciesJSON |
( |
const CdrSpeciesJSON & |
a_other | ) |
|
|
delete |
Disallowed constructor.
- Parameters
-
◆ CdrSpeciesJSON() [3/3]
Physics::CdrPlasma::CdrSpeciesJSON::CdrSpeciesJSON |
( |
const CdrSpeciesJSON && |
a_other | ) |
|
|
delete |
Disallowed move constructor.
- Parameters
-
◆ 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_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 |
◆ initialData()
Real CdrSpeciesJSON::initialData |
( |
const RealVect |
a_pos, |
|
|
const Real |
a_time |
|
) |
| const |
|
finaloverridevirtual |
Initial data function.
- Parameters
-
[in] | a_pos | Physical coordinates |
[in] | a_time | Time |
Implements CdrSpecies.
◆ operator=() [1/2]
Disallowed move assignment.
- Parameters
-
◆ operator=() [2/2]
Disallowed copy assignment.
- Parameters
-
The documentation for this class was generated from the following files: