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

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

#include <FluxUEq.h>

Inherits Flux.

Inherited by FluxPUEq.

Collaboration diagram for FluxUEq:
[legend]

Public Member Functions

 FluxUEq (const int &numbPhases)
 ~FluxUEq () 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 addFluxRotatingRegion (double coefA) override
 Add flux to the rotating region in MRF context.
void subtractFluxRotatingRegion (double coefA) override
 Subtract flux to the rotating region in MRF context.
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.
void schemeCorrection (Cell &cell) const override
void addFluxSmooth1D (double coefA, const Coord &normal, Cell *cell) override
 Compute additionnal flux for 1D geometry with smooth varying cross sectionFlux).
void substractFluxSmooth1D (double coefA, const Coord &normal, Cell *cell) override
 Compute additionnal flux for 1D geometry with smooth varying cross section.
void addSymmetricTerms (Phase **phases, Mixture *mixture, const double &r, const double &v) override
 Add symetric terms.
void prepSourceTermsGravity (const Coord &g) override
 Gravity source term.
void prepSourceTermsHeating (const double &q) override
 Heating source term.
void prepSourceTermsMRF (Cell *cell, const Coord &omega) override
 MRF source term.
void prepSourceTermsPlaneWave (const Cell *cell, const double &sourceMomentum, const Coord &pulseDirection) override
 This prepares Plane-Gaussian-pulse and Plane-Sinusoidal-pulse source terms.
void addNonConsMrfFlux (Phase **phases) override
const double & getAlpha (const int &numPhase) const override
const double & getMass (const int &numPhase) const override
const double & getEnergy (const int &numPhase) const override
const Coord & getMomentum () const override
const double & getEnergyMix () const override
void setCons (const Flux *cons) override
Public Member Functions inherited from Flux
 Flux ()
virtual ~Flux ()
virtual void correctionEnergy (Cell *, Prim=vecPhases) const
 Method to correct energy in non conservative models using total energy conservation.
virtual const double & getMassMix () const
virtual const double & getEqOmega () const
virtual const double & getEqDensitySurEta () const
virtual const double & getTotEnergy (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_energ
 specific internal energy array
Coord m_momentum
 momentum array
double m_energMixture
 mixture 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 ModUEq
class APUEqSurfaceTension
class APUEqViscosity
class APUEqConductivity

Detailed Description

Flux class for the velocity-equilibrium system of equations.

Constructor & Destructor Documentation

◆ FluxUEq()

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

◆ ~FluxUEq()

FluxUEq::~FluxUEq ( )
override

Member Function Documentation

◆ addFlux() [1/2]

void FluxUEq::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 FluxUEq::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:

◆ addFluxRotatingRegion()

void FluxUEq::addFluxRotatingRegion ( double )
overridevirtual

Add flux to the rotating region in MRF context.

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:

◆ addFluxSmooth1D()

void FluxUEq::addFluxSmooth1D ( double ,
const Coord & ,
Cell *  )
overridevirtual

Compute additionnal flux for 1D geometry with smooth varying cross sectionFlux).

Reimplemented from Flux.

Here is the call graph for this function:

◆ addNonCons()

void FluxUEq::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:

◆ addNonConsMrfFlux()

void FluxUEq::addNonConsMrfFlux ( Phase ** phases)
overridevirtual

Reimplemented from Flux.

Here is the call graph for this function:

◆ addSymmetricTerms()

void FluxUEq::addSymmetricTerms ( Phase ** ,
Mixture * ,
const double & ,
const double &  )
overridevirtual

Add symetric terms.

Parameters
rradial distance of the cell from the axis of symmetry
vvelocity in the radial direction

Reimplemented from Flux.

Here is the call graph for this function:

◆ buildCons()

void FluxUEq::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 FluxUEq::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 & FluxUEq::getAlpha ( const int & numPhase) const
inlineoverridevirtual

Reimplemented from Flux.

Here is the caller graph for this function:

◆ getEnergy()

const double & FluxUEq::getEnergy ( const int & numPhase) const
inlineoverridevirtual

Reimplemented from Flux.

Here is the caller graph for this function:

◆ getEnergyMix()

const double & FluxUEq::getEnergyMix ( ) const
inlineoverridevirtual

Reimplemented from Flux.

◆ getMass()

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

Reimplemented from Flux.

Here is the caller graph for this function:

◆ getMomentum()

const Coord & FluxUEq::getMomentum ( ) const
inlineoverridevirtual

Reimplemented from Flux.

Here is the caller graph for this function:

◆ multiply()

void FluxUEq::multiply ( double )
overridevirtual

multiply the flux of the corresponding model by a constant

Parameters
scalarconstant

Reimplemented from Flux.

◆ prepSourceTermsGravity()

void FluxUEq::prepSourceTermsGravity ( const Coord & )
overridevirtual

Gravity source term.

Reimplemented from Flux.

Here is the call graph for this function:

◆ prepSourceTermsHeating()

void FluxUEq::prepSourceTermsHeating ( const double & )
overridevirtual

Heating source term.

Reimplemented from Flux.

◆ prepSourceTermsMRF()

void FluxUEq::prepSourceTermsMRF ( Cell * ,
const Coord &  )
overridevirtual

MRF source term.

Reimplemented from Flux.

Here is the call graph for this function:

◆ prepSourceTermsPlaneWave()

void FluxUEq::prepSourceTermsPlaneWave ( const Cell * ,
const double & ,
const Coord &  )
overridevirtual

This prepares Plane-Gaussian-pulse and Plane-Sinusoidal-pulse source terms.

Reimplemented from Flux.

Here is the call graph for this function:

◆ printFlux()

void FluxUEq::printFlux ( ) const
overridevirtual

Reimplemented from Flux.

◆ schemeCorrection()

void FluxUEq::schemeCorrection ( Cell & cell) const
overridevirtual

Reimplemented from Flux.

Here is the call graph for this function:

◆ setBufferFlux()

void FluxUEq::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 FluxUEq::setCons ( const Flux * cons)
overridevirtual

Reimplemented from Flux.

Here is the call graph for this function:

◆ setToZero()

void FluxUEq::setToZero ( )
overridevirtual

set each attribute of the flux to zero

Reimplemented from Flux.

◆ substractFluxSmooth1D()

void FluxUEq::substractFluxSmooth1D ( double ,
const Coord & ,
Cell *  )
overridevirtual

Compute additionnal flux for 1D geometry with smooth varying cross section.

Reimplemented from Flux.

Here is the call graph for this function:

◆ subtractFlux()

void FluxUEq::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:

◆ subtractFluxRotatingRegion()

void FluxUEq::subtractFluxRotatingRegion ( double )
overridevirtual

Subtract flux to the rotating region in MRF context.

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 FluxUEq::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:

◆ APUEqConductivity

friend class APUEqConductivity
friend

◆ APUEqSurfaceTension

friend class APUEqSurfaceTension
friend

◆ APUEqViscosity

friend class APUEqViscosity
friend

◆ ModUEq

friend class ModUEq
friend

Member Data Documentation

◆ m_alpha

double* FluxUEq::m_alpha
protected

volume fraction array

◆ m_energ

double* FluxUEq::m_energ
protected

specific internal energy array

◆ m_energMixture

double FluxUEq::m_energMixture
protected

mixture energy

◆ m_mass

double* FluxUEq::m_mass
protected

mass array

◆ m_momentum

Coord FluxUEq::m_momentum
protected

momentum array


The documentation for this class was generated from the following files:
  • /home/runner/work/ECOGEN/ECOGEN/doc_sources/src/Models/UEq/FluxUEq.h
  • /home/runner/work/ECOGEN/ECOGEN/doc_sources/src/Models/UEq/FluxUEq.cpp