Skip to content

Commit 80cd477

Browse files
committed
Revert SST Limiter Output changes
1 parent 32df281 commit 80cd477

File tree

5 files changed

+5
-40
lines changed

5 files changed

+5
-40
lines changed

SU2_CFD/include/variables/CTurbSSTVariable.hpp

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -41,11 +41,9 @@ class CTurbSSTVariable final : public CTurbVariable {
4141
su2double sigma_om2;
4242
su2double beta_star;
4343
su2double prod_lim_const;
44-
su2double a1;
4544
VectorType F1;
4645
VectorType F2; /*!< \brief Menter blending function for blending of k-w and k-eps. */
4746
VectorType CDkw; /*!< \brief Cross-diffusion. */
48-
VectorType SST_Limiter;
4947
SST_ParsedOptions sstParsedOptions;
5048
public:
5149
/*!
@@ -73,7 +71,7 @@ class CTurbSSTVariable final : public CTurbVariable {
7371
* \param[in] val_dist - Value of the distance to the wall.
7472
* \param[in] val_density - Value of the density.
7573
*/
76-
void SetBlendingFunc(unsigned long iPoint, su2double val_viscosity, su2double val_dist, su2double val_density, su2double vorticity_mag, TURB_TRANS_MODEL trans_model) override;
74+
void SetBlendingFunc(unsigned long iPoint, su2double val_viscosity, su2double val_dist, su2double val_density, TURB_TRANS_MODEL trans_model) override;
7775

7876
/*!
7977
* \brief Get the first blending function.
@@ -89,9 +87,4 @@ class CTurbSSTVariable final : public CTurbVariable {
8987
* \brief Get the value of the cross diffusion of tke and omega.
9088
*/
9189
inline su2double GetCrossDiff(unsigned long iPoint) const override { return CDkw(iPoint); }
92-
/*!
93-
* \brief Get the value of the SST Limiter.
94-
*/
95-
inline su2double GetSSTLimiter(unsigned long iPoint) const { return SST_Limiter[iPoint]; }
96-
9790
};

SU2_CFD/include/variables/CVariable.hpp

Lines changed: 1 addition & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1656,7 +1656,7 @@ class CVariable {
16561656
* \param[in] val_density - Value of the density.
16571657
* \param[in] val_dist - Value of the distance to the wall.
16581658
*/
1659-
inline virtual void SetBlendingFunc(unsigned long iPoint, su2double val_viscosity, su2double val_dist, su2double val_density, su2double vorticity_mag, TURB_TRANS_MODEL trans_model) {}
1659+
inline virtual void SetBlendingFunc(unsigned long iPoint, su2double val_viscosity, su2double val_dist, su2double val_density, TURB_TRANS_MODEL trans_model) {}
16601660

16611661
/*!
16621662
* \brief Get the first blending function of the SST model.
@@ -1673,17 +1673,6 @@ class CVariable {
16731673
*/
16741674
inline virtual su2double GetCrossDiff(unsigned long iPoint) const { return 0.0; }
16751675

1676-
/*!
1677-
* \brief Get the value of the SST Limiter.
1678-
*/
1679-
inline virtual su2double GetSSTLimiter(unsigned long iPoint) const { return 0.0; }
1680-
1681-
1682-
/*!
1683-
* \brief Set the value of the SST Limiter.
1684-
*/
1685-
inline virtual su2double SetSSTLimiter(unsigned long iPoint) const { return 0.0; }
1686-
16871676
/*!
16881677
* \brief Get the value of the eddy viscosity.
16891678
* \return the value of the eddy viscosity.

SU2_CFD/src/output/CFlowOutput.cpp

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1422,10 +1422,6 @@ void CFlowOutput::SetVolumeOutputFieldsScalarPrimitive(const CConfig* config) {
14221422

14231423
if (config->GetKind_Turb_Model() != TURB_MODEL::NONE) {
14241424
AddVolumeOutput("EDDY_VISCOSITY", "Eddy_Viscosity", "PRIMITIVE", "Turbulent eddy viscosity");
1425-
/*--- SST Limiter ---*/
1426-
if (config->GetKind_Turb_Model() == TURB_MODEL::SST) {
1427-
AddVolumeOutput("SST_LIMITER", "SST_Limiter", "PRIMITIVE", "SST viscosity limiter");
1428-
}
14291425
}
14301426

14311427
}
@@ -1563,11 +1559,6 @@ void CFlowOutput::LoadVolumeDataScalar(const CConfig* config, const CSolver* con
15631559
SetVolumeOutputValue("EDDY_VISCOSITY", iPoint, Node_Flow->GetEddyViscosity(iPoint));
15641560
SetVolumeOutputValue("TURB_DELTA_TIME", iPoint, Node_Turb->GetDelta_Time(iPoint));
15651561
SetVolumeOutputValue("TURB_CFL", iPoint, Node_Turb->GetLocalCFL(iPoint));
1566-
/*--- SST Limiter ---*/
1567-
if (config->GetKind_Turb_Model() == TURB_MODEL::SST) {
1568-
SetVolumeOutputValue("SST_LIMITER", iPoint, Node_Turb->GetSSTLimiter(iPoint));
1569-
su2double sst_lim = Node_Turb->GetSSTLimiter(iPoint);
1570-
}
15711562
}
15721563

15731564
if (config->GetSAParsedOptions().bc) {

SU2_CFD/src/solvers/CTurbSSTSolver.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -233,7 +233,7 @@ void CTurbSSTSolver::Postprocessing(CGeometry *geometry, CSolver **solver_contai
233233

234234
const su2double VorticityMag = max(GeometryToolbox::Norm(3, flowNodes->GetVorticity(iPoint)), 1e-12);
235235
const su2double StrainMag = max(flowNodes->GetStrainMag(iPoint), 1e-12);
236-
nodes->SetBlendingFunc(iPoint, mu, dist, rho, VorticityMag, config->GetKind_Trans_Model());
236+
nodes->SetBlendingFunc(iPoint, mu, dist, rho, config->GetKind_Trans_Model());
237237

238238
const su2double F2 = nodes->GetF2blending(iPoint);
239239

SU2_CFD/src/variables/CTurbSSTVariable.cpp

Lines changed: 2 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -45,18 +45,16 @@ CTurbSSTVariable::CTurbSSTVariable(su2double kine, su2double omega, su2double mu
4545
sigma_om2 = constants[3];
4646
beta_star = constants[6];
4747
prod_lim_const = constants[10];
48-
a1 = constants[7];
4948

5049
F1.resize(nPoint) = su2double(1.0);
5150
F2.resize(nPoint) = su2double(0.0);
5251
CDkw.resize(nPoint) = su2double(0.0);
53-
SST_Limiter.resize(nPoint, 1.0);
5452

5553
muT.resize(nPoint) = mut;
5654
}
5755

5856
void CTurbSSTVariable::SetBlendingFunc(unsigned long iPoint, su2double val_viscosity,
59-
su2double val_dist, su2double val_density, su2double vorticity_mag, TURB_TRANS_MODEL trans_model) {
57+
su2double val_dist, su2double val_density, TURB_TRANS_MODEL trans_model) {
6058
su2double arg2, arg2A, arg2B, arg1;
6159

6260
AD::StartPreacc();
@@ -93,13 +91,7 @@ void CTurbSSTVariable::SetBlendingFunc(unsigned long iPoint, su2double val_visco
9391
F1(iPoint) = max(F1(iPoint), F3);
9492
}
9593

96-
/*--- SST Limiter ---*/
97-
98-
su2double limiter = a1*Solution(iPoint,1) / (F2(iPoint)*vorticity_mag + EPS);
99-
limiter = min(1.0, limiter);
100-
SST_Limiter(iPoint) = limiter;
101-
102-
AD::SetPreaccOut(F1(iPoint)); AD::SetPreaccOut(F2(iPoint)); AD::SetPreaccOut(CDkw(iPoint)); AD::SetPreaccOut(SST_Limiter(iPoint));
94+
AD::SetPreaccOut(F1(iPoint)); AD::SetPreaccOut(F2(iPoint)); AD::SetPreaccOut(CDkw(iPoint));
10395
AD::EndPreacc();
10496

10597
}

0 commit comments

Comments
 (0)