TrioCFD 1.9.8
TrioCFD documentation
Loading...
Searching...
No Matches
Coalescence_bulles_2groupes_Smith.h
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#ifndef Coalescence_bulles_2groupes_Smith_included
17#define Coalescence_bulles_2groupes_Smith_included
18
19#include <TRUSTTabs_forward.h>
20#include <Coalescence_bulles_2groupes_base.h>
21#include <TRUSTTab.h>
22
23/*! @brief Two-group bubble coalescence source terms using the Smith model.
24 *
25 * Computes random coalescence (RC) and wake entrainment (WE) source
26 * terms for the two-group interfacial area transport equation.
27 *
28 * Reference: T.R. Smith et al., "Mechanistic modeling of interfacial
29 * area transport in large diameter pipes", IJMF, 2012.
30 */
32{
33 Declare_instanciable(Coalescence_bulles_2groupes_Smith);
34public:
35 void coefficient_RC(const DoubleTab& alpha, const DoubleTab& alpha_p, const DoubleTab& p, const DoubleTab& T,
36 const DoubleTab& rho, const DoubleTab& nu, const DoubleTab& sigma, const double Dh,
37 const DoubleTab& ndv, const DoubleTab& d_bulles,
38 const DoubleTab& eps, const DoubleTab& k_turb, const int n_l, const int n_g1, const int n_g2 ,
39 DoubleTab& coeff) const override ;
40 void coefficient_WE(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, const int n_l, const int n_g1, const int n_g2,
44 DoubleTab& coeff) const override ;
45
46private:
47 static constexpr double fac_sec_ = 1.e4; //!< Numerical security factor
48 static constexpr double alpha_coal_max_ = 0.509; //!< Maximum void fraction for coalescence
49
50 const double C_RC1 = 0.005;
51 const double C_RC0 = 3.0;
52 const double C_RC2 = 0.005;
53 const double C_RC122 = 0.005;
54 const double alpha_max = 0.62;
55 const double C_WE1 = 0.002;
56 const double C_WE2 = 0.002;
57 const double C_WE112 = 0.002;
58 const double g = 9.81;
59};
60
61#endif
Two-group bubble coalescence source terms using the Smith model.
void coefficient_WE(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, const int n_l, const int n_g1, const int n_g2, DoubleTab &coeff) const override
void coefficient_RC(const DoubleTab &alpha, const DoubleTab &alpha_p, const DoubleTab &p, const DoubleTab &T, const DoubleTab &rho, const DoubleTab &nu, const DoubleTab &sigma, const double Dh, const DoubleTab &ndv, const DoubleTab &d_bulles, const DoubleTab &eps, const DoubleTab &k_turb, const int n_l, const int n_g1, const int n_g2, DoubleTab &coeff) const override