Skip to content

Commit 6a43bfe

Browse files
committed
Throw an error if turbulence model cannot be used for axisymmetric case
1 parent 8b5eea9 commit 6a43bfe

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

Common/src/CConfig.cpp

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3375,6 +3375,11 @@ void CConfig::SetPostprocessing(SU2_COMPONENT val_software, unsigned short val_i
33753375
SU2_MPI::Error("A turbulence model must be specified with KIND_TURB_MODEL if SOLVER= INC_RANS", CURRENT_FUNCTION);
33763376
}
33773377

3378+
/*--- Check if turbulence model can be used for AXISYMMETRIC case---*/
3379+
if (Axisymmetric && Kind_Turb_Model != TURB_MODEL::NONE && Kind_Turb_Model != TURB_MODEL::SST && Kind_Turb_Model != TURB_MODEL::SST_SUST){
3380+
SU2_MPI::Error("Axisymmetry is currently only supported for KIND_TURB_MODEL chosen as SST or SST_SUST", CURRENT_FUNCTION);
3381+
}
3382+
33783383
/*--- Set the boolean Wall_Functions equal to true if there is a
33793384
definition for the wall founctions ---*/
33803385

0 commit comments

Comments
 (0)