ECOGEN 6.0
Evolutive, Compressible, Open, Genuine, Easy, N-phase
Loading...
Searching...
No Matches
APEConductivity.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/>.#pragma once
30
31#ifndef APECONDUCTIVITY_H
32#define APECONDUCTIVITY_H
33
34#include "../APEuler.h"
35#include "QAPConductivity.h"
36#include "../../Eos/Eos.h"
37
41{
42 public:
43 APEConductivity(int& numberQPA, Eos** eos);
44 ~APEConductivity() override;
45
46 void addQuantityAddPhys(Cell* cell) override;
47
48 void solveFluxAddPhys(CellInterface* cellInterface) override;
49
50 void solveFluxAddPhysBoundary(CellInterface* cellInterface) override;
54 void solveFluxConductivityInner(const Coord& gradTLeft, const Coord& gradTRight) const;
57 void solveFluxConductivityNonReflecting(const Coord& gradTLeft) const;
65 void solveFluxConductivityOther() const;
66
67 void addNonCons(Cell* /*cell*/) override {}; //The conductivity does not involve non-conservative terms.
68 void communicationsAddPhys(const int& dim, const int& lvl) override;
69
71 virtual void computeTurbulenceParameters() const override {}; // To avoid errors when not managed or with 2+ addPhys selected
72
73 private:
74 double m_lambda;
76
82};
83
84#endif // APECONDUCTIVITY_H
Coord m_gradTLeft
Left gradient of the phase temperature for the flux computation (buffer).
Definition APEConductivity.h:77
virtual void computeTurbulenceParameters() const override
Print the diagnostics for turbulence decay cases.
Definition APEConductivity.h:71
void solveFluxConductivityInner(const Coord &gradTLeft, const Coord &gradTRight) const
Solve the conductivity flux between two cells.
Definition APEConductivity.cpp:109
void solveFluxConductivityNonReflecting(const Coord &gradTLeft) const
Solve the conductivity flux at a boundary with an non-reflecting type.
Definition APEConductivity.cpp:123
APEConductivity(int &numberQPA, Eos **eos)
Definition APEConductivity.cpp:35
void solveFluxAddPhys(CellInterface *cellInterface) override
Solve the additional physics flux between two cells.
Definition APEConductivity.cpp:51
double m_lambda
Thermal conductivity (W/(m.K)) of phase (taken from the EOS class) (buffer).
Definition APEConductivity.h:74
void addQuantityAddPhys(Cell *cell) override
Add the quantities for the additional physics.
Definition APEConductivity.cpp:47
void solveFluxConductivityWallImposedTemp(CellInterface *cellInterface)
Solve the conductivity flux at a wall boundary with imposed temperature.
Definition APEConductivity.cpp:127
int m_numQPA
Number of the associated variable for each cell (m_vecGrandeursAddPhys).
Definition APEConductivity.h:75
~APEConductivity() override
Definition APEConductivity.cpp:43
void solveFluxConductivityWallImposedFlux(CellInterface *cellInterface)
Solve the conductivity flux at a wall boundary with imposed flux density.
Definition APEConductivity.cpp:147
Coord m_binormal
Binormal vector of the face for the flux computation (buffer).
Definition APEConductivity.h:81
Coord m_tangent
Tangent vector of the face for the flux computation (buffer).
Definition APEConductivity.h:80
void solveFluxConductivityOther() const
Solve the conductivity flux at a boundary with non-defined type yet or for adiabatic wall.
Definition APEConductivity.cpp:160
void addNonCons(Cell *) override
Add the non-conservative terms of the corresponding additional physics in a cell.
Definition APEConductivity.h:67
void communicationsAddPhys(const int &dim, const int &lvl) override
Communication of the additional physics quantities for parallel purposes with Adaptive Mesh Refinemen...
Definition APEConductivity.cpp:170
void solveFluxAddPhysBoundary(CellInterface *cellInterface) override
Solve the additional physics flux at a domain boundary.
Definition APEConductivity.cpp:72
Coord m_gradTRight
Right gradient of the phase temperature for the flux computation (buffer).
Definition APEConductivity.h:78
Coord m_normal
Normal vector of the face for the flux computation (buffer).
Definition APEConductivity.h:79
APEuler()
Definition APEuler.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