ECOGEN 4.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:
42 APUEqSurfaceTension(tinyxml2::XMLElement* element, int& numberQPA, std::vector<std::string> nameTransports, std::vector<std::string> namePhases, std::string nameFichier = "Unknown file");
43 virtual ~APUEqSurfaceTension();
44
45 virtual void addQuantityAddPhys(Cell* cell);
46
48 virtual void solveFluxAddPhys(CellInterface* cellInterface);
49 virtual void solveFluxAddPhysBoundary(CellInterface* cellInterface);
55 void solveFluxSurfaceTensionInner(const Coord& velocityLeft, const Coord& velocityRight, const Coord& gradCLeft, const Coord& gradCRight) const;
59 void solveFluxSurfaceTensionNonReflecting(const Coord& velocityLeft, const Coord& gradCLeft) const;
62 void solveFluxSurfaceTensionWall(const Coord& gradCLeft) const;
69 virtual void addNonCons(Cell* /*cell*/) {}; //The surface-tension effects do not involve non-conservative terms.
70 virtual void addSymmetricTermsRadialAxisOnX(Cell* cell);
71 virtual void addSymmetricTermsRadialAxisOnY(Cell* cell);
72
73 virtual void reinitializeColorFunction(std::vector<Cell*>* cellsLvl, const int& lvl);
75
76 virtual void communicationsAddPhys(const int& dim, const int& lvl);
77 virtual const int& getNumTransportAssociated() const { return m_numTransportAssociated; };
78
79 protected:
80
81 private:
85 double m_sigma;
89
97};
98
99#endif // APUEQSURFACETENSION_H
General class for surface tension for the velocity-equilibrium system of equations.
Definition APUEqSurfaceTension.h:40
virtual void addSymmetricTermsRadialAxisOnX(Cell *cell)
Add the symmetrical terms of the corresponding additional physic in a cell (when radial axis is on X)
Definition APUEqSurfaceTension.cpp:273
int m_numTransportAssociated
Number of the associated variable for each cell (m_vecTransports)
Definition APUEqSurfaceTension.h:83
Coord m_gradCRight
Right gradient of the color function vector for the flux computation (buffer)
Definition APUEqSurfaceTension.h:93
Coord m_normal
Normal vector of the corresponding face for the flux computation (buffer)
Definition APUEqSurfaceTension.h:94
int m_numQPAGradC
Number of the associated variable for each cell (m_vecGrandeursAddPhys)
Definition APUEqSurfaceTension.h:84
Coord m_binormal
Binormal vector of the corresponding face for the flux computation (buffer)
Definition APUEqSurfaceTension.h:96
int m_numPhaseAssociated
Number of the associated variable for each cell (m_vecPhases)
Definition APUEqSurfaceTension.h:88
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:167
virtual void addSymmetricTermsRadialAxisOnY(Cell *cell)
Add the symmetrical terms of the corresponding additional physic in a cell (when radial axis is on Y)
Definition APUEqSurfaceTension.cpp:303
std::string m_namePhaseAssociated
Name of the associated variable for each cell (m_vecPhases)
Definition APUEqSurfaceTension.h:87
Coord m_tangent
Tangent vector of the corresponding face for the flux computation (buffer)
Definition APUEqSurfaceTension.h:95
virtual void reinitializeColorFunction(std::vector< Cell * > *cellsLvl, const int &lvl)
Reinitialize the color function for the surface-tension terms with the volume fraction equation.
Definition APUEqSurfaceTension.cpp:333
void solveFluxSurfaceTensionWall(const Coord &gradCLeft) const
Solve the surface-tension flux at a boundary with a wall type.
Definition APUEqSurfaceTension.cpp:215
virtual void addQuantityAddPhys(Cell *cell)
Add the quantities for the additional physic.
Definition APUEqSurfaceTension.cpp:90
virtual void solveFluxAddPhys(CellInterface *cellInterface)
Solve the additional physic flux between two cells.
Definition APUEqSurfaceTension.cpp:105
bool m_reinitializationActivated
Reinitialization of the transported variable with the volume fraction of a phase.
Definition APUEqSurfaceTension.h:86
double m_sigma
Surface tension coefficient.
Definition APUEqSurfaceTension.h:85
virtual ~APUEqSurfaceTension()
Definition APUEqSurfaceTension.cpp:86
virtual const int & getNumTransportAssociated() const
Return the associated number of the transport equation (only used for surface tension)
Definition APUEqSurfaceTension.h:77
std::string m_nameTransportAssociated
Name of the associated variable for each cell (m_vecTransports)
Definition APUEqSurfaceTension.h:82
Coord m_velocityLeft
Left velocity vector for the flux computation (buffer)
Definition APUEqSurfaceTension.h:90
Coord m_velocityRight
Right velocity vector for the flux computation (buffer)
Definition APUEqSurfaceTension.h:92
virtual void communicationsAddPhys(const int &dim, const int &lvl)
Communication of the additional physics quantities for parallel purposes with Adaptive Mesh Refinemen...
Definition APUEqSurfaceTension.cpp:342
void solveFluxSurfaceTensionInletInjStagState() const
Solve the surface-tension flux at a boundary with an inlet injection using stagnation state type.
Definition APUEqSurfaceTension.cpp:246
void solveFluxSurfaceTensionOutletPressure() const
Solve the surface-tension flux at a boundary with an outlet at imposed pressure type.
Definition APUEqSurfaceTension.cpp:233
virtual bool reinitializationActivated()
Send back true if the reinitialization of the color function is activated.
Definition APUEqSurfaceTension.h:74
void solveFluxSurfaceTensionOther() const
Solve the surface-tension flux at a boundary with non-defined type yet.
Definition APUEqSurfaceTension.cpp:259
virtual void solveFluxAddPhysBoundary(CellInterface *cellInterface)
Solve the additional physic flux at a domain boundary.
Definition APUEqSurfaceTension.cpp:134
Coord m_gradCLeft
Left gradient of the color function for the flux computation (buffer)
Definition APUEqSurfaceTension.h:91
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:208
virtual void addNonCons(Cell *)
Add the non-conservative terms of the corresponding additional physic in a cell.
Definition APUEqSurfaceTension.h:69
virtual double computeEnergyAddPhys(QuantitiesAddPhys *QPA)
Compute and send back mass energy linked to the physic (0 if no linked energy)
Definition APUEqSurfaceTension.cpp:97
General class for additional physics for the velocity-equilibrium system of equations.
Definition APUEq.h:41
Definition CellInterface.h:52
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:1149