ECOGEN 6.0
Evolutive, Compressible, Open, Genuine, Easy, N-phase
Loading...
Searching...
No Matches
APUEqViscosity.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 APUEQVISCOSITY_H
32#define APUEQVISCOSITY_H
33
34#include "../APUEq.h"
35#include "QAPViscosity.h"
36#include "../../Eos/Eos.h"
37
40class APUEqViscosity : public APUEq
41{
42 public:
43 APUEqViscosity(int& numberQPA, Eos** eos, const int& numbPhases);
44 ~APUEqViscosity() override;
45
46 void addQuantityAddPhys(Cell* cell) override;
47
48 void solveFluxAddPhys(CellInterface* cellInterface) override;
49 void solveFluxAddPhysBoundary(CellInterface* cellInterface) override;
61 void solveFluxViscosityInner(const Coord& velocityLeft,
62 const Coord& velocityRight,
63 const Coord& gradULeft,
64 const Coord& gradURight,
65 const Coord& gradVLeft,
66 const Coord& gradVRight,
67 const Coord& gradWLeft,
68 const Coord& gradWRight,
69 const double& muMixLeft,
70 const double& muMixRight) const;
78 const Coord& velocityLeft, const Coord& gradULeft, const Coord& gradVLeft, const Coord& gradWLeft, const double& muMixLeft) const;
83 void solveFluxViscosityWall(const Coord& velocityLeft, const double& muMixLeft, const double& distLeft) const;
89 void solveFluxViscositySymmetry(const Coord& gradULeft, const Coord& gradVLeft, const Coord& gradWLeft, const double& muMixLeft) const;
96 void solveFluxViscosityOther() const;
97 void addNonCons(Cell* cell) override;
98 void addSymmetricTermsRadialAxisOnX(Cell* cell) override;
99 void addSymmetricTermsRadialAxisOnY(Cell* cell) override;
100
101 void communicationsAddPhys(const int& dim, const int& lvl) override;
102
103 protected:
104 private:
105 double* m_muk;
107
121};
122
123#endif // APUEQVISCOSITY_H
~APUEqViscosity() override
Definition APUEqViscosity.cpp:48
int m_numQPA
Number of the associated variable for each cell (m_vecGrandeursAddPhys).
Definition APUEqViscosity.h:106
void solveFluxViscosityInner(const Coord &velocityLeft, const Coord &velocityRight, const Coord &gradULeft, const Coord &gradURight, const Coord &gradVLeft, const Coord &gradVRight, const Coord &gradWLeft, const Coord &gradWRight, const double &muMixLeft, const double &muMixRight) const
Solve the viscosity flux between two cells.
Definition APUEqViscosity.cpp:172
void solveFluxAddPhys(CellInterface *cellInterface) override
Solve the additional physics flux between two cells.
Definition APUEqViscosity.cpp:56
void communicationsAddPhys(const int &dim, const int &lvl) override
Communication of the additional physics quantities for parallel purposes with Adaptive Mesh Refinemen...
Definition APUEqViscosity.cpp:409
Coord m_gradWLeft
Left gradient of the velocity in the z-direction for the flux computation (buffer).
Definition APUEqViscosity.h:111
Coord m_gradULeft
Left gradient of the velocity in the x-direction for the flux computation (buffer).
Definition APUEqViscosity.h:109
Coord m_velocityLeft
Left velocity vector for the flux computation (buffer).
Definition APUEqViscosity.h:108
Coord m_gradURight
Right gradient of the velocity in the x-direction for the flux computation (buffer).
Definition APUEqViscosity.h:114
void addSymmetricTermsRadialAxisOnX(Cell *cell) override
Add the symmetrical terms of the corresponding additional physics in a cell (when radial axis is on X...
Definition APUEqViscosity.cpp:345
Coord m_binormal
Binormal vector of the corresponding face for the flux computation (buffer).
Definition APUEqViscosity.h:120
Coord m_gradVLeft
Left gradient of the velocity in the y-direction for the flux computation (buffer).
Definition APUEqViscosity.h:110
void solveFluxViscosityNonReflecting(const Coord &velocityLeft, const Coord &gradULeft, const Coord &gradVLeft, const Coord &gradWLeft, const double &muMixLeft) const
Solve the viscosity flux at a boundary with a non-reflecting type.
Definition APUEqViscosity.cpp:249
void solveFluxViscositySymmetry(const Coord &gradULeft, const Coord &gradVLeft, const Coord &gradWLeft, const double &muMixLeft) const
Solve the viscosity flux at a boundary with a symmetry type.
Definition APUEqViscosity.cpp:278
APUEqViscosity(int &numberQPA, Eos **eos, const int &numbPhases)
Definition APUEqViscosity.cpp:37
void addNonCons(Cell *cell) override
Add the non-conservative terms of the corresponding additional physics in a cell.
Definition APUEqViscosity.cpp:318
Coord m_gradWRight
Right gradient of the velocity in the z-direction for the flux computation (buffer).
Definition APUEqViscosity.h:116
void solveFluxViscosityWall(const Coord &velocityLeft, const double &muMixLeft, const double &distLeft) const
Solve the viscosity flux at a boundary with a wall type.
Definition APUEqViscosity.cpp:257
Coord m_gradVRight
Right gradient of the velocity in the y-direction for the flux computation (buffer).
Definition APUEqViscosity.h:115
Tensor m_tensorRight
Right tensor of the velocity gradients (buffer).
Definition APUEqViscosity.h:117
double * m_muk
Dynamic viscosity (kg/m/s or Pa.s) of each phase (taken from the EOS classes) (buffer).
Definition APUEqViscosity.h:105
void addQuantityAddPhys(Cell *cell) override
Add the quantities for the additional physics.
Definition APUEqViscosity.cpp:52
void addSymmetricTermsRadialAxisOnY(Cell *cell) override
Add the symmetrical terms of the corresponding additional physics in a cell (when radial axis is on Y...
Definition APUEqViscosity.cpp:377
Coord m_tangent
Tangent vector of the corresponding face for the flux computation (buffer).
Definition APUEqViscosity.h:119
void solveFluxAddPhysBoundary(CellInterface *cellInterface) override
Solve the additional physics flux at a domain boundary.
Definition APUEqViscosity.cpp:100
Tensor m_tensorLeft
Left tensor of the velocity gradients (buffer).
Definition APUEqViscosity.h:112
void solveFluxViscosityOther() const
Solve the viscosity flux at a boundary with non-defined type yet.
Definition APUEqViscosity.cpp:301
Coord m_velocityRight
Right velocity vector for the flux computation (buffer).
Definition APUEqViscosity.h:113
Coord m_normal
Normal vector of the corresponding face for the flux computation (buffer).
Definition APUEqViscosity.h:118
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 Equation of State (EOS).
Definition Eos.h:62
Class for a matrix 3x3 system object.
Definition Tensor.h:57