Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

adding a reynolds number check #669

Merged
merged 5 commits into from
Apr 23, 2019
Merged
Changes from all commits
Commits
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
11 changes: 9 additions & 2 deletions Common/src/config_structure.cpp
Original file line number Diff line number Diff line change
@@ -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
Expand Down Expand Up @@ -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();

Expand Down Expand Up @@ -2947,6 +2947,13 @@ void CConfig::SetPostprocessing(unsigned short val_software, unsigned short val_

}

/*--- Check for Boundary condition option agreement ---*/
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);
}
}

/*--- Force number of span-wise section to 1 if 2D case ---*/
if(val_nDim ==2){
nSpanWiseSections_User=1;
Expand Down