16#include <Dissipation_WIT_PolyMAC_MPFA.h>
18#include <Domaine_PolyMAC_MPFA.h>
19#include <Sources_helpers_Multiphase.h>
32 param.ajouter(
"constante_gravitation", &
g_);
34 param.lire_avec_accolades_depuis(is);
56 const DoubleVect& ve = domaine.volumes();
59 const int ne = domaine.nb_elem();
60 const int nf_tot = domaine.nb_faces_tot();
72 const int nb_max_sat = N * (N - 1) / 2;
73 DoubleTrav Sigma_tab(ne, nb_max_sat);
74 compute_sigma_table(milc, press, temp, ne, N, Sigma_tab);
76 for(
int e = 0 ; e < ne ; e++)
77 for (
int k = 0 ; k < N ; k++)
80 const double u_r = relative_velocity_norm(vit, nf_tot, D, e, k,
n_l_);
81 const double Reb = diam(e, k) * u_r / nu(e,
n_l_);
82 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));
83 const double Cd = Tomiyama_Cd(Reb, Eo);
85 secmem(e, 0) -= ve(e) * pe(e) * 2. * nu(e,
n_l_) * Cd * Reb * k_WIT(e, 0) / (
C_lambda_ *
C_lambda_ * diam(e, k) * diam(e, k));
DoubleTab & passe(int i=1) override
Returns field values at instant t-i.
DoubleTab & valeurs() override
Returns the array of field values at the current time.
virtual DoubleTab & valeurs()=0
virtual DoubleTab & passe(int i=1)
Classe Dissipation_WIT_PolyMAC_MPFA Cette classe implemente dans PolyMAC_MPFA la dissipation de l'equ...
void dimensionner_blocs(matrices_t matrices, const tabs_t &semi_impl={}) const override
void ajouter_blocs(matrices_t matrices, DoubleTab &secmem, const tabs_t &semi_impl={}) const override
Class defining operators and methods for all reading operation in an input flow (file,...
virtual const Milieu_base & milieu() const =0
virtual const Champ_Inc_base & inconnue() 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
static void exit(int exit_code=-1)
Exit routine for TRUST within a Kokkos region.
Base class for output streams.
Source_base A Source_base object is a term appearing on the right-hand side of an.
_SIZE_ dimension(int d) const