Skip to content

Commit 0089498

Browse files
authored
Merge branch 'develop' into develop
2 parents 772483b + 536def1 commit 0089498

84 files changed

Lines changed: 3676 additions & 392 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

Common/include/CConfig.hpp

Lines changed: 84 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -697,6 +697,7 @@ class CConfig {
697697
nMarker_PyCustom, /*!< \brief Number of markers that are customizable in Python. */
698698
nMarker_DV, /*!< \brief Number of markers affected by the design variables. */
699699
nMarker_WallFunctions, /*!< \brief Number of markers for which wall functions must be applied. */
700+
nMarker_StrongBC, /*!< \brief Number of markers for which a strong BC must be applied. */
700701
nMarker_SobolevBC; /*!< \brief Number of markers treaded in the gradient problem. */
701702
string *Marker_Monitoring, /*!< \brief Markers to monitor. */
702703
*Marker_Designing, /*!< \brief Markers to design. */
@@ -708,6 +709,7 @@ class CConfig {
708709
*Marker_PyCustom, /*!< \brief Markers that are customizable in Python. */
709710
*Marker_DV, /*!< \brief Markers affected by the design variables. */
710711
*Marker_WallFunctions, /*!< \brief Markers for which wall functions must be applied. */
712+
*Marker_StrongBC, /*!< \brief Markers for which a strong BC must be applied. */
711713
*Marker_SobolevBC; /*!< \brief Markers in the gradient solver */
712714

713715
unsigned short nConfig_Files; /*!< \brief Number of config files for multiphysics problems. */
@@ -1179,7 +1181,7 @@ class CConfig {
11791181
unsigned short maxBasisDim, /*!< \brief Maximum number of POD basis dimensions. */
11801182
rom_save_freq; /*!< \brief Frequency of unsteady time steps to save. */
11811183

1182-
unsigned short nSpecies; /*!< \brief Number of transported species equations (for NEMO and species transport)*/
1184+
unsigned short nSpecies = 0; /*!< \brief Number of transported species equations (for NEMO and species transport)*/
11831185

11841186
/* other NEMO configure options*/
11851187
unsigned short nSpecies_Cat_Wall, /*!< \brief No. of species for a catalytic wall. */
@@ -1210,6 +1212,23 @@ class CConfig {
12101212
su2double* Species_Init; /*!< \brief Initial uniform value for scalar transport. */
12111213
unsigned short nSpecies_Init; /*!< \brief Number of entries of SPECIES_INIT */
12121214

1215+
/*--- Additional flamelet solver options ---*/
1216+
su2double flame_init[8]; /*!< \brief Initial solution parameters for flamelet solver.*/
1217+
1218+
/*--- lookup table ---*/
1219+
unsigned short n_scalars = 0; /*!< \brief Number of transported scalars for flamelet LUT approach. */
1220+
unsigned short n_lookups = 0; /*!< \brief Number of lookup variables, for visualization only. */
1221+
unsigned short n_table_sources = 0; /*!< \brief Number of transported scalar source terms for LUT. */
1222+
unsigned short n_user_scalars = 0; /*!< \brief Number of user defined (auxiliary) scalar transport equations. */
1223+
unsigned short n_user_sources = 0; /*!< \brief Number of source terms for user defined (auxiliary) scalar transport equations. */
1224+
unsigned short n_control_vars = 0; /*!< \brief Number of controlling variables (independent variables) for the LUT. */
1225+
1226+
vector<string> table_scalar_names; /*!< \brief Names of transported scalar variables. */
1227+
string* table_lookup_names; /*!< \brief Names of LUT variables. */
1228+
string file_name_lut; /*!< \brief Filename of the LUT. */
1229+
string* user_scalar_names; /*!< \brief Names of the user defined (auxiliary) transported scalars .*/
1230+
string* user_source_names; /*!< \brief Names of the source terms for the user defined transported scalars. */
1231+
12131232
/*!
12141233
* \brief Set the default values of config options not set in the config file using another config object.
12151234
* \param config - Config object to use the default values from.
@@ -2101,6 +2120,63 @@ class CConfig {
21012120
*/
21022121
bool GetSpecies_StrongBC() const { return Species_StrongBC; }
21032122

2123+
/*!
2124+
* \brief Get the flame initialization.
2125+
* (x1,x2,x3) = flame offset.
2126+
* (x4,x5,x6) = flame normal, separating unburnt from burnt.
2127+
* (x7) = flame thickness, the length from unburnt to burnt conditions.
2128+
* (x8) = flame burnt thickness, the length to stay at burnt conditions.
2129+
* \return Flame initialization for the flamelet model.
2130+
*/
2131+
const su2double* GetFlameInit() const { return flame_init; }
2132+
2133+
/*!
2134+
* \brief Get the number of control variables for flamelet model.
2135+
*/
2136+
unsigned short GetNControlVars() const { return n_control_vars; }
2137+
2138+
/*!
2139+
* \brief Get the number of total transported scalars for flamelet model.
2140+
*/
2141+
unsigned short GetNScalars() const { return n_scalars; }
2142+
2143+
/*!
2144+
* \brief Get the number of user scalars for flamelet model.
2145+
*/
2146+
unsigned short GetNUserScalars() const { return n_user_scalars; }
2147+
2148+
/*!
2149+
* \brief Get the name of the user scalar.
2150+
*/
2151+
const string& GetUserScalarName(unsigned short i_user_scalar) const {
2152+
static const std::string none = "NONE";
2153+
if (n_user_scalars > 0) return user_scalar_names[i_user_scalar]; else return none;
2154+
}
2155+
2156+
/*!
2157+
* \brief Get the name of the user scalar source term.
2158+
*/
2159+
const string& GetUserSourceName(unsigned short i_user_source) const {
2160+
static const std::string none = "NONE";
2161+
if (n_user_sources > 0) return user_source_names[i_user_source]; else return none;
2162+
}
2163+
2164+
/*!
2165+
* \brief Get the number of transported scalars for combustion.
2166+
*/
2167+
unsigned short GetNLookups() const { return n_lookups; }
2168+
2169+
/*!
2170+
* \brief Get the name of the variable that we want to retrieve from the lookup table.
2171+
*/
2172+
const string& GetLUTLookupName(unsigned short i_lookup) const { return table_lookup_names[i_lookup]; }
2173+
2174+
/*!
2175+
* \brief Get the file name of the look up table.
2176+
* \return File name of the look up table.
2177+
*/
2178+
const string& GetFileNameLUT() const { return file_name_lut; }
2179+
21042180
/*!
21052181
* \brief Get the Young's modulus of elasticity.
21062182
* \return Value of the Young's modulus of elasticity.
@@ -9305,6 +9381,13 @@ class CConfig {
93059381
*/
93069382
su2double GetWall_Emissivity(const string& val_index) const;
93079383

9384+
/*!
9385+
* \brief Get if boundary is strong or weak.
9386+
* \param[in] val_index - Index corresponding to the boundary.
9387+
* \return true if strong BC.
9388+
*/
9389+
bool GetMarker_StrongBC(const string& val_index) const;
9390+
93089391
/*!
93099392
* \brief Get the value of the CFL condition for radiation solvers.
93109393
* \return Value of the CFL condition for radiation solvers.

0 commit comments

Comments
 (0)