ECOGEN 6.0
Evolutive, Compressible, Open, Genuine, Easy, N-phase
Loading...
Searching...
No Matches
Model.h
Go to the documentation of this file.
1//
2// ,---. ,--, .---. ,--, ,---. .-. .-.
3// | .-' .' .') / .-. ) .' .' | .-' | \| |
4// | `-. | |(_) | | |(_) | | __ | `-. | | |
5// | .-' \ \ | | | | \ \ ( _) | .-' | |\ |
6// | `--. \ `-. \ `-' / \ `-) ) | `--. | | |)|
7// /( __.' \____\ )---' )\____/ /( __.' /( (_)
8// (__) (_) (__) (__) (__)
9// Official webSite: https://code-mphi.github.io/ECOGEN/
10//
11// This file is part of ECOGEN.
12//
13// ECOGEN is the legal property of its developers, whose names
14// are listed in the copyright file included with this source
15// distribution.
16//
17// ECOGEN is free software: you can redistribute it and/or modify
18// it under the terms of the GNU General Public License as published
19// by the Free Software Foundation, either version 3 of the License,
20// or (at your option) any later version.
21//
22// ECOGEN is distributed in the hope that it will be useful,
23// but WITHOUT ANY WARRANTY; without even the implied warranty of
24// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
25// GNU General Public License for more details.
26//
27// You should have received a copy of the GNU General Public License
28// along with ECOGEN (file LICENSE).
29// If not, see <http://www.gnu.org/licenses/>.
30
31#ifndef MODELE_H
32#define MODELE_H
33
34class Model; //Predeclaration of class to include following .h
35
36#include "Flux.h"
37#include "../Maths/Coord.h"
38#include "../Errors.h"
40#include "GradPhase.h"
41#include "GradMixture.h"
42
43//Only boundary Riemann solvers require to extract interface data for output
44//This vector allows to use default value for intern Riemann solvers
45static std::vector<double> DEFAULT_VEC_INTERFACE_DATA(VarBoundary::SIZE, 0.);
46
49class Model
50{
51 public:
55 Model(const std::string& name, const int& numbTransports);
56 virtual ~Model();
57
60 virtual void allocateCons(Flux** /*cons*/) { Errors::errorMessage("allocateCons not available for required model"); };
63 virtual void allocatePhase(Phase** /*phase*/) { Errors::errorMessage("allocatePhase not available for required model"); };
66 virtual void allocatePhaseSolid(Phase** /*phase*/) {};
69 virtual void allocatePhaseGradient(GradPhase** /*phase*/) { Errors::errorMessage("allocatePhaseGradient not available for required model"); };
72 virtual void allocatePhaseSolidGradient(GradPhase** /*phase*/)
73 {
74 Errors::errorMessage("allocatePhaseSolidGradient not available for required model");
75 };
76
78 virtual void allocateMixture(Mixture** /*mixture*/) { Errors::errorMessage("allocateMixture not available for required model"); };
81 virtual void allocateMixtureGradient(GradMixture** /*mixture*/)
82 {
83 Errors::errorMessage("allocateMixtureGradient not available for required model");
84 };
85
87 void allocateEos(Cell& cell) const;
90 void initializeRelaxation(Cell* cell) const;
91
95 virtual void fulfillState(Phase** /*phases*/, Mixture* /*mixture*/) { Errors::errorMessage("fulfillState not available for required model"); };
96
100 virtual void fulfillStateResume(Phase** /*phases*/, Mixture* /*mixture*/)
101 {
102 Errors::errorMessage("fulfillStateResume not available for required model");
103 };
104
107 virtual void initializeAugmentedVariables(Cell* /*cell*/)
108 {
109 Errors::errorMessage("initializeAugmentedVariables not available for required model");
110 };
111
112 //Fluid-flow Riemann solvers
113 //--------------------------
121 virtual void solveRiemannIntern(Cell& /*cellLeft*/,
122 Cell& /*cellRight*/,
123 const double& /*dxLeft*/,
124 const double& /*dxRight*/,
125 double& /*dtMax*/,
126 std::vector<double>& /*boundData*/ = DEFAULT_VEC_INTERFACE_DATA) const
127 {
128 Errors::errorMessage("solveRiemannIntern not available for required model");
129 };
130
141 virtual void solveRiemannInternMRF(Cell& /*cellLeft*/,
142 Cell& /*cellRight*/,
143 const double& /*dxLeft*/,
144 const double& /*dxRight*/,
145 double& /*dtMax*/,
146 const Coord& /*omega*/,
147 const Coord& /*normal*/,
148 const Coord& /*tangent*/,
149 const Coord& /*binormal*/,
150 const Coord& /*position*/) const
151 {
152 Errors::errorMessage("solveRiemannInternMRF not available for required model");
153 };
154
159 virtual void solveRiemannWall(Cell& /*cellLeft*/, const double& /*dxLeft*/, double& /*dtMax*/, std::vector<double>& /*boundData*/) const
160 {
161 Errors::errorMessage("solveRiemannWall or solveRiemannSymmetry not available for required model");
162 };
163
168 virtual void solveRiemannSymmetry(Cell& cellLeft, const double& dxLeft, double& dtMax, std::vector<double>& boundData) const
169 {
170 this->solveRiemannWall(cellLeft, dxLeft, dtMax, boundData);
171 };
172
179 Cell& /*cellLeft*/, const double& /*dxLeft*/, double& /*dtMax*/, double /*wallVelocity*/, std::vector<double>& /*boundData*/) const
180 {
181 Errors::errorMessage("solveRiemannMovingWall not available for required model");
182 };
183
191 virtual void solveRiemannInletTank(Cell& /*cellLeft*/,
192 const double& /*dxLeft*/,
193 double& /*dtMax*/,
194 const double* /*ak0*/,
195 const double* /*rhok0*/,
196 const double& /*p0*/,
197 const double& /*T0*/,
198 std::vector<double>& /*boundData*/) const
199 {
200 Errors::errorMessage("solveRiemannInletTank not available for required model");
201 };
202
211 virtual void solveRiemannInletInjStagState(Cell& /*cellLeft*/,
212 const double& /*dxLeft*/,
213 double& /*dtMax*/,
214 const double /*m0*/,
215 const double* /*ak0*/,
216 const double* /*rhok0*/,
217 const double* /*pk0*/,
218 std::vector<double>& /*boundData*/) const
219 {
220 Errors::errorMessage("solveRiemannInletInjStagState not available for required model");
221 };
222
230 virtual void solveRiemannInletInjTemp(Cell& /*cellLeft*/,
231 const double& /*dxLeft*/,
232 double& /*dtMax*/,
233 const double /*m0*/,
234 const double* /*Tk0*/,
235 const double* /*ak0*/,
236 std::vector<double>& /*boundData*/) const
237 {
238 Errors::errorMessage("solveRiemannInletInjTemp not available for required model");
239 };
240
247 Cell& /*cellLeft*/, const double& /*dxLeft*/, double& /*dtMax*/, const double /*p0*/, std::vector<double>& /*boundData*/) const
248 {
249 Errors::errorMessage("solveRiemannOutletPressure not available for required model");
250 };
251
258 Cell& /*cellLeft*/, const double& /*dxLeft*/, double& /*dtMax*/, const double /*m0*/, std::vector<double>& /*boundData*/) const
259 {
260 Errors::errorMessage("solveRiemannOutletMassflow not available for required model");
261 };
262
263 virtual void solveRiemannNullFlux() const { Errors::errorMessage("solveRiemannNullFlux not available for required model"); };
264
265 //Transports Riemann solvers
266 //--------------------------
270 virtual void solveRiemannTransportIntern(Cell& /*cellLeft*/, Cell& /*cellRight*/)
271 {
272 Errors::errorMessage("solveRiemannTransportIntern not available for required model");
273 };
274
275 virtual void solveRiemannTransportWall() { Errors::errorMessage("solveRiemannTransportWall not available for required model"); };
279 virtual void solveRiemannTransportMovingWall(Cell& /*cellLeft*/, double /*wallVelocity*/)
280 {
281 Errors::errorMessage("solveRiemannTransportMovingWall not available for required model");
282 };
283
286 virtual void solveRiemannTransportInletInjStagState(Cell& /*cellLeft*/, double* /*valueTransports*/)
287 {
288 Errors::errorMessage("solveRiemannTransportInletInjStagState not available for required model");
289 };
290
293 virtual void solveRiemannTransportInletTank(Cell& /*cellLeft*/, double* /*valueTransports*/)
294 {
295 Errors::errorMessage("solveRiemannTransportInletTank not available for required model");
296 };
297
300 virtual void solveRiemannTransportOutletPressure(Cell& /*cellLeft*/, double* /*valueTransports*/)
301 {
302 Errors::errorMessage("solveRiemannTransportOutletPressure not available for required model");
303 };
304
309 virtual void reverseProjection(const Coord /*normal*/, const Coord /*tangent*/, const Coord /*binormal*/) const
310 {
311 Errors::errorMessage("reverseProjection not available for required model");
312 };
313
314 //Relaxations
315 //-----------
320 void relaxations(Cell* cell, const double& dt, Prim type = vecPhases) const;
324 virtual void correctionEnergy(Cell* /*cell*/, Prim /*type*/ = vecPhases) const {};
325
326 //Low-Mach preconditioning
327 //------------------------
328 virtual void lowMachSoundSpeed(double& /*machRef*/,
329 const double& /*uL*/,
330 double& /*cL*/,
331 const double& /*uR*/ = Errors::defaultDouble,
332 double& /*cR*/ = Tools::uselessDouble) const
333 {
334 Errors::errorMessage("lowMachSoundSpeed not available for required model");
335 };
336
337 //Moving Reference Frame
338 //----------------------
339 virtual void addNonConsMrfFlux(Phase** /*phases*/) { Errors::errorMessage("addNonConsMrfFlux not available for required model"); };
340 virtual void reverseProjectionMrfFlux(const Coord /*normal*/, const Coord /*tangent*/, const Coord /*binormal*/) const
341 {
342 Errors::errorMessage("reverseProjectionMrfFlux not available for required model");
343 };
344
345 //Compaction
346 //----------
351 virtual void readCompactionParameters(tinyxml2::XMLElement* /*elementCompaction*/, std::string /*fileName*/, const int& /*k*/)
352 {
353 Errors::errorMessage("readCompactionParameters not available for required model");
354 };
355
358 virtual bool compaction(const int& /*k*/) const
359 {
360 Errors::errorMessage("compaction not available for required model");
361 return false;
362 };
363
366 virtual const double& getDensityReference(const int& /*k*/) const
367 {
368 Errors::errorMessage("getDensityReference not available for required model");
370 };
371
378 virtual double computeEnergyCompaction(const int& /*k*/, const double& /*alpha*/, const double& /*density*/, const double& /*lambda*/) const
379 {
380 Errors::errorMessage("computeEnergyCompaction not available for required model");
382 };
383
390 virtual double
391 computeCompactionPressure_dkappadxi(const int& /*k*/, const double& /*alpha*/, const double& /*density*/, const double& /*lambda*/) const
392 {
393 Errors::errorMessage("computeCompactionPressure_dkappadxi not available for required model");
395 };
396
403 virtual double
404 computeCompactionPressure_dkappadalpha(const int& /*k*/, const double& /*alpha*/, const double& /*density*/, const double& /*lambda*/) const
405 {
406 Errors::errorMessage("computeCompactionPressure_dkappadalpha not available for required model");
408 };
409
419 const int& /*k*/, const double& /*alpha*/, const double& /*density*/, const double& /*lambda*/, const double& /*pc*/, double& /*f*/) const
420 {
421 Errors::errorMessage("computeCompactionPlasticity not available for required model");
423 };
424
425 //Solid elasticity and plasticity
426 //-------------------------------
431 virtual void readSolidParameters(tinyxml2::XMLElement* /*elementSolid*/, std::string /*fileName*/, const int& /*k*/)
432 {
433 Errors::errorMessage("readSolidParameters not available for required model");
434 };
435
437 virtual const double* getDensityReference() const
438 {
439 Errors::errorMessage("getDensityReference not available for required model");
440 return 0;
441 };
442
444 virtual const double* getElasticParameterA() const
445 {
446 Errors::errorMessage("getElasticParameterA not available for required model");
447 return 0;
448 };
449
451 virtual const double* getShearModulus() const
452 {
453 Errors::errorMessage("getShearModulus not available for required model");
454 return 0;
455 };
456
457 virtual const double* getChi() const
458 {
459 Errors::errorMessage("getChi not available for required model");
460 return 0;
461 }; //KS//NF
462
464 virtual const double* getElasticityLimit() const
465 {
466 Errors::errorMessage("getElasticityLimit not available for required model");
467 return 0;
468 };
469
473 virtual double computeElasticEnergy(const int& /*k*/, const Tensor& /*cobase*/) const
474 {
475 Errors::errorMessage("computeElasticEnergy not available for required model");
477 };
478
486 virtual void computeElasticEnergyAndStressTensor(const int& /*k*/,
487 const Tensor& /*cobase*/,
488 const double& /*pressure*/,
489 const double& /*density*/,
490 double& /*elasticEnergy*/,
491 Tensor& /*stressTensor*/) const
492 {
493 Errors::errorMessage("computeElasticEnergyAndStressTensor not available for required model");
494 };
495
500 virtual double computeSquareLongitudinalWaveSpeed(const int& /*k*/, const Phase& /*phase*/)
501 {
502 Errors::errorMessage("computeSquareLongitudinalWaveSpeed not available for required model");
504 };
505
506 //Accessors
507 //---------
514 virtual double selectScalar(Phase** /*phases*/, Mixture* /*mixture*/, Transport* /*transports*/, Variable /*nameVariable*/, int /*num*/ = 0) const
515 {
516 Errors::errorMessage("selectScalar not available for required model");
518 };
519
521 virtual const double& getSM()
522 {
523 Errors::errorMessage("getSM not available for required model");
525 };
526
529 virtual const Coord& getVelocity(const Cell* /*cell*/) const
530 {
531 Errors::errorMessage("getVelocity not available for required model");
532 return Coord::defaultCoord;
533 };
534 virtual Coord& getVelocity(Cell* /*cell*/)
535 {
536 Errors::errorMessage("getVelocity not available for required model");
538 };
539
540 virtual const Coord& getVectorP(const Cell* /*cell*/) const
541 {
542 Errors::errorMessage("getVectorP not available for required model");
543 return Coord::defaultCoord;
544 };
545 virtual Coord& getVectorP(Cell* /*cell*/)
546 {
547 Errors::errorMessage("getVectorP not available for required model");
549 };
550
551 std::vector<Relaxation*>* getRelaxations() { return &m_relaxations; };
552
553 void printInfo() const;
554 virtual const std::string& whoAmI() const { return Errors::defaultString; };
555
556 virtual void setSmoothCrossSection1d(const bool& /*applySmooth*/)
557 {
558 Errors::errorMessage("setSmoothCrossSection1d not available for required model");
559 };
560 virtual const bool& isSmoothCrossSection1d() const { return m_smoothCrossSection1d; };
561
562 const bool& getLowMach() const { return m_lowMach; };
563 void setLowMach(const bool& lowMach) { m_lowMach = lowMach; };
564 virtual void setMachRefMin(const double& machRefMin) { m_machRefMin = machRefMin; };
565
569 virtual void setPhaseSlope(Phase& /*phaseSlope*/, int /*k*/) {};
572 virtual void setSlopeDistance(const double& /*slopeDistance*/) {};
573
574 protected:
575 // clang-format off
576 std::string m_name;
577 std::vector<Relaxation*> m_relaxations;
578
582 // clang-format on
583 private:
584};
585
586#endif // MODELE_H
static std::vector< double > DEFAULT_VEC_INTERFACE_DATA(VarBoundary::SIZE, 0.)
Prim
Enumeration for the primitive-variable type (usefull for second order, slopes, etc....
Definition Tools.h:40
@ vecPhases
Definition Tools.h:41
@ SIZE
Definition Tools.h:112
Variable
Enumeration for the flow variables.
Definition Tools.h:163
Base class for a mesh cell.
Definition Cell.h:59
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
static const std::string defaultString
Definition Errors.h:100
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
Mixture variable gradients. Stored for 2nd-order computation on unstructured mesh (O2 NS).
Definition GradMixture.h:45
Phase variable gradients. Stored for 2nd-order computation on unstructured mesh (O2 NS).
Definition GradPhase.h:44
Abstract class for mixture variables.
Definition Mixture.h:43
Abstract class for mathematical flow models.
Definition Model.h:50
void relaxations(Cell *cell, const double &dt, Prim type=vecPhases) const
Run all the relaxations.
Definition Model.cpp:73
virtual void allocateMixtureGradient(GradMixture **)
Instanciate gradient mixture variable.
Definition Model.h:81
virtual double selectScalar(Phase **, Mixture *, Transport *, Variable, int=0) const
Select a specific scalar variable.
Definition Model.h:514
virtual void solveRiemannMovingWall(Cell &, const double &, double &, double, std::vector< double > &) const
Moving wall half Riemann solver.
Definition Model.h:178
virtual void solveRiemannTransportIntern(Cell &, Cell &)
Cell to cell Riemann solver for transport equations.
Definition Model.h:270
virtual void allocatePhaseSolid(Phase **)
Instanciate solid phase variable.
Definition Model.h:66
virtual void setSmoothCrossSection1d(const bool &)
Definition Model.h:556
virtual const bool & isSmoothCrossSection1d() const
Definition Model.h:560
virtual void solveRiemannInletInjTemp(Cell &, const double &, double &, const double, const double *, const double *, std::vector< double > &) const
Inlet injection using temperature half Riemann solver.
Definition Model.h:230
virtual double computeSquareLongitudinalWaveSpeed(const int &, const Phase &)
Compute the square longitudinal wave speed of the solid.
Definition Model.h:500
virtual void computeElasticEnergyAndStressTensor(const int &, const Tensor &, const double &, const double &, double &, Tensor &) const
Compute the elastic energy and stress tensor of the solid.
Definition Model.h:486
virtual const double * getElasticParameterA() const
Return the elastic parameter a of the one-parameter model for each phase.
Definition Model.h:444
virtual const Coord & getVectorP(const Cell *) const
Definition Model.h:540
virtual void setSlopeDistance(const double &)
Set the geometric distance over which the in-cell slopes extrapolate (cell width along the face norma...
Definition Model.h:572
std::vector< Relaxation * > * getRelaxations()
Definition Model.h:551
virtual Coord & getVelocity(Cell *)
Definition Model.h:534
double m_machRefMin
Minimum Mach number limit for L-M preconditionning used when local Mach number is below this value (d...
Definition Model.h:580
const bool & getLowMach() const
Definition Model.h:562
std::string m_name
Name of the required model.
Definition Model.h:576
void allocateEos(Cell &cell) const
Associate equations of state.
Definition Model.cpp:55
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.
Definition Model.h:211
void setLowMach(const bool &lowMach)
Definition Model.h:563
virtual void allocatePhaseGradient(GradPhase **)
Instanciate gradient phase variable.
Definition Model.h:69
virtual void solveRiemannIntern(Cell &, Cell &, const double &, const double &, double &, std::vector< double > &=DEFAULT_VEC_INTERFACE_DATA) const
Cell to cell Riemann solver.
Definition Model.h:121
virtual void allocateMixture(Mixture **)
Instanciate mixture variable.
Definition Model.h:78
virtual void solveRiemannNullFlux() const
No flux half Riemann solver (return null flux to use with 1D geometry with smooth varying cross secti...
Definition Model.h:263
virtual void fulfillState(Phase **, Mixture *)
Complete a thermodynamics state frome minimum variables depending on the model.
Definition Model.h:95
virtual void solveRiemannTransportOutletPressure(Cell &, double *)
Outlet at imposed pressure half Riemann solver for transport equations.
Definition Model.h:300
virtual void fulfillStateResume(Phase **, Mixture *)
Complete some variables if necessary when resuming a simulation.
Definition Model.h:100
virtual void solveRiemannTransportInletInjStagState(Cell &, double *)
Inlet injection using stagnation state half Riemann solver for transport equations.
Definition Model.h:286
void printInfo() const
Definition Model.cpp:82
virtual void allocateCons(Flux **)
Allocate conservative variable arrays.
Definition Model.h:60
virtual void addNonConsMrfFlux(Phase **)
Definition Model.h:339
virtual void solveRiemannTransportWall()
Wall half Riemann solver for transport equations.
Definition Model.h:275
virtual void lowMachSoundSpeed(double &, const double &, double &, const double &=Errors::defaultDouble, double &=Tools::uselessDouble) const
Definition Model.h:328
bool m_smoothCrossSection1d
1D geometry with smooth cross section variation (default: false)
Definition Model.h:581
virtual void setMachRefMin(const double &machRefMin)
Definition Model.h:564
virtual const double * getDensityReference() const
Return the reference density for each phase.
Definition Model.h:437
virtual double computeEnergyCompaction(const int &, const double &, const double &, const double &) const
Return the compaction energy of the fluid/solid.
Definition Model.h:378
virtual void solveRiemannOutletMassflow(Cell &, const double &, double &, const double, std::vector< double > &) const
Outlet at imposed massflow half Riemann solver.
Definition Model.h:257
virtual void allocatePhaseSolidGradient(GradPhase **)
Instanciate gradient solid-phase variable.
Definition Model.h:72
Model(const std::string &name, const int &numbTransports)
Generic model constructor.
Definition Model.cpp:35
virtual const double & getDensityReference(const int &) const
Return the compaction reference density of phase k.
Definition Model.h:366
virtual const double * getShearModulus() const
Return the shear modulus for each phase.
Definition Model.h:451
void initializeRelaxation(Cell *cell) const
Initialize the theoritical critical pressure of the fluid (only required for PTMu relax).
Definition Model.cpp:64
virtual void allocatePhase(Phase **)
Instanciate fluid phase variable.
Definition Model.h:63
virtual void reverseProjectionMrfFlux(const Coord, const Coord, const Coord) const
Definition Model.h:340
virtual const Coord & getVelocity(const Cell *) const
Return the fluid velocity of the corresponding cell.
Definition Model.h:529
virtual void readSolidParameters(tinyxml2::XMLElement *, std::string, const int &)
Read solid parameters.
Definition Model.h:431
virtual Coord & getVectorP(Cell *)
Definition Model.h:545
virtual void solveRiemannSymmetry(Cell &cellLeft, const double &dxLeft, double &dtMax, std::vector< double > &boundData) const
Symmetry half Riemann solver.
Definition Model.h:168
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.
Definition Model.h:391
virtual void readCompactionParameters(tinyxml2::XMLElement *, std::string, const int &)
Read compaction parameters.
Definition Model.h:351
virtual void solveRiemannTransportMovingWall(Cell &, double)
Moving wall half Riemann solver for transport equations.
Definition Model.h:279
virtual void solveRiemannInletTank(Cell &, const double &, double &, const double *, const double *, const double &, const double &, std::vector< double > &) const
Inlet tank half Riemann solver.
Definition Model.h:191
virtual bool compaction(const int &) const
Return if compaction is activated or not.
Definition Model.h:358
virtual const std::string & whoAmI() const
Definition Model.h:554
virtual double computeElasticEnergy(const int &, const Tensor &) const
Compute the elastic energy of the solid.
Definition Model.h:473
virtual void reverseProjection(const Coord, const Coord, const Coord) const
Flux reverse projection in the absolute Cartesian coordinate system.
Definition Model.h:309
virtual const double & getSM()
Return the local fluid velocity.
Definition Model.h:521
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.
Definition Model.h:418
virtual ~Model()
Definition Model.cpp:45
virtual void solveRiemannOutletPressure(Cell &, const double &, double &, const double, std::vector< double > &) const
Outlet at imposed pressure half Riemann solver.
Definition Model.h:246
bool m_lowMach
Low-Mach preconditioning (default: false).
Definition Model.h:579
virtual void solveRiemannWall(Cell &, const double &, double &, std::vector< double > &) const
Wall half Riemann solver.
Definition Model.h:159
virtual const double * getElasticityLimit() const
Return the limit of elasticity for each phase.
Definition Model.h:464
virtual void correctionEnergy(Cell *, Prim=vecPhases) const
Energy correction after relaxations (only for PUEq model).
Definition Model.h:324
std::vector< Relaxation * > m_relaxations
Vector of relaxation procedure.
Definition Model.h:577
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.
Definition Model.h:141
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.
Definition Model.h:404
virtual void solveRiemannTransportInletTank(Cell &, double *)
Inlet tank half Riemann solver for transport equations.
Definition Model.h:293
virtual const double * getChi() const
Return the chi modulus for each phase.
Definition Model.h:457
virtual void setPhaseSlope(Phase &, int)
Set the slope values for the extrapolation within the cell.
Definition Model.h:569
virtual void initializeAugmentedVariables(Cell *)
Complete the augmented variables (such as the ones of Navier-Stokes-Korteweg model).
Definition Model.h:107
Abstract class for a phase.
Definition Phase.h:47
Class for a matrix 3x3 system object.
Definition Tensor.h:57
static double uselessDouble
Definition Tools.h:306
Class for additional transport equations.
Definition Transport.h:41
Definition tinyxml2.h:1148