Skip to content

Commit d0918b7

Browse files
committed
Merge branch 'feature_turbmod_variants' of https://github.com/su2code/SU2 into feature_turbmod_variants
2 parents 720838c + 0f11171 commit d0918b7

1 file changed

Lines changed: 15 additions & 12 deletions

File tree

SU2_CFD/include/numerics/turbulent/turb_sources.hpp

Lines changed: 15 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -35,18 +35,19 @@
3535
*/
3636
struct CSAVariables {
3737
/*--- List of constants ---*/
38-
const su2double cv1_3 = pow(7.1, 3);
39-
const su2double k2 = pow(0.41, 2);
40-
const su2double cb1 = 0.1355;
41-
const su2double cw2 = 0.3;
42-
const su2double ct3 = 1.2;
43-
const su2double ct4 = 0.5;
44-
const su2double cw3_6 = pow(2, 6);
45-
const su2double sigma = 2.0 / 3.0;
46-
const su2double cb2 = 0.622;
47-
const su2double cb2_sigma = cb2 / sigma;
48-
const su2double cw1 = cb1 / k2 + (1 + cb2) / sigma;
49-
const su2double cr1 = 0.5;
38+
const su2double
39+
cv1_3 = pow(7.1, 3.0),
40+
k2 = pow(0.41, 2.0),
41+
cb1 = 0.1355,
42+
cw2 = 0.3,
43+
ct3 = 1.2,
44+
ct4 = 0.5,
45+
cw3_6 = pow(2.0, 6.0),
46+
sigma = 2./3.,
47+
cb2 = 0.622,
48+
cb2_sigma = cb2/sigma,
49+
cw1 = cb1/k2+(1.0+cb2)/sigma,
50+
cr1 = 0.5;
5051

5152
/*--- List of auxiliary functions ---*/
5253
su2double ft2, d_ft2, r, d_r, g, d_g, glim, fw, d_fw, Ji, d_Ji, S, Shat, d_Shat, fv1, d_fv1, fv2, d_fv2;
@@ -85,6 +86,8 @@ class CSourceBase_TurbSA : public CNumerics {
8586
idx(nDim, config->GetnSpecies()),
8687
rotating_frame(config->GetRotating_Frame()),
8788
transition(config->GetKind_Trans_Model() == TURB_TRANS_MODEL::BC) {
89+
/// TODO: make transition bool more general to consider other transition models
90+
8891
/*--- Setup the Jacobian pointer, we need to return su2double** but we know
8992
* the Jacobian is 1x1 so we use this trick to avoid heap allocation. ---*/
9093
Jacobian_i = &Jacobian_Buffer;

0 commit comments

Comments
 (0)