From 028934a232664dba922d3c081e5cf4895b574db3 Mon Sep 17 00:00:00 2001 From: WallyMaier Date: Wed, 10 Apr 2019 15:28:06 -0700 Subject: [PATCH 1/4] adding a reynolds number check --- Common/src/config_structure.cpp | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/Common/src/config_structure.cpp b/Common/src/config_structure.cpp index beda2f73edf..b845100da9f 100644 --- a/Common/src/config_structure.cpp +++ b/Common/src/config_structure.cpp @@ -1,4 +1,4 @@ -/*! +/*! * \file config_structure.cpp * \brief Main file for managing the config file * \author F. Palacios, T. Economon, B. Tracey, H. Kline @@ -94,7 +94,7 @@ CConfig::CConfig(char case_filename[MAX_STRING_SIZE], unsigned short val_softwar CConfig::CConfig(char case_filename[MAX_STRING_SIZE], unsigned short val_software) { /*--- Store MPI rank and size ---*/ - + rank = SU2_MPI::GetRank(); size = SU2_MPI::GetSize(); @@ -2947,6 +2947,12 @@ void CConfig::SetPostprocessing(unsigned short val_software, unsigned short val_ } + /*--- Check for Boundary condition option agreement ---*/ + + if ((Kind_Solver == NAVIER_STOKES || Kind_Solver == RANS) && Reynolds <=0){ + SU2_MPI::Error("Reynolds number required for NAVIER_STOKES and RANS !!", CURRENT_FUNCTION); + } + /*--- Force number of span-wise section to 1 if 2D case ---*/ if(val_nDim ==2){ nSpanWiseSections_User=1; From 7808cf26ce6bf300aa98cfaa477fa9ae5683f54e Mon Sep 17 00:00:00 2001 From: WallyMaier Date: Thu, 11 Apr 2019 12:50:20 -0700 Subject: [PATCH 2/4] adding compressible to check --- Common/src/config_structure.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Common/src/config_structure.cpp b/Common/src/config_structure.cpp index b845100da9f..a89fcc99f73 100644 --- a/Common/src/config_structure.cpp +++ b/Common/src/config_structure.cpp @@ -2949,7 +2949,7 @@ void CConfig::SetPostprocessing(unsigned short val_software, unsigned short val_ /*--- Check for Boundary condition option agreement ---*/ - if ((Kind_Solver == NAVIER_STOKES || Kind_Solver == RANS) && Reynolds <=0){ + if (Kind_Regime == COMPRESSIBLE && (Kind_Solver == NAVIER_STOKES || Kind_Solver == RANS) && Reynolds <=0){ SU2_MPI::Error("Reynolds number required for NAVIER_STOKES and RANS !!", CURRENT_FUNCTION); } From 304258c1b70f97b750a1f4c3e94ef52dced3684c Mon Sep 17 00:00:00 2001 From: WallyMaier Date: Thu, 11 Apr 2019 12:58:32 -0700 Subject: [PATCH 3/4] adding reynold initialization option --- Common/src/config_structure.cpp | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/Common/src/config_structure.cpp b/Common/src/config_structure.cpp index a89fcc99f73..779dbc016fa 100644 --- a/Common/src/config_structure.cpp +++ b/Common/src/config_structure.cpp @@ -2948,9 +2948,10 @@ void CConfig::SetPostprocessing(unsigned short val_software, unsigned short val_ } /*--- Check for Boundary condition option agreement ---*/ - - if (Kind_Regime == COMPRESSIBLE && (Kind_Solver == NAVIER_STOKES || Kind_Solver == RANS) && Reynolds <=0){ - SU2_MPI::Error("Reynolds number required for NAVIER_STOKES and RANS !!", CURRENT_FUNCTION); + if (Kind_InitOption == 0){ + if (Kind_Regime == COMPRESSIBLE && (Kind_Solver == NAVIER_STOKES || Kind_Solver == RANS) && Reynolds <=0){ + SU2_MPI::Error("Reynolds number required for NAVIER_STOKES and RANS !!", CURRENT_FUNCTION); + } } /*--- Force number of span-wise section to 1 if 2D case ---*/ From 182084ad43092a8f40d9509419181ec13e87e87b Mon Sep 17 00:00:00 2001 From: WallyMaier Date: Thu, 18 Apr 2019 09:47:24 -0700 Subject: [PATCH 4/4] changing 0 => REYNOLD --- Common/src/config_structure.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Common/src/config_structure.cpp b/Common/src/config_structure.cpp index 779dbc016fa..74cb2f7eb65 100644 --- a/Common/src/config_structure.cpp +++ b/Common/src/config_structure.cpp @@ -2948,7 +2948,7 @@ void CConfig::SetPostprocessing(unsigned short val_software, unsigned short val_ } /*--- Check for Boundary condition option agreement ---*/ - if (Kind_InitOption == 0){ + if (Kind_InitOption == REYNOLDS){ if (Kind_Regime == COMPRESSIBLE && (Kind_Solver == NAVIER_STOKES || Kind_Solver == RANS) && Reynolds <=0){ SU2_MPI::Error("Reynolds number required for NAVIER_STOKES and RANS !!", CURRENT_FUNCTION); }