![]() |
ECOGEN 4.0
Evolutive, Compressible, Open, Genuine, Easy, N-phase
|
Class for additional transport equations. More...
#include <Transport.h>
Public Member Functions | |
Transport () | |
~Transport () | |
void | setValue (double value) |
Set the value of the corresponding transport variable. | |
const double & | getValue () const |
Return the value of the corresponding transport variable. | |
void | solveRiemann (double transportLeft, double transportRight, double sM) |
Cell to cell Riemann solver for the corresponding transport equation. | |
void | solveRiemannWall () |
Wall half Riemann solver for the corresponding transport equation. | |
void | solveRiemannPiston (double transportLeft, double uPiston) |
Piston half Riemann solver for the corresponding transport equation. | |
void | solveRiemannInletInjStagState (double transportLeft, double sM, double valueTransport) |
Inlet injection using stagnation state half Riemann solver for the corresponding transport equation. | |
void | solveRiemannInletInjTemp (double transportLeft, double sM, double valueTransport) |
Inlet injection using temperature half Riemann solver for the corresponding transport equation. | |
void | solveRiemannInletTank (double transportLeft, double sM, double valueTransport) |
Inlet tank half Riemann solver for the corresponding transport equation. | |
void | solveRiemannOutletPressure (double transportLeft, double sM, double valueTransport) |
Outlet at imposed pressure half Riemann solver for the corresponding transport equation. | |
void | addFlux (double coefA, const int num) |
Add flux to the corresponding transport buffer flux. | |
void | subtractFlux (double coefA, const int num) |
Subtract flux to the corresponding transport buffer flux. | |
void | addNonCons (double coefA, double transport, const double sM) |
Add non conservative transport term to the flux. | |
void | subtractNonCons (double coefA, double transport, const double sM) |
Subtract non conservative transport term to the flux. | |
void | multiply (double scalar) |
Multiply the corresponding transport value by a scalar. | |
void | add (double scalar) |
Add a scalar to the corresponding transport value. | |
void | changeSign () |
Change the sign of the corresponding transport value. | |
void | extrapolate (const double &slope, const double &distance) |
Extrapolate the value of the corresponding transport equation from the center of the cell to its edge. | |
void | computeSlopeTransport (const double valueLeft, const double valueRight, const double &distance) |
Compute the slope at the edge of a cell. | |
Private Attributes | |
double | m_value |
Class for additional transport equations.
This class is used in particular for surface-tension effects computation
Transport::Transport | ( | ) |
Transport::~Transport | ( | ) |
void Transport::add | ( | double | scalar | ) |
Add a scalar to the corresponding transport value.
scalar | added scalar to the transport value |
void Transport::addFlux | ( | double | coefA, |
const int | num | ||
) |
Add flux to the corresponding transport buffer flux.
coefA | possibility to multiply the flux before adding (set 1.d0 if not needed) |
num | number of the corresponding transport equation |
void Transport::addNonCons | ( | double | coefA, |
double | transport, | ||
const double | sM | ||
) |
Add non conservative transport term to the flux.
coefA | possibility to multiply the non conservative transport term before adding (set 1.d0 if not needed) |
transport | transport value used to approximate the non conservative transport term |
sM | fluid velocity for intercell interfaces |
void Transport::changeSign | ( | ) |
Change the sign of the corresponding transport value.
void Transport::computeSlopeTransport | ( | const double | valueLeft, |
const double | valueRight, | ||
const double & | distance | ||
) |
Compute the slope at the edge of a cell.
valueLeft | transport value of the left cell |
valueRight | transport value of the right cell |
distance | distance between the left and right cell centers |
void Transport::extrapolate | ( | const double & | slope, |
const double & | distance | ||
) |
Extrapolate the value of the corresponding transport equation from the center of the cell to its edge.
slope | value of the slope |
distance | distance between the center and the corresponding edge of the cell |
|
inline |
Return the value of the corresponding transport variable.
void Transport::multiply | ( | double | scalar | ) |
Multiply the corresponding transport value by a scalar.
scalar | scalar by what the transport value is multiplied |
void Transport::setValue | ( | double | value | ) |
Set the value of the corresponding transport variable.
value | value of the transport variable |
void Transport::solveRiemann | ( | double | transportLeft, |
double | transportRight, | ||
double | sM | ||
) |
Cell to cell Riemann solver for the corresponding transport equation.
transportLeft | left value of transport variable |
transportRight | right value of transport variable |
sM | fluid velocity for intercell interfaces |
void Transport::solveRiemannInletInjStagState | ( | double | transportLeft, |
double | sM, | ||
double | valueTransport | ||
) |
Inlet injection using stagnation state half Riemann solver for the corresponding transport equation.
transportLeft | left value of transport variable |
sM | fluid velocity for intercell interfaces |
valueTransport | injection value of transport variable |
void Transport::solveRiemannInletInjTemp | ( | double | transportLeft, |
double | sM, | ||
double | valueTransport | ||
) |
Inlet injection using temperature half Riemann solver for the corresponding transport equation.
transportLeft | left value of transport variable |
sM | fluid velocity for intercell interfaces |
valueTransport | injection value of transport variable |
void Transport::solveRiemannInletTank | ( | double | transportLeft, |
double | sM, | ||
double | valueTransport | ||
) |
Inlet tank half Riemann solver for the corresponding transport equation.
transportLeft | left value of transport variable |
sM | fluid velocity for intercell interfaces |
valueTransport | tank value of transport variable |
void Transport::solveRiemannOutletPressure | ( | double | transportLeft, |
double | sM, | ||
double | valueTransport | ||
) |
Outlet at imposed pressure half Riemann solver for the corresponding transport equation.
transportLeft | left value of transport variable |
sM | fluid velocity for intercell interfaces |
valueTransport | outflow value of transport variable |
void Transport::solveRiemannPiston | ( | double | transportLeft, |
double | uPiston | ||
) |
Piston half Riemann solver for the corresponding transport equation.
transportLeft | left value of transport variable |
uPiston | piston velocity for intercell interfaces |
void Transport::solveRiemannWall | ( | ) |
Wall half Riemann solver for the corresponding transport equation.
void Transport::subtractFlux | ( | double | coefA, |
const int | num | ||
) |
Subtract flux to the corresponding transport buffer flux.
coefA | possibility to multiply the flux before adding (set 1.d0 if not needed) |
num | number of the corresponding transport equation |
void Transport::subtractNonCons | ( | double | coefA, |
double | transport, | ||
const double | sM | ||
) |
Subtract non conservative transport term to the flux.
coefA | possibility to multiply the non conservative transport term before adding (set 1.d0 if not needed) |
transport | transport value used to approximate the non conservative transport term |
sM | fluid velocity for intercell interfaces |
|
private |