16#include <Masse_ajoutee_Zuber.h>
17#include <Pb_Multiphase.h>
29 param.ajouter(
"beta", &
beta);
33 param.lire_avec_accolades_depuis(is);
35 const Pb_Multiphase *pbm = sub_type(Pb_Multiphase, pb_.valeur()) ? &ref_cast(Pb_Multiphase, pb_.valeur()) : nullptr;
38 for (
int n = 0; n < pbm->
nb_phases(); n++)
49 for (k = 0; k < N; k++)
52 double coeff_loc =
beta * ( 1. + 2.*alpha[k]) / std::max(1. - alpha[k], 1.e-3);
63 for (
int k = 0; k < N; k++)
66 double coeff_loc =
beta * ( 1. + 2.*alpha[k]) / std::max( alpha[
n_l], 1.e-4 );
67 double flux_ma = (alpha[k] < 1.e-4) ? coeff_loc * rho[
n_l] * flux_alpha[k] : std::min(coeff_loc * rho[
n_l] * flux_alpha[k],
limiter_liquid_ * rho[
n_l] * alpha[
n_l] * flux_alpha[k] / alpha[k]) ;
77 int k, N =
coeff.dimension(0);
78 for (k = 0; k < N; k++)
81 double coeff_loc =
beta * ( 1. + 2.*alpha[k]) / std::max(1. - alpha[k], 1.e-3); ;
Class defining operators and methods for all reading operation in an input flow (file,...
Added mass of the form ma(k, l) = +/- beta * alpha_k * alpha_l * rho_m.
void ajouter(const double *alpha, const double *rho, DoubleTab &a_r) const override
void ajouter_inj(const double *flux_alpha, const double *alpha, const double *rho, DoubleTab &f_a_r) const override
double inj_ajoutee_liquide_
void coeff(const DoubleTab &alpha, const DoubleTab &rho, DoubleTab &coeff) const override
Added-mass correlation of the form: alpha_k rho_k Dv_k / Dt -> alpha_k rho_k Dv_k / Dt + sum_l ma(k,...
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.
_SIZE_ dimension(int d) const