Skip to content

Commit 2786e53

Browse files
authored
Merge pull request #1413 from su2code/feature_turbmod_variants
Refactor SA source terms to modularize the specification of model variants and correction terms
2 parents 3832a8f + fb33fbd commit 2786e53

11 files changed

Lines changed: 635 additions & 1286 deletions

File tree

SU2_CFD/include/numerics/CNumerics.hpp

Lines changed: 3 additions & 47 deletions
Original file line numberDiff line numberDiff line change
@@ -182,7 +182,6 @@ class CNumerics {
182182

183183
su2double MeanPerturbedRSM[3][3];/*!< \brief Perturbed Reynolds stress tensor */
184184
bool using_uq; /*!< \brief Flag for UQ methodology */
185-
su2double PerturbedStrainMag; /*!< \brief Strain magnitude calculated using perturbed stress tensor */
186185
unsigned short Eig_Val_Comp; /*!< \brief Component towards which perturbation is perfromed */
187186
su2double uq_delta_b; /*!< \brief Magnitude of perturbation */
188187
su2double uq_urlx; /*!< \brief Under-relaxation factor for numerical stability */
@@ -689,17 +688,15 @@ class CNumerics {
689688

690689
/*!
691690
* \brief Set the value of the second blending function.
692-
* \param[in] val_F1_i - Value of the second Menter blending function at point i.
693-
* \param[in] val_F1_j - Value of the second Menter blending function at point j.
691+
* \param[in] val_F2_i - Value of the second Menter blending function at point i.
694692
*/
695-
virtual void SetF2blending(su2double val_F1_i, su2double val_F1_j) {/* empty */};
693+
virtual void SetF2blending(su2double val_F2_i) {/* empty */};
696694

697695
/*!
698696
* \brief Set the value of the cross diffusion for the SST model.
699697
* \param[in] val_CDkw_i - Value of the cross diffusion at point i.
700-
* \param[in] val_CDkw_j - Value of the cross diffusion at point j.
701698
*/
702-
virtual void SetCrossDiff(su2double val_CDkw_i, su2double val_CDkw_j) {/* empty */};
699+
virtual void SetCrossDiff(su2double val_CDkw_i) {/* empty */};
703700

704701
/*!
705702
* \brief Set the gradient of the auxiliary variables.
@@ -1425,47 +1422,6 @@ class CNumerics {
14251422
return ERR;
14261423
}
14271424

1428-
/*!
1429-
* \brief Set intermittency for numerics (used in SA with LM transition model)
1430-
*/
1431-
inline virtual void SetIntermittency(su2double intermittency_in) { }
1432-
1433-
/*!
1434-
* \brief Residual for source term integration.
1435-
* \param[in] val_production - Value of the Production.
1436-
*/
1437-
inline virtual void SetProduction(su2double val_production) { }
1438-
1439-
/*!
1440-
* \brief Residual for source term integration.
1441-
* \param[in] val_destruction - Value of the Destruction.
1442-
*/
1443-
inline virtual void SetDestruction(su2double val_destruction) { }
1444-
1445-
/*!
1446-
* \brief Residual for source term integration.
1447-
* \param[in] val_crossproduction - Value of the CrossProduction.
1448-
*/
1449-
inline virtual void SetCrossProduction(su2double val_crossproduction) { }
1450-
1451-
/*!
1452-
* \brief Residual for source term integration.
1453-
* \param[in] val_production - Value of the Production.
1454-
*/
1455-
inline virtual su2double GetProduction(void) const { return 0; }
1456-
1457-
/*!
1458-
* \brief Residual for source term integration.
1459-
* \param[in] val_destruction - Value of the Destruction.
1460-
*/
1461-
inline virtual su2double GetDestruction(void) const { return 0; }
1462-
1463-
/*!
1464-
* \brief Residual for source term integration.
1465-
* \param[in] val_crossproduction - Value of the CrossProduction.
1466-
*/
1467-
inline virtual su2double GetCrossProduction(void) const { return 0; }
1468-
14691425
/*!
14701426
* \brief A virtual member.
14711427
*/

0 commit comments

Comments
 (0)