16#include <Paroi_loi_WW_scal_VDF.h>
17#include <Paroi_std_hyd_VDF.h>
18#include <Champ_Uniforme.h>
19#include <Domaine_Cl_VDF.h>
20#include <Dirichlet_paroi_fixe.h>
21#include <Dirichlet_paroi_defilante.h>
22#include <Probleme_base.h>
23#include <Fluide_base.h>
24#include <Modele_turbulence_hyd_base.h>
25#include <Convection_Diffusion_Concentration.h>
26#include <Modele_turbulence_scal_base.h>
27#include <Constituant.h>
58double Paroi_loi_WW_scal_VDF::Fthpar(
double y_plus,
double Pr,
double Beta)
60 static double C_inv = 2.12;
61 double Gamma = (0.01*pow(Pr*y_plus,4.))/(1.+5.*pow(Pr,3.)*y_plus);
62 double f = Pr*y_plus*exp(-Gamma);
64 f += (C_inv*log(1.+y_plus) + Beta)*exp(-1./(Gamma+1e-20));
71 tab_u_star.resize(le_dom_dis_->nb_faces_bord());
77 static double C = 1./2.12;
80 DoubleTab& alpha_t = diffusivite_turb.
valeurs();
85 const DoubleTab& tab_visco = ch_visco_cin.
valeurs();
91 visco = std::max(tab_visco(0,0),DMINFLOAT);
99 Cerr <<
"In Paroi_loi_WW_scal_VDF::calculer_scal : visco = " << tab_visco.
local_min_vect() <<
" <= 0 ? " << finl;
114 const RefObjU& modele_turbulence_hydr = eqn_hydr.
get_modele(TURBULENCE);
117 const DoubleVect& tab_ustar = loi.
tab_u_star();
124 for (
int n_bord=0; n_bord<domaine_VDF.
nb_front_Cl(); n_bord++)
134 const Cond_lim& la_cl = le_dom_Cl_dis_->les_conditions_limites(n_bord);
144 int boundary_index=-1;
146 boundary_index=n_bord;
147 assert(boundary_index >= 0);
149 for (
int num_face=ndeb; num_face<nfin; num_face++)
151 elem = face_voisins(num_face,0);
153 elem = face_voisins(num_face,1);
161 d_visco = tab_visco[elem];
170 double u_star = tab_ustar(num_face);
173 d_alpha = alpha.
valeurs()(0,0);
177 d_alpha = alpha.
valeurs()(elem);
179 d_alpha = alpha.
valeurs()(elem,0);
181 double Pr = d_visco/d_alpha;
182 double Beta = pow(3.85*pow(Pr,1./3.)-1.3,2.)+2.12*log(Pr);
183 alpha_t(elem) = u_star*dist*C;
191 int global_face=num_face;
193 equivalent_distance_[boundary_index][local_face] = d_alpha*Fthpar(dist*u_star/d_visco,Pr,Beta)/u_star;
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_base Base class of fields that are functions of a calculated quantity
class Cond_lim Generic class used to represent any class
Convection_Diffusion_Concentration Special case of Convection_Diffusion_std.
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.
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).
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 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 RefObjU & get_modele(Type_modele type) const
Probleme_base & probleme()
Returns the problem associated with the equation.
virtual int nb_comp() const
Base class for an incompressible fluid and its properties:
const Champ_Don_base & viscosite_cinematique() const
int num_local_face(const int) const
int num_premiere_face() const
const Nom & le_nom() const override
Returns the name of the geometric boundary.
virtual const Champ_Don_base & diffusivite() const
Returns the diffusivity of the medium (const version).
Base class for the turbulence model hierarchy for Navier-Stokes equations.
const Turbulence_paroi_base & loi_paroi() const
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.
classe Paroi_loi_WW_scal_VDF
int init_lois_paroi() override
int calculer_scal(Champ_Fonc_base &) override
int init_lois_paroi() override
virtual const Equation_base & equation(int) const =0
Base class for output streams.
_TYPE_ local_min_vect(Mp_vect_options opt=VECT_REAL_ITEMS) const
const Objet_U & valeur() const
Base class for the hierarchy of wall-law models computing turbulent quantities near walls....
const DoubleVect & tab_u_star() const
DoubleVects equivalent_distance_