Skip to content

Commit 165c01a

Browse files
authored
Merge pull request #1132 from sametcaka/develop
BC Transition Model Term2 update
2 parents 03f82b3 + c93d232 commit 165c01a

1 file changed

Lines changed: 5 additions & 5 deletions

File tree

SU2_CFD/src/numerics/turbulent/turb_sources.cpp

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ CNumerics::ResidualType<> CSourcePieceWise_TurbSA::ComputeResidual(const CConfig
7878

7979
// BC Transition Model variables
8080
su2double vmag, rey, re_theta, re_theta_t, re_v;
81-
su2double tu , nu_cr, nu_t, nu_BC, chi_1, chi_2, term1, term2, term_exponential;
81+
su2double tu, nu_t, chi_1, chi_2, term1, term2, term_exponential;
8282

8383
// Set the boolean here depending on whether the point is closest to a rough wall or not.
8484
roughwall = (roughness_i > 0.0);
@@ -153,19 +153,19 @@ CNumerics::ResidualType<> CSourcePieceWise_TurbSA::ComputeResidual(const CConfig
153153

154154
// BC model constants
155155
chi_1 = 0.002;
156-
chi_2 = 5.0;
156+
chi_2 = 50.0;
157157

158158
nu_t = (TurbVar_i[0]*fv1); //S-A variable
159-
nu_cr = chi_2/rey;
160-
nu_BC = (nu_t)/(vmag*dist_i);
159+
//nu_cr = chi_2/rey;
160+
//nu_BC = (nu_t)/(vmag*dist_i);
161161

162162
re_v = ((Density_i*pow(dist_i,2.))/(Laminar_Viscosity_i))*Omega;
163163
re_theta = re_v/2.193;
164164
re_theta_t = (803.73 * pow((tu + 0.6067),-1.027)); //MENTER correlation
165165
//re_theta_t = 163.0 + exp(6.91-tu); //ABU-GHANNAM & SHAW correlation
166166

167167
term1 = sqrt(max(re_theta-re_theta_t,0.)/(chi_1*re_theta_t));
168-
term2 = sqrt(max(nu_BC-nu_cr,0.)/(nu_cr));
168+
term2 = sqrt(max((nu_t*chi_2)/nu,0.));
169169
term_exponential = (term1 + term2);
170170
gamma_BC = 1.0 - exp(-term_exponential);
171171

0 commit comments

Comments
 (0)