16#include <Multiplicateur_diphasique_Lottes_Flinn.h>
17#include <Pb_Multiphase.h>
31 param.lire_avec_accolades_depuis(is);
33 const Pb_Multiphase *pbm = sub_type(Pb_Multiphase, pb_.valeur()) ? &ref_cast(Pb_Multiphase, pb_.valeur()) : nullptr;
36 else for (
int n = 0; n < pbm->
nb_phases(); n++)
46 const double *mu,
const double Dh,
const double gamma,
const double *Fk,
47 const double Fm, DoubleTab& coeff)
const
49 double a_tot = alpha[
n_l] + (
n_g >= 0 ? alpha[
n_g] : 0), a_l = alpha[
n_l] / a_tot, a_g =
n_g >= 0 ? alpha[
n_g] / a_tot : 0,
53 coeff(
n_l, 0) = a_l < b_m ? std::max(a_l - b_M, 0.) / (b_m * b_m) : 1. / (a_l * a_l);
54 if (
n_g >= 0) coeff(
n_g, 0) = std::min(std::max((a_g - a_m) / (a_M - a_m), 0.), 1.);
Class defining operators and methods for all reading operation in an input flow (file,...
Lottes-Flinn two-phase multiplier correlation.
void coefficient(const double *alpha, const double *rho, const double *v, const double *f, const double *mu, const double Dh, const double gamma, const double *Fk, const double Fm, DoubleTab &coeff) const override
Two-phase multiplier correlations of the form:
virtual int debute_par(const char *const n) const
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.
const Nom & nom_phase(int i) const
static void exit(int exit_code=-1)
Exit routine for TRUST within a Kokkos region.
Base class for output streams.