Class that acts as user interface for parsing initial data and mobility/diffusion kernels into ItoSolver.
More...
#include <CD_ItoSpecies.H>
Class that acts as user interface for parsing initial data and mobility/diffusion kernels into ItoSolver.
This class is used for passing initial data and information into an ItoSolver. This class is required because the ItoSolver may not know about whether or not it will use advect/diffusion, and it is also does not know about initial conditions. All of that is supplied by this class.
◆ ItoSpecies()
ItoSpecies::ItoSpecies |
( |
const std::string |
a_name, |
|
|
const int |
a_chargeNumber, |
|
|
const bool |
a_mobile, |
|
|
const bool |
a_diffusive |
|
) |
| |
Full constructor.
- Parameters
-
[in] | a_name | Species name |
[in] | a_chargeNumber | Charge number |
[in] | a_mobile | Mobile species or not |
[in] | a_diffusive | Diffusive species or not |
◆ diffusion()
Real ItoSpecies::diffusion |
( |
const Real |
a_energy | ) |
const |
|
virtual |
Compute the diffusion coefficient.
This is mostly used for the LEA-type models where the particle diffusivity has a parametric dependence on the energy.
- Parameters
-
[in] | a_energy | Particle energy |
- Note
- Default implementation returns 0.0
◆ getChargeNumber()
int ItoSpecies::getChargeNumber |
( |
| ) |
const |
Return charge.
- Returns
- Returns m_chargeNumber
◆ getInitialParticles() [1/2]
List< ItoParticle > & ItoSpecies::getInitialParticles |
( |
| ) |
|
Get initial particles – this is called by ItoSolver when filling the solver with initial particles.
- Returns
- Returns m_initialParticles
◆ getInitialParticles() [2/2]
const List< ItoParticle > & ItoSpecies::getInitialParticles |
( |
| ) |
const |
Get initial particles – this is called by ItoSolver when filling the solver with initial particles.
- Returns
- Returns m_initialParticles
◆ getName()
std::string ItoSpecies::getName |
( |
| ) |
const |
Return name.
- Returns
- Returns m_name
◆ mobility()
Real ItoSpecies::mobility |
( |
const Real |
a_energy | ) |
const |
|
virtual |
Compute the mobility as a function of energy.
This is mostly used for the LEA-type models where the particle mobility has a parametric dependence on the energy.
- Parameters
-
[in] | a_energy | Particle energy |
- Note
- Default implementation returns 0.0
The documentation for this class was generated from the following files: