ECOGEN 6.0
Evolutive, Compressible, Open, Genuine, Easy, N-phase
Loading...
Searching...
No Matches
ModPUEq.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 MODPUEQ_H
32#define MODPUEQ_H
33
34#include "../Model.h"
35#include "../../Order1/Cell.h"
36#include "MixPUEq.h"
37
38class ModPUEq;
39
40#include "FluxPUEq.h"
41
44class ModPUEq : public ModUEq
45{
46 public:
51 ModPUEq(const int& numbTransports, const int& numbPhases, const double& thresholdPressure);
52 ~ModPUEq() override;
53
54 void allocateCons(Flux** cons) override;
55 void allocatePhase(Phase** phase) override;
56 void allocateMixture(Mixture** mixture) override;
57
59 void fulfillStateResume(Phase** phases, Mixture* mixture) override;
60
64 void correctionEnergy(Cell* cell, Prim type = vecPhases) const override;
65
66 //Accessors
67 //---------
74 double selectScalar(Phase** phases, Mixture* mixture, Transport* transports, Variable nameVariable, int num = 0) const override;
75
76 private:
77 static const std::string NAME;
78
79 friend class FluxPUEq;
80};
81
82#endif // MODPUEQ_H
Prim
Enumeration for the primitive-variable type (usefull for second order, slopes, etc....
Definition Tools.h:40
@ vecPhases
Definition Tools.h:41
Variable
Enumeration for the flow variables.
Definition Tools.h:163
Base class for a mesh cell.
Definition Cell.h:59
Abstract class for conservative variables and fluxes.
Definition Flux.h:43
Abstract class for mixture variables.
Definition Mixture.h:43
Model class for the pressure-velocity-equilibrium (mechanical equilibrium) system of equations (Kapil...
Definition ModPUEq.h:45
double selectScalar(Phase **phases, Mixture *mixture, Transport *transports, Variable nameVariable, int num=0) const override
Select a specific scalar variable.
Definition ModPUEq.cpp:83
void allocateCons(Flux **cons) override
Allocate conservative variable arrays.
Definition ModPUEq.cpp:55
void allocatePhase(Phase **phase) override
Instanciate fluid phase variable.
Definition ModPUEq.cpp:59
void fulfillStateResume(Phase **phases, Mixture *mixture) override
Definition ModPUEq.cpp:67
static const std::string NAME
Definition ModPUEq.h:77
friend class FluxPUEq
Definition ModPUEq.h:79
void correctionEnergy(Cell *cell, Prim type=vecPhases) const override
Energy correction after relaxations (only for PUEq model).
Definition ModPUEq.cpp:77
ModPUEq(const int &numbTransports, const int &numbPhases, const double &thresholdPressure)
PUEq model constructor.
Definition ModPUEq.cpp:39
~ModPUEq() override
Definition ModPUEq.cpp:51
void allocateMixture(Mixture **mixture) override
Instanciate mixture variable.
Definition ModPUEq.cpp:63
ModUEq(const int &numbTransports, const int &numbPhases)
UEq model constructor.
Definition ModUEq.cpp:37
Abstract class for a phase.
Definition Phase.h:47
Class for additional transport equations.
Definition Transport.h:41