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

Model class for Augmented Euler–Korteweg Flux (single phase) More...

#include <FluxEulerKorteweg.h>

Inherits Flux.

Inherited by FluxNonLinearSchrodinger.

Public Member Functions

 FluxEulerKorteweg ()
 
virtual ~FluxEulerKorteweg ()
 
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 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 **phase, Mixture *)
 Build the conservative variables for a given cell from primitive one.
 
virtual void buildPrim (Phase **phase, 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, const Cell *, const Coord &, const Coord &, const Coord &)
 Add non conservative term to the flux.
 
virtual void subtractNonCons (double, const Cell *, const Coord &, const Coord &, const Coord &)
 Subtract non conservative term to the flux.
 
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 const double & getMassMix () const
 
virtual const double & getEqOmega () const
 
virtual const double & getEqEta () const
 
virtual const CoordgetMomentum () const
 
virtual const CoordgetEqVectorP () const
 
virtual void setCons (const Flux *cons)
 
- 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 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 & getAlpha (const int &) const
 
virtual const double & getMass (const int &) const
 
virtual const double & getEnergyMix () const
 
virtual const double & getEnergy (const int &) const
 
virtual const double & getTotEnergy (const int &) const
 
virtual const double & getLambda (const int &) const
 
virtual const TensorgetCobase (const int &) const
 

Protected Attributes

double m_mass
 Mass

 
double m_eqOmega
 Omega equation (omega: time derivative of eta)
 
double m_eqEta
 Eta equation.
 
Coord m_momentum
 Momentum

 
Coord m_eqVectorP
 Equation for vector P (P: gradient of eta)
 
- 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 ModEulerKorteweg
 

Detailed Description

Model class for Augmented Euler–Korteweg Flux (single phase)

Constructor & Destructor Documentation

◆ FluxEulerKorteweg()

FluxEulerKorteweg::FluxEulerKorteweg ( )

◆ ~FluxEulerKorteweg()

FluxEulerKorteweg::~FluxEulerKorteweg ( )
virtual

Member Function Documentation

◆ addFlux() [1/2]

void FluxEulerKorteweg::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 FluxEulerKorteweg::addFlux ( Flux )
virtual

Add flux passed in parameter to the correspond model flux.

Parameters
fluxflux to add to the current one

Reimplemented from Flux.

◆ addNonCons()

virtual void FluxEulerKorteweg::addNonCons ( double  ,
const Cell ,
const Coord ,
const Coord ,
const Coord  
)
inlinevirtual

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.

◆ addSymmetricTerms()

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

Add symetric terms.

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

Reimplemented from Flux.

◆ buildCons()

void FluxEulerKorteweg::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 FluxEulerKorteweg::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.

◆ getEqEta()

virtual const double & FluxEulerKorteweg::getEqEta ( ) const
inlinevirtual

Reimplemented from Flux.

◆ getEqOmega()

virtual const double & FluxEulerKorteweg::getEqOmega ( ) const
inlinevirtual

Reimplemented from Flux.

◆ getEqVectorP()

virtual const Coord & FluxEulerKorteweg::getEqVectorP ( ) const
inlinevirtual

Reimplemented from Flux.

◆ getMassMix()

virtual const double & FluxEulerKorteweg::getMassMix ( ) const
inlinevirtual

Reimplemented from Flux.

◆ getMomentum()

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

Reimplemented from Flux.

◆ multiply()

void FluxEulerKorteweg::multiply ( double  )
virtual

multiply the flux of the corresponding model by a constant

Parameters
scalarconstant

Reimplemented from Flux.

◆ prepSourceTermsGravity()

virtual void FluxEulerKorteweg::prepSourceTermsGravity ( const Coord )
inlinevirtual

Gravity source term.

Reimplemented from Flux.

◆ prepSourceTermsHeating()

virtual void FluxEulerKorteweg::prepSourceTermsHeating ( const double &  )
inlinevirtual

Heating source term.

Reimplemented from Flux.

◆ prepSourceTermsMRF()

virtual void FluxEulerKorteweg::prepSourceTermsMRF ( Cell ,
const Coord  
)
inlinevirtual

MRF source term.

Reimplemented from Flux.

◆ printFlux()

void FluxEulerKorteweg::printFlux ( ) const
virtual

Reimplemented from Flux.

◆ setBufferFlux()

void FluxEulerKorteweg::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 FluxEulerKorteweg::setCons ( const Flux cons)
virtual

Reimplemented from Flux.

◆ setToZero()

void FluxEulerKorteweg::setToZero ( )
virtual

set each attribute of the flux to zero

Reimplemented from Flux.

◆ subtractFlux()

void FluxEulerKorteweg::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.

◆ subtractNonCons()

virtual void FluxEulerKorteweg::subtractNonCons ( double  ,
const Cell ,
const Coord ,
const Coord ,
const Coord  
)
inlinevirtual

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.

Friends And Related Symbol Documentation

◆ ModEulerKorteweg

friend class ModEulerKorteweg
friend

Member Data Documentation

◆ m_eqEta

double FluxEulerKorteweg::m_eqEta
protected

Eta equation.

◆ m_eqOmega

double FluxEulerKorteweg::m_eqOmega
protected

Omega equation (omega: time derivative of eta)

◆ m_eqVectorP

Coord FluxEulerKorteweg::m_eqVectorP
protected

Equation for vector P (P: gradient of eta)

◆ m_mass

double FluxEulerKorteweg::m_mass
protected

Mass

◆ m_momentum

Coord FluxEulerKorteweg::m_momentum
protected

Momentum


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