16#include <Frottement_interfacial_Ishii_Zuber_Deformable.h>
17#include <Pb_Multiphase.h>
18#include <Milieu_composite.h>
31 param.ajouter(
"beta", &
beta_);
32 param.ajouter(
"constante_gravitation", &
g_);
33 param.lire_avec_accolades_depuis(is);
37 const Pb_Multiphase& pbm = ref_cast(Pb_Multiphase, pb_.valeur());
40 if (!(ref_cast(Milieu_composite, pbm.
milieu()).has_interface(
n_l, k)))
47 const DoubleTab& rho,
const DoubleTab& mu,
const DoubleTab& sigma,
double Dh,
48 const DoubleTab& ndv,
const DoubleTab& d_bulles, DoubleTab& coeff)
const
54 for (
int k = 0; k < N; k++)
57 const int ind_trav = (k >
n_l)
59 : (k*(N-1)-(k-1)*(k)/2) + (
n_l-k-1);
61 const double capillary = std::sqrt((rho[
n_l] - rho[k])*9.81/sigma[ind_trav]);
62 const double bubbly = alpha[k]*rho[
n_l]*0.5*capillary*std::pow(std::max(1-alpha[k], 1.e-3), -.5);
64 coeff(k,
n_l, 1) = bubbly ;
65 coeff(k,
n_l, 0) = bubbly * ndv(
n_l,k);
66 coeff(
n_l, k, 0) = coeff(k,
n_l, 0);
67 coeff(
n_l, k, 1) = coeff(k,
n_l, 1);
72 const DoubleTab& rho,
const DoubleTab& mu,
const DoubleTab& sigma,
double Dh,
73 const DoubleTab& ndv,
const DoubleTab& d_bulles, DoubleTab& coeff)
const
79 for (
int k = 0; k < N; k++)
82 const int ind_trav = (k >
n_l)
84 : (k*(N-1)-(k-1)*(k)/2) + (
n_l-k-1);
86 const double capillary = std::sqrt((rho[
n_l]-rho[k])*9.81/sigma[ind_trav]);
87 const double bubbly = alpha[k]*rho[
n_l]*0.5*capillary*std::pow(1-alpha[k], -.5);
89 const double Cd = bubbly / (3./4./d_bulles(k) * alpha(k) * rho(
n_l));
91 coeff(k,
n_l) = (coeff(
n_l, k) = Cd);
Class defining operators and methods for all reading operation in an input flow (file,...
Frottement_interfacial_base class: utility for interfacial friction operators taking the form.
int find_liquid_phase() const
Finds the continuous liquid phase index in a multiphase problem.
const Nom & que_suis_je() const
Returns the string identifying the class.
virtual Entree & readOn(Entree &)
Reads an Objet_U from an input stream. Virtual method to override.
virtual Sortie & printOn(Sortie &) const
Writes the object to an output stream. Virtual method to override.
virtual const Milieu_base & milieu() const
Returns the physical medium associated with the problem (const version).
static void exit(int exit_code=-1)
Exit routine for TRUST within a Kokkos region.
Base class for output streams.
_SIZE_ dimension(int d) const