ECOGEN 6.0
Evolutive, Compressible, Open, Genuine, Easy, N-phase
Loading...
Searching...
No Matches
APUEqSurfaceTension.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 APUEQSURFACETENSION_H
32#define APUEQSURFACETENSION_H
33
34#include "../APUEq.h"
35#include "QAPSurfaceTension.h"
36
40{
41 public:
43 int& numberQPA,
44 std::vector<std::string> nameTransports,
45 std::vector<std::string> namePhases,
46 std::string nameFichier = "Unknown file");
47 ~APUEqSurfaceTension() override;
48
49 void addQuantityAddPhys(Cell* cell) override;
50
52 void solveFluxAddPhys(CellInterface* cellInterface) override;
53 void solveFluxAddPhysBoundary(CellInterface* cellInterface) override;
59 void solveFluxSurfaceTensionInner(const Coord& velocityLeft, const Coord& velocityRight, const Coord& gradCLeft, const Coord& gradCRight) const;
63 void solveFluxSurfaceTensionNonReflecting(const Coord& velocityLeft, const Coord& gradCLeft) const;
66 void solveFluxSurfaceTensionWall(const Coord& gradCLeft) const;
73 void addNonCons(Cell* /*cell*/) override {}; //The surface-tension effects do not involve non-conservative terms.
74 void addSymmetricTermsRadialAxisOnX(Cell* cell) override;
75 void addSymmetricTermsRadialAxisOnY(Cell* cell) override;
76
77 void reinitializeColorFunction(std::vector<Cell*>* cellsLvl, const int& lvl) override;
79
80 void communicationsAddPhys(const int& dim, const int& lvl) override;
81 const int& getNumTransportAssociated() const override { return m_numTransportAssociated; };
82
83 protected:
84 private:
88 double m_sigma;
92
100};
101
102#endif // APUEQSURFACETENSION_H
@ QPA
Definition Tools.h:173
int m_numTransportAssociated
Number of the associated variable for each cell (m_vecTransports).
Definition APUEqSurfaceTension.h:86
Coord m_gradCRight
Right gradient of the color function vector for the flux computation (buffer).
Definition APUEqSurfaceTension.h:96
void reinitializeColorFunction(std::vector< Cell * > *cellsLvl, const int &lvl) override
Reinitialize the color function for the surface-tension terms with the volume fraction equation.
Definition APUEqSurfaceTension.cpp:362
Coord m_normal
Normal vector of the corresponding face for the flux computation (buffer).
Definition APUEqSurfaceTension.h:97
void solveFluxAddPhys(CellInterface *cellInterface) override
Solve the additional physics flux between two cells.
Definition APUEqSurfaceTension.cpp:115
int m_numQPAGradC
Number of the associated variable for each cell (m_vecGrandeursAddPhys).
Definition APUEqSurfaceTension.h:87
Coord m_binormal
Binormal vector of the corresponding face for the flux computation (buffer).
Definition APUEqSurfaceTension.h:99
int m_numPhaseAssociated
Number of the associated variable for each cell (m_vecPhases).
Definition APUEqSurfaceTension.h:91
void solveFluxSurfaceTensionInner(const Coord &velocityLeft, const Coord &velocityRight, const Coord &gradCLeft, const Coord &gradCRight) const
Solve the surface-tension flux between two cells.
Definition APUEqSurfaceTension.cpp:188
std::string m_namePhaseAssociated
Name of the associated variable for each cell (m_vecPhases).
Definition APUEqSurfaceTension.h:90
Coord m_tangent
Tangent vector of the corresponding face for the flux computation (buffer).
Definition APUEqSurfaceTension.h:98
bool reinitializationActivated() override
Send back true if the reinitialization of the color function is activated.
Definition APUEqSurfaceTension.h:78
void solveFluxSurfaceTensionWall(const Coord &gradCLeft) const
Solve the surface-tension flux at a boundary with a wall type.
Definition APUEqSurfaceTension.cpp:241
void addQuantityAddPhys(Cell *cell) override
Add the quantities for the additional physics.
Definition APUEqSurfaceTension.cpp:103
void addNonCons(Cell *) override
Add the non-conservative terms of the corresponding additional physics in a cell.
Definition APUEqSurfaceTension.h:73
bool m_reinitializationActivated
Reinitialization of the transported variable with the volume fraction of a phase.
Definition APUEqSurfaceTension.h:89
void communicationsAddPhys(const int &dim, const int &lvl) override
Communication of the additional physics quantities for parallel purposes with Adaptive Mesh Refinemen...
Definition APUEqSurfaceTension.cpp:373
void addSymmetricTermsRadialAxisOnX(Cell *cell) override
Add the symmetrical terms of the corresponding additional physics in a cell (when radial axis is on X...
Definition APUEqSurfaceTension.cpp:299
double m_sigma
Surface tension coefficient.
Definition APUEqSurfaceTension.h:88
void addSymmetricTermsRadialAxisOnY(Cell *cell) override
Add the symmetrical terms of the corresponding additional physics in a cell (when radial axis is on Y...
Definition APUEqSurfaceTension.cpp:330
std::string m_nameTransportAssociated
Name of the associated variable for each cell (m_vecTransports).
Definition APUEqSurfaceTension.h:85
const int & getNumTransportAssociated() const override
Return the associated number of the transport equation (only used for surface tension).
Definition APUEqSurfaceTension.h:81
Coord m_velocityLeft
Left velocity vector for the flux computation (buffer).
Definition APUEqSurfaceTension.h:93
Coord m_velocityRight
Right velocity vector for the flux computation (buffer).
Definition APUEqSurfaceTension.h:95
~APUEqSurfaceTension() override
Definition APUEqSurfaceTension.cpp:99
void solveFluxSurfaceTensionInletInjStagState() const
Solve the surface-tension flux at a boundary with an inlet injection using stagnation state type.
Definition APUEqSurfaceTension.cpp:272
void solveFluxSurfaceTensionOutletPressure() const
Solve the surface-tension flux at a boundary with an outlet at imposed pressure type.
Definition APUEqSurfaceTension.cpp:259
void solveFluxSurfaceTensionOther() const
Solve the surface-tension flux at a boundary with non-defined type yet.
Definition APUEqSurfaceTension.cpp:285
APUEqSurfaceTension(tinyxml2::XMLElement *element, int &numberQPA, std::vector< std::string > nameTransports, std::vector< std::string > namePhases, std::string nameFichier="Unknown file")
Definition APUEqSurfaceTension.cpp:40
Coord m_gradCLeft
Left gradient of the color function for the flux computation (buffer).
Definition APUEqSurfaceTension.h:94
void solveFluxSurfaceTensionNonReflecting(const Coord &velocityLeft, const Coord &gradCLeft) const
Solve the surface-tension flux at a boundary with an non-reflecting type.
Definition APUEqSurfaceTension.cpp:234
double computeEnergyAddPhys(QuantitiesAddPhys *QPA) override
Compute and send back mass energy linked to the physics (0 if no linked energy).
Definition APUEqSurfaceTension.cpp:107
void solveFluxAddPhysBoundary(CellInterface *cellInterface) override
Solve the additional physics flux at a domain boundary.
Definition APUEqSurfaceTension.cpp:144
APUEq()
Definition APUEq.cpp:35
Definition CellInterface.h:48
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
General class for additional-physics quantities.
Definition QuantitiesAddPhys.h:42
Definition tinyxml2.h:1148