Concrete CdrSpecies implementation for the advection-diffusion test problem.
More...
#include <CD_AdvectionDiffusionSpecies.H>
|
|
std::function< Real(const RealVect &a_pos)> | m_initialData |
| | Functor encoding the initial concentration profile.
|
| |
|
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.
|
| |
|
ParticleSoA< NoPayload > | m_initialParticles |
| | Initial particles.
|
| |
Concrete CdrSpecies implementation for the advection-diffusion test problem.
This class defines a single passive scalar species for use with AdvectionDiffusionStepper. The initial data, mobility, and diffusivity are set at construction time. The species carries no net charge.
◆ AdvectionDiffusionSpecies() [1/3]
| Physics::AdvectionDiffusion::AdvectionDiffusionSpecies::AdvectionDiffusionSpecies |
( |
const std::function< Real(const RealVect &a_pos)> & |
a_initialData, |
|
|
const bool |
a_mobile, |
|
|
const bool |
a_diffusive |
|
) |
| |
|
inline |
Full constructor.
- Parameters
-
| [in] | a_initialData | Functor returning the initial scalar concentration at a given position. |
| [in] | a_mobile | If true, the species is advected by the velocity field. |
| [in] | a_diffusive | If true, the species undergoes diffusion. |
◆ AdvectionDiffusionSpecies() [2/3]
| Physics::AdvectionDiffusion::AdvectionDiffusionSpecies::AdvectionDiffusionSpecies |
( |
const AdvectionDiffusionSpecies & |
a_other | ) |
|
|
default |
Copy constructor.
- Parameters
-
| [in] | a_other | Object to copy. |
◆ AdvectionDiffusionSpecies() [3/3]
Move constructor.
- Parameters
-
| [in,out] | a_other | Object to move from. |
◆ initialData()
| Real Physics::AdvectionDiffusion::AdvectionDiffusionSpecies::initialData |
( |
const RealVect & |
a_pos, |
|
|
const Real |
|
|
) |
| const |
|
inlineoverridevirtual |
Return the initial scalar concentration at a given position and time.
- Parameters
-
| [in] | a_pos | Physical position. |
- Returns
- Initial concentration evaluated at a_pos.
Implements CdrSpecies.
◆ operator=() [1/2]
Move assignment operator.
- Parameters
-
| [in,out] | a_other | Object to move from. |
- Returns
- Reference to this object.
◆ operator=() [2/2]
Copy assignment operator.
- Parameters
-
| [in] | a_other | Object to copy. |
- Returns
- Reference to this object.
The documentation for this class was generated from the following file: