Skip to content

Commit 2da86f5

Browse files
committed
Fixed hardcoding of velocity component in axisymmetric resdiual
1 parent 6a43bfe commit 2da86f5

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

SU2_CFD/include/numerics/turbulent/turb_sources.hpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff 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 ---*/

0 commit comments

Comments
 (0)