TrioCFD 1.9.8
TrioCFD documentation
Loading...
Searching...
No Matches
Frottement_interfacial_Tomiyama_complet.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 Frottement_interfacial_Tomiyama_complet_included
17#define Frottement_interfacial_Tomiyama_complet_included
18#include <Frottement_interfacial_base.h>
19#include <utility>
20
21/*! @brief Interfacial friction coefficients for bubbly flows using the Tomiyama correlation.
22 *
23 * Computes drag coefficient Cd based on contamination level:
24 * - 0: pure system (Stokes coefficient 16, cap coefficient 48)
25 * - 1: moderate contamination (Stokes coefficient 24, cap coefficient 72)
26 * - 2: fully contaminated (Stokes coefficient 24, no cap limit)
27 *
28 * Reference: NeptuneCFD implementation.
29 */
31{
32 Declare_instanciable(Frottement_interfacial_Tomiyama_complet);
33public:
34 /*! @brief Computes friction coefficients and their derivatives with respect to relative velocity. */
35 void coefficient(const DoubleTab& alpha, const DoubleTab& p, const DoubleTab& T,
36 const DoubleTab& rho, const DoubleTab& mu, const DoubleTab& sigma, double Dh,
37 const DoubleTab& ndv, const DoubleTab& d_bulles, DoubleTab& coeff) const override;
38
39 /*! @brief Computes drag coefficients Cd only (no derivatives). */
40 void coefficient_CD(const DoubleTab& alpha, const DoubleTab& p, const DoubleTab& T,
41 const DoubleTab& rho, const DoubleTab& mu, const DoubleTab& sigma, double Dh,
42 const DoubleTab& ndv, const DoubleTab& d_bulles, DoubleTab& coeff) const override;
43
44 void completer() override;
45
46protected:
47 double g_ = 9.81;
48 double beta_ = 1.;
49 int contamination_ = 0; //!< Contamination level: 0=pure, 1=moderate, 2=fully contaminated
50 int n_l = -1; //!< Index of the liquid phase
51
52private:
53 /*! @brief Computes the drag coefficient Cd and its derivative w.r.t. relative velocity norm.
54 *
55 * @param Re Reynolds number
56 * @param dndv_Re Derivative of Re w.r.t. relative velocity norm
57 * @param Eo Eotvos number
58 * @param alpha_k Volume fraction of dispersed phase k
59 * @return Pair {Cd, dndv_Cd}
60 */
61 std::pair<double, double> compute_Cd(double Re, double dndv_Re, double Eo, double alpha_k) const;
62};
63
64#endif
Interfacial friction coefficients for bubbly flows using the Tomiyama correlation.
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
Computes drag coefficients Cd only (no derivatives).
int contamination_
Contamination level: 0=pure, 1=moderate, 2=fully contaminated.
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
Computes friction coefficients and their derivatives with respect to relative velocity.
classe Frottement_interfacial_base utilitaire pour les operateurs de frottement interfacial prenant l...