Abstract class for source terms solved by a numerical scheme.
More...
#include <SourceNum.h>
Inherits Source.
Inherited by SourceNumAcousticWave, SourceNumGravity, SourceNumHeating, and SourceNumMRF.
Abstract class for source terms solved by a numerical scheme.
◆ SourceNum()
| SourceNum::SourceNum |
( |
int | order, |
|
|
int | physicalEntity = 0 ) |
SourceNum constructor depending on integration order and physical entity to apply source.
- Parameters
-
| order | integration order (could EULER, RK2 or RK4 scheme) |
| physicalEntity | the entity to which the source term is applied (default whole domain) |
◆ ~SourceNum()
| SourceNum::~SourceNum |
( |
| ) |
|
|
override |
◆ computeAbsVelocity()
Compute the absolute velocity in the fixed coordinate system.
- Parameters
-
| relVelocity | velocity in the moving coordinate system |
| position | position vector in the fixed coordinate system |
Reimplemented from Source.
Reimplemented in SourceNumMRF.
◆ integrateSourceTerms()
| void SourceNum::integrateSourceTerms |
( |
Cell * | cell, |
|
|
const double & | dt, |
|
|
Prim | = vecPhases ) |
|
overridevirtual |
Source terms integration on conservative quantities.
- Parameters
-
| cell | cell for source term integration |
| dt | integration time step |
Reimplemented from Source.
◆ integrationEuler()
| void SourceNum::integrationEuler |
( |
Cell * | cell, |
|
|
const double & | dt ) |
Euler explicite integration (order 1).
- Parameters
-
| cell | cell for source term integration |
| dt | explicit integration time step |
◆ integrationRK2()
| void SourceNum::integrationRK2 |
( |
Cell * | cell, |
|
|
const double & | dt ) |
Runge-Kutta integration (order 2).
- Parameters
-
| cell | cell for source term integration |
| dt | explicit integration time step |
◆ integrationRK4()
| void SourceNum::integrationRK4 |
( |
Cell * | cell, |
|
|
const double & | dt ) |
Runge-Kutta integration (order 4).
- Parameters
-
| cell | cell for source term integration |
| dt | explicit integration time step |
◆ prepSourceTerms()
| void SourceNum::prepSourceTerms |
( |
Cell * | , |
|
|
const int & | = 0 ) |
|
inlineoverridevirtual |
◆ sourceEvolution()
| void SourceNum::sourceEvolution |
( |
const double & | | ) |
|
|
inlineoverridevirtual |
Allows to modifiy the source term along time.
- Parameters
-
| time | physical time of the computation |
Reimplemented from Source.
Reimplemented in SourceNumMRF.
◆ m_order
The documentation for this class was generated from the following files:
- /home/runner/work/ECOGEN/ECOGEN/doc_sources/src/Sources/SourceNum.h
- /home/runner/work/ECOGEN/ECOGEN/doc_sources/src/Sources/SourceNum.cpp