File tree Expand file tree Collapse file tree
SU2_CFD/include/numerics/turbulent Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -602,7 +602,7 @@ class CSourcePieceWise_TurbSST final : public CNumerics {
602602 AD::SetPreaccIn (V_i[idx.Velocity () + 1 ]);
603603
604604 const su2double yinv = 1.0 / Coord_i[1 ];
605- const su2double rhov = Density_i * V_i[2 ];
605+ const su2double rhov = Density_i * V_i[idx. Velocity () + 1 ];
606606 const su2double& k = ScalarVar_i[0 ];
607607 const su2double& w = ScalarVar_i[1 ];
608608
@@ -612,7 +612,7 @@ class CSourcePieceWise_TurbSST final : public CNumerics {
612612
613613 /* --- Production ---*/
614614 const su2double pk_axi = max (
615- 0.0 , 2.0 / 3.0 * rhov * k * ((2.0 * yinv * V_i[2 ] - PrimVar_Grad_i[2 ][1 ] - PrimVar_Grad_i[1 ][0 ]) / zeta - 1.0 ));
615+ 0.0 , 2.0 / 3.0 * rhov * k * ((2.0 * yinv * V_i[idx. Velocity () + 1 ] - PrimVar_Grad_i[2 ][1 ] - PrimVar_Grad_i[1 ][0 ]) / zeta - 1.0 ));
616616 const su2double pw_axi = alfa_blended * zeta / k * pk_axi;
617617
618618 /* --- Convection-Diffusion ---*/
You can’t perform that action at this time.
0 commit comments