TrioCFD 1.9.8
TrioCFD documentation
Loading...
Searching...
No Matches
Transport_turbulent_aire_interfaciale.cpp
1/****************************************************************************
2* Copyright (c) 2026, 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#include <Transport_turbulent_aire_interfaciale.h>
17#include <Pb_Multiphase.h>
18#include <TRUSTTrav.h>
19#include <Param.h>
20
21// Isao Kataoka, Kenji Yoshida, Masanori Naitoh, Hidetoshi Okada, Tadashi Morii, Modeling of turbulent transport term of interfacial area concentration in gas–liquid two-phase flow,
22// Nuclear Engineering and Design, Volume 253, 2012, Pages 322-330, https://doi.org/10.1016/j.nucengdes.2011.08.062.
23
24Implemente_instanciable(Transport_turbulent_aire_interfaciale, "Transport_turbulent_aire_interfaciale", Transport_turbulent_base);
25// XD type_diffusion_turbulente_multiphase_aire_interfaciale type_diffusion_turbulente_multiphase_deriv aire_interfaciale BRACE not_set
26
28{
29 return os;
30}
31
33{
34 Param param(que_suis_je());
35 param.ajouter("CstDiff", &cst_diff);// XD_ADD_P floattant
36 // XD_CONT Kataoka diffusion model constant. By default it is se to 0.236.
37 param.ajouter("ng2", &n_g2); // XD_ADD_P floattant
38 // XD_CONT not_set
39 param.lire_avec_accolades_depuis(is);
40 return is;
41}
42
43// Modifier_nu modifie mu : alpha et rho font partie du terme
45{
46 const DoubleTab& d_b_p = eq.probleme().get_champ("diametre_bulles").passe(),
47 *k_turb = (eq.probleme().has_champ("k")) ? &eq.probleme().get_champ("k").passe() : nullptr ;
48 const int nl = nu.dimension(0), N = nu.dimension(1), D = dimension;
49
50 if (nu.nb_dim() == 2)
51 for (int i = 0; i < nl; i++)
52 for (int n = 0; n < 1; n++) //isotrope
53 nu(i, n) = (n == n_g2) ? 0.825 * d_b_p(i,n) * std::sqrt((*k_turb)(i,n)) : cst_diff * d_b_p(i,n) * std::sqrt((*k_turb)(i,n));
54 else if (nu.nb_dim() == 3)
55 for (int i = 0; i < nl; i++)
56 for (int n = 0; n < N; n++)
57 for (int d = 0; d < D; d++) //anisotrope diagonal
58 nu(i, n, d) = (n == n_g2) ? 0.825 * d_b_p(i,n) * std::sqrt((*k_turb)(i,n)) : cst_diff * d_b_p(i,n) * std::sqrt((*k_turb)(i,n));
59 else
60 for (int i = 0; i < nl; i++)
61 for (int n = 0; n < N; n++)
62 for (int d = 0; d < D; d++) //anisotrope complet
63 nu(i, n, d, d) = (n == n_g2) ? 0.825 * d_b_p(i,n) * std::sqrt((*k_turb)(i,n)) : cst_diff * d_b_p(i,n) * std::sqrt((*k_turb)(i,n));
64}
virtual DoubleTab & passe(int i=1)
Definition Champ_Proto.h:50
classe Convection_Diffusion_std Cette classe est la base des equations modelisant le transport
bool has_champ(const Motcle &nom, OBS_PTR(Champ_base) &ref_champ) const override
Class defining operators and methods for all reading operation in an input flow (file,...
Definition Entree.h:42
Probleme_base & probleme()
Renvoie le probleme associe a l'equation.
static int dimension
Definition Objet_U.h:99
const Nom & que_suis_je() const
renvoie la chaine identifiant la classe.
Definition Objet_U.cpp:104
virtual Entree & readOn(Entree &)
Lecture d'un Objet_U sur un flot d'entree Methode a surcharger.
Definition Objet_U.cpp:293
virtual Sortie & printOn(Sortie &) const
Ecriture de l'objet sur un flot de sortie Methode a surcharger.
Definition Objet_U.cpp:282
const Champ_base & get_champ(const Motcle &nom) const override
Classe de base des flux de sortie.
Definition Sortie.h:52
int nb_dim() const
Definition TRUSTTab.h:199
_SIZE_ dimension(int d) const
Definition TRUSTTab.tpp:133
classe Transport_turbulent_aire_interfaciale Transport turbulent de type aire_interfaciale:
void modifier_mu(const Convection_Diffusion_std &eq, const Viscosite_turbulente_base &visc_turb, DoubleTab &nu) const override
classe Transport_turbulent_base correlations decrivant l'effet de la turbulence dans une autre equati...
classe Viscosite_turbulente_base correlations de viscosite turbulente decrivant le tenseur de Reynold...