ECOGEN 4.0
Evolutive, Compressible, Open, Genuine, Easy, N-phase
Loading...
Searching...
No Matches
Transport Class Reference

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
 

Detailed Description

Class for additional transport equations.

This class is used in particular for surface-tension effects computation

Constructor & Destructor Documentation

◆ Transport()

Transport::Transport ( )

◆ ~Transport()

Transport::~Transport ( )

Member Function Documentation

◆ add()

void Transport::add ( double  scalar)

Add a scalar to the corresponding transport value.

Parameters
scalaradded scalar to the transport value

◆ addFlux()

void Transport::addFlux ( double  coefA,
const int  num 
)

Add flux to the corresponding transport buffer flux.

Parameters
coefApossibility to multiply the flux before adding (set 1.d0 if not needed)
numnumber of the corresponding transport equation

◆ addNonCons()

void Transport::addNonCons ( double  coefA,
double  transport,
const double  sM 
)

Add non conservative transport term to the flux.

Parameters
coefApossibility to multiply the non conservative transport term before adding (set 1.d0 if not needed)
transporttransport value used to approximate the non conservative transport term
sMfluid velocity for intercell interfaces

◆ changeSign()

void Transport::changeSign ( )

Change the sign of the corresponding transport value.

◆ computeSlopeTransport()

void Transport::computeSlopeTransport ( const double  valueLeft,
const double  valueRight,
const double &  distance 
)

Compute the slope at the edge of a cell.

Parameters
valueLefttransport value of the left cell
valueRighttransport value of the right cell
distancedistance between the left and right cell centers

◆ extrapolate()

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.

Parameters
slopevalue of the slope
distancedistance between the center and the corresponding edge of the cell

◆ getValue()

const double & Transport::getValue ( ) const
inline

Return the value of the corresponding transport variable.

◆ multiply()

void Transport::multiply ( double  scalar)

Multiply the corresponding transport value by a scalar.

Parameters
scalarscalar by what the transport value is multiplied

◆ setValue()

void Transport::setValue ( double  value)

Set the value of the corresponding transport variable.

Parameters
valuevalue of the transport variable

◆ solveRiemann()

void Transport::solveRiemann ( double  transportLeft,
double  transportRight,
double  sM 
)

Cell to cell Riemann solver for the corresponding transport equation.

Parameters
transportLeftleft value of transport variable
transportRightright value of transport variable
sMfluid velocity for intercell interfaces

◆ solveRiemannInletInjStagState()

void Transport::solveRiemannInletInjStagState ( double  transportLeft,
double  sM,
double  valueTransport 
)

Inlet injection using stagnation state half Riemann solver for the corresponding transport equation.

Parameters
transportLeftleft value of transport variable
sMfluid velocity for intercell interfaces
valueTransportinjection value of transport variable

◆ solveRiemannInletInjTemp()

void Transport::solveRiemannInletInjTemp ( double  transportLeft,
double  sM,
double  valueTransport 
)

Inlet injection using temperature half Riemann solver for the corresponding transport equation.

Parameters
transportLeftleft value of transport variable
sMfluid velocity for intercell interfaces
valueTransportinjection value of transport variable

◆ solveRiemannInletTank()

void Transport::solveRiemannInletTank ( double  transportLeft,
double  sM,
double  valueTransport 
)

Inlet tank half Riemann solver for the corresponding transport equation.

Parameters
transportLeftleft value of transport variable
sMfluid velocity for intercell interfaces
valueTransporttank value of transport variable

◆ solveRiemannOutletPressure()

void Transport::solveRiemannOutletPressure ( double  transportLeft,
double  sM,
double  valueTransport 
)

Outlet at imposed pressure half Riemann solver for the corresponding transport equation.

Parameters
transportLeftleft value of transport variable
sMfluid velocity for intercell interfaces
valueTransportoutflow value of transport variable

◆ solveRiemannPiston()

void Transport::solveRiemannPiston ( double  transportLeft,
double  uPiston 
)

Piston half Riemann solver for the corresponding transport equation.

Parameters
transportLeftleft value of transport variable
uPistonpiston velocity for intercell interfaces

◆ solveRiemannWall()

void Transport::solveRiemannWall ( )

Wall half Riemann solver for the corresponding transport equation.

◆ subtractFlux()

void Transport::subtractFlux ( double  coefA,
const int  num 
)

Subtract flux to the corresponding transport buffer flux.

Parameters
coefApossibility to multiply the flux before adding (set 1.d0 if not needed)
numnumber of the corresponding transport equation

◆ subtractNonCons()

void Transport::subtractNonCons ( double  coefA,
double  transport,
const double  sM 
)

Subtract non conservative transport term to the flux.

Parameters
coefApossibility to multiply the non conservative transport term before adding (set 1.d0 if not needed)
transporttransport value used to approximate the non conservative transport term
sMfluid velocity for intercell interfaces

Member Data Documentation

◆ m_value

double Transport::m_value
private

The documentation for this class was generated from the following files: