ECOGEN 4.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.

Public Member Functions

 FluxUEq (const int &numbPhases)
 
virtual ~FluxUEq ()
 
virtual void printFlux () const
 
virtual void addFlux (double coefA)
 Add flux to the corresponding model flux.
 
virtual void addFlux (Flux *flux)
 Add flux passed in parameter to the correspond model flux.
 
virtual void subtractFlux (double coefA)
 Subtract flux to the corresponding model buffer flux.
 
virtual void addFluxRotatingRegion (double coefA)
 Add flux to the rotating region in MRF context.
 
virtual void subtractFluxRotatingRegion (double coefA)
 Subtract flux to the rotating region in MRF context.
 
virtual void multiply (double scalar)
 multiply the flux of the corresponding model by a constant
 
virtual void setBufferFlux (Cell &cell)
 Temporary store the conservative variables of a given cell.
 
virtual void buildCons (Phase **phases, Mixture *mixture)
 Build the conservative variables for a given cell from primitive one.
 
virtual void buildPrim (Phase **phases, Mixture *mixture)
 Build the primitive variables for a given cell from conservative one.
 
virtual void setToZero ()
 set each attribute of the flux to zero
 
virtual void addNonCons (double coefA, const Cell *cell, const Coord &, const Coord &, const Coord &)
 Add non conservative term to the flux.
 
virtual void subtractNonCons (double coefA, const Cell *cell, const Coord &, const Coord &, const Coord &)
 Subtract non conservative term to the flux.
 
virtual void schemeCorrection (Cell &cell) const
 
virtual void addFluxSmooth1D (double coefA, const Coord &normal, Cell *cell)
 Compute additionnal flux for 1D geometry with smooth varying cross sectionFlux).
 
virtual void substractFluxSmooth1D (double coefA, const Coord &normal, Cell *cell)
 Compute additionnal flux for 1D geometry with smooth varying cross section.
 
virtual void addSymmetricTerms (Phase **phases, Mixture *mixture, const double &r, const double &v)
 Add symetric terms.
 
virtual void prepSourceTermsGravity (const Coord &g)
 Gravity source term.
 
virtual void prepSourceTermsHeating (const double &q)
 Heating source term.
 
virtual void prepSourceTermsMRF (Cell *cell, const Coord &omega)
 MRF source term.
 
virtual void addNonConsMrfFlux (Phase **phases)
 
virtual const double & getAlpha (const int &numPhase) const
 
virtual const double & getMass (const int &numPhase) const
 
virtual const double & getEnergy (const int &numPhase) const
 
virtual const CoordgetMomentum () const
 
virtual const double & getEnergyMix () const
 
virtual void setCons (const Flux *cons)
 
- 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 & getEqEta () const
 
virtual const double & getTotEnergy (const int &) const
 
virtual const double & getLambda (const int &) const
 
virtual const TensorgetCobase (const int &) const
 
virtual const CoordgetEqVectorP () const
 

Protected Attributes

double * m_alpha
 volume fraction array
 
double * m_mass
 mass array
 
double * m_energ
 specific internal energy array (may contain compaction energy for UEqSolid model)
 
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)

◆ ~FluxUEq()

FluxUEq::~FluxUEq ( )
virtual

Member Function Documentation

◆ addFlux() [1/2]

void FluxUEq::addFlux ( double  )
virtual

Add flux to the corresponding model flux.

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

Reimplemented from Flux.

◆ addFlux() [2/2]

void FluxUEq::addFlux ( Flux )
virtual

Add flux passed in parameter to the correspond model flux.

Parameters
fluxflux to add to the current one

Reimplemented from Flux.

◆ addFluxRotatingRegion()

void FluxUEq::addFluxRotatingRegion ( double  )
virtual

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.

◆ addFluxSmooth1D()

void FluxUEq::addFluxSmooth1D ( double  ,
const Coord ,
Cell  
)
virtual

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

Reimplemented from Flux.

◆ addNonCons()

void FluxUEq::addNonCons ( double  ,
const Cell ,
const Coord ,
const Coord ,
const Coord  
)
virtual

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.

Reimplemented in FluxPUEq.

◆ addNonConsMrfFlux()

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

Reimplemented from Flux.

◆ addSymmetricTerms()

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

Add symetric terms.

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

Reimplemented from Flux.

◆ buildCons()

void FluxUEq::buildCons ( Phase **  ,
Mixture  
)
virtual

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.

◆ buildPrim()

void FluxUEq::buildPrim ( Phase **  ,
Mixture  
)
virtual

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

Parameters
phasesPhases array to fill
mixtureMixture to fill

Reimplemented from Flux.

◆ getAlpha()

virtual const double & FluxUEq::getAlpha ( const int &  numPhase) const
inlinevirtual

Reimplemented from Flux.

◆ getEnergy()

virtual const double & FluxUEq::getEnergy ( const int &  numPhase) const
inlinevirtual

Reimplemented from Flux.

◆ getEnergyMix()

virtual const double & FluxUEq::getEnergyMix ( ) const
inlinevirtual

Reimplemented from Flux.

◆ getMass()

virtual const double & FluxUEq::getMass ( const int &  numPhase) const
inlinevirtual

Reimplemented from Flux.

◆ getMomentum()

virtual const Coord & FluxUEq::getMomentum ( ) const
inlinevirtual

Reimplemented from Flux.

◆ multiply()

void FluxUEq::multiply ( double  )
virtual

multiply the flux of the corresponding model by a constant

Parameters
scalarconstant

Reimplemented from Flux.

◆ prepSourceTermsGravity()

void FluxUEq::prepSourceTermsGravity ( const Coord )
virtual

Gravity source term.

Reimplemented from Flux.

◆ prepSourceTermsHeating()

void FluxUEq::prepSourceTermsHeating ( const double &  )
virtual

Heating source term.

Reimplemented from Flux.

◆ prepSourceTermsMRF()

void FluxUEq::prepSourceTermsMRF ( Cell ,
const Coord  
)
virtual

MRF source term.

Reimplemented from Flux.

◆ printFlux()

void FluxUEq::printFlux ( ) const
virtual

Reimplemented from Flux.

◆ schemeCorrection()

void FluxUEq::schemeCorrection ( Cell cell) const
virtual

Reimplemented from Flux.

Reimplemented in FluxPUEq.

◆ setBufferFlux()

void FluxUEq::setBufferFlux ( Cell )
virtual

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.

◆ setCons()

void FluxUEq::setCons ( const Flux cons)
virtual

Reimplemented from Flux.

◆ setToZero()

void FluxUEq::setToZero ( )
virtual

set each attribute of the flux to zero

Reimplemented from Flux.

◆ substractFluxSmooth1D()

void FluxUEq::substractFluxSmooth1D ( double  ,
const Coord ,
Cell  
)
virtual

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

Reimplemented from Flux.

◆ subtractFlux()

void FluxUEq::subtractFlux ( double  )
virtual

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.

◆ subtractFluxRotatingRegion()

void FluxUEq::subtractFluxRotatingRegion ( double  )
virtual

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.

◆ subtractNonCons()

void FluxUEq::subtractNonCons ( double  ,
const Cell ,
const Coord ,
const Coord ,
const Coord  
)
virtual

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.

Reimplemented in FluxPUEq.

Friends And Related Symbol Documentation

◆ 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 (may contain compaction energy for UEqSolid model)

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