16#include <Source_Dissipation_HZDR_PolyMAC_MPFA.h>
18#include <Champ_Elem_PolyMAC_MPFA.h>
19#include <Domaine_PolyMAC_MPFA.h>
20#include <Sources_helpers_Multiphase.h>
34 param.ajouter(
"constante_gravitation", &
g_);
36 param.ajouter(
"C_k", &
C_k_);
40 param.lire_avec_accolades_depuis(is);
64 const DoubleTab& k_passe = ch_k.
passe();
67 const DoubleVect& ve = domaine.volumes();
69 const int ne = domaine.nb_elem();
70 const int nf_tot = domaine.nb_faces_tot();
77 const int nb_max_sat = N * (N - 1) / 2;
78 DoubleTrav Sigma_tab(ne, nb_max_sat);
79 compute_sigma_table(milc, press, temp, ne, N, Sigma_tab);
82 for (
int e = 0 ; e < ne ; e++)
83 for (
int k = 0 ; k < N ; k++)
86 const double u_r = relative_velocity_norm(vit, nf_tot, D, e, k,
n_l_);
87 const double Reb = diam(e, k) * u_r / nu(e,
n_l_);
88 const double Eo =
g_ * std::abs(tab_rho(e,
n_l_) - tab_rho(e, k)) * diam(e, k) * diam(e, k) / Sigma_tab(e, sigma_pair_index(k,
n_l_, N));
89 const double Cd = Tomiyama_Cd(Reb, Eo);
90 const double prod_HZDR =
C_k_ * (3. / 4.) * Cd / diam(e, k) * tab_alp(e, k) / tab_alp(e,
n_l_) * u_r * u_r * u_r;
: class Champ_Elem_PolyMAC_MPFA
DoubleTab & passe(int i=1) override
Returns field values at instant t-i.
virtual DoubleTab & valeurs()=0
virtual DoubleTab & passe(int i=1)
Class defining operators and methods for all reading operation in an input flow (file,...
virtual const Milieu_base & milieu() const =0
Probleme_base & probleme()
Returns the problem associated with the equation.
DoubleVect & porosite_elem()
Composite medium representing a multiphase fluid and its properties:
const Equation_base & equation() const
Returns the reference to the equation pointed to by MorEqn::mon_equation.
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.
Multiphase thermohydraulics problem of type "3*N equations":
const Champ_base & get_champ(const Motcle &nom) const override
Base class for output streams.
Classe Source_Dissipation_HZDR_PolyMAC_MPFA : Cette classe implemente, dans PolyMAC_MPFA,...
void ajouter_blocs(matrices_t matrices, DoubleTab &secmem, const tabs_t &semi_impl={}) const override
void dimensionner_blocs(matrices_t matrices, const tabs_t &semi_impl={}) const override
Source_base A Source_base object is a term appearing on the right-hand side of an.
const Champ_base & get_champ(const Motcle &nom) const override