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

Flux class for the velocity-equilibrium system of equations. More...

#include <FluxUEqTotEnergy.h>

Inherits Flux.

Collaboration diagram for FluxUEqTotEnergy:
[legend]

Public Member Functions

 FluxUEqTotEnergy (const int &numbPhases)
 ~FluxUEqTotEnergy () override
void printFlux () const override
void addFlux (double coefA) override
 Add flux to the corresponding model flux.
void addFlux (Flux *flux) override
 Add flux passed in parameter to the correspond model flux.
void subtractFlux (double coefA) override
 Subtract flux to the corresponding model buffer flux.
void multiply (double scalar) override
 multiply the flux of the corresponding model by a constant
void setBufferFlux (Cell &cell) override
 Temporary store the conservative variables of a given cell.
void buildCons (Phase **phases, Mixture *mixture) override
 Build the conservative variables for a given cell from primitive one.
void buildPrim (Phase **phases, Mixture *mixture) override
 Build the primitive variables for a given cell from conservative one.
void setToZero () override
 set each attribute of the flux to zero
void addNonCons (double coefA, const Cell *cell, const Coord &, const Coord &, const Coord &) override
 Add non conservative term to the flux.
void subtractNonCons (double coefA, const Cell *cell, const Coord &, const Coord &, const Coord &) override
 Subtract non conservative term to the flux.
const double & getAlpha (const int &numPhase) const override
const double & getMass (const int &numPhase) const override
const double & getTotEnergy (const int &numPhase) const override
const Coord & getMomentum () const override
void setCons (const Flux *cons) override
Public Member Functions inherited from Flux
 Flux ()
virtual ~Flux ()
virtual void addFluxRotatingRegion (double)
 Add flux to the rotating region in MRF context.
virtual void subtractFluxRotatingRegion (double)
 Subtract flux to the rotating region in MRF context.
virtual void correctionEnergy (Cell *, Prim=vecPhases) const
 Method to correct energy in non conservative models using total energy conservation.
virtual void schemeCorrection (Cell &) const
virtual void addSymmetricTerms (Phase **, Mixture *, const double &, const double &)
 Add symetric terms.
virtual void prepSourceTermsGravity (const Coord &)
 Gravity source term.
virtual void prepSourceTermsHeating (const double &)
 Heating source term.
virtual void prepSourceTermsMRF (Cell *, const Coord &)
 MRF source term.
virtual void prepSourceTermsPlaneWave (const Cell *, const double &, const Coord &)
 This prepares Plane-Gaussian-pulse and Plane-Sinusoidal-pulse source terms.
virtual void addFluxSmooth1D (double, const Coord &, Cell *)
 Compute additionnal flux for 1D geometry with smooth varying cross sectionFlux).
virtual void substractFluxSmooth1D (double, const Coord &, Cell *)
 Compute additionnal flux for 1D geometry with smooth varying cross section.
virtual void addNonConsMrfFlux (Phase **)
virtual const double & getEnergyMix () const
virtual const double & getMassMix () const
virtual const double & getEqOmega () const
virtual const double & getEqDensitySurEta () const
virtual const double & getEnergy (const int &) const
virtual const double & getLambda (const int &) const
virtual const Tensor & getCobase (const int &) const
virtual const Coord & getMomentum (const int &) const
virtual const Coord & getEqVectorP () const

Protected Attributes

double * m_alpha
 Volume fraction array.
double * m_mass
 Mass array.
double * m_totEnerg
 Specific total energy array.
Coord m_momentum
 Momentum array.
double * m_alphap
 One of the non-conservative flux for phasic total energy.
Protected Attributes inherited from Flux
double m_sM
 Fluid velocity for intercell interfaces.
double m_uStar
 Velocity solution of the Riemann problem !VERY IMPORTANT! DO NOT ERASE!

Friends

class ModUEqTotEnergy

Detailed Description

Flux class for the velocity-equilibrium system of equations.

Constructor & Destructor Documentation

◆ FluxUEqTotEnergy()

FluxUEqTotEnergy::FluxUEqTotEnergy ( const int & numbPhases)
Here is the caller graph for this function:

◆ ~FluxUEqTotEnergy()

FluxUEqTotEnergy::~FluxUEqTotEnergy ( )
override

Member Function Documentation

◆ addFlux() [1/2]

void FluxUEqTotEnergy::addFlux ( double )
overridevirtual

Add flux to the corresponding model flux.

Parameters
coefApossibility to multiply the flux before adding (set 1.d0 if not needed)

Reimplemented from Flux.

Here is the call graph for this function:

◆ addFlux() [2/2]

void FluxUEqTotEnergy::addFlux ( Flux * )
overridevirtual

Add flux passed in parameter to the correspond model flux.

Parameters
fluxflux to add to the current one

Reimplemented from Flux.

Here is the call graph for this function:

◆ addNonCons()

void FluxUEqTotEnergy::addNonCons ( double ,
const Cell * ,
const Coord & ,
const Coord & ,
const Coord &  )
overridevirtual

Add non conservative term to the flux.

Parameters
coefApossibility to multiply the non conservative term before adding (set 1.d0 if not needed)
cellreference cell used to approximate the non conservative term
normalnormal vector of the treated face
tangenttangent vector of the treated face
binormalbinormal vector of the treated face

Reimplemented from Flux.

Here is the call graph for this function:

◆ buildCons()

void FluxUEqTotEnergy::buildCons ( Phase ** ,
Mixture *  )
overridevirtual

Build the conservative variables for a given cell from primitive one.

Parameters
phasesPhases array used for conservative variables calculus
mixtureMixture used for conservative variables calculus

Reimplemented from Flux.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ buildPrim()

void FluxUEqTotEnergy::buildPrim ( Phase ** ,
Mixture *  )
overridevirtual

Build the primitive variables for a given cell from conservative one.

Parameters
phasesPhases array to fill
mixtureMixture to fill

Reimplemented from Flux.

Here is the call graph for this function:

◆ getAlpha()

const double & FluxUEqTotEnergy::getAlpha ( const int & numPhase) const
inlineoverridevirtual

Reimplemented from Flux.

◆ getMass()

const double & FluxUEqTotEnergy::getMass ( const int & numPhase) const
inlineoverridevirtual

Reimplemented from Flux.

◆ getMomentum()

const Coord & FluxUEqTotEnergy::getMomentum ( ) const
inlineoverridevirtual

Reimplemented from Flux.

◆ getTotEnergy()

const double & FluxUEqTotEnergy::getTotEnergy ( const int & numPhase) const
inlineoverridevirtual

Reimplemented from Flux.

◆ multiply()

void FluxUEqTotEnergy::multiply ( double )
overridevirtual

multiply the flux of the corresponding model by a constant

Parameters
scalarconstant

Reimplemented from Flux.

◆ printFlux()

void FluxUEqTotEnergy::printFlux ( ) const
overridevirtual

Reimplemented from Flux.

◆ setBufferFlux()

void FluxUEqTotEnergy::setBufferFlux ( Cell & )
overridevirtual

Temporary store the conservative variables of a given cell.

The conservatvie variables are temporary stored in the corresponding model buffer flux

Parameters
cellcell used for conservative variables calculus

Reimplemented from Flux.

Here is the call graph for this function:

◆ setCons()

void FluxUEqTotEnergy::setCons ( const Flux * cons)
overridevirtual

Reimplemented from Flux.

Here is the call graph for this function:

◆ setToZero()

void FluxUEqTotEnergy::setToZero ( )
overridevirtual

set each attribute of the flux to zero

Reimplemented from Flux.

◆ subtractFlux()

void FluxUEqTotEnergy::subtractFlux ( double )
overridevirtual

Subtract flux to the corresponding model buffer flux.

Parameters
coefApossibility to multiply the flux before subtraction (set 1.d0 if not needed)

Reimplemented from Flux.

Here is the call graph for this function:

◆ subtractNonCons()

void FluxUEqTotEnergy::subtractNonCons ( double ,
const Cell * ,
const Coord & ,
const Coord & ,
const Coord &  )
overridevirtual

Subtract non conservative term to the flux.

Parameters
coefApossibility to multiply the non conservative term before subtraction (set 1.d0 if not needed)
cellreference cell used to approximate the non conservative term
normalnormal vector of the treated face
tangenttangent vector of the treated face
binormalbinormal vector of the treated face

Reimplemented from Flux.

Here is the call graph for this function:

◆ ModUEqTotEnergy

friend class ModUEqTotEnergy
friend

Member Data Documentation

◆ m_alpha

double* FluxUEqTotEnergy::m_alpha
protected

Volume fraction array.

◆ m_alphap

double* FluxUEqTotEnergy::m_alphap
protected

One of the non-conservative flux for phasic total energy.

◆ m_mass

double* FluxUEqTotEnergy::m_mass
protected

Mass array.

◆ m_momentum

Coord FluxUEqTotEnergy::m_momentum
protected

Momentum array.

◆ m_totEnerg

double* FluxUEqTotEnergy::m_totEnerg
protected

Specific total energy array.


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