TrioCFD 1.9.8
TrioCFD documentation
Loading...
Searching...
No Matches
Flux_2groupes_Smith.h
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#ifndef Flux_2groupes_Smith_included
17#define Flux_2groupes_Smith_included
18
19#include <Flux_2groupes_base.h>
20#include <TRUSTTabs_forward.h>
21#include <TRUSTTab.h>
22
23/*! @brief Two-group interfacial area transport source terms using the Smith et al. model.
24 *
25 * Computes coalescence (RC, WE) and breakup (TI, SO) source terms for
26 * the two-group interfacial area transport equation.
27 *
28 * References:
29 * - T.R. Smith et al., "Mechanistic modeling of interfacial area transport
30 * in large diameter pipes", IJMF, 2012.
31 * - J.L. Bottini et al., "Validation of two-group interfacial area transport
32 * equation in boiling flow", IJHMT, 2024.
33 */
35{
36 Declare_instanciable(Flux_2groupes_Smith);
37public:
38 /*! @brief Computes coalescence/breakup source terms and their derivatives. */
39 void coeffs(const input_coeffs& input, output_coeffs& output) const override;
40
41 /*! @brief Computes thermal source terms (condensation, phase change, wall nucleation). */
42 void therm(const input_therms& input, output_therms& output) const override;
43
44protected:
45 static constexpr double fac_sec_ = 1.e4; //!< Numerical security factor
46 static constexpr double alpha_coal_max_ = 0.509; //!< Maximum void fraction for coalescence
47
48 const double g = 9.81;
49 const double b = 0.597;
50 const double p = 0.01;
51 const double alpha_max = 0.62;
52 const double C_RC1 = 0.005;
53 const double C_RC0 = 3.0;
54 const double C_RC122 = 0.005;
55 const double C_WE1 = 0.002;
56 const double C_TI21 = 0.02;
57 const double C_S0 = 0.000038;
58 const double We_SO = 4500.;
59 const double We_cr1 = 6.5;
60 const double We_cr2 = 7.0;
61 double Xi_h_ = 0.;
62 double A_c_ = 1.;
63 double hPNVG_ = 0.;
64 double betac = 0.4;
65 double pc = 0.055;
66 double R_ = 462.;
67 double theta_rad = M_PI / 2.;
68};
69
70#endif
Two-group interfacial area transport source terms using the Smith et al. model.
void therm(const input_therms &input, output_therms &output) const override
Computes thermal source terms (condensation, phase change, wall nucleation).
static constexpr double alpha_coal_max_
Maximum void fraction for coalescence.
static constexpr double fac_sec_
Numerical security factor.
void coeffs(const input_coeffs &input, output_coeffs &output) const override
Computes coalescence/breakup source terms and their derivatives.
classe Flux_2groupes_base correlations de flux entre 2 groupes