Skip to content

Commit c913819

Browse files
committed
Fixed hardcoding of Prim_Var_Grad component in axisymmetric resdiual
1 parent 2da86f5 commit c913819

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

SU2_CFD/include/numerics/turbulent/turb_sources.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -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[idx.Velocity() + 1] - 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[idx.Velocity()+1][1] - PrimVar_Grad_i[idx.Velocity()][0]) / zeta - 1.0));
616616
const su2double pw_axi = alfa_blended * zeta / k * pk_axi;
617617

618618
/*--- Convection-Diffusion ---*/

0 commit comments

Comments
 (0)