TrioCFD 1.9.8
TrioCFD documentation
Loading...
Searching...
No Matches
Frottement_interfacial_Kumar_Brooks.cpp
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
17
18/// Vineet Kumar, Caleb S. Brooks, Inter-group mass transfer modeling in the two-group two-fluid model with interfacial area transport equation in condensing flow, International Journal of Heat and Mass Transfer, 2018, https://doi.org/10.1016/j.ijheatmasstransfer.2017.11.087
19
20
21////////////////////////////////////////////////////////////////////////////
22
23
24
25
26#include <Frottement_interfacial_Kumar_Brooks.h>
27#include <Pb_Multiphase.h>
28#include <Milieu_composite.h>
29#include <Sources_helpers_Multiphase.h>
30#include <math.h>
31
32Implemente_instanciable(Frottement_interfacial_Kumar_Brooks, "Frottement_interfacial_Kumar_Brooks", Frottement_interfacial_base);
33
35{
36 return os;
37}
38
40{
41 Param param(que_suis_je());
42 param.ajouter("Dh", &Dh_);
43 param.ajouter("constante_gravitation", &g_);
44 param.lire_avec_accolades_depuis(is);
45
47
48 return is;
49}
50
51void Frottement_interfacial_Kumar_Brooks::coefficient(const DoubleTab& alpha, const DoubleTab& p, const DoubleTab& T,
52 const DoubleTab& rho, const DoubleTab& mu, const DoubleTab& sigma, double Dh,
53 const DoubleTab& ndv, const DoubleTab& d_bulles, DoubleTab& coeff) const
54{
55 int N = ndv.dimension(0);
56
57 coeff = 0;
58
59 for (int k = 0; k < N; k++)
60 if (k!=n_l)
61 {
62 const int ind_trav = sigma_pair_index(k, n_l, N);
63
64 const double Eo = eotvos_number(g_, rho(n_l), rho(k), d_bulles(k), sigma(ind_trav));
65 double Cd = (std::sqrt(Eo)<4.)? 2./3.* std::sqrt(Eo) / std::sqrt(1.-alpha(k)) : 4./3. / 0.35 / 0.35 * std::sqrt(g_ * std::abs(rho(n_l)-rho(k))/rho(n_l)/Dh_) * d_bulles(k) /(1.-alpha(k));
66
67 coeff(k, n_l, 1) = (alpha(n_l) < 1.e-6) ? 3./4.*Cd/d_bulles(k) * alpha(k) * rho(n_l) * alpha(n_l) * 1.e6
68 : 3./4.* Cd / d_bulles(k) * alpha(k) * rho(n_l);
69 coeff(k, n_l, 0) = coeff(k, n_l, 1) * ndv(n_l,k);
70 coeff(n_l, k, 0) = coeff(k, n_l, 0);
71 coeff(n_l, k, 1) = coeff(k, n_l, 1);
72
73 }
74}
75
76
77void Frottement_interfacial_Kumar_Brooks::coefficient_CD(const DoubleTab& alpha, const DoubleTab& p, const DoubleTab& T,
78 const DoubleTab& rho, const DoubleTab& mu, const DoubleTab& sigma, double Dh,
79 const DoubleTab& ndv, const DoubleTab& d_bulles, DoubleTab& coeff) const
80{
81 int N = ndv.dimension(0);
82
83 coeff = 0;
84
85 for (int k = 0; k < N; k++)
86 if (k!=n_l)
87 {
88 const int ind_trav = sigma_pair_index(k, n_l, N);
89
90
91 const double Eo = eotvos_number(g_, rho(n_l), rho(k), d_bulles(k), sigma(ind_trav));
92 double Cd = (std::sqrt(Eo)<4.)? 2./3.*std::sqrt(Eo) / std::sqrt(1.-alpha(k)) : 4./3. / 0.35 / 0.35 * std::sqrt(g_ * std::abs(rho(n_l)-rho(k))/rho(n_l)/Dh_) * d_bulles(k) / (1.-alpha(k));
93
94 coeff(k, n_l) = (coeff(n_l, k) = Cd);
95 }
96}
Class defining operators and methods for all reading operation in an input flow (file,...
Definition Entree.h:42
Kumar-Brooks interfacial drag for two-group two-fluid model.
void coefficient(const DoubleTab &alpha, const DoubleTab &p, const DoubleTab &T, const DoubleTab &rho, const DoubleTab &mu, const DoubleTab &sigma, double Dh, const DoubleTab &ndv, const DoubleTab &d_bulles, DoubleTab &coeff) const override
void coefficient_CD(const DoubleTab &alpha, const DoubleTab &p, const DoubleTab &T, const DoubleTab &rho, const DoubleTab &mu, const DoubleTab &sigma, double Dh, const DoubleTab &ndv, const DoubleTab &d_bulles, DoubleTab &coeff) const override
classe Frottement_interfacial_base utilitaire pour les operateurs de frottement interfacial prenant l...
int find_liquid_phase() const
Finds the continuous liquid phase index in a multiphase problem.
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
Classe de base des flux de sortie.
Definition Sortie.h:52
_SIZE_ dimension(int d) const
Definition TRUSTTab.tpp:133