Skip to content

Commit 562eaf7

Browse files
authored
Merge branch 'develop' into feature_cat_wall
2 parents 8a7b8af + 7e35912 commit 562eaf7

36 files changed

Lines changed: 764 additions & 706 deletions

Common/include/CConfig.hpp

Lines changed: 39 additions & 49 deletions
Original file line numberDiff line numberDiff line change
@@ -480,6 +480,7 @@ class CConfig {
480480
INC_DENSITYMODEL Kind_DensityModel; /*!< \brief Kind of the density model for incompressible flows. */
481481
CHT_COUPLING Kind_CHT_Coupling; /*!< \brief Kind of coupling method used at CHT interfaces. */
482482
VISCOSITYMODEL Kind_ViscosityModel; /*!< \brief Kind of the Viscosity Model*/
483+
MIXINGVISCOSITYMODEL Kind_MixingViscosityModel; /*!< \brief Kind of the mixing Viscosity Model*/
483484
CONDUCTIVITYMODEL Kind_ConductivityModel; /*!< \brief Kind of the Thermal Conductivity Model */
484485
CONDUCTIVITYMODEL_TURB Kind_ConductivityModel_Turb; /*!< \brief Kind of the Turbulent Thermal Conductivity Model */
485486
DIFFUSIVITYMODEL Kind_Diffusivity_Model; /*!< \brief Kind of the mass diffusivity Model */
@@ -821,16 +822,18 @@ class CConfig {
821822
Pressure_Critical, /*!< \brief Critical Pressure for real fluid model. */
822823
Density_Critical, /*!< \brief Critical Density for real fluid model. */
823824
Acentric_Factor, /*!< \brief Acentric Factor for real fluid model. */
824-
Mu_Constant, /*!< \brief Constant viscosity for ConstantViscosity model. */
825-
Mu_ConstantND, /*!< \brief Non-dimensional constant viscosity for ConstantViscosity model. */
826-
Thermal_Conductivity_Constant, /*!< \brief Constant thermal conductivity for ConstantConductivity model. */
827-
Thermal_Conductivity_ConstantND, /*!< \brief Non-dimensional constant thermal conductivity for ConstantConductivity model. */
828-
Mu_Ref, /*!< \brief Reference viscosity for Sutherland model. */
829-
Mu_RefND, /*!< \brief Non-dimensional reference viscosity for Sutherland model. */
830-
Mu_Temperature_Ref, /*!< \brief Reference temperature for Sutherland model. */
831-
Mu_Temperature_RefND, /*!< \brief Non-dimensional reference temperature for Sutherland model. */
832-
Mu_S, /*!< \brief Reference S for Sutherland model. */
833-
Mu_SND; /*!< \brief Non-dimensional reference S for Sutherland model. */
825+
*Mu_Constant, /*!< \brief Constant viscosity for ConstantViscosity model. */
826+
*Thermal_Conductivity_Constant, /*!< \brief Constant thermal conductivity for ConstantConductivity model. */
827+
*Mu_Ref, /*!< \brief Reference viscosity for Sutherland model. */
828+
*Mu_Temperature_Ref, /*!< \brief Reference temperature for Sutherland model. */
829+
*Mu_S; /*!< \brief Reference S for Sutherland model. */
830+
unsigned short nMu_Constant, /*!< \brief Number of species constant viscosities. */
831+
nMu_Ref, /*!< \brief Number of species reference constants for Sutherland model. */
832+
nMu_Temperature_Ref, /*!< \brief Number of species reference temperature for Sutherland model. */
833+
nMu_S, /*!< \brief Number of species reference S for Sutherland model. */
834+
nThermal_Conductivity_Constant,/*!< \brief Number of species constant thermal conductivity. */
835+
nPrandtl_Lam, /*!< \brief Number of species laminar Prandtl number. */
836+
nPrandtl_Turb; /*!< \brief Number of species turbulent Prandtl number. */
834837
su2double Diffusivity_Constant; /*!< \brief Constant mass diffusivity for scalar transport. */
835838
su2double Diffusivity_ConstantND; /*!< \brief Non-dim. constant mass diffusivity for scalar transport. */
836839
su2double Schmidt_Number_Laminar; /*!< \brief Laminar Schmidt number for mass diffusion. */
@@ -860,8 +863,8 @@ class CConfig {
860863
wallModel_B, /*!< \brief constant B for turbulence wall modeling */
861864
wallModel_RelFac, /*!< \brief relaxation factor for the Newton method used in the wall model */
862865
wallModel_MinYplus; /*!< \brief minimum Y+ value, below which the wall model is not used anymore */
863-
su2double Prandtl_Lam, /*!< \brief Laminar Prandtl number for the gas. */
864-
Prandtl_Turb, /*!< \brief Turbulent Prandtl number for the gas. */
866+
su2double *Prandtl_Lam, /*!< \brief Laminar Prandtl number for the gas. */
867+
*Prandtl_Turb, /*!< \brief Turbulent Prandtl number for the gas. */
865868
Length_Ref, /*!< \brief Reference length for non-dimensionalization. */
866869
Pressure_Ref, /*!< \brief Reference pressure for non-dimensionalization. */
867870
Temperature_Ref, /*!< \brief Reference temperature for non-dimensionalization.*/
@@ -1708,13 +1711,13 @@ class CConfig {
17081711
* \brief Get the value of the laminar Prandtl number.
17091712
* \return Laminar Prandtl number.
17101713
*/
1711-
su2double GetPrandtl_Lam(void) const { return Prandtl_Lam; }
1714+
su2double GetPrandtl_Lam(unsigned short val_index = 0) const { return Prandtl_Lam[val_index]; }
17121715

17131716
/*!
17141717
* \brief Get the value of the turbulent Prandtl number.
17151718
* \return Turbulent Prandtl number.
17161719
*/
1717-
su2double GetPrandtl_Turb(void) const { return Prandtl_Turb; }
1720+
su2double GetPrandtl_Turb(unsigned short val_index = 0) const { return Prandtl_Turb[val_index]; }
17181721

17191722
/*!
17201723
* \brief Get the value of the von Karman constant kappa for turbulence wall modeling.
@@ -3819,6 +3822,12 @@ class CConfig {
38193822
*/
38203823
VISCOSITYMODEL GetKind_ViscosityModel() const { return Kind_ViscosityModel; }
38213824

3825+
/*!
3826+
* \brief Get the value of the mixing model for viscosity.
3827+
* \return Mixing Viscosity model.
3828+
*/
3829+
MIXINGVISCOSITYMODEL GetKind_MixingViscosityModel() const { return Kind_MixingViscosityModel; }
3830+
38223831
/*!
38233832
* \brief Get the value of the thermal conductivity model.
38243833
* \return Conductivity model.
@@ -3835,25 +3844,29 @@ class CConfig {
38353844
* \brief Get the value of the constant viscosity.
38363845
* \return Constant viscosity.
38373846
*/
3838-
su2double GetMu_Constant(void) const { return Mu_Constant; }
3847+
su2double GetMu_Constant(unsigned short val_index = 0) const { return Mu_Constant[val_index]; }
38393848

38403849
/*!
38413850
* \brief Get the value of the non-dimensional constant viscosity.
38423851
* \return Non-dimensional constant viscosity.
38433852
*/
3844-
su2double GetMu_ConstantND(void) const { return Mu_ConstantND; }
3853+
su2double GetMu_ConstantND(unsigned short val_index = 0) const { return Mu_Constant[val_index] / Viscosity_Ref; }
38453854

38463855
/*!
38473856
* \brief Get the value of the thermal conductivity.
38483857
* \return Thermal conductivity.
38493858
*/
3850-
su2double GetThermal_Conductivity_Constant(void) const { return Thermal_Conductivity_Constant; }
3859+
su2double GetThermal_Conductivity_Constant(unsigned short val_index = 0) const {
3860+
return Thermal_Conductivity_Constant[val_index];
3861+
}
38513862

38523863
/*!
38533864
* \brief Get the value of the non-dimensional thermal conductivity.
38543865
* \return Non-dimensional thermal conductivity.
38553866
*/
3856-
su2double GetThermal_Conductivity_ConstantND(void) const { return Thermal_Conductivity_ConstantND; }
3867+
su2double GetThermal_Conductivity_ConstantND(unsigned short val_index = 0) const {
3868+
return Thermal_Conductivity_Constant[val_index] / Thermal_Conductivity_Ref;
3869+
}
38573870

38583871
/*!
38593872
* \brief Get the value of the constant mass diffusivity for scalar transport.
@@ -3883,37 +3896,39 @@ class CConfig {
38833896
* \brief Get the value of the reference viscosity for Sutherland model.
38843897
* \return The reference viscosity.
38853898
*/
3886-
su2double GetMu_Ref(void) const { return Mu_Ref; }
3899+
su2double GetMu_Ref(unsigned short val_index = 0) const { return Mu_Ref[val_index]; }
38873900

38883901
/*!
38893902
* \brief Get the value of the non-dimensional reference viscosity for Sutherland model.
38903903
* \return The non-dimensional reference viscosity.
38913904
*/
3892-
su2double GetMu_RefND(void) const { return Mu_RefND; }
3905+
su2double GetMu_RefND(unsigned short val_index = 0) const { return Mu_Ref[val_index] / Viscosity_Ref; }
38933906

38943907
/*!
38953908
* \brief Get the value of the reference temperature for Sutherland model.
38963909
* \return The reference temperature.
38973910
*/
3898-
su2double GetMu_Temperature_Ref(void) const { return Mu_Temperature_Ref; }
3911+
su2double GetMu_Temperature_Ref(unsigned short val_index = 0) const { return Mu_Temperature_Ref[val_index]; }
38993912

39003913
/*!
39013914
* \brief Get the value of the non-dimensional reference temperature for Sutherland model.
39023915
* \return The non-dimensional reference temperature.
39033916
*/
3904-
su2double GetMu_Temperature_RefND(void) const { return Mu_Temperature_RefND; }
3917+
su2double GetMu_Temperature_RefND(unsigned short val_index = 0) const {
3918+
return Mu_Temperature_Ref[val_index] / Temperature_Ref;
3919+
}
39053920

39063921
/*!
39073922
* \brief Get the value of the reference S for Sutherland model.
39083923
* \return The reference S.
39093924
*/
3910-
su2double GetMu_S(void) const { return Mu_S; }
3925+
su2double GetMu_S(unsigned short val_index = 0) const { return Mu_S[val_index]; }
39113926

39123927
/*!
39133928
* \brief Get the value of the non-dimensional reference S for Sutherland model.
39143929
* \return The non-dimensional reference S.
39153930
*/
3916-
su2double GetMu_SND(void) const { return Mu_SND; }
3931+
su2double GetMu_SND(unsigned short val_index = 0) const { return Mu_S[val_index] / Temperature_Ref; }
39173932

39183933
/*!
39193934
* \brief Get the number of coefficients in the temperature polynomial models.
@@ -3975,31 +3990,6 @@ class CConfig {
39753990
*/
39763991
const su2double* GetKt_PolyCoeffND(void) const { return KtPolyCoefficientsND.data(); }
39773992

3978-
/*!
3979-
* \brief Set the value of the non-dimensional constant viscosity.
3980-
*/
3981-
void SetMu_ConstantND(su2double mu_const) { Mu_ConstantND = mu_const; }
3982-
3983-
/*!
3984-
* \brief Set the value of the non-dimensional thermal conductivity.
3985-
*/
3986-
void SetThermal_Conductivity_ConstantND(su2double therm_cond_const) { Thermal_Conductivity_ConstantND = therm_cond_const; }
3987-
3988-
/*!
3989-
* \brief Set the value of the non-dimensional reference viscosity for Sutherland model.
3990-
*/
3991-
void SetMu_RefND(su2double mu_ref) { Mu_RefND = mu_ref; }
3992-
3993-
/*!
3994-
* \brief Set the value of the non-dimensional reference temperature for Sutherland model.
3995-
*/
3996-
void SetMu_Temperature_RefND(su2double mu_Tref) { Mu_Temperature_RefND = mu_Tref; }
3997-
3998-
/*!
3999-
* \brief Set the value of the non-dimensional S for Sutherland model.
4000-
*/
4001-
void SetMu_SND(su2double mu_s) { Mu_SND = mu_s; }
4002-
40033993
/*!
40043994
* \brief Set the temperature polynomial coefficient for specific heat Cp.
40053995
* \param[in] val_coeff - Temperature polynomial coefficient for specific heat Cp.

Common/include/basic_types/ad_structure.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -538,7 +538,7 @@ namespace AD{
538538
}
539539
}
540540
}
541-
541+
542542
FORCEINLINE void delete_handler(void *handler) {
543543
CheckpointHandler *checkpoint = static_cast<CheckpointHandler*>(handler);
544544
checkpoint->clear();

Common/include/option_structure.hpp

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -677,6 +677,18 @@ static const MapType<std::string, VISCOSITYMODEL> ViscosityModel_Map = {
677677
MakePair("POLYNOMIAL_VISCOSITY", VISCOSITYMODEL::POLYNOMIAL)
678678
};
679679

680+
/*!
681+
* \brief Types of Mixing viscosity model
682+
*/
683+
enum class MIXINGVISCOSITYMODEL {
684+
WILKE, /*!< \brief Wilke mixing viscosity model. */
685+
DAVIDSON, /*!< \brief Davidson mixing viscosity model. */
686+
};
687+
static const MapType<std::string, MIXINGVISCOSITYMODEL> MixingViscosityModel_Map = {
688+
MakePair("WILKE", MIXINGVISCOSITYMODEL::WILKE)
689+
MakePair("DAVIDSON", MIXINGVISCOSITYMODEL::DAVIDSON)
690+
};
691+
680692
/*!
681693
* \brief Types of thermal conductivity model
682694
*/

0 commit comments

Comments
 (0)