Skip to content

Commit c2fd653

Browse files
author
rois1995
committed
- SRS Grid size output (fix?)
1 parent e5080a1 commit c2fd653

File tree

2 files changed

+5
-6
lines changed

2 files changed

+5
-6
lines changed

SU2_CFD/include/numerics/turbulent/turb_sources.hpp

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -978,10 +978,6 @@ class CSourcePieceWise_TurbSST final : public CNumerics {
978978
Jacobian_i[0][1] = -beta_star * ScalarVar_i[0] * Volume * (1.0 + zetaFMt) * FTrans;
979979
Jacobian_i[1][0] = 0.0;
980980
Jacobian_i[1][1] = -2.0 * beta_blended * ScalarVar_i[1] * Volume * (1.0 - 0.09/beta_blended * zetaFMt);
981-
982-
// if (sstParsedOptions.sasModel == SST_OPTIONS::SAS_BABU) {
983-
// Jacobian_i[0][0] += Q_SAS * Volume / ScalarVar_i[0];
984-
// }
985981
}
986982

987983
AD::SetPreaccOut(Residual, nVar);

SU2_CFD/src/output/CFlowOutput.cpp

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1502,7 +1502,8 @@ void CFlowOutput::SetVolumeOutputFieldsScalarMisc(const CConfig* config) {
15021502
}
15031503
AddVolumeOutput("Q_CRITERION", "Q_Criterion", "VORTEX_IDENTIFICATION", "Value of the Q-Criterion");
15041504

1505-
AddVolumeOutput("SRS_GRID_SIZE", "Srs_grid_size", "SAS", "desired grid size for Scale Resolving Simulations");
1505+
if (config->GetKind_Turb_Model() != TURB_MODEL::NONE)
1506+
AddVolumeOutput("SRS_GRID_SIZE", "Srs_grid_size", "SAS", "desired grid size for Scale Resolving Simulations");
15061507

15071508
if (TurbModelFamily(config->GetKind_Turb_Model()) == TURB_FAMILY::KW) {
15081509
if (config->GetSSTParsedOptions().sasModel == SST_OPTIONS::SAS_TRAVIS) AddVolumeOutput("FTRANS", "FTrans", "SOLUTION", "value of FTrans for SAS simulation");
@@ -1552,7 +1553,9 @@ void CFlowOutput::LoadVolumeDataScalar(const CConfig* config, const CSolver* con
15521553
}
15531554
SetVolumeOutputValue("Q_CRITERION", iPoint, GetQCriterion(Node_Flow->GetVelocityGradient(iPoint)));
15541555

1555-
SetVolumeOutputValue("SRS_GRID_SIZE", iPoint, Node_Turb->GetSRSGridSize(iPoint));
1556+
if (config->GetKind_Turb_Model() != TURB_MODEL::NONE)
1557+
SetVolumeOutputValue("SRS_GRID_SIZE", iPoint, Node_Turb->GetSRSGridSize(iPoint));
1558+
15561559
if (TurbModelFamily(config->GetKind_Turb_Model()) == TURB_FAMILY::KW) {
15571560
if (config->GetSSTParsedOptions().sasModel == SST_OPTIONS::SAS_TRAVIS) SetVolumeOutputValue("FTRANS", iPoint, Node_Turb->GetFTrans(iPoint));
15581561
if (config->GetSSTParsedOptions().sasModel == SST_OPTIONS::SAS_BABU){

0 commit comments

Comments
 (0)