Skip to content

Commit 6cc9768

Browse files
authored
Merge branch 'develop' into feature_cat_wall
2 parents 9ba56b9 + c3c6649 commit 6cc9768

192 files changed

Lines changed: 4441 additions & 4094 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.

AUTHORS.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -126,6 +126,7 @@ TobiKattmann
126126
Trent Lukaczyk
127127
VivaanKhatri
128128
Wally Maier
129+
Zan Xu
129130
aaronyicongfu
130131
aeroamit
131132
anilvar

Common/doc/docmain.hpp

Lines changed: 0 additions & 91 deletions
This file was deleted.

Common/include/CConfig.hpp

Lines changed: 20 additions & 44 deletions
Original file line numberDiff line numberDiff line change
@@ -804,11 +804,9 @@ class CConfig {
804804
Gas_Constant, /*!< \brief Specific gas constant. */
805805
Gas_ConstantND, /*!< \brief Non-dimensional specific gas constant. */
806806
*Molecular_Weight; /*!< \brief Molecular weight of an incompressible ideal gas (g/mol). */
807-
unsigned short nMolecular_Weight; /*!< \brief Number of species molecular weights. */
808-
su2double Specific_Heat_Cp, /*!< \brief Specific heat at constant pressure. */
809-
Specific_Heat_CpND, /*!< \brief Non-dimensional specific heat at constant pressure. */
810-
Specific_Heat_Cv, /*!< \brief Specific heat at constant volume. */
811-
Specific_Heat_CvND, /*!< \brief Non-dimensional specific heat at constant volume. */
807+
unsigned short nMolecular_Weight, /*!< \brief Number of species molecular weights. */
808+
nSpecific_Heat_Cp; /*!< \brief Number of species specific heat constants at constant pressure. */
809+
su2double *Specific_Heat_Cp, /*!< \brief Specific heat at constant pressure. */
812810
Thermal_Expansion_Coeff, /*!< \brief Thermal expansion coefficient. */
813811
Thermal_Expansion_CoeffND, /*!< \brief Non-dimensional thermal expansion coefficient. */
814812
Inc_Density_Ref, /*!< \brief Reference density for custom incompressible non-dim. */
@@ -833,11 +831,13 @@ class CConfig {
833831
nMu_S, /*!< \brief Number of species reference S for Sutherland model. */
834832
nThermal_Conductivity_Constant,/*!< \brief Number of species constant thermal conductivity. */
835833
nPrandtl_Lam, /*!< \brief Number of species laminar Prandtl number. */
836-
nPrandtl_Turb; /*!< \brief Number of species turbulent Prandtl number. */
834+
nPrandtl_Turb, /*!< \brief Number of species turbulent Prandtl number. */
835+
nConstant_Lewis_Number; /*!< \brief Number of species Lewis Number. */
837836
su2double Diffusivity_Constant; /*!< \brief Constant mass diffusivity for scalar transport. */
838837
su2double Diffusivity_ConstantND; /*!< \brief Non-dim. constant mass diffusivity for scalar transport. */
839838
su2double Schmidt_Number_Laminar; /*!< \brief Laminar Schmidt number for mass diffusion. */
840839
su2double Schmidt_Number_Turbulent; /*!< \brief Turbulent Schmidt number for mass diffusion. */
840+
su2double *Constant_Lewis_Number; /*!< \brief Different Lewis number for mass diffusion. */
841841
array<su2double, N_POLY_COEFFS> CpPolyCoefficientsND{{0.0}}; /*!< \brief Definition of the non-dimensional temperature polynomial coefficients for specific heat Cp. */
842842
array<su2double, N_POLY_COEFFS> MuPolyCoefficientsND{{0.0}}; /*!< \brief Definition of the non-dimensional temperature polynomial coefficients for viscosity. */
843843
array<su2double, N_POLY_COEFFS> KtPolyCoefficientsND{{0.0}}; /*!< \brief Definition of the non-dimensional temperature polynomial coefficients for thermal conductivity. */
@@ -1622,25 +1622,13 @@ class CConfig {
16221622
* \brief Get the value of specific heat at constant pressure.
16231623
* \return Value of the constant: Cp
16241624
*/
1625-
su2double GetSpecific_Heat_Cp(void) const { return Specific_Heat_Cp; }
1625+
su2double GetSpecific_Heat_Cp(unsigned short val_index = 0) const { return Specific_Heat_Cp[val_index]; }
16261626

16271627
/*!
16281628
* \brief Get the non-dimensional value of specific heat at constant pressure.
16291629
* \return Value of the non-dim. constant: Cp
16301630
*/
1631-
su2double GetSpecific_Heat_CpND(void) const { return Specific_Heat_CpND; }
1632-
1633-
/*!
1634-
* \brief Get the value of specific heat at constant volume.
1635-
* \return Value of the constant: Cv
1636-
*/
1637-
su2double GetSpecific_Heat_Cv(void) const { return Specific_Heat_Cv; }
1638-
1639-
/*!
1640-
* \brief Get the non-dimensional value of specific heat at constant volume.
1641-
* \return Value of the non-dim. constant: Cv
1642-
*/
1643-
su2double GetSpecific_Heat_CvND(void) const { return Specific_Heat_CvND; }
1631+
su2double GetSpecific_Heat_CpND(unsigned short val_index = 0) const { return Specific_Heat_Cp[val_index] / Gas_Constant_Ref; }
16441632

16451633
/*!
16461634
* \brief Get the value of wall temperature.
@@ -2430,30 +2418,6 @@ class CConfig {
24302418
*/
24312419
void SetGas_Constant(su2double val_gas_constant) { Gas_Constant = val_gas_constant; }
24322420

2433-
/*!
2434-
* \brief Set the value of the specific heat at constant pressure (incompressible fluids with energy equation).
2435-
* \param[in] val_specific_heat_cp - specific heat at constant pressure.
2436-
*/
2437-
void SetSpecific_Heat_Cp(su2double val_specific_heat_cp) { Specific_Heat_Cp = val_specific_heat_cp; }
2438-
2439-
/*!
2440-
* \brief Set the non-dimensional value of the specific heat at constant pressure (incompressible fluids with energy equation).
2441-
* \param[in] val_specific_heat_cpnd - non-dim. specific heat at constant pressure.
2442-
*/
2443-
void SetSpecific_Heat_CpND(su2double val_specific_heat_cpnd) { Specific_Heat_CpND = val_specific_heat_cpnd; }
2444-
2445-
/*!
2446-
* \brief Set the value of the specific heat at constant volume (incompressible fluids with energy equation).
2447-
* \param[in] val_specific_heat_cv - specific heat at constant volume.
2448-
*/
2449-
void SetSpecific_Heat_Cv(su2double val_specific_heat_cv) { Specific_Heat_Cv = val_specific_heat_cv; }
2450-
2451-
/*!
2452-
* \brief Set the non-dimensional value of the specific heat at constant volume (incompressible fluids with energy equation).
2453-
* \param[in] val_specific_heat_cvnd - non-dim. specific heat at constant pressure.
2454-
*/
2455-
void SetSpecific_Heat_CvND(su2double val_specific_heat_cvnd) { Specific_Heat_CvND = val_specific_heat_cvnd; }
2456-
24572421
/*!
24582422
* \brief Set the heat flux reference value.
24592423
* \return Value of the reference heat flux.
@@ -3840,6 +3804,12 @@ class CConfig {
38403804
*/
38413805
CONDUCTIVITYMODEL_TURB GetKind_ConductivityModel_Turb() const { return Kind_ConductivityModel_Turb; }
38423806

3807+
/*!
3808+
* \brief Get the value of the mass diffusivity model.
3809+
* \return Mass diffusivity model.
3810+
*/
3811+
DIFFUSIVITYMODEL GetKind_Diffusivity_Model(void) const { return Kind_Diffusivity_Model; }
3812+
38433813
/*!
38443814
* \brief Get the value of the constant viscosity.
38453815
* \return Constant viscosity.
@@ -3892,6 +3862,12 @@ class CConfig {
38923862
*/
38933863
su2double GetSchmidt_Number_Turbulent(void) const { return Schmidt_Number_Turbulent; }
38943864

3865+
/*!
3866+
* \brief Get the value of the Lewis number for each species.
3867+
* \return Lewis Number.
3868+
*/
3869+
su2double GetConstant_Lewis_Number(unsigned short val_index = 0) const { return Constant_Lewis_Number[val_index]; }
3870+
38953871
/*!
38963872
* \brief Get the value of the reference viscosity for Sutherland model.
38973873
* \return The reference viscosity.

Common/include/adt/CADTBaseClass.hpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@ using namespace std;
3838

3939
/*!
4040
* \class CADTBaseClass
41+
* \ingroup ADT
4142
* \brief Base class for storing an ADT in an arbitrary number of dimensions.
4243
* \author E. van der Weide
4344
*/

Common/include/adt/CADTComparePointClass.hpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@
3030

3131
/*!
3232
* \class CADTComparePointClass
33+
* \ingroup ADT
3334
* \brief Functor, used for the sorting of the points when building an ADT.
3435
* \author E. van der Weide
3536
*/

Common/include/adt/CADTElemClass.hpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@
3333

3434
/*!
3535
* \class CADTElemClass
36+
* \ingroup ADT
3637
* \brief Class for storing an ADT of (linear) elements in an arbitrary number of dimensions.
3738
* \author E. van der Weide
3839
* \version 7.4.0 "Blackbird"

Common/include/adt/CADTNodeClass.hpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@
3030

3131
/*!
3232
* \class CADTNodeClass
33+
* \ingroup ADT
3334
* \brief Class for storing the information needed in a node of an ADT.
3435
* \author E. van der Weide
3536
*/

Common/include/adt/CADTPointsOnlyClass.hpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@
3030

3131
/*!
3232
* \class CADTPointsOnlyClass
33+
* \ingroup ADT
3334
* \brief Class for storing an ADT of only points in an arbitrary number of dimensions.
3435
* \author E. van der Weide
3536
*/

Common/include/adt/CBBoxTargetClass.hpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@
3131

3232
/*!
3333
* \class CBBoxTargetClass
34+
* \ingroup ADT
3435
* \brief Class for storing the information of a possible bounding box candidate
3536
during a minimum distance search.
3637
* \author E. van der Weide

Common/include/basic_types/datatype_structure.hpp

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -114,6 +114,21 @@ namespace SU2_TYPE {
114114
FORCEINLINE void SetDerivative(su2double &, const passivedouble &) {}
115115
#endif
116116

117+
/*!
118+
* \brief Get the passive value of any variable. For most types return directly,
119+
* specialize for su2double to call GetValue.
120+
* \note This is a struct instead of a function because the return type of the
121+
* su2double specialization changes.
122+
*/
123+
template <class T>
124+
struct Passive {
125+
FORCEINLINE static T Value(const T& val) {return val;}
126+
};
127+
template <>
128+
struct Passive<su2double> {
129+
FORCEINLINE static passivedouble Value(const su2double& val) {return GetValue(val);}
130+
};
131+
117132
/*!
118133
* \brief Casts the primitive value to int (uses GetValue, already implemented for each type).
119134
* \param[in] data - The non-primitive datatype.

0 commit comments

Comments
 (0)