16#include <Loi_Etat_Multi_GP_WC.h>
17#include <Loi_Etat_Multi_GP_QC.h>
18#include <EDO_Pression_th_VDF.h>
19#include <Domaine_VDF.h>
33 ToDo_Kokkos(
"critical");
34 int elem, nb_elem = le_dom->nb_elem();
35 const DoubleVect& volumes = le_dom->volumes();
40 for (elem = 0; elem < nb_elem; elem++)
42 double v = volumes(elem);
51 for (elem = 0; elem < nb_elem; elem++)
53 double v = volumes(elem);
54 double r = 8.3143 / Masse_mol_mel(elem);
64 ToDo_Kokkos(
"critical");
65 int elem, nb_elem = le_dom->nb_elem();
66 const DoubleVect& volumes = le_dom->volumes();
71 for (elem = 0; elem < nb_elem; elem++)
73 double v = volumes(elem);
82 for (elem = 0; elem < nb_elem; elem++)
84 double v = volumes(elem);
85 double r = 8.3143 / Masse_mol_mel(elem);
95 int face, n0, n1, ori;
101 const DoubleVect& porosite_surf = le_fluide_->porosite_face();
102 const DoubleTab& xp = dom.
xp();
103 const DoubleVect& volume_entrelaces = le_dom->volumes_entrelaces();
106 ToDo_Kokkos(
"critical");
109 n0 = face_voisins(face, 0);
110 n1 = face_voisins(face, 1);
111 ori = orientation(face);
112 coef = volume_entrelaces(face) * porosite_surf(face);
114 resu(face) += coef * (inco(n1) - inco(n0)) / (xp(n1, ori) - xp(n0, ori));
int orientation(int) const override
inline DoubleVect& Domaine_VDF::porosite_face() {
int nb_faces() const
Returns the total number of faces.
double xp(int num_elem, int k) const
int premiere_face_int() const
A face is internal if and only if it separates two elements.
int face_voisins(int num_face, int i) const
Returns the neighbouring element of num_face in direction i.
class EDO_Pression_th_VDF This class represents the ODE for pressure associated with the
void calculer_grad(const DoubleTab &, DoubleTab &)
double masse_totale(double P, const DoubleTab &T) override
Returns the computed pressure value that conserves mass.
Base class of the ODE hierarchy for thermodynamic pressure associated with the scheme resolution for ...
Class defining operators and methods for all reading operation in an input flow (file,...
State law class for a mixture of ideal gases in the quasi-compressible (QC) framework.
void calculer_masse_volumique() override
Recomputes the density.
State law class for a mixture of ideal gases in the weakly compressible (WC) framework.
void calculer_masse_volumique() override
Recomputes the density.
const DoubleTab & masse_molaire() const
Base class for the state law hierarchy defining a dilatable fluid.
virtual void calculer_masse_volumique()
Recomputes the density (masse volumique).
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.
static double mp_sum(double)
Computes the sum of x over all processors in the current group.
Base class for output streams.