ECOGEN 6.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 ~APUEqConductivity() override;
46
47 void addQuantityAddPhys(Cell* cell) override;
48
49 void solveFluxAddPhys(CellInterface* cellInterface) override;
50 void solveFluxAddPhysBoundary(CellInterface* cellInterface) override;
58 const Coord& gradTkLeft, const Coord& gradTkRight, const double& alphakL, const double& alphakR, const int& numPhase) const;
63 void solveFluxConductivityNonReflecting(const Coord& gradTkLeft, const double& alphakL, const int& numPhase) const;
65 void solveFluxConductivityWall() const;
71 void solveFluxConductivityOther() const;
72 void addNonCons(Cell* /*cell*/) override {}; //The conductivity does not involve non-conservative terms.
73
74 void communicationsAddPhys(const int& dim, const int& lvl) override;
75
76 protected:
77 private:
78 double* m_lambdak;
80
86};
87
88#endif // APUEQCONDUCTIVITY_H
void solveFluxConductivityOutletPressure() const
Solve the conductivity flux at a boundary with an outlet at imposed pressure type.
Definition APUEqConductivity.cpp:179
void solveFluxAddPhysBoundary(CellInterface *cellInterface) override
Solve the additional physics flux at a domain boundary.
Definition APUEqConductivity.cpp:93
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:165
double * m_lambdak
Thermal conductivity (W/(m.K)) of each phase (taken from the EOS classes) (buffer).
Definition APUEqConductivity.h:78
~APUEqConductivity() override
Definition APUEqConductivity.cpp:50
void solveFluxAddPhys(CellInterface *cellInterface) override
Solve the additional physics flux between two cells.
Definition APUEqConductivity.cpp:58
Coord m_tangent
Tangent vector of the corresponding face for the flux computation (buffer).
Definition APUEqConductivity.h:84
void addQuantityAddPhys(Cell *cell) override
Add the quantities for the additional physics.
Definition APUEqConductivity.cpp:54
void solveFluxConductivityInletInjStagState() const
Solve the conductivity flux at a boundary with an inlet injection using stagnation state type.
Definition APUEqConductivity.cpp:192
void communicationsAddPhys(const int &dim, const int &lvl) override
Communication of the additional physics quantities for parallel purposes with Adaptive Mesh Refinemen...
Definition APUEqConductivity.cpp:219
void addNonCons(Cell *) override
Add the non-conservative terms of the corresponding additional physics in a cell.
Definition APUEqConductivity.h:72
APUEqConductivity()
Definition APUEqConductivity.cpp:35
void solveFluxConductivityOther() const
Solve the conductivity flux at a boundary with non-defined type yet.
Definition APUEqConductivity.cpp:205
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:143
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:158
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
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
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