TrioCFD 1.9.8
TrioCFD documentation
Loading...
Searching...
No Matches
Loi_Etat_Multi_GP_WC.h
1/****************************************************************************
2* Copyright (c) 2024, 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_Multi_GP_WC_included
17#define Loi_Etat_Multi_GP_WC_included
18
19#include <Loi_Etat_Multi_GP_base.h>
20
21
22/*! @brief classe Loi_Etat_Multi_GP_WC Cette classe represente la loi d'etat pour un melange de gaz parfaits.
23 *
24 *
25 *
26 * @sa Fluide_Dilatable_base Loi_Etat_base Loi_Etat_Multi_GP_base
27 */
28
30{
31 Declare_instanciable_sans_constructeur(Loi_Etat_Multi_GP_WC);
32
33public :
35 void initialiser_inco_ch() override;
36 void calculer_masse_molaire(DoubleTab& M) const override;
37 void calculer_tab_Cp(DoubleTab& cp) const override;
38 void calculer_masse_volumique() override;
39 void calculer_mu_sur_Sc() override; // returns rho * D
40 void calculer_nu_sur_Sc() override; // returns D
41 double calculer_masse_volumique(double,double) const override;
42 double calculer_masse_volumique(double P,double T,double r) const override;
43
44 // Methodes inlines
45 inline const Champ_Don_base& masse_molaire_especes() const { return molar_mass_; }
46 inline const Champ_Don_base& visc_dynamique_especes() const { return mu_; }
48 inline const Champ_Don_base& cp_especes() const { return cp_; }
49
50protected:
53
54private :
55 void calculer_mu_wilke() override;
56 void update_Yn_values(Champ_Don_base& Yn, double temps) ;
57};
58
59#endif /* Loi_Etat_Multi_GP_WC_included */
classe Champ_Don_base classe de base des Champs donnes (non calcules)
void calculer_masse_volumique() override
Recalcule la masse volumique.
const Champ_Don_base & cp_especes() const
void calculer_nu_sur_Sc() override
Calcule la viscosite dynamique sur Schmidt = D.
OWN_PTR(Champ_Don_base) molar_mass_
const Champ_Don_base & coeff_diffusion_especes() const
void calculer_tab_Cp(DoubleTab &cp) const override
Calcule le Cp du melange Le Cp depend du Cp de chaque espece et de la composition du melange (Yi).
const Champ_Don_base & visc_dynamique_especes() const
void calculer_mu_sur_Sc() override
Calcule la viscosite dynamique sur Schmidt = rho * D.
void initialiser_inco_ch() override
Initialise l'inconnue de l'equation de chaleur : ne fai rien.
const Champ_Don_base & masse_molaire_especes() const
classe Loi_Etat_Multi_GP_base Cette classe represente la loi d'etat pour un melange de gaz parfaits.
virtual void calculer_mu_wilke()=0