ECOGEN 4.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{
42public:
43 APEConductivity(int& numberQPA, Eos** eos);
44 virtual ~APEConductivity();
45
46 virtual void addQuantityAddPhys(Cell* cell);
47
48 virtual void solveFluxAddPhys(CellInterface* cellInterface);
49
50 virtual void solveFluxAddPhysBoundary(CellInterface* cellInterface);
54 void solveFluxConductivityInner(const Coord& gradTLeft, const Coord& gradTRight) const;
57 void solveFluxConductivityNonReflecting(const Coord& gradTLeft) const;
65 void solveFluxConductivityOther() const;
66
67 virtual void addNonCons(Cell* /*cell*/) {}; //The conductivity does not involve non-conservative terms.
68 virtual void communicationsAddPhys(const int& dim, const int& lvl);
69
70private:
71 double m_lambda;
73
79};
80
81#endif // APECONDUCTIVITY_H
General class for thermal conductivity for the Euler model.
Definition APEConductivity.h:41
Coord m_gradTLeft
Left gradient of the phase temperature for the flux computation (buffer)
Definition APEConductivity.h:74
void solveFluxConductivityInner(const Coord &gradTLeft, const Coord &gradTRight) const
Solve the conductivity flux between two cells.
Definition APEConductivity.cpp:112
void solveFluxConductivityNonReflecting(const Coord &gradTLeft) const
Solve the conductivity flux at a boundary with an non-reflecting type.
Definition APEConductivity.cpp:126
virtual void solveFluxAddPhysBoundary(CellInterface *cellInterface)
Solve the additional physic flux at a domain boundary.
Definition APEConductivity.cpp:75
virtual void solveFluxAddPhys(CellInterface *cellInterface)
Solve the additional physic flux between two cells.
Definition APEConductivity.cpp:54
double m_lambda
Thermal conductivity (W/(m.K)) of phase (taken from the EOS classe) (buffer)
Definition APEConductivity.h:71
void solveFluxConductivityWallImposedTemp(CellInterface *cellInterface)
Solve the conductivity flux at a wall boundary with imposed temperature.
Definition APEConductivity.cpp:133
int m_numQPA
Number of the associated variable for each cell (m_vecGrandeursAddPhys)
Definition APEConductivity.h:72
void solveFluxConductivityWallImposedFlux(CellInterface *cellInterface)
Solve the conductivity flux at a wall boundary with imposed flux density.
Definition APEConductivity.cpp:153
Coord m_binormal
Binormal vector of the face for the flux computation (buffer)
Definition APEConductivity.h:78
Coord m_tangent
Tangent vector of the face for the flux computation (buffer)
Definition APEConductivity.h:77
void solveFluxConductivityOther() const
Solve the conductivity flux at a boundary with non-defined type yet or for adiabatic wall.
Definition APEConductivity.cpp:166
virtual ~APEConductivity()
Definition APEConductivity.cpp:43
virtual void communicationsAddPhys(const int &dim, const int &lvl)
Communication of the additional physics quantities for parallel purposes with Adaptive Mesh Refinemen...
Definition APEConductivity.cpp:176
virtual void addQuantityAddPhys(Cell *cell)
Add the quantities for the additional physic.
Definition APEConductivity.cpp:47
Coord m_gradTRight
Right gradient of the phase temperature for the flux computation (buffer)
Definition APEConductivity.h:75
virtual void addNonCons(Cell *)
Add the non-conservative terms of the corresponding additional physic in a cell.
Definition APEConductivity.h:67
Coord m_normal
Normal vector of the face for the flux computation (buffer)
Definition APEConductivity.h:76
General class for additional physics for the Euler model.
Definition APEuler.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