70 void setScalar(
const int& numVar,
const double& value)
override;
75 void fillBuffer(
double* buffer,
int& counter)
const override;
76 void fillBuffer(std::vector<double>& dataToSend)
const override;
77 void getBuffer(
double* buffer,
int& counter,
Eos** eos)
override;
78 void getBuffer(std::vector<double>& dataToReceive,
int& counter,
Eos** eos)
override;
100 void verifyPhase(
const std::string& message =
"")
const override;
125 void setVelocity(
const double& ,
const double& ,
const double& )
override {};
127 void setU(
const double& )
override {};
128 void setV(
const double& )
override {};
129 void setW(
const double& )
override {};
139 void divide(
const double& coeff)
override;
Coord velocity
Definition Coord.cpp:34
Class for a coordinate system object such as coordinates of the vertex or a vector.
Definition Coord.h:43
static Coord defaultCoordNonConst
Default Coord object (non-const version).
Definition Coord.h:58
static const Coord defaultCoord
Default Coord object (const version).
Definition Coord.h:55
General class for Equation of State (EOS).
Definition Eos.h:62
static const std::string defaultString
Definition Errors.h:100
static constexpr double defaultDouble
Definition Errors.h:99
void extrapolate(const Phase &slope, const double &distance) override
Definition PhasePTUEq.cpp:200
double m_pressure
phase pressure
Definition PhasePTUEq.h:144
double returnScalar(const int &numVar) const override
Definition PhasePTUEq.cpp:88
int getNumberVectors() const override
Definition PhasePTUEq.h:62
void setW(const double &) override
Definition PhasePTUEq.h:129
void verifyAndCorrectPhase() override
Definition PhasePTUEq.cpp:252
void reverseProjection(const Coord &, const Coord &, const Coord &) override
Definition PhasePTUEq.h:57
std::string returnNameScalar(const int &numVar) const override
Definition PhasePTUEq.cpp:105
int numberOfTransmittedVariables() const override
Definition PhasePTUEq.cpp:143
void setAlpha(double alpha) override
Definition PhasePTUEq.cpp:272
const double & getEnergy() const override
Definition PhasePTUEq.h:117
Coord returnVector(const int &) const override
Definition PhasePTUEq.h:64
const double & getPressure() const override
Definition PhasePTUEq.h:110
double m_alpha
phase volume fraction
Definition PhasePTUEq.h:142
void computeGradientLimiter(const Limiter &globalLimiter, const Phase &phase, const Phase &phaseMin, const Phase &phaseMax, const Phase &slope) override
Definition PhasePTUEq.cpp:219
void divide(const double &coeff) override
Definition PhasePTUEq.cpp:310
void verifyPhase(const std::string &message="") const override
Definition PhasePTUEq.cpp:243
const Coord & getVelocity() const override
Definition PhasePTUEq.h:115
const double & getMassFraction() const override
Definition PhasePTUEq.h:108
void getBuffer(double *buffer, int &counter, Eos **eos) override
Definition PhasePTUEq.cpp:167
void setDensity(double density) override
Definition PhasePTUEq.cpp:276
void setU(const double &) override
Definition PhasePTUEq.h:127
double m_soundSpeed
phase speed of sound
Definition PhasePTUEq.h:148
const double & getU() const override
Definition PhasePTUEq.h:111
void setVelocity(const Coord &) override
Definition PhasePTUEq.h:126
void setTotalEnergy(double totalEnergy) override
Definition PhasePTUEq.cpp:296
~PhasePTUEq() override
Definition PhasePTUEq.cpp:56
void fillBuffer(double *buffer, int &counter) const override
Definition PhasePTUEq.cpp:151
Eos * m_eos
pointer to phase equation of state
Definition PhasePTUEq.h:145
void verifyAndCorrectDensityMax() override
Definition PhasePTUEq.cpp:266
void setV(const double &) override
Definition PhasePTUEq.h:128
void setSoundSpeed(double soundSpeed) override
Definition PhasePTUEq.cpp:292
void getBufferSlopes(double *buffer, int &counter) override
Definition PhasePTUEq.cpp:237
std::string returnNameVector(const int &) const override
Definition PhasePTUEq.h:66
const double & getSoundSpeed() const override
Definition PhasePTUEq.h:118
void extendedCalculusPhase(const Coord &velocity) override
Compute extra thermodynammical variables.
Definition PhasePTUEq.cpp:77
void setScalar(const int &numVar, const double &value) override
Definition PhasePTUEq.cpp:124
void setToMax() override
Definition PhasePTUEq.cpp:196
double getTemperature() const override
Definition PhasePTUEq.h:120
PhasePTUEq()
Definition PhasePTUEq.cpp:38
void multiplyAndAdd(const Phase &slopesPhasesTemp, const double &coeff) override
Definition PhasePTUEq.cpp:306
void localProjection(const Coord &, const Coord &, const Coord &) override
Definition PhasePTUEq.h:56
void changeSign() override
Definition PhasePTUEq.cpp:302
void copyPhase(Phase &vecPhase) override
Copy phase in phase attributes.
Definition PhasePTUEq.cpp:64
const double & getDensity() const override
Definition PhasePTUEq.h:109
void computeSlopesPhase(const Phase &sLeft, const Phase &sRight, const double &distance) override
Definition PhasePTUEq.cpp:185
int getNumberScalars() const override
Definition PhasePTUEq.h:61
void setVelocity(const double &, const double &, const double &) override
Definition PhasePTUEq.h:125
void allocateAndCopyPhase(Phase **vecPhase) override
Copy phase attributes in phase.
Definition PhasePTUEq.cpp:60
void setMax(const Phase &phase1, const Phase &phase2) override
Definition PhasePTUEq.cpp:215
const double & getV() const override
Definition PhasePTUEq.h:112
const double & getW() const override
Definition PhasePTUEq.h:113
const double & getTotalEnergy() const override
Definition PhasePTUEq.h:119
void setEos(Eos *eos) override
Definition PhasePTUEq.cpp:284
void setEnergy(double energy) override
Definition PhasePTUEq.cpp:288
void setMin(const Phase &phase1, const Phase &phase2) override
Definition PhasePTUEq.cpp:211
void limitSlopes(const Phase &slopeGauche, const Phase &slopeDroite, Limiter &, Limiter &volumeFractionLimiter) override
Definition PhasePTUEq.cpp:204
double m_energy
phase internal energy
Definition PhasePTUEq.h:146
double m_totalEnergy
phase total energy
Definition PhasePTUEq.h:147
void setToZero() override
Definition PhasePTUEq.cpp:192
const double & getAlpha() const override
Definition PhasePTUEq.h:107
double m_density
phase specific mass
Definition PhasePTUEq.h:143
void fillBufferSlopes(double *buffer, int &counter) const override
Definition PhasePTUEq.cpp:233
void setPressure(double pressure) override
Definition PhasePTUEq.cpp:280
Coord & getVelocity() override
Definition PhasePTUEq.h:114
Eos * getEos() const override
Definition PhasePTUEq.h:116
int numberOfTransmittedSlopes() const override
Definition PhasePTUEq.cpp:229
Abstract class for a phase.
Definition Phase.h:47
Phase()
Definition Phase.cpp:37
Definition tinyxml2.h:1148