31#ifndef MODEXTENDEDNAVIERSTOKESKORTEWEG1D_H
32#define MODEXTENDEDNAVIERSTOKESKORTEWEG1D_H
62 const std::string& name,
const int& numbTransports,
const double&
lambda,
const double& beta,
const double& tau,
const double& eps);
84 const double& dxRight,
88 void solveRiemannWall(
Cell& cellLeft,
const double& dxLeft,
double& dtMax, std::vector<double>& boundData)
const override;
139 const double& rhoSurEtaL,
140 const double& rhoSurEtaR,
141 const double& vecPxL,
142 const double& vecPxR,
143 const double& kappaL,
144 const double& kappaR,
145 const double& kappaPrimeL,
146 const double& kappaPrimeR,
147 const double& kappaSecondL,
148 const double& kappaSecondR,
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:898
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:99
Abstract class for conservative variables and fluxes.
Definition Flux.h:43
Abstract class for mixture variables.
Definition Mixture.h:43
void solveRiemannWall(Cell &cellLeft, const double &dxLeft, double &dtMax, std::vector< double > &boundData) const override
Wall half Riemann solver.
Definition ModExtendedNavierStokesKorteweg1D.cpp:266
void fulfillState(Phase **, Mixture *) override
Definition ModExtendedNavierStokesKorteweg1D.cpp:99
void initializeAugmentedVariables(Cell *cell) override
Complete the augmented variables (such as the ones of Navier-Stokes-Korteweg model).
Definition ModExtendedNavierStokesKorteweg1D.cpp:106
ModExtendedNavierStokesKorteweg1D(const int &numbTransports)
ExtendedNavierStokesKorteweg1D model constructor.
Definition ModExtendedNavierStokesKorteweg1D.cpp:38
static const std::string NAME
Definition ModExtendedNavierStokesKorteweg1D.h:155
double selectScalar(Phase **phases, Mixture *, Transport *transports, Variable nameVariable, int num=0) const override
Select a specific scalar variable.
Definition ModExtendedNavierStokesKorteweg1D.cpp:402
void allocateCons(Flux **cons) override
Allocate conservative variable arrays.
Definition ModExtendedNavierStokesKorteweg1D.cpp:87
const double & getSM() override
Return the local fluid velocity.
Definition ModExtendedNavierStokesKorteweg1D.h:102
const std::string & whoAmI() const override
Definition ModExtendedNavierStokesKorteweg1D.h:110
void allocatePhase(Phase **phase) override
Instanciate fluid phase variable.
Definition ModExtendedNavierStokesKorteweg1D.cpp:91
Coord & getVelocity(Cell *cell) override
Definition ModExtendedNavierStokesKorteweg1D.h:108
const Coord & getVelocity(const Cell *cell) const override
Return the fluid velocity of the corresponding cell.
Definition ModExtendedNavierStokesKorteweg1D.h:107
~ModExtendedNavierStokesKorteweg1D() override
Definition ModExtendedNavierStokesKorteweg1D.cpp:76
void allocateMixture(Mixture **mixture) override
Instanciate mixture variable.
Definition ModExtendedNavierStokesKorteweg1D.cpp:95
void fulfillStateResume(Phase **, Mixture *) override
Definition ModExtendedNavierStokesKorteweg1D.h:73
void reverseProjection(const Coord normal, const Coord tangent, const Coord binormal) const override
Flux reverse projection in the absolute Cartesian coordinate system.
Definition ModExtendedNavierStokesKorteweg1D.cpp:341
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.
Definition ModExtendedNavierStokesKorteweg1D.cpp:132
virtual void computeMaxWaveSpeed(const double &rhoL, const double &rhoR, const double &uL, const double &uR, const double &rhoSurEtaL, const double &rhoSurEtaR, const double &vecPxL, const double &vecPxR, const double &kappaL, const double &kappaR, const double &kappaPrimeL, const double &kappaPrimeR, const double &kappaSecondL, const double &kappaSecondR, const double &c2L, const double &c2R, double &sL, double &sR) const
Compute maximal wave speed using Davis approximation and eigenvalues of hyperbolic equations.
Definition ModExtendedNavierStokesKorteweg1D.cpp:349
void solveRiemannNullFlux() const override
No flux half Riemann solver (return null flux to use with 1D geometry with smooth varying cross secti...
Definition ModExtendedNavierStokesKorteweg1D.cpp:329
std::string m_name
Name of the required model.
Definition Model.h:576
Model(const std::string &name, const int &numbTransports)
Generic model constructor.
Definition Model.cpp:35
Abstract class for a phase.
Definition Phase.h:47
virtual Coord & getVelocity()
Definition Phase.h:261
Class for additional transport equations.
Definition Transport.h:41