TrioCFD 1.9.8
TrioCFD documentation
Loading...
Searching...
No Matches
Coalescence_bulles_1groupe_Yao_Morel.cpp
1/****************************************************************************
2* Copyright (c) 2022, 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/// Wei Yao, Christophe Morel, Volumetric interfacial area prediction in upward bubbly two-phase flow, International Journal of Heat and Mass Transfer, 2004, https://doi.org/10.1016/j.ijheatmasstransfer.2003.06.004
18
19//////////////////////////////////////////////////////////////////////////////
20
21#include <Coalescence_bulles_1groupe_Yao_Morel.h>
22#include <Pb_Multiphase.h>
23
24Implemente_instanciable(Coalescence_bulles_1groupe_Yao_Morel, "Coalescence_bulles_1groupe_Yao_Morel", Coalescence_bulles_1groupe_base);
25// XD Coalescence_bulles_1groupe source_base Coalescence_bulles_1groupe NO_BRACE Source term of interfacial area
26// XD attr bloc bloc_lecture bloc REQ Should be { }
27// XD attr Yao_Morel chaine Yao_Morel REQ Yao Morel correlation
28
29
31{
32 return os;
33}
34
36{
37 n_l = find_liquid_phase();
38 return is;
39}
40
41void Coalescence_bulles_1groupe_Yao_Morel::coefficient(const DoubleTab& alpha, const DoubleTab& p, const DoubleTab& T,
42 const DoubleTab& rho, const DoubleTab& nu, const DoubleTab& sigma, double Dh,
43 const DoubleTab& ndv, const DoubleTab& d_bulles,
44 const DoubleTab& eps, const DoubleTab& k_turb,
45 DoubleTab& coeff) const
46{
47 const int N = alpha.dimension(0);
48 const double fac_sec = 1.e4;
49 for (int k = 0 ; k < N ; k++)
50 if (k != n_l && alpha(k) > 1./fac_sec) //phase gazeuse
51 {
52 const double We = 2. * rho(n_l) * std::pow(eps(n_l) * d_bulles(k), 2. / 3.) * d_bulles(k) / sigma(k, n_l);
53 const double g_alpha = (alpha_max_1_3 - std::min(std::cbrt(alpha(k)), alpha_sec)) / alpha_max_1_3;
54
55 // RC coefficient for mat
56 coeff(k, n_l) = - Kc1 *1/std::min(g_alpha + Kc2 *alpha(k)*std::sqrt(We/We_cr), fac_sec)*std::exp(-Kc3*std::sqrt(We/We_cr));
57
58 // dRC/dalpha cofficient for mat
59 coeff(n_l, k) = (alpha(k) < alpha_sec)
60 ? - Kc1 * alpha_max_1_3 * (3.*alpha_max_1_3*Kc2 *std::sqrt(We/We_cr)*(std::cbrt(alpha(k))*std::cbrt(alpha(k))) -1.)/std::min(3.*(std::cbrt(std::max(alpha(k), 1./fac_sec))*std::cbrt(std::max(alpha(k), 1./fac_sec))), fac_sec)/std::max(alpha_max_1_3*Kc2 *std::sqrt(We/We_cr)*alpha(k) + alpha_max_1_3 - std::min(std::cbrt(alpha(k)), alpha_sec ), 1./fac_sec)/std::min(alpha_max_1_3*Kc2*std::sqrt(We/We_cr)*alpha(k) + alpha_max_1_3 - std::min(std::cbrt(alpha(k)), alpha_sec), fac_sec)*std::exp(-Kc3*std::sqrt(We/We_cr))
61 : 0.;
62 }
63}
Model for bubble coalescence from Yao and Morel (2003).
void coefficient(const DoubleTab &alpha, const DoubleTab &p, const DoubleTab &T, const DoubleTab &rho, const DoubleTab &nu, const DoubleTab &sigma, double Dh, const DoubleTab &ndv, const DoubleTab &d_bulles, const DoubleTab &eps, const DoubleTab &k_turb, DoubleTab &coeff) const override
int find_liquid_phase() const
Finds the continuous liquid phase index in a multiphase problem.
Class defining operators and methods for all reading operation in an input flow (file,...
Definition Entree.h:42
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