31#ifndef MODEULERKORTEWEG_H
32#define MODEULERKORTEWEG_H
35#include "../../Order1/Cell.h"
101 virtual double kappa(
const double& )
const;
102 virtual double kappaPrime(
const double& )
const;
119 virtual double computeMaxWaveSpeed(
Cell& cellLeft,
Cell& cellRight,
const double& rhoL,
const double& rhoR,
const double& uL,
const double& uR,
120 const double& etaL,
const double& etaR,
const double& vecPxL,
const double& vecPxR,
121 const double& vecPyL,
const double& vecPyR)
const;
static std::vector< double > DEFAULT_VEC_INTERFACE_DATA(VarBoundary::SIZE, 0.)
Base class for a mesh cell.
Definition Cell.h:59
virtual Phase * getPhase(const int &phaseNumber, Prim=vecPhases) const
Definition Cell.cpp:522
Class for a coordinate system object such as coordinates of the vertex or a vector.
Definition Coord.h:43
static void errorMessage(const std::string &message)
Definition Errors.cpp:56
static constexpr double defaultDouble
Definition Errors.h:93
Abstract class for conservative variables and fluxes.
Definition Flux.h:43
Abstract class for mixture variables.
Definition Mixture.h:43
Model class for Augmented Euler–Korteweg mathematical system of equations (single phase)
Definition ModEulerKorteweg.h:42
static const std::string NAME
Definition ModEulerKorteweg.h:124
virtual void fulfillStateRestart(Phase **, Mixture *)
Definition ModEulerKorteweg.h:72
virtual double selectScalar(Phase **phases, Mixture *, Transport *transports, Variable nameVariable, int num=0) const
Select a specific scalar variable.
Definition ModEulerKorteweg.cpp:255
virtual const std::string & whoAmI() const
Definition ModEulerKorteweg.h:97
virtual double epsilonPrime(Cell &cell, const double &density) const
Definition ModEulerKorteweg.cpp:216
virtual const Coord & getVelocity(const Cell *cell) const
Return the fluid velocity of the corresponding cell.
Definition ModEulerKorteweg.h:94
virtual double kappaPrime(const double &) const
Definition ModEulerKorteweg.cpp:202
virtual void allocateCons(Flux **cons)
Allocate conservative variable arrays.
Definition ModEulerKorteweg.cpp:86
virtual void allocateMixture(Mixture **mixture)
Instanciate mixture variable.
Definition ModEulerKorteweg.cpp:100
virtual void reverseProjection(const Coord normal, const Coord tangent, const Coord binormal) const
Flux reverse projection in the absolute Cartesian coordinate system.
Definition ModEulerKorteweg.cpp:185
virtual void allocatePhase(Phase **phase)
Instanciate fluid phase variable.
Definition ModEulerKorteweg.cpp:93
virtual ~ModEulerKorteweg()
Definition ModEulerKorteweg.cpp:75
virtual const double & getSM()
Return the local fluid velocity.
Definition ModEulerKorteweg.h:93
virtual void fulfillState(Phase **, Mixture *)
Definition ModEulerKorteweg.h:69
virtual double computeMaxWaveSpeed(Cell &cellLeft, Cell &cellRight, const double &rhoL, const double &rhoR, const double &uL, const double &uR, const double &etaL, const double &etaR, const double &vecPxL, const double &vecPxR, const double &vecPyL, const double &vecPyR) const
Compute maximal wave speed using Davis approximation and eigenvalues of hyperbolic equations.
Definition ModEulerKorteweg.cpp:230
virtual Coord & getVelocity(Cell *cell)
Definition ModEulerKorteweg.h:95
virtual void solveRiemannIntern(Cell &cellLeft, Cell &cellRight, const double &dxLeft, const double &dxRight, double &dtMax, std::vector< double > &=DEFAULT_VEC_INTERFACE_DATA) const
Cell to cell Riemann solver.
Definition ModEulerKorteweg.cpp:128
virtual void initializeAugmentedVariables(Cell *cell)
Complete the augmented variables (such as the ones of Euler-Korteweg model)
Definition ModEulerKorteweg.cpp:107
virtual double kappa(const double &) const
Definition ModEulerKorteweg.cpp:195
virtual double kappaSecond(const double &) const
Definition ModEulerKorteweg.cpp:209
virtual double epsilonSecond(Cell &cell, const double &density) const
Definition ModEulerKorteweg.cpp:223
Abstract class for mathematical flow models.
Definition Model.h:50
std::string m_name
Name of the required model.
Definition Model.h:346
Abstract class for a phase.
Definition Phase.h:47
virtual Coord & getVelocity()
Definition Phase.h:132
Class for additional transport equations.
Definition Transport.h:41