Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
88 commits
Select commit Hold shift + click to select a range
a7136d3
- Just copied the CTransLMSolver header and source to commit
rois1995 Jan 27, 2023
e9226db
- Start of implementation of Simplified LM transition model
rois1995 Jan 27, 2023
d03742a
- Modify number of variables if SLM option is used
rois1995 Jan 27, 2023
e17872d
- Updates on the transition model.
rois1995 Jan 31, 2023
4b9c615
- Added Cross flow effects for SLM
rois1995 Jan 31, 2023
04cd56d
- Fixed Intermittency_Sep computation for SLM.
rois1995 Feb 2, 2023
e29b4df
- Added computation for normals of grid points
rois1995 Feb 24, 2023
0319d62
Fixed normal extraction from structure
rois1995 Feb 24, 2023
b1edf61
Added computation of wall normals to the CPoint structure
rois1995 Feb 24, 2023
7eee4ab
Check For changes
rois1995 Apr 27, 2023
c461518
Removing changes for SA-R
rois1995 Apr 27, 2023
e68a9e4
Fixed vertex indexing for wall normal computation
rois1995 Apr 27, 2023
bcdd671
Removed a cout
rois1995 Apr 27, 2023
9bb2435
Fixed division by zero with Corr_Rec
rois1995 Apr 27, 2023
a9a6ce4
Removed cout
rois1995 Apr 27, 2023
86b068c
Fixed Max Velocity-Z output for Incompressible flow
rois1995 Apr 27, 2023
73c0a4b
Fixed output of Normals in volume
rois1995 Apr 27, 2023
8d5148e
- Added Simplified Langtry Menter model
rois1995 Jul 1, 2024
9db7301
- corrected bu in output
rois1995 Jul 1, 2024
1e7e7a3
Merge branch 'develop' into feature_Trans_SLM_v8
rois1995 Sep 12, 2024
ab2d71b
Merge remote-tracking branch 'origin/feature_Trans_SLM_v8' into featu…
rois1995 Sep 13, 2024
a6fe9bc
- finish update
rois1995 Sep 13, 2024
284e841
Merge remote-tracking branch 'origin/develop' into feature_Trans_SLM
rois1995 Mar 3, 2025
266cbd7
Correct muT computation in SST
rois1995 Mar 3, 2025
881b574
- Remove debug options
rois1995 Mar 3, 2025
5aa683f
- Reformat some lines
rois1995 Mar 3, 2025
4276ff8
Merge remote-tracking branch 'origin/develop' into feature_Trans_SLM
rois1995 Mar 4, 2025
a5a73aa
Fix compilation bug
rois1995 Mar 6, 2025
abc9d49
Remove StrainMag from outputs
rois1995 Mar 6, 2025
1b1bc8a
- Fix compilation bugs on Github Part 1
rois1995 Mar 6, 2025
30b4c14
Update codiPack version to 2.0
rois1995 Mar 6, 2025
7d1c612
Revert "Update codiPack version to 2.0"
rois1995 Mar 6, 2025
a4f9268
Trying fixing the CodiPack bug
rois1995 Mar 6, 2025
82c7b1f
CoDiPack sha
rois1995 Mar 7, 2025
c8f3fe7
- align externals and submodules to develop
rois1995 Mar 7, 2025
4904165
- align codi with develop
rois1995 Mar 7, 2025
831d95d
- fix compilation reverse AD bug
rois1995 Mar 7, 2025
4134667
- Fix DG problems when normal computation
rois1995 Mar 7, 2025
90efb40
Merge remote-tracking branch 'origin/develop' into feature_Trans_SLM
rois1995 Mar 10, 2025
4076c81
Merge remote-tracking branch 'origin/develop' into feature_Trans_SLM
rois1995 Mar 10, 2025
583bdf3
Merge remote-tracking branch 'origin/develop' into feature_Trans_SLM
rois1995 Mar 11, 2025
f717ed5
- Modify screen output in SU2 header
rois1995 Mar 12, 2025
0f3f412
- Fix bugs in crossflow correction
rois1995 Mar 13, 2025
1ef2081
- Revert to use of dimensional vorticity
rois1995 Mar 13, 2025
bb3b066
- Fix bug from paper in crossflow
rois1995 Mar 14, 2025
d2791b0
- fixed formatting errors
rois1995 Mar 19, 2025
41291a4
Merge remote-tracking branch 'origin/develop' into feature_Trans_SLM
rois1995 Mar 25, 2025
24785c2
Merge remote-tracking branch 'origin/develop' into feature_Trans_SLM
rois1995 Apr 8, 2025
5fb0cb9
Merge remote-tracking branch 'origin/develop' into feature_Trans_SLM
rois1995 Apr 8, 2025
b1147bd
Merge remote-tracking branch 'origin/develop' into feature_Trans_SLM
rois1995 Apr 23, 2025
0f06f3b
- Improved notation for freestream conditions on ReThetaT
rois1995 Apr 23, 2025
25fb369
Merge remote-tracking branch 'origin/develop' into feature_Trans_SLM
rois1995 Jul 7, 2025
651af7c
- Added comments
rois1995 Oct 2, 2025
e8e2284
Merge remote-tracking branch 'origin/develop' into feature_Trans_SLM
rois1995 Oct 2, 2025
48a36be
Merge branch 'develop' into feature_Trans_SLM
rois1995 Sep 23, 2026
2c0255e
Use the codi and medi submodules of develop
rois1995 Sep 23, 2026
4d4b0af
Remove debug and whitespace changes unrelated to the simplified LM model
rois1995 Sep 23, 2026
1693fd3
Fix uninitialized AuxVar and missing AD inputs in the simplified LM s…
rois1995 Sep 23, 2026
e502fed
Read only nDim components of the vertex normals for the wall normals
rois1995 Sep 23, 2026
6228cc6
Warn when the Menter one-equation model is used without Kato-Launder …
rois1995 Sep 23, 2026
aaee5bf
Make the LM and simplified LM restarts consistent
rois1995 Sep 23, 2026
72388fc
Limit the turbulence intensity in both terms of the freestream Re_the…
rois1995 Sep 23, 2026
c955ea0
Reject simplified LM combinations that are not in the literature
rois1995 Sep 23, 2026
75d666c
Couple the simplified LM model with SA as in Lee and Baeder (AIAA 202…
rois1995 Sep 23, 2026
fc979ed
Register the intermittencies as preaccumulation inputs of the SA source
rois1995 Sep 23, 2026
55fe05d
Limit the roughness height in the Langtry cross-flow correlation
rois1995 Sep 23, 2026
3958556
Cite the equations of Vallinayagam Pillai and Lardeau (2017) in the S…
rois1995 Sep 23, 2026
53c15bb
Limit the cross-flow roughness height to 1e-8 and print it at startup
rois1995 Sep 23, 2026
aefa3c9
Fix the AD build of the cross-flow vorticity direction
rois1995 Sep 23, 2026
56a6d92
Stop with an error for discrete adjoints with a transition model
rois1995 Sep 23, 2026
b2a24aa
Add regression tests for the simplified LM model on the prolate spheroid
rois1995 Sep 23, 2026
c5b1ea6
Run the regression tests with the feature_Trans_SLM branch of TestCases
rois1995 Sep 24, 2026
5478002
Accept LM2015 as the old name of CROSSFLOW, remove PRODLIM, output F_…
rois1995 Sep 28, 2026
7a88694
Fix the LM inlet values, the SA intensity limit, the AD inputs and TU…
rois1995 Sep 28, 2026
2a187cb
Merge branch 'develop' into feature_Trans_SLM
EvertBunschoten Sep 30, 2026
afe6d25
Refactor LM transition diagnostics and correlations for review
rois1995 Oct 6, 2026
ac754e6
Merge develop into feature_Trans_SLM
rois1995 Oct 9, 2026
32e21d5
Fix CodeFactor spacing and audit dependency download URLs
rois1995 Oct 9, 2026
3abc585
Merge remote-tracking branch 'origin/develop' into HEAD
rois1995 Oct 27, 2026
46eb9b1
Merge commit 'e61e2e9674d15b07d8fa1f959588d5e55ad36551' into HEAD
rois1995 Oct 29, 2026
fe489d2
Merge commit '7048fd35f56d4bf52e586429d6746a36a10255f8' into HEAD
rois1995 Oct 30, 2026
5770bfd
Merge commit 'f4b67d23deaac22948cc8d2a2c0da3138ae804f6' into HEAD
rois1995 Oct 31, 2026
efeb337
Merge branch 'develop' into feature_Trans_SLM
rois1995 Nov 17, 2026
471f76c
Merge branch 'develop' into feature_Trans_SLM
rois1995 Nov 17, 2026
f32aea2
Use TestCases develop in the regression workflow
rois1995 Nov 21, 2026
8bc03c6
Merge branch 'develop' into feature_Trans_SLM
rois1995 Nov 21, 2026
eca5245
Update the SLM regression values from CI
rois1995 Nov 21, 2026
ae63b6b
Restore the executable mode of the regression scripts
rois1995 Nov 22, 2026
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
54 changes: 54 additions & 0 deletions Common/include/geometry/dual_grid/CPoint.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -111,6 +111,7 @@ class CPoint {
su2activevector Curvature; /*!< \brief Value of the surface curvature (SU2_GEO). */
su2activevector MaxLength; /*!< \brief The maximum cell-center to cell-center length. */
su2activevector RoughnessHeight; /*!< \brief Roughness of the nearest wall. */
su2activematrix Normals; /*!< \brief Normal of the nearest wall element. */

su2matrix<AD::Identifier>
AD_InputIndex; /*!< \brief Indices of Coord variables in the adjoint vector before solver iteration. */
Expand Down Expand Up @@ -484,6 +485,27 @@ class CPoint {
}
inline void SetWall_Distance(unsigned long iPoint, su2double distance) { Wall_Distance(iPoint) = distance; }

/*!
* \brief Get the index of the closest wall element.
* \param[in] iPoint - Index of the point.
* \param[out] ClosestWall_Elem - ID of the closest element on a wall boundary.
*/
inline unsigned long GetClosestWall_Elem(unsigned long iPoint) { return ClosestWall_Elem(iPoint); }

/*!
* \brief Get the marker of the closest wall marker.
* \param[in] iPoint - Index of the point.
* \param[out] ClosestWall_Marker - MarkerID of the closest wall boundary.
*/
inline unsigned long GetClosestWall_Marker(unsigned long iPoint) { return ClosestWall_Marker(iPoint); }

/*!
* \brief Get the rank of the closest wall marker.
* \param[in] iPoint - Index of the point.
* \param[out] ClosestWall_Rank - RankID of the closest wall boundary.
*/
inline unsigned long GetClosestWall_Rank(unsigned long iPoint) { return ClosestWall_Rank(iPoint); }

/*!
* \brief Get the value of the distance to the nearest wall.
* \param[in] iPoint - Index of the point.
Expand All @@ -506,6 +528,23 @@ class CPoint {
*/
inline su2double GetRoughnessHeight(unsigned long iPoint) const { return RoughnessHeight(iPoint); }

/*!
* \brief Set the value of the normal of the nearest wall element.
* \param[in] iPoint - Index of the point.
* \param[in] normal - Value of the normal.
*/
template <typename Normals_type>
inline void SetNormal(unsigned long iPoint, Normals_type const& normal) {
for (auto iDim = 0u; iDim < nDim; iDim++) Normals(iPoint, iDim) = normal[iDim];
}

/*!
* \brief Set the value of the normal of the nearest wall element.
* \param[in] iPoint - Index of the point.
* \return normal to the normal of the nearest wall element.
*/
inline su2double* GetNormal(unsigned long iPoint) { return Normals[iPoint]; }

/*!
* \brief Set the value of the distance to a sharp edge.
* \param[in] iPoint - Index of the point.
Expand Down Expand Up @@ -902,4 +941,19 @@ class CPoint {
}
}
}

/*!
* \brief Set wall normal according to stored closest wall information.
* \param[in] normals - Mapping [rank][zone][marker][element] -> normal
*/
template <typename Normals_type>
void SetWallNormals(Normals_type const& normals) {
for (unsigned long iPoint = 0; iPoint < GlobalIndex.size(); ++iPoint) {
auto rankID = ClosestWall_Rank[iPoint];
auto zoneID = ClosestWall_Zone[iPoint];
auto markerID = ClosestWall_Marker[iPoint];
auto elementID = ClosestWall_Elem[iPoint];
if (rankID >= 0) SetNormal(iPoint, normals[rankID][zoneID][markerID][elementID]);
}
}
};
80 changes: 67 additions & 13 deletions Common/include/option_structure.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -1389,27 +1389,36 @@ static const MapType<std::string, TURB_TRANS_MODEL> Trans_Model_Map = {
* \brief LM Options
*/
enum class LM_OPTIONS {
NONE, /*!< \brief No option / default. */
LM2015, /*!< \brief Cross-flow corrections. */
MALAN, /*!< \brief Kind of transition correlation model (Malan). */
SULUKSNA, /*!< \brief Kind of transition correlation model (Suluksna). */
KRAUSE, /*!< \brief Kind of transition correlation model (Krause). */
KRAUSE_HYPER, /*!< \brief Kind of transition correlation model (Krause hypersonic). */
MEDIDA_BAEDER,/*!< \brief Kind of transition correlation model (Medida-Baeder). */
MEDIDA, /*!< \brief Kind of transition correlation model (Medida). */
MENTER_LANGTRY, /*!< \brief Kind of transition correlation model (Menter-Langtry). */
DEFAULT /*!< \brief Kind of transition correlation model (Menter-Langtry if SST, MALAN if SA). */
NONE, /*!< \brief No option / default. */
CROSSFLOW, /*!< \brief Cross-flow corrections. */
SLM, /*!< \brief Simplified version. */
MALAN, /*!< \brief Kind of transition correlation model (Malan). */
SULUKSNA, /*!< \brief Kind of transition correlation model (Suluksna). */
KRAUSE, /*!< \brief Kind of transition correlation model (Krause). */
KRAUSE_HYPER, /*!< \brief Kind of transition correlation model (Krause hypersonic). */
MEDIDA_BAEDER, /*!< \brief Kind of transition correlation model (Medida-Baeder). */
MEDIDA, /*!< \brief Kind of transition correlation model (Medida). */
MENTER_LANGTRY, /*!< \brief Kind of transition correlation model (Menter-Langtry). */
MENTER_SLM, /*!< \brief Kind of transition correlation model (Menter Simplified LM model). */
CODER_SLM, /*!< \brief Kind of transition correlation model (Coder Simplified LM model). */
MOD_EPPLER_SLM, /*!< \brief Kind of transition correlation model (Modified Eppler Simplified LM model). */
DEFAULT /*!< \brief Kind of transition correlation model (Menter-Langtry if SST, MALAN if SA). */
};

static const MapType<std::string, LM_OPTIONS> LM_Options_Map = {
MakePair("NONE", LM_OPTIONS::NONE)
MakePair("LM2015", LM_OPTIONS::LM2015)
MakePair("CROSSFLOW", LM_OPTIONS::CROSSFLOW)
MakePair("LM2015", LM_OPTIONS::CROSSFLOW) // name of the option before the one-equation model was added
MakePair("SLM", LM_OPTIONS::SLM)
MakePair("MALAN", LM_OPTIONS::MALAN)
MakePair("SULUKSNA", LM_OPTIONS::SULUKSNA)
MakePair("KRAUSE", LM_OPTIONS::KRAUSE)
MakePair("KRAUSE_HYPER", LM_OPTIONS::KRAUSE_HYPER)
MakePair("MEDIDA_BAEDER", LM_OPTIONS::MEDIDA_BAEDER)
MakePair("MENTER_LANGTRY", LM_OPTIONS::MENTER_LANGTRY)
MakePair("MENTER_SLM", LM_OPTIONS::MENTER_SLM)
MakePair("CODER_SLM", LM_OPTIONS::CODER_SLM)
MakePair("MOD_EPPLER_SLM", LM_OPTIONS::MOD_EPPLER_SLM)
MakePair("DEFAULT", LM_OPTIONS::DEFAULT)
};

Expand All @@ -1427,13 +1436,34 @@ enum class TURB_TRANS_CORRELATION {
DEFAULT /*!< \brief Kind of transition correlation model (Menter-Langtry if SST, MALAN if SA). */
};

/*!
* \brief Types of transition correlations for Simplified LM model
*/
enum class TURB_TRANS_CORRELATION_SLM {
MENTER_SLM, /*!< \brief Kind of transition correlation model (Menter Simplified LM model). */
CODER_SLM, /*!< \brief Kind of transition correlation model (Coder Simplified LM model). */
MOD_EPPLER_SLM, /*!< \brief Kind of transition correlation model (Modified Eppler Simplified LM model). */
DEFAULT /*!< \brief Kind of transition correlation model. */
};

/*!
* \brief Lower limit of the roughness height (HROUGHNESS, same units) in the cross-flow corrections of the LM models,
* where it enters a logarithm (Langtry et al., log(h/theta_t)) or a ratio (Vallinayagam Pillai and Lardeau,
* h/h0). The papers give no calibration limit for small heights, so a small value keeps these terms finite
* for smooth surfaces (h = 0). h and theta_t are both in mesh length units (the reference length of the
* non-dimensionalization is 1), so log(h/theta_t) is consistent for any REF_DIMENSIONALIZATION.
*/
constexpr double LM_CROSSFLOW_MIN_ROUGHNESS = 1e-8;

/*!
* \brief Structure containing parsed LM options.
*/
struct LM_ParsedOptions {
LM_OPTIONS version = LM_OPTIONS::NONE; /*!< \brief LM base model. */
bool LM2015 = false; /*!< \brief Use cross-flow corrections. */
bool SLM = false; /*!< \brief Use simplified version. */
bool CrossFlow = false; /*!< \brief Use cross-flow corrections. */
TURB_TRANS_CORRELATION Correlation = TURB_TRANS_CORRELATION::DEFAULT;
TURB_TRANS_CORRELATION_SLM Correlation_SLM = TURB_TRANS_CORRELATION_SLM::DEFAULT;
};

/*!
Expand All @@ -1451,7 +1481,9 @@ inline LM_ParsedOptions ParseLMOptions(const LM_OPTIONS *LM_Options, unsigned sh
return std::find(LM_Options, lm_options_end, option) != lm_options_end;
};

LMParsedOptions.LM2015 = IsPresent(LM_OPTIONS::LM2015);
LMParsedOptions.SLM = IsPresent(LM_OPTIONS::SLM);

LMParsedOptions.CrossFlow = IsPresent(LM_OPTIONS::CROSSFLOW);

int NFoundCorrelations = 0;
if (IsPresent(LM_OPTIONS::MALAN)) {
Expand Down Expand Up @@ -1483,10 +1515,28 @@ inline LM_ParsedOptions ParseLMOptions(const LM_OPTIONS *LM_Options, unsigned sh
NFoundCorrelations++;
}

int NFoundCorrelations_SLM = 0;
if (IsPresent(LM_OPTIONS::MENTER_SLM)) {
LMParsedOptions.Correlation_SLM = TURB_TRANS_CORRELATION_SLM::MENTER_SLM;
NFoundCorrelations_SLM++;
}
if (IsPresent(LM_OPTIONS::CODER_SLM)) {
LMParsedOptions.Correlation_SLM = TURB_TRANS_CORRELATION_SLM::CODER_SLM;
NFoundCorrelations_SLM++;
}
if (IsPresent(LM_OPTIONS::MOD_EPPLER_SLM)) {
LMParsedOptions.Correlation_SLM = TURB_TRANS_CORRELATION_SLM::MOD_EPPLER_SLM;
NFoundCorrelations_SLM++;
}

if (NFoundCorrelations > 1) {
SU2_MPI::Error("Two correlations selected for LM_OPTIONS. Please choose only one.", CURRENT_FUNCTION);
}

if (NFoundCorrelations_SLM > 1) {
SU2_MPI::Error("Two SLM correlations selected for LM_OPTIONS. Please choose only one.", CURRENT_FUNCTION);
}

if (LMParsedOptions.Correlation == TURB_TRANS_CORRELATION::DEFAULT){
if (Kind_Turb_Model == TURB_MODEL::SST) {
LMParsedOptions.Correlation = TURB_TRANS_CORRELATION::MENTER_LANGTRY;
Expand All @@ -1495,6 +1545,10 @@ inline LM_ParsedOptions ParseLMOptions(const LM_OPTIONS *LM_Options, unsigned sh
}
}

if (LMParsedOptions.Correlation_SLM == TURB_TRANS_CORRELATION_SLM::DEFAULT){
LMParsedOptions.Correlation_SLM = TURB_TRANS_CORRELATION_SLM::MENTER_SLM;
}

return LMParsedOptions;
}

Expand Down
121 changes: 97 additions & 24 deletions Common/src/CConfig.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3868,13 +3868,40 @@ void CConfig::SetPostprocessing(SU2_COMPONENT val_software, unsigned short val_i
SU2_MPI::Error("COMPRESSIBILITY-WILCOX only supported for SOLVER= RANS", CURRENT_FUNCTION);
}

/*--- The transition solver has no discrete adjoint: the adjoint solvers do not create it, and the turbulence
* sources would read a missing transition solution. ---*/
if (DiscreteAdjoint && Kind_Trans_Model != TURB_TRANS_MODEL::NONE) {
SU2_MPI::Error("KIND_TRANS_MODEL= LM is not available for discrete adjoint simulations (MATH_PROBLEM= DISCRETE_ADJOINT).",
CURRENT_FUNCTION);
}

/*--- Postprocess LM_OPTIONS into structure. ---*/
if (Kind_Trans_Model == TURB_TRANS_MODEL::LM) {
lmParsedOptions = ParseLMOptions(LM_Options, nLM_Options, rank, Kind_Turb_Model);

/*--- Check if problem is 2D and LM2015 has been selected ---*/
if (lmParsedOptions.LM2015 && val_nDim == 2) {
SU2_MPI::Error("LM2015 is available only for 3D problems", CURRENT_FUNCTION);

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

is LM2015 gone? or is crossflow the same?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I have changed the option to CROSSFLOW, since I will use it also for the Simplified model.

/*--- Check if problem is 2D and CrossFlow has been selected ---*/
if (lmParsedOptions.CrossFlow && val_nDim == 2) {
SU2_MPI::Error("Cross-flow corrections are available only for 3D problems", CURRENT_FUNCTION);
}

/*--- The simplified (one-equation) model is available only for the combinations found in the literature:
* SST + MENTER_SLM (+ CROSSFLOW): Menter et al., Flow Turbul. Combust. 95, 2015, with the cross-flow extension of
* Vallinayagam Pillai and Lardeau, AIAA 2017-3159.
* SA + MENTER_SLM (+ CROSSFLOW): Lee and Baeder, AIAA 2021-1532.
* The CODER_SLM and MOD_EPPLER_SLM correlations (Coder and Maughmer, AIAA 2012-672) are defined for the
* Langtry-Menter intermittency equation, not for the one-equation model implemented here. ---*/
if (lmParsedOptions.SLM) {
if (lmParsedOptions.Correlation_SLM != TURB_TRANS_CORRELATION_SLM::MENTER_SLM) {
SU2_MPI::Error("The CODER_SLM and MOD_EPPLER_SLM correlations of LM_OPTIONS are not available with the "
"one-equation (SLM) transition model:\nCoder and Maughmer (AIAA 2012-672) use them with the "
"Langtry-Menter intermittency equation.\nSupported combinations: SLM with MENTER_SLM and "
"KIND_TURB_MODEL= SST (Menter et al. 2015) or SA (Lee and Baeder, AIAA 2021-1532), "
"with or without CROSSFLOW.", CURRENT_FUNCTION);
}
if (Kind_Turb_Model != TURB_MODEL::SST && Kind_Turb_Model != TURB_MODEL::SA) {
SU2_MPI::Error("The one-equation (SLM) transition model is available only with KIND_TURB_MODEL= SST or SA.",
CURRENT_FUNCTION);
}
}
}

Expand Down Expand Up @@ -6886,33 +6913,79 @@ void CConfig::SetOutput(SU2_COMPONENT val_software, unsigned short val_izone) {
switch (Kind_Trans_Model) {
case TURB_TRANS_MODEL::NONE: break;
case TURB_TRANS_MODEL::LM: {
cout << "Transition model: Langtry and Menter's 4 equation model";
if (lmParsedOptions.LM2015) {
cout << " w/ cross-flow corrections (2015)" << endl;
int NTurbEqs = 0;
switch (Kind_Turb_Model) {
case TURB_MODEL::SA: NTurbEqs = 1; break;
case TURB_MODEL::SST: NTurbEqs = 2; break;
case TURB_MODEL::NONE: SU2_MPI::Error("No turbulence model has been selected but LM transition model is active.", CURRENT_FUNCTION); break;
}
if (!lmParsedOptions.SLM) {
int NEquations = 2;
cout << "Transition model: Langtry and Menter's "<< NEquations+NTurbEqs <<" equation model";
} else {
cout << " (2009)" << endl;
int NEquations = 1;
cout << "Transition model: Simplified Langtry and Menter's "<< NEquations+NTurbEqs <<" equation model";
}
if (lmParsedOptions.CrossFlow) {
cout << " w/ cross-flow corrections";
if (!lmParsedOptions.SLM) {
cout << " (2015)";
}
cout << endl;
cout << "Roughness height of the cross-flow model (HROUGHNESS, in mesh length units): limited to at least "
<< LM_CROSSFLOW_MIN_ROUGHNESS << " to keep log(h/theta_t) and h/h0 finite (the papers give no\n"
<< "calibration limit for small heights); ";
if (hRoughness < LM_CROSSFLOW_MIN_ROUGHNESS)
cout << "the given value " << hRoughness << " is below it, " << LM_CROSSFLOW_MIN_ROUGHNESS << " is used." << endl;
else
cout << "the given value " << hRoughness << " is used." << endl;
} else {
if (!lmParsedOptions.SLM) {
cout << " (2009)";
}
cout << endl;
}
break;
}
}
if (Kind_Trans_Model == TURB_TRANS_MODEL::LM) {

cout << "Correlation Functions: ";
switch (lmParsedOptions.Correlation) {
case TURB_TRANS_CORRELATION::MALAN: cout << "Malan et al. (2009)" << endl; break;
case TURB_TRANS_CORRELATION::SULUKSNA: cout << "Suluksna et al. (2009)" << endl; break;
case TURB_TRANS_CORRELATION::KRAUSE: cout << "Krause et al. (2008)" << endl; break;
case TURB_TRANS_CORRELATION::KRAUSE_HYPER: cout << "Krause et al. (2008, paper)" << endl; break;
case TURB_TRANS_CORRELATION::MEDIDA_BAEDER: cout << "Medida and Baeder (2011)" << endl; break;
case TURB_TRANS_CORRELATION::MEDIDA: cout << "Medida PhD (2014)" << endl; break;
case TURB_TRANS_CORRELATION::MENTER_LANGTRY: cout << "Menter and Langtry (2009)" << endl; break;
case TURB_TRANS_CORRELATION::DEFAULT:
switch (Kind_Turb_Model) {
case TURB_MODEL::SA: cout << "Malan et al. (2009)" << endl; break;
case TURB_MODEL::SST: cout << "Menter and Langtry (2009)" << endl; break;
case TURB_MODEL::NONE: SU2_MPI::Error("No turbulence model has been selected but LM transition model is active.", CURRENT_FUNCTION); break;
}
break;
if (Kind_Trans_Model == TURB_TRANS_MODEL::LM) {
Comment thread Fixed
if (!lmParsedOptions.SLM){
cout << "Correlation Functions: ";
switch (lmParsedOptions.Correlation) {
case TURB_TRANS_CORRELATION::MALAN: cout << "Malan et al. (2009)" << endl; break;
case TURB_TRANS_CORRELATION::SULUKSNA: cout << "Suluksna et al. (2009)" << endl; break;
case TURB_TRANS_CORRELATION::KRAUSE: cout << "Krause et al. (2008)" << endl; break;
case TURB_TRANS_CORRELATION::KRAUSE_HYPER: cout << "Krause et al. (2008, paper)" << endl; break;
case TURB_TRANS_CORRELATION::MEDIDA_BAEDER: cout << "Medida and Baeder (2011)" << endl; break;
case TURB_TRANS_CORRELATION::MEDIDA: cout << "Medida PhD (2014)" << endl; break;
case TURB_TRANS_CORRELATION::MENTER_LANGTRY: cout << "Menter and Langtry (2009)" << endl; break;
case TURB_TRANS_CORRELATION::DEFAULT:
switch (Kind_Turb_Model) {
case TURB_MODEL::SA: cout << "Malan et al. (2009)" << endl; break;
case TURB_MODEL::SST: cout << "Menter and Langtry (2009)" << endl; break;
case TURB_MODEL::NONE: SU2_MPI::Error("No turbulence model has been selected but LM transition model is active.", CURRENT_FUNCTION); break;
}
break;
}
}
else {
cout << "Correlation Functions for Simplified LM model: ";
switch (lmParsedOptions.Correlation_SLM) {
case TURB_TRANS_CORRELATION_SLM::CODER_SLM: cout << "Coder et al. (2012)" << endl; break;
case TURB_TRANS_CORRELATION_SLM::MOD_EPPLER_SLM: cout << "Modified Eppler (from Coder et al. 2012)" << endl; break;
case TURB_TRANS_CORRELATION_SLM::MENTER_SLM:
case TURB_TRANS_CORRELATION_SLM::DEFAULT: cout << "Menter et al. (2015)" << endl; break;
}
const bool menterSLM = lmParsedOptions.Correlation_SLM == TURB_TRANS_CORRELATION_SLM::MENTER_SLM ||
lmParsedOptions.Correlation_SLM == TURB_TRANS_CORRELATION_SLM::DEFAULT;
if (menterSLM && Kind_Turb_Model == TURB_MODEL::SST) {
cout << "WARNING: Menter et al. (2015, Eq. 24) compute the k production of the SST model with the\n"
" Kato-Launder form P_k = mu_t*S*Omega and without the SST production limiter.\n";
if (sstParsedOptions.production != SST_OPTIONS::KL)
cout << " The selected SST options do not use Kato-Launder, add KATO-LAUNDER to SST_OPTIONS.\n";
cout << " The SST production limiter is active." << endl;
}
}
}
cout << "Hybrid RANS/LES: ";
Expand Down
Loading
Loading