TrioCFD 1.9.9_beta
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 @brief State law class for a mixture of ideal gases in the weakly compressible (WC) framework.
23 *
24 * @sa Fluide_Dilatable_base Loi_Etat_base Loi_Etat_Multi_GP_base
25 */
26
28{
29 Declare_instanciable_sans_constructeur(Loi_Etat_Multi_GP_WC);
30
31public :
33 void initialiser_inco_ch() override;
34 void calculer_masse_molaire(DoubleTab& M) const override;
35 void calculer_tab_Cp(DoubleTab& cp) const override;
36 void calculer_masse_volumique() override;
37 void calculer_mu_sur_Sc() override; // returns rho * D
38 void calculer_nu_sur_Sc() override; // returns D
39 double calculer_masse_volumique(double,double) const override;
40 double calculer_masse_volumique(double P,double T,double r) const override;
41
42 // Inline methods
43 inline const Champ_Don_base& masse_molaire_especes() const { return molar_mass_; }
44 inline const Champ_Don_base& visc_dynamique_especes() const { return mu_; }
46 inline const Champ_Don_base& cp_especes() const { return cp_; }
47
48protected:
51
52private :
53 void calculer_mu_wilke() override;
54 void update_Yn_values(Champ_Don_base& Yn, double temps) ;
55};
56
57#endif /* Loi_Etat_Multi_GP_WC_included */
class Champ_Don_base base class of Given Fields (not calculated)
void calculer_masse_volumique() override
Recomputes the density.
const Champ_Don_base & cp_especes() const
void calculer_nu_sur_Sc() override
Computes the kinematic viscosity divided by the Schmidt number = D.
OWN_PTR(Champ_Don_base) molar_mass_
const Champ_Don_base & coeff_diffusion_especes() const
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)...
const Champ_Don_base & visc_dynamique_especes() const
void calculer_mu_sur_Sc() override
Computes the dynamic viscosity divided by the Schmidt number = rho * D.
void initialiser_inco_ch() override
Initialises the heat equation unknown; sets rho arrays and updates density.
const Champ_Don_base & masse_molaire_especes() const
Base state law class for a mixture of ideal gases.
virtual void calculer_mu_wilke()=0