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,...
classe Frottement_interfacial_base utilitaire pour les operateurs de frottement interfacial prenant l...
int find_liquid_phase() const
Finds the continuous liquid phase index in a multiphase problem.
const Nom & que_suis_je() const
renvoie la chaine identifiant la classe.
virtual Entree & readOn(Entree &)
Lecture d'un Objet_U sur un flot d'entree Methode a surcharger.
virtual Sortie & printOn(Sortie &) const
Ecriture de l'objet sur un flot de sortie Methode a surcharger.
virtual const Milieu_base & milieu() const
Renvoie le milieu physique associe au probleme.
static void exit(int exit_code=-1)
Routine de sortie de TRUST dans une region Kokkos.
Classe de base des flux de sortie.
_SIZE_ dimension(int d) const