63 const DoubleTab& u_tau = corr_loi_paroi.
get_tab(
"u_tau");
69 const int cvisc = visc_c.
dimension(0) == 1;
70 const int cmu = mu_visc.
dimension(0) == 1;
74 const DoubleTab* mu_vdf = domaine.que_suis_je().debute_par(
"Domaine_VDF") ? &ref_cast(
Op_Dift_Multiphase_VDF_Elem,
domaine_Cl_dis().equation().operateur(0).l_op_base()).get_diffusivite_turbulente() :
nullptr;
75 assert((mu_poly) || (mu_vdf));
77 const int nf = la_frontiere_dis->frontiere().nb_faces();
78 const int f1 = la_frontiere_dis->frontiere().num_premiere_face();
79 const IntTab& f_e = domaine.face_voisins();
83 for (
int f = 0; f < nf; f++)
85 const int f_domaine = f + f1;
86 const int e_domaine = (f_e(f_domaine,0)>=0) ? f_e(f_domaine,0) : f_e(f_domaine,1) ;
87 const double mu_tot_loc = (mu_poly) ? (*mu_poly)(e_domaine, n) : (mu_vdf) ? (*mu_vdf)(e_domaine, n) + mu_visc(!cmu * e_domaine, n) : -1;
88 const double y_loc = f_e(f_domaine, 0) >= 0 ? domaine.dist_face_elem0(f_domaine, e_domaine) : domaine.dist_face_elem1(f_domaine, e_domaine) ;
91 const double rey_wall_loc = y_loc*u_tau(f_domaine, 0)/visc_c(!cvisc * e_domaine, 0)/10;
92 const double fac = 1. / y_loc * (1 - std::tanh( rey_wall_loc*rey_wall_loc));
94 h_(f, 0) = mu_tot_loc * fac;
98 h_.echange_espace_virtuel();
99 h_grad_.echange_espace_virtuel();