TrioCFD 1.9.8
TrioCFD documentation
Loading...
Searching...
No Matches
Rupture_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 <Rupture_bulles_1groupe_Yao_Morel.h>
22#include <Pb_Multiphase.h>
23
24Implemente_instanciable(Rupture_bulles_1groupe_Yao_Morel, "Rupture_bulles_1groupe_Yao_Morel", Rupture_bulles_1groupe_base);
25// XD Rupture_bulles_1groupe source_base Rupture_bulles_1groupe NO_BRACE Source term of interfacial area breakup
26// XD attr bloc bloc_lecture bloc REQ should be { }
27// XD attr Yao_Morel chaine Yao_Morel REQ Yao Morel correlation
28
30{
31 return os;
32}
33
35{
36 n_l = find_liquid_phase();
37 return is;
38}
39
40void Rupture_bulles_1groupe_Yao_Morel::coefficient(const DoubleTab& alpha, const DoubleTab& p, const DoubleTab& T,
41 const DoubleTab& rho, const DoubleTab& nu, const DoubleTab& sigma, double Dh,
42 const DoubleTab& ndv, const DoubleTab& d_bulles,
43 const DoubleTab& eps, const DoubleTab& k_turb,
44 DoubleTab& coeff) const
45{
46 const int N = alpha.dimension(0);
47 const double fac_sec = 1.e4;
48 for (int k = 0; k < N ; k++)
49 if (k != n_l) //phase gazeuse
50 if (alpha(k) > 1./fac_sec)
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
54 // TI coefficient for secmem
55 coeff(k, n_l) = Kb1*1/std::min(1.0 + Kb2*alpha(n_l)*std::sqrt(We/We_cr), fac_sec)*std::exp(-std::sqrt(We_cr/We));
56
57 // dTI/dalpha coefficient for mat
58 coeff(n_l, k) = Kb1*Kb2*std::sqrt(We/We_cr)/std::min(1. + Kb2*std::sqrt(We/We_cr)*(1. - alpha(k)), fac_sec) / std::min(1. + Kb2*std::sqrt(We/We_cr)*(1. - alpha(k)), fac_sec)*std::exp(-std::sqrt(We_cr/We));
59 }
60}
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
Model for bubble breakup 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.
Classe de base des flux de sortie.
Definition Sortie.h:52
_SIZE_ dimension(int d) const
Definition TRUSTTab.tpp:133