Skip to content

Commit

Permalink
- Restore previously removed variables
Browse files Browse the repository at this point in the history
  • Loading branch information
rois1995 committed Sep 3, 2024
1 parent 1b8ee5b commit 6d3586f
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions SU2_CFD/include/numerics/turbulent/turb_sources.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -881,6 +881,9 @@ class CSourcePieceWise_TurbSST final : public CNumerics {
if ( P > prod_limit ) PLim = 1.0;
su2double pk = max(0.0, min(P, prod_limit));

const auto& eddy_visc_var = sstParsedOptions.version == SST_OPTIONS::V1994 ? VorticityMag : StrainMag_i;
const su2double zeta = max(ScalarVar_i[1], eddy_visc_var * F2_i / a1);

/*--- Production limiter only for V2003, recompute for V1994. ---*/
su2double pw;
if (sstParsedOptions.version == SST_OPTIONS::V1994) {
Expand Down

0 comments on commit 6d3586f

Please sign in to comment.