@@ -1105,9 +1105,9 @@ inline SST_ParsedOptions ParseSSTOptions(const SST_OPTIONS *SST_Options, unsigne
11051105 * \brief SST rough-wall boundary conditions Options
11061106 */
11071107enum class ROUGHSST_OPTIONS {
1108- NONE, /* !< \brief No option / default. */
1109- WILCOX1998, /* !< \brief Wilcox 1998 boundary conditions for rough walls / default . */
1110- WILCOX2006, /* !< \brief Wilcox 2006 boundary conditions for rough walls. */
1108+ NONE, /* !< \brief No option / default no surface roughness applied . */
1109+ WILCOX1998, /* !< \brief Wilcox 1998 boundary conditions for rough walls. */
1110+ WILCOX2006, /* !< \brief Wilcox 2006 boundary conditions for rough walls / default version if roughness is applied . */
11111111 LIMITER_KNOPP, /* !< \brief Knopp eddy viscosity limiter. */
11121112 LIMITER_AUPOIX, /* !< \brief Aupoix eddy viscosity limiter. */
11131113};
@@ -1135,22 +1135,21 @@ struct ROUGH_SST_ParsedOptions {
11351135 * \param[in] ROUGHSST_Options - Selected SST rough-wall boundary conditions option from config.
11361136 * \param[in] nROUGHSST_Options - Number of options selected.
11371137 * \param[in] rank - MPI rank.
1138- * \return Struct with SA options.
1138+ * \return Struct with SST options.
11391139 */
1140- inline ROUGH_SST_ParsedOptions ParseROUGHSSTOptions (const ROUGHSST_OPTIONS *ROUGHSST_Options, unsigned short nROUGHSST_Options, int rank) {
1141- ROUGH_SST_ParsedOptions ROUGHSSTParsedOptions;
1142-
1143- auto IsPresent = [&](ROUGHSST_OPTIONS option) {
1144- const auto roughsst_options_end = ROUGHSST_Options + nROUGHSST_Options;
1145- return std::find (ROUGHSST_Options, roughsst_options_end, option) != roughsst_options_end;
1146- };
1147-
1148- ROUGHSSTParsedOptions.wilcox2006 = IsPresent (ROUGHSST_OPTIONS::WILCOX2006);
1149- ROUGHSSTParsedOptions.limiter_knopp = IsPresent (ROUGHSST_OPTIONS::LIMITER_KNOPP);
1150- ROUGHSSTParsedOptions.limiter_aupoix = IsPresent (ROUGHSST_OPTIONS::LIMITER_AUPOIX);
1140+ inline ROUGH_SST_ParsedOptions ParseROUGHSSTOptions (ROUGHSST_OPTIONS sstbcs_option) {
1141+ ROUGH_SST_ParsedOptions opts;
1142+ opts.version = sstbcs_option;
11511143
1144+ switch (sstbcs_option) {
1145+ case ROUGHSST_OPTIONS::WILCOX1998: opts.wilcox1998 = true ; break ;
1146+ case ROUGHSST_OPTIONS::WILCOX2006: opts.wilcox2006 = true ; break ;
1147+ case ROUGHSST_OPTIONS::LIMITER_KNOPP: opts.limiter_knopp = true ; break ;
1148+ case ROUGHSST_OPTIONS::LIMITER_AUPOIX: opts.limiter_aupoix = true ; break ;
1149+ default : break ;
1150+ }
11521151
1153- return ROUGHSSTParsedOptions ;
1152+ return opts ;
11541153}
11551154
11561155
0 commit comments