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

Model class for the non-equilibrium system of equations using the HLLC with 4 waves (Furfaro & Saurel, 2015). More...

#include <ModNEqHLLC4Waves.h>

Inherits ModNEq.

Collaboration diagram for ModNEqHLLC4Waves:
[legend]

Public Member Functions

 ModNEqHLLC4Waves (const int &numbTransports, const int &numbPhases)
 NEq model constructor with HLLC 4 waves.
 ~ModNEqHLLC4Waves () override
void allocateCons (Flux **cons) override
 Allocate conservative variable arrays.
void solver (Cell &cellLeft, Cell &cellRight, const double &dxLeft, const double &dxRight, double &dtMax, std::vector< double > &=DEFAULT_VEC_INTERFACE_DATA) const override
 HLLC Riemann solver, with 4 waves per phase, of Furfaro & Saurel (2015).
Public Member Functions inherited from ModNEq
 ModNEq (const int &numbTransports, const int &numbPhases)
 NEq model constructor.
 ModNEq (const std::string &name, const int &numbTransports)
 Generic model constructor (used by derived classes).
 ~ModNEq () override
void allocatePhase (Phase **phase) override
 Instanciate fluid phase variable.
void allocateMixture (Mixture **mixture) override
 Instanciate mixture variable.
void allocatePhaseGradient (GradPhase **phase) override
 Instanciate gradient phase variable.
void allocateMixtureGradient (GradMixture **mixture) override
 Instanciate gradient mixture variable.
void fulfillState (Phase **phases, Mixture *mixture) override
void fulfillStateResume (Phase **, Mixture *) override
void initializeAugmentedVariables (Cell *) override
void solveRiemannIntern (Cell &cellLeft, Cell &cellRight, const double &dxLeft, const double &dxRight, double &dtMax, std::vector< double > &=DEFAULT_VEC_INTERFACE_DATA) const override
 Cell to cell Riemann solver.
void reverseProjection (const Coord normal, const Coord tangent, const Coord binormal) const override
 Flux reverse projection in the absolute Cartesian coordinate system.
double selectScalar (Phase **phases, Mixture *mixture, Transport *transports, Variable nameVariable, int num=0) const override
 Select a specific scalar variable.
const double & getSM () override
 Return the local fluid velocity.
const Coord & getVelocity (const Cell *cell) const override
 Return the fluid velocity of the corresponding cell.
Coord & getVelocity (Cell *cell) override
const std::string & whoAmI () const override
Public Member Functions inherited from Model
 Model (const std::string &name, const int &numbTransports)
 Generic model constructor.
virtual ~Model ()
virtual void allocatePhaseSolid (Phase **)
 Instanciate solid phase variable.
virtual void allocatePhaseSolidGradient (GradPhase **)
 Instanciate gradient solid-phase variable.
void allocateEos (Cell &cell) const
 Associate equations of state.
void initializeRelaxation (Cell *cell) const
 Initialize the theoritical critical pressure of the fluid (only required for PTMu relax).
virtual void solveRiemannInternMRF (Cell &, Cell &, const double &, const double &, double &, const Coord &, const Coord &, const Coord &, const Coord &, const Coord &) const
 Cell to cell Riemann solver + compute fluxBuffMRF for MRF interface.
virtual void solveRiemannWall (Cell &, const double &, double &, std::vector< double > &) const
 Wall half Riemann solver.
virtual void solveRiemannSymmetry (Cell &cellLeft, const double &dxLeft, double &dtMax, std::vector< double > &boundData) const
 Symmetry half Riemann solver.
virtual void solveRiemannMovingWall (Cell &, const double &, double &, double, std::vector< double > &) const
 Moving wall half Riemann solver.
virtual void solveRiemannInletTank (Cell &, const double &, double &, const double *, const double *, const double &, const double &, std::vector< double > &) const
 Inlet tank half Riemann solver.
virtual void solveRiemannInletInjStagState (Cell &, const double &, double &, const double, const double *, const double *, const double *, std::vector< double > &) const
 Inlet injection using stagnation state half Riemann solver.
virtual void solveRiemannInletInjTemp (Cell &, const double &, double &, const double, const double *, const double *, std::vector< double > &) const
 Inlet injection using temperature half Riemann solver.
virtual void solveRiemannOutletPressure (Cell &, const double &, double &, const double, std::vector< double > &) const
 Outlet at imposed pressure half Riemann solver.
virtual void solveRiemannOutletMassflow (Cell &, const double &, double &, const double, std::vector< double > &) const
 Outlet at imposed massflow half Riemann solver.
virtual void solveRiemannNullFlux () const
 No flux half Riemann solver (return null flux to use with 1D geometry with smooth varying cross section).
virtual void solveRiemannTransportIntern (Cell &, Cell &)
 Cell to cell Riemann solver for transport equations.
virtual void solveRiemannTransportWall ()
 Wall half Riemann solver for transport equations.
virtual void solveRiemannTransportMovingWall (Cell &, double)
 Moving wall half Riemann solver for transport equations.
virtual void solveRiemannTransportInletInjStagState (Cell &, double *)
 Inlet injection using stagnation state half Riemann solver for transport equations.
virtual void solveRiemannTransportInletTank (Cell &, double *)
 Inlet tank half Riemann solver for transport equations.
virtual void solveRiemannTransportOutletPressure (Cell &, double *)
 Outlet at imposed pressure half Riemann solver for transport equations.
void relaxations (Cell *cell, const double &dt, Prim type=vecPhases) const
 Run all the relaxations.
virtual void correctionEnergy (Cell *, Prim=vecPhases) const
 Energy correction after relaxations (only for PUEq model).
virtual void lowMachSoundSpeed (double &, const double &, double &, const double &=Errors::defaultDouble, double &=Tools::uselessDouble) const
virtual void addNonConsMrfFlux (Phase **)
virtual void reverseProjectionMrfFlux (const Coord, const Coord, const Coord) const
virtual void readCompactionParameters (tinyxml2::XMLElement *, std::string, const int &)
 Read compaction parameters.
virtual bool compaction (const int &) const
 Return if compaction is activated or not.
virtual const double & getDensityReference (const int &) const
 Return the compaction reference density of phase k.
virtual double computeEnergyCompaction (const int &, const double &, const double &, const double &) const
 Return the compaction energy of the fluid/solid.
virtual double computeCompactionPressure_dkappadxi (const int &, const double &, const double &, const double &) const
 Compute the compaction pressure term including the derivative d kappa_k / d xi_k.
virtual double computeCompactionPressure_dkappadalpha (const int &, const double &, const double &, const double &) const
 Compute the compaction pressure term including the derivative d kappa_k / d alpha_k.
virtual double computeCompactionPlasticity (const int &, const double &, const double &, const double &, const double &, double &) const
 Compute the compaction plasticity term of the fluid/solid for relaxation.
virtual void readSolidParameters (tinyxml2::XMLElement *, std::string, const int &)
 Read solid parameters.
virtual const double * getDensityReference () const
 Return the reference density for each phase.
virtual const double * getElasticParameterA () const
 Return the elastic parameter a of the one-parameter model for each phase.
virtual const double * getShearModulus () const
 Return the shear modulus for each phase.
virtual const double * getChi () const
 Return the chi modulus for each phase.
virtual const double * getElasticityLimit () const
 Return the limit of elasticity for each phase.
virtual double computeElasticEnergy (const int &, const Tensor &) const
 Compute the elastic energy of the solid.
virtual void computeElasticEnergyAndStressTensor (const int &, const Tensor &, const double &, const double &, double &, Tensor &) const
 Compute the elastic energy and stress tensor of the solid.
virtual double computeSquareLongitudinalWaveSpeed (const int &, const Phase &)
 Compute the square longitudinal wave speed of the solid.
virtual const Coord & getVectorP (const Cell *) const
virtual Coord & getVectorP (Cell *)
std::vector< Relaxation * > * getRelaxations ()
void printInfo () const
virtual void setSmoothCrossSection1d (const bool &)
virtual const bool & isSmoothCrossSection1d () const
const bool & getLowMach () const
void setLowMach (const bool &lowMach)
virtual void setMachRefMin (const double &machRefMin)
virtual void setPhaseSlope (Phase &, int)
 Set the slope values for the extrapolation within the cell.
virtual void setSlopeDistance (const double &)
 Set the geometric distance over which the in-cell slopes extrapolate (cell width along the face normal).

Static Private Attributes

static const std::string NAME = "NONEQ"

Friends

class FluxNEqHLLC4Waves

Additional Inherited Members

Protected Attributes inherited from Model
std::string m_name
 Name of the required model.
std::vector< Relaxation * > m_relaxations
 Vector of relaxation procedure.
bool m_lowMach
 Low-Mach preconditioning (default: false).
double m_machRefMin
 Minimum Mach number limit for L-M preconditionning used when local Mach number is below this value (default: 0.01).
bool m_smoothCrossSection1d
 1D geometry with smooth cross section variation (default: false)

Detailed Description

Model class for the non-equilibrium system of equations using the HLLC with 4 waves (Furfaro & Saurel, 2015).

Constructor & Destructor Documentation

◆ ModNEqHLLC4Waves()

ModNEqHLLC4Waves::ModNEqHLLC4Waves ( const int & numbTransports,
const int & numbPhases )

NEq model constructor with HLLC 4 waves.

Parameters
numbTransportsnumber of additional transport equations
numbPhasesnumber of phases
Here is the call graph for this function:

◆ ~ModNEqHLLC4Waves()

ModNEqHLLC4Waves::~ModNEqHLLC4Waves ( )
override

Member Function Documentation

◆ allocateCons()

void ModNEqHLLC4Waves::allocateCons ( Flux ** )
overridevirtual

Allocate conservative variable arrays.

Parameters
consconservative variable array to allocate

Reimplemented from ModNEq.

Here is the call graph for this function:

◆ solver()

void ModNEqHLLC4Waves::solver ( Cell & cellLeft,
Cell & cellRight,
const double & dxLeft,
const double & dxRight,
double & dtMax,
std::vector< double > & = DEFAULT_VEC_INTERFACE_DATA ) const
overridevirtual

HLLC Riemann solver, with 4 waves per phase, of Furfaro & Saurel (2015).

Reimplemented from ModNEq.

Here is the call graph for this function:

◆ FluxNEqHLLC4Waves

friend class FluxNEqHLLC4Waves
friend

Member Data Documentation

◆ NAME

const std::string ModNEqHLLC4Waves::NAME = "NONEQ"
staticprivate

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