ECOGEN 4.0
Evolutive, Compressible, Open, Genuine, Easy, N-phase
Loading...
Searching...
No Matches
APUEqConductivity.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 APUEQCONDUCTIVITY_H
32#define APUEQCONDUCTIVITY_H
33
34#include "../APUEq.h"
35#include "QAPConductivity.h"
36#include "../../Eos/Eos.h"
37
41{
42 public:
44 APUEqConductivity(int& numberQPA, Eos** eos, const int& numbPhases);
45 virtual ~APUEqConductivity();
46
47 virtual void addQuantityAddPhys(Cell* cell);
48
49 virtual void solveFluxAddPhys(CellInterface* cellInterface);
50 virtual void solveFluxAddPhysBoundary(CellInterface* cellInterface);
57 void solveFluxConductivityInner(const Coord& gradTkLeft, const Coord& gradTkRight, const double& alphakL, const double& alphakR, const int& numPhase) const;
62 void solveFluxConductivityNonReflecting(const Coord& gradTkLeft, const double& alphakL, const int& numPhase) const;
64 void solveFluxConductivityWall() const;
70 void solveFluxConductivityOther() const;
71 virtual void addNonCons(Cell* /*cell*/) {}; //The conductivity does not involve non-conservative terms.
72
73 virtual void communicationsAddPhys(const int& dim, const int& lvl);
74
75 protected:
76
77 private:
78 double* m_lambdak;
80
86};
87
88#endif // APUEQCONDUCTIVITY_H
General class for thermal conductivity for the velocity-equilibrium system of equations.
Definition APUEqConductivity.h:41
void solveFluxConductivityOutletPressure() const
Solve the conductivity flux at a boundary with an outlet at imposed pressure type.
Definition APUEqConductivity.cpp:171
virtual void addNonCons(Cell *)
Add the non-conservative terms of the corresponding additional physic in a cell.
Definition APUEqConductivity.h:71
Coord m_normal
Normal vector of the corresponding face for the flux computation (buffer)
Definition APUEqConductivity.h:83
void solveFluxConductivityWall() const
Solve the conductivity flux at a boundary with an wall type.
Definition APUEqConductivity.cpp:157
double * m_lambdak
Thermal conductivity (W/(m.K)) of each phase (taken from the EOS classes) (buffer)
Definition APUEqConductivity.h:78
virtual void solveFluxAddPhys(CellInterface *cellInterface)
Solve the additional physic flux between two cells.
Definition APUEqConductivity.cpp:61
virtual void addQuantityAddPhys(Cell *cell)
Add the quantities for the additional physic.
Definition APUEqConductivity.cpp:54
virtual ~APUEqConductivity()
Definition APUEqConductivity.cpp:50
Coord m_tangent
Tangent vector of the corresponding face for the flux computation (buffer)
Definition APUEqConductivity.h:84
void solveFluxConductivityInletInjStagState() const
Solve the conductivity flux at a boundary with an inlet injection using stagnation state type.
Definition APUEqConductivity.cpp:184
APUEqConductivity()
Definition APUEqConductivity.cpp:35
void solveFluxConductivityOther() const
Solve the conductivity flux at a boundary with non-defined type yet.
Definition APUEqConductivity.cpp:197
virtual void solveFluxAddPhysBoundary(CellInterface *cellInterface)
Solve the additional physic flux at a domain boundary.
Definition APUEqConductivity.cpp:96
void solveFluxConductivityInner(const Coord &gradTkLeft, const Coord &gradTkRight, const double &alphakL, const double &alphakR, const int &numPhase) const
Solve the conductivity flux between two cells.
Definition APUEqConductivity.cpp:136
void solveFluxConductivityNonReflecting(const Coord &gradTkLeft, const double &alphakL, const int &numPhase) const
Solve the conductivity flux at a boundary with an non-reflecting type.
Definition APUEqConductivity.cpp:150
Coord m_gradTkRight
Right gradient of the corresponding phase temperature for the flux computation (buffer)
Definition APUEqConductivity.h:82
Coord m_gradTkLeft
Left gradient of the corresponding phase temperature for the flux computation (buffer)
Definition APUEqConductivity.h:81
virtual void communicationsAddPhys(const int &dim, const int &lvl)
Communication of the additional physics quantities for parallel purposes with Adaptive Mesh Refinemen...
Definition APUEqConductivity.cpp:211
Coord m_binormal
Binormal vector of the corresponding face for the flux computation (buffer)
Definition APUEqConductivity.h:85
int m_numQPA
Number of the associated variable for each cell (m_vecGrandeursAddPhys)
Definition APUEqConductivity.h:79
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