16#include <Reynolds_maille_Champ_Face.h>
17#include <Champ_Face_VDF.h>
19#include <Domaine_VDF.h>
29 vitesse_ = la_vitesse;
30 nu_ = la_viscosite_cinematique;
34inline double valeur(
const DoubleTab& champ,
const int face,
const int compo,
const Domaine_VDF& le_dom_VDF)
36 if (champ.dimension(0) == 1)
return champ(0, compo);
40 if (elem0 < 0) elem0 = elem1;
41 if (elem1 < 0) elem1 = elem0;
42 return 0.5 * (champ(elem0, compo) + champ(elem1, compo));
50 for (
int face = 0; face < nb_faces; face++)
53 double nu_face = valeur(nu_->valeurs(), face, 0,
domaine_vdf());
57 re(face) = std::fabs(vitesse_->valeurs()(face)) * taille_maille / nu_face;
class Champ_Don_base base class of Given Fields (not calculated)
DoubleTab & valeurs() override
Overrides Champ_base::valeurs() Returns the array of values.
class Champ_Fonc_Face_VDF
const Domaine_VDF & domaine_vdf() const override
void mettre_a_jour(double temps) override
Time update of the field.
virtual double changer_temps(const double t)
Sets the time at which the field is defined.
virtual const DoubleVect & face_surfaces() const
int nb_faces() const
Returns the total number of faces.
DoubleVect & volumes_entrelaces()
int face_voisins(int num_face, int i) const
Returns the neighbouring element of num_face in direction i.
Class defining operators and methods for all reading operation in an input flow (file,...
const Nom & le_nom() const override
Returns the name of the field.
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.
void mettre_a_jour(double) override
Time update of the field.
void associer_champ(const Champ_Face_VDF &, const Champ_Don_base &)
Base class for output streams.