TrioCFD 1.9.9_beta
TrioCFD documentation
Loading...
Searching...
No Matches
Frottement_interfacial_base.h
1/****************************************************************************
2* Copyright (c) 2026, 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_base_included
17#define Frottement_interfacial_base_included
18
19#include <TRUSTTabs_forward.h>
20#include <Correlation_base.h>
21#include <TRUSTTab.h>
22
23/*! @brief Frottement_interfacial_base class: utility for interfacial friction operators taking the form
24 *
25 * F_{kl} = - F_{lk} = - C_{kl} (u_k - u_l)
26 * This class defines a function C_{kl} depending on:
27 * alpha, p, T -> unknowns (one value per phase each)
28 * rho, mu, sigma -> physical properties (idem)
29 * ndv(k, l) -> ||v_k - v_l||, to be filled for k < l
30 * output:
31 * coeff(k, l, 0/1) -> coefficient C_{kl} and its derivative with respect to ndv(k, l), filled for k < l
32 *
33 *
34 */
35
37{
38 Declare_base(Frottement_interfacial_base);
39public:
40 virtual void coefficient(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 = 0;
43
44 virtual void coefficient_CD(const DoubleTab& alpha, const DoubleTab& p, const DoubleTab& T,
45 const DoubleTab& rho, const DoubleTab& mu, const DoubleTab& sigma, double Dh,
46 const DoubleTab& ndv, const DoubleTab& d_bulles, DoubleTab& coeff) const {Process::exit(que_suis_je() + " : you must calculate CD in your interfacial drag correlation !");};
47
48protected:
49 /*! @brief Finds the continuous liquid phase index in a multiphase problem. */
50 int find_liquid_phase() const;
51};
52
53#endif
Frottement_interfacial_base class: utility for interfacial friction operators taking the form.
virtual 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
int find_liquid_phase() const
Finds the continuous liquid phase index in a multiphase problem.
virtual 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 =0
const Nom & que_suis_je() const
Returns the string identifying the class.
Definition Objet_U.cpp:104
static void exit(int exit_code=-1)
Exit routine for TRUST within a Kokkos region.
Definition Process.cpp:466