16#include <Force_Tchen_PolyMAC_MPFA.h>
17#include <Champ_Face_base.h>
18#include <Pb_Multiphase.h>
32 for (
int e = 0; e < domaine.nb_elem_tot(); e++)
33 for (
int d = 0 ; d <D ; d++)
34 for (
int k = 0 ; k<N ; k++)
36 stencil.
append_line( N *(nf_tot + D * e + d) + k , N *(nf_tot + D * e + d) +
n_l) ;
52 for (
int e = 0; e < domaine.nb_elem_tot(); e++)
53 for (
int d = 0 ; d <D ; d++)
54 for (
int k = 0 ; k<N ; k++)
57 double fac = pe(e) * ve(e) * alpha(e, k) * rho(e,
n_l) ;
59 secmem(nf_tot + D * e + d, k ) += fac * (inco(nf_tot + D * e + d,
n_l)-pvit(nf_tot + D * e + d,
n_l))/pas_tps;
60 secmem(nf_tot + D * e + d,
n_l) -= fac * (inco(nf_tot + D * e + d,
n_l)-pvit(nf_tot + D * e + d,
n_l))/pas_tps;
63 (*mat)( N *(nf_tot + D * e + d) + k , N *(nf_tot + D * e + d) +
n_l) -= fac/pas_tps ;
64 (*mat)( N *(nf_tot + D * e + d) +
n_l, N *(nf_tot + D * e + d) +
n_l) += fac/pas_tps ;
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 & 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.
const Nom & le_nom() const override
Returns the name of the field.
void dimensionner_blocs_aux(Stencil &) const override
void ajouter_blocs_aux(matrices_t, DoubleTab &) const override
Matrice_Morse class - Represents a (sparse) matrix M, not necessarily square,.
DoubleVect & porosite_elem()
virtual const Champ_base & masse_volumique() const
Returns the mass density of the medium (const version).
const Equation_base & equation() const
Returns the reference to the equation pointed to by MorEqn::mon_equation.
const std::string & getString() const
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 Schema_Temps_base & schema_temps() const
Returns the time scheme associated with the problem.
double pas_de_temps() const
Returns the current time step (delta_t).
Base class for output streams.
Tchen force in a multiphase flow.