TrioCFD 1.9.8
TrioCFD documentation
Loading...
Searching...
No Matches
Loi_Etat_GR_base.h
1/****************************************************************************
2* Copyright (c) 2022, CEA
3* All rights reserved.
4*
5* Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
6* 1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
7* 2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.
8* 3. Neither the name of the copyright holder nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission.
9*
10* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
11* IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS;
12* OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
13*
14*****************************************************************************/
15
16#ifndef Loi_Etat_GR_base_included
17#define Loi_Etat_GR_base_included
18
19#ifndef RU_
20//constante des gaz
21#define RU_ 8.3143*4.18448
22#endif
23
24#include <Loi_Etat_base.h>
25
26/*! @brief classe Loi_Etat_GR_base Cette classe represente la loi d'etat base pour les gaz reels.
27 *
28 * Elle definit un fluide dilatable dont la loi d'etat est :
29 * rho=rho(Pth,H)
30 * T = T(Pth,H)
31 *
32 * @sa Fluide_Dilatable_base Loi_Etat_base
33 */
34
36{
37 Declare_base_sans_constructeur(Loi_Etat_GR_base);
38
39public :
41 void initialiser_inco_ch() override;
42 void calculer_lambda() override;
43 void initialiser() override;
44 void remplir_T() override;
45 void calculer_Cp() override;
46 const Nom type_fluide() const override;
47 double De_DP(double,double) const override;
48 double De_DT(double,double) const override;
49 double Cp_calc(double,double) const;
50 double inverser_Pth(double,double) override;
51 void calculer_masse_volumique() override;
52
53 // Methodes virtuelles pures
54 virtual double calculer_temperature(double,double) = 0;
55 double calculer_H(double,double) const override = 0;
56 double Drho_DP(double,double) const override = 0;
57 double Drho_DT(double,double) const override = 0;
58 virtual double DT_DH(double,double) const = 0;
59 double calculer_masse_volumique(double,double) const override = 0;
60
61 // Methodes inlines
62 inline double masse_molaire() const { return MMole_; }
63
64protected :
65 double MMole_, Cp_, R;
66 DoubleTab tab_TempC, tab_Cp;
67};
68
69#endif /* Loi_Etat_GR_base_included */
void calculer_Cp() override
Calcule le Cp avec le polynome PolyCp_.
void initialiser_inco_ch() override
Initialise l'enthalpie.
double calculer_masse_volumique(double, double) const override=0
double De_DT(double, double) const override
virtual double calculer_temperature(double, double)=0
double masse_molaire() const
double De_DP(double, double) const override
void calculer_lambda() override
Calcule la conductivite /Cp : equivlent a k*dT/dh pour utiliser l'enthalpie dans l'operatur de diffus...
double Drho_DT(double, double) const override=0
void calculer_masse_volumique() override
Recalcule la masse volumique.
double calculer_H(double, double) const override=0
Cas gaz parfait : ne fait rien Cas gaz Reel : doit recalculer l'enthalpie a partir de la pression et ...
double inverser_Pth(double, double) override
Calcule la pression avec la temperature et la masse volumique.
double Cp_calc(double, double) const
Calcule le Cp en fonction des grandeurs physiques P, T, rho Cp = dh/dT = de/dT - 1/rho^2*drho/dT.
void remplir_T() override
Remplit le tableau de la temperature : T=temp+273.
const Nom type_fluide() const override
Renvoie le type de fluide associe.
void initialiser() override
Initialise la loi d'etat : calcul Pth.
virtual double DT_DH(double, double) const =0
double Drho_DP(double, double) const override=0
class Nom Une chaine de caractere pour nommer les objets de TRUST
Definition Nom.h:31