16#include <Multiplicateur_diphasique_homogene.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 G = alpha[
n_l] * rho[
n_l] * std::fabs(v[
n_l]) + alpha[
n_g] * rho[
n_g] * std::fabs(v[
n_g]),
50 x = G ? alpha[
n_g] * rho[
n_g] * v[
n_g] / G : 0,
51 Phi2 = 1 + x * (rho[
n_l] / rho[
n_g] - 1),
54 coeff(
n_l, 0) = frac_l * Phi2;
55 coeff(
n_g, 0) = frac_g ? frac_g / (alpha[
n_g] * alpha[
n_g]) : 0;
Class defining operators and methods for all reading operation in an input flow (file,...
Two-phase multiplier correlations of the form:
Homogeneous two-phase multiplier: Phi^2 = 1 + x (rho_l / rho_g - 1).
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
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.