TrioCFD 1.9.9_beta
TrioCFD documentation
Loading...
Searching...
No Matches
Loi_Etat_Multi_GP_QC.h
1/****************************************************************************
2* Copyright (c) 2025, 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_QC_included
17#define Loi_Etat_Multi_GP_QC_included
18
19#include <Convection_Diffusion_Espece_Multi_QC.h>
20#include <Loi_Etat_Multi_GP_base.h>
21#include <TRUST_List.h>
22#include <TRUST_Ref.h>
23
24class Espece;
25
26/*! @brief @brief State law class for a mixture of ideal gases in the quasi-compressible (QC) framework.
27 *
28 * @sa Fluide_Dilatable_base Loi_Etat_base Loi_Etat_Multi_GP_base
29 */
31{
32 Declare_instanciable_sans_constructeur(Loi_Etat_Multi_GP_QC);
33
34public :
37 void calculer_masse_molaire(DoubleTab& M) const override;
38 void calculer_tab_Cp(DoubleTab& cp) const override;
39 void calculer_masse_volumique() override;
40 void calculer_mu_sur_Sc() override;
41 double calculer_masse_volumique(double,double) const override;
42 double calculer_masse_volumique(double P,double T,double r) const override;
43
44protected :
45 void rabot(int futur = 0);
46 LIST(OBS_PTR(Espece)) liste_especes;
50
51private:
52 void calculer_mu_wilke() override;
53};
54
55#endif /* Loi_Etat_Multi_GP_QC_included */
Particular case of Convection_Diffusion_Espece_Multi_base for a quasi-compressible fluid when the tra...
Espece.
Definition Espece.h:28
void calculer_masse_volumique() override
Recomputes the density.
void calculer_tab_Cp(DoubleTab &cp) const override
Computes the Cp of the mixture. Cp depends on the Cp of each species and the mixture composition (Yi)...
void rabot(int futur=0)
Explicit corrections of mass fractions to force their sum to 1 and avoid negative values.
void calculer_mu_sur_Sc() override
Computes the dynamic viscosity divided by the Schmidt number.
void associer_espece(const Convection_Diffusion_Espece_Multi_QC &eq)
Associates the physical properties of a species with the state law.
LIST(OBS_PTR(Espece)) liste_especes
Base state law class for a mixture of ideal gases.
virtual void calculer_mu_wilke()=0