16#include <Modele_turbulence_scal_base.h>
17#include <Dirichlet_paroi_defilante.h>
18#include <Convection_Diffusion_std.h>
19#include <Champ_Fonc_Tabule_P0_VDF.h>
20#include <Paroi_scal_hyd_base_VDF.h>
21#include <Champ_Uniforme_Morceaux.h>
22#include <Dirichlet_paroi_fixe.h>
23#include <Champ_Fonc_Tabule.h>
24#include <Champ_Uniforme.h>
25#include <Domaine_Cl_VDF.h>
26#include <EcrFicPartage.h>
27#include <Neumann_paroi.h>
28#include <Probleme_base.h>
29#include <Fluide_base.h>
30#include <Constituant.h>
41 le_dom_dis_ = ref_cast(
Domaine_VF, domaine_dis);
42 le_dom_Cl_dis_ = domaine_Cl_dis;
49 int nb_faces_bord_reelles = le_dom_dis_->nb_faces_bord();
57 for (
int n_bord = 0; n_bord < nb_front; n_bord++)
59 const Cond_lim& la_cl = le_dom_Cl_dis_->les_conditions_limites(n_bord);
64 for (
int ind_face = 0; ind_face < n_faces; ind_face++)
66 int num_face = le_bord.
num_face(ind_face);
87 for (
int n_bord = 0; n_bord < domaine_VDF.
nb_front_Cl(); n_bord++)
89 const Cond_lim& la_cl = le_dom_Cl_dis_->les_conditions_limites(n_bord);
98 int boundary_index = -1;
100 boundary_index = n_bord;
101 assert(boundary_index >= 0);
105 for (
int num_face = ndeb; num_face < nfin; num_face++)
113 elem = face_voisins(num_face, 0);
115 elem = face_voisins(num_face, 1);
117 lambda = conductivite.
valeurs()(0, 0);
120 if (conductivite.
nb_comp() == 1)
121 lambda = conductivite.
valeurs()(elem);
123 lambda = conductivite.
valeurs()(elem, 0);
126 int global_face = num_face;
132 tab_(num_face, 3) = temperature(elem);
136 double flux = la_cl_neum.
flux_impose(num_face - ndeb);
137 double tparoi = temperature(elem) + flux / lambda *
equivalent_distance_[boundary_index](local_face);
138 tab_(num_face, 4) = tparoi;
141 tab_(num_face, 4) = 0;
142 tab_(num_face, 5) = 0.;
153 const IntTab& face_voisins = domaine_VDF.
face_voisins();
154 int ndeb, nfin, elem;
160 for (
int n_bord = 0; n_bord < domaine_VDF.
nb_front_Cl(); n_bord++)
162 const Cond_lim& la_cl = le_dom_Cl_dis_->les_conditions_limites(n_bord);
174 Nusselt <<
"Bord " << le_bord.
le_nom() << finl;
177 Nusselt <<
"----------------------------------------------------------------------------------------------------------------------------------------------------------------"
179 Nusselt <<
"\tFace a\t\t\t\t|" << finl;
180 Nusselt <<
"----------------------------------------------------------------------------------------------------------------------------------------------------------------"
182 Nusselt <<
"X\t\t| Y\t\t\t| dist. carac. (m)\t| Nusselt (local)\t| h (Conv. W/m2/K)\t| Tf cote paroi (K)\t| Tparoi equiv.(K)" << finl;
183 Nusselt <<
"----------------|-----------------------|-----------------------|-----------------------|-----------------------|-----------------------|-----------------------"
189 <<
"----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------"
191 Nusselt <<
"\tFace a\t\t\t\t\t\t\t|" << finl;
193 <<
"----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------"
195 Nusselt <<
"X\t\t| Y\t\t\t| Z\t\t\t| dist. carac. (m)\t| Nusselt (local)\t| h (Conv. W/m2/K)\t| Tf cote paroi (K)\t| Tparoi equiv.(K)" << finl;
197 <<
"----------------|-----------------------|-----------------------|-----------------------|-----------------------|-----------------------|-----------------------|-----------------------"
203 for (
int num_face = ndeb; num_face < nfin; num_face++)
205 double x = domaine_VDF.
xv(num_face, 0);
206 double y = domaine_VDF.
xv(num_face, 1);
208 elem = face_voisins(num_face, 0);
210 elem = face_voisins(num_face, 1);
213 Nusselt << x <<
"\t| " << y;
216 double z = domaine_VDF.
xv(num_face, 2);
217 Nusselt << x <<
"\t| " << y <<
"\t| " << z;
221 Nusselt <<
"\t| " <<
tab_(num_face, i);
230 Nusselt <<
"Bord " << le_bord.
le_nom() << finl;
233 Nusselt <<
"----------------------------------------------------------------------------------------------------------------------------------------" << finl;
234 Nusselt <<
"\tFace a\t\t\t\t|" << finl;
235 Nusselt <<
"----------------------------------------------------------------------------------------------------------------------------------------" << finl;
236 Nusselt <<
"X\t\t| Y\t\t\t| dist. carac. (m)\t| Nusselt (local)\t| h (Conv. W/m2/K)\t| Tf cote paroi (K)" << finl;
237 Nusselt <<
"----------------|-----------------------|-----------------------|-----------------------|-----------------------|-----------------------" << finl;
241 Nusselt <<
"----------------------------------------------------------------------------------------------------------------------------------------------------------------"
243 Nusselt <<
"\tFace a\t\t\t\t\t\t\t|" << finl;
244 Nusselt <<
"----------------------------------------------------------------------------------------------------------------------------------------------------------------"
246 Nusselt <<
"X\t\t| Y\t\t\t| Z\t\t\t| dist. carac. (m)\t| Nusselt (local)\t| h (Conv. W/m2/K)\t| Tf cote paroi (K)" << finl;
247 Nusselt <<
"----------------|-----------------------|-----------------------|-----------------------|-----------------------|-----------------------|-----------------------"
254 for (
int num_face = ndeb; num_face < nfin; num_face++)
256 double x = domaine_VDF.
xv(num_face, 0);
257 double y = domaine_VDF.
xv(num_face, 1);
258 elem = face_voisins(num_face, 0);
260 elem = face_voisins(num_face, 1);
263 Nusselt << x <<
"\t| " << y;
266 double z = domaine_VDF.
xv(num_face, 2);
267 Nusselt << x <<
"\t| " << y <<
"\t| " << z;
271 Nusselt <<
"\t| " <<
tab_(num_face, i);
279 Nusselt << finl << finl;
285 int nb_boundaries = le_dom_dis_->domaine().nb_front_Cl();
286 for (
int n_bord = 0; n_bord < nb_boundaries; n_bord++)
288 const Front_VF& fr_vf = le_dom_dis_->front_VF(n_bord);
290 if (fr_vf.
le_nom() == nom_bord)
293 for (
int ind_face = 0; ind_face < nb_faces; ind_face++)
class Champ_Don_base base class of Given Fields (not calculated)
DoubleTab & valeurs() override
Overrides Champ_base::valeurs() Returns the array of values.
DoubleTab & valeurs() override
Returns the array of field values at the current time.
class Cond_lim Generic class used to represent any class
Convection_Diffusion_std This class is the base for equations modelling the transport.
Dirichlet_paroi_defilante Imposes the wall velocity in an equation of type Navier_Stokes.
Dirichlet_paroi_fixe Represents a fixed wall in a Navier-Stokes type equation.
class Domaine_Cl_dis_base Domaine_Cl_dis_base objects represent discretized boundary conditions
const Cond_lim & les_conditions_limites(int) const
Returns the i-th boundary condition.
double dist_norm_bord_axi(int num_face) const
Returns the normal distance for a boundary face (cylindrical coordinates).
double dist_norm_bord(int num_face) const override
Returns the normal distance for a boundary face (Cartesian coordinates).
double xv(int num_face, int k) const
int face_voisins(int num_face, int i) const
Returns the neighbouring element of num_face in direction i.
const Front_VF & front_VF(int i) const
class Domaine_dis_base This class is the base of the hierarchy of discretized domains.
Sortie & syncfile() override
Triggers writing to disk of the data accumulated on the different processors since the last call to s...
Class defining operators and methods for all reading operation in an input flow (file,...
class Equation_base The role of an equation is the calculation of one or more fields....
virtual const Milieu_base & milieu() const =0
virtual const Champ_Inc_base & inconnue() const =0
virtual Domaine_Cl_dis_base & domaine_Cl_dis()
Returns the discretized boundary condition domain associated with the equation.
Probleme_base & probleme()
Returns the problem associated with the equation.
virtual int nb_comp() const
Base class for an incompressible fluid and its properties:
int num_local_face(const int) const
int num_premiere_face() const
int num_face(const int) const
const Nom & le_nom() const override
Returns the name of the geometric boundary.
virtual const Champ_Don_base & conductivite() const
Returns the conductivity of the medium (const version).
Classe Neumann_paroi This boundary condition corresponds to an imposed flux for the.
virtual double flux_impose(int i) const
Returns the value of the imposed flux on the i-th component of the field representing the flux at the...
class Nom: a character string for naming TRUST objects.
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 const Nom & le_nom() const
Returns the name of the Objet_U. Virtual method to override: returns "neant" in this implementation.
virtual Sortie & printOn(Sortie &) const
Writes the object to an output stream. Virtual method to override.
void compute_nusselt() const override
DoubleVect & equivalent_distance_name(DoubleVect &d_equiv, const Nom &nom_bord) const override
void associer(const Domaine_dis_base &, const Domaine_Cl_dis_base &) override
void imprimer_nusselt(Sortie &) const override
int init_lois_paroi() override
virtual const Equation_base & equation(int) const =0
static int je_suis_maitre()
Returns 1 if on the master processor of the current group (i.e. me() == 0), 0 otherwise.
Base class for output streams.
void resize(_SIZE_, RESIZE_OPTIONS opt=RESIZE_OPTIONS::COPY_INIT)
Base class for the hierarchy of scalar wall-law models computing turbulent quantities near walls....
DoubleVects equivalent_distance_
const DoubleVects & equivalent_distance() const
void ouvrir_fichier_partage(EcrFicPartage &, const Nom &) const
Opens or creates a print file for Face, d_eq, local Nu, h.