ECOGEN 4.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 virtual ~APUEqViscosity();
45
46 virtual void addQuantityAddPhys(Cell* cell);
47
48 virtual void solveFluxAddPhys(CellInterface* cellInterface);
49 virtual void solveFluxAddPhysBoundary(CellInterface* cellInterface);
61 void solveFluxViscosityInner(const Coord& velocityLeft, const Coord& velocityRight, const Coord& gradULeft, const Coord& gradURight, const Coord& gradVLeft, const Coord& gradVRight,
62 const Coord& gradWLeft, const Coord& gradWRight, const double& muMixLeft, const double& muMixRight) const;
69 void solveFluxViscosityNonReflecting(const Coord& velocityLeft, const Coord& gradULeft, const Coord& gradVLeft, const Coord& gradWLeft, const double& muMixLeft) const;
74 void solveFluxViscosityWall(const Coord& velocityLeft, const double& muMixLeft, const double& distLeft) const;
80 void solveFluxViscositySymmetry(const Coord& gradULeft, const Coord& gradVLeft, const Coord& gradWLeft, const double& muMixLeft) const;
87 void solveFluxViscosityOther() const;
88 virtual void addNonCons(Cell* cell);
89 virtual void addSymmetricTermsRadialAxisOnX(Cell* cell);
90 virtual void addSymmetricTermsRadialAxisOnY(Cell* cell);
91
92 virtual void communicationsAddPhys(const int& dim, const int& lvl);
93
94 protected:
95
96 private:
97 double* m_muk;
99
113};
114
115#endif // APUEQVISCOSITY_H
General class for thermal viscosity for the velocity-equilibrium system of equations.
Definition APUEqViscosity.h:41
int m_numQPA
Number of the associated variable for each cell (m_vecGrandeursAddPhys)
Definition APUEqViscosity.h:98
virtual void addSymmetricTermsRadialAxisOnY(Cell *cell)
Add the symmetrical terms of the corresponding additional physic in a cell (when radial axis is on Y)
Definition APUEqViscosity.cpp:352
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:152
virtual void solveFluxAddPhysBoundary(CellInterface *cellInterface)
Solve the additional physic flux at a domain boundary.
Definition APUEqViscosity.cpp:104
Coord m_gradWLeft
Left gradient of the velocity in the z-direction for the flux computation (buffer)
Definition APUEqViscosity.h:103
Coord m_gradULeft
Left gradient of the velocity in the x-direction for the flux computation (buffer)
Definition APUEqViscosity.h:101
Coord m_velocityLeft
Left velocity vector for the flux computation (buffer)
Definition APUEqViscosity.h:100
virtual void addQuantityAddPhys(Cell *cell)
Add the quantities for the additional physic.
Definition APUEqViscosity.cpp:53
Coord m_gradURight
Right gradient of the velocity in the x-direction for the flux computation (buffer)
Definition APUEqViscosity.h:106
Coord m_binormal
Binormal vector of the corresponding face for the flux computation (buffer)
Definition APUEqViscosity.h:112
Coord m_gradVLeft
Left gradient of the velocity in the y-direction for the flux computation (buffer)
Definition APUEqViscosity.h:102
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:221
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:251
Coord m_gradWRight
Right gradient of the velocity in the z-direction for the flux computation (buffer)
Definition APUEqViscosity.h:108
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:229
Coord m_gradVRight
Right gradient of the velocity in the y-direction for the flux computation (buffer)
Definition APUEqViscosity.h:107
Tensor m_tensorRight
Right tensor of the velocity gradients (buffer)
Definition APUEqViscosity.h:109
double * m_muk
Dynamic viscosity (kg/m/s or Pa.s) of each phase (taken from the EOS classes) (buffer)
Definition APUEqViscosity.h:97
virtual ~APUEqViscosity()
Definition APUEqViscosity.cpp:48
virtual void addSymmetricTermsRadialAxisOnX(Cell *cell)
Add the symmetrical terms of the corresponding additional physic in a cell (when radial axis is on X)
Definition APUEqViscosity.cpp:320
virtual void solveFluxAddPhys(CellInterface *cellInterface)
Solve the additional physic flux between two cells.
Definition APUEqViscosity.cpp:60
Coord m_tangent
Tangent vector of the corresponding face for the flux computation (buffer)
Definition APUEqViscosity.h:111
virtual void addNonCons(Cell *cell)
Add the non-conservative terms of the corresponding additional physic in a cell.
Definition APUEqViscosity.cpp:292
virtual void communicationsAddPhys(const int &dim, const int &lvl)
Communication of the additional physics quantities for parallel purposes with Adaptive Mesh Refinemen...
Definition APUEqViscosity.cpp:384
Tensor m_tensorLeft
Left tensor of the velocity gradients (buffer)
Definition APUEqViscosity.h:104
void solveFluxViscosityOther() const
Solve the viscosity flux at a boundary with non-defined type yet.
Definition APUEqViscosity.cpp:275
Coord m_velocityRight
Right velocity vector for the flux computation (buffer)
Definition APUEqViscosity.h:105
Coord m_normal
Normal vector of the corresponding face for the flux computation (buffer)
Definition APUEqViscosity.h:110
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 Equation of State (EOS).
Definition Eos.h:54
Class for a matrix 3x3 system object.
Definition Tensor.h:46