Skip to content

Commit ddd855b

Browse files
Pulled develop and updated submodules
2 parents e55c0fe + 6891b44 commit ddd855b

98 files changed

Lines changed: 4018 additions & 674 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
@@ -704,6 +704,7 @@ class CConfig {
704704
nMarker_PyCustom, /*!< \brief Number of markers that are customizable in Python. */
705705
nMarker_DV, /*!< \brief Number of markers affected by the design variables. */
706706
nMarker_WallFunctions, /*!< \brief Number of markers for which wall functions must be applied. */
707+
nMarker_StrongBC, /*!< \brief Number of markers for which a strong BC must be applied. */
707708
nMarker_SobolevBC; /*!< \brief Number of markers treaded in the gradient problem. */
708709
string *Marker_Monitoring, /*!< \brief Markers to monitor. */
709710
*Marker_Designing, /*!< \brief Markers to design. */
@@ -715,6 +716,7 @@ class CConfig {
715716
*Marker_PyCustom, /*!< \brief Markers that are customizable in Python. */
716717
*Marker_DV, /*!< \brief Markers affected by the design variables. */
717718
*Marker_WallFunctions, /*!< \brief Markers for which wall functions must be applied. */
719+
*Marker_StrongBC, /*!< \brief Markers for which a strong BC must be applied. */
718720
*Marker_SobolevBC; /*!< \brief Markers in the gradient solver */
719721

720722
unsigned short nConfig_Files; /*!< \brief Number of config files for multiphysics problems. */
@@ -1187,7 +1189,7 @@ class CConfig {
11871189
unsigned short maxBasisDim, /*!< \brief Maximum number of POD basis dimensions. */
11881190
rom_save_freq; /*!< \brief Frequency of unsteady time steps to save. */
11891191

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

11921194
/* other NEMO configure options*/
11931195
unsigned short nSpecies_Cat_Wall, /*!< \brief No. of species for a catalytic wall. */
@@ -1218,6 +1220,23 @@ class CConfig {
12181220
su2double* Species_Init; /*!< \brief Initial uniform value for scalar transport. */
12191221
unsigned short nSpecies_Init; /*!< \brief Number of entries of SPECIES_INIT */
12201222

1223+
/*--- Additional flamelet solver options ---*/
1224+
su2double flame_init[8]; /*!< \brief Initial solution parameters for flamelet solver.*/
1225+
1226+
/*--- lookup table ---*/
1227+
unsigned short n_scalars = 0; /*!< \brief Number of transported scalars for flamelet LUT approach. */
1228+
unsigned short n_lookups = 0; /*!< \brief Number of lookup variables, for visualization only. */
1229+
unsigned short n_table_sources = 0; /*!< \brief Number of transported scalar source terms for LUT. */
1230+
unsigned short n_user_scalars = 0; /*!< \brief Number of user defined (auxiliary) scalar transport equations. */
1231+
unsigned short n_user_sources = 0; /*!< \brief Number of source terms for user defined (auxiliary) scalar transport equations. */
1232+
unsigned short n_control_vars = 0; /*!< \brief Number of controlling variables (independent variables) for the LUT. */
1233+
1234+
vector<string> table_scalar_names; /*!< \brief Names of transported scalar variables. */
1235+
string* table_lookup_names; /*!< \brief Names of LUT variables. */
1236+
string file_name_lut; /*!< \brief Filename of the LUT. */
1237+
string* user_scalar_names; /*!< \brief Names of the user defined (auxiliary) transported scalars .*/
1238+
string* user_source_names; /*!< \brief Names of the source terms for the user defined transported scalars. */
1239+
12211240
/*!
12221241
* \brief Set the default values of config options not set in the config file using another config object.
12231242
* \param config - Config object to use the default values from.
@@ -2109,6 +2128,63 @@ class CConfig {
21092128
*/
21102129
bool GetSpecies_StrongBC() const { return Species_StrongBC; }
21112130

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

9426+
/*!
9427+
* \brief Get if boundary is strong or weak.
9428+
* \param[in] val_index - Index corresponding to the boundary.
9429+
* \return true if strong BC.
9430+
*/
9431+
bool GetMarker_StrongBC(const string& val_index) const;
9432+
93509433
/*!
93519434
* \brief Get the value of the CFL condition for radiation solvers.
93529435
* \return Value of the CFL condition for radiation solvers.

0 commit comments

Comments
 (0)