|
3 | 3 | * \brief All the information about the definition of the physical problem. |
4 | 4 | * The subroutines and functions are in the <i>CConfig.cpp</i> file. |
5 | 5 | * \author F. Palacios, T. Economon, B. Tracey |
6 | | - * \version 7.0.6 "Blackbird" |
| 6 | + * \version 7.0.7 "Blackbird" |
7 | 7 | * |
8 | 8 | * SU2 Project Website: https://su2code.github.io |
9 | 9 | * |
|
43 | 43 | #include <map> |
44 | 44 | #include <assert.h> |
45 | 45 |
|
46 | | -#include "./option_structure.hpp" |
47 | | -#include "./toolboxes/C2DContainer.hpp" |
| 46 | +#include "option_structure.hpp" |
| 47 | +#include "containers/container_decorators.hpp" |
48 | 48 |
|
49 | 49 | #ifdef HAVE_CGNS |
50 | 50 | #include "cgnslib.h" |
@@ -425,6 +425,7 @@ class CConfig { |
425 | 425 | su2double *RK_Alpha_Step; /*!< \brief Runge-Kutta beta coefficients. */ |
426 | 426 |
|
427 | 427 | unsigned short nQuasiNewtonSamples; /*!< \brief Number of samples used in quasi-Newton solution methods. */ |
| 428 | + bool UseVectorization; /*!< \brief Whether to use vectorized numerics schemes. */ |
428 | 429 |
|
429 | 430 | unsigned short nMGLevels; /*!< \brief Number of multigrid levels (coarse levels). */ |
430 | 431 | unsigned short nCFL; /*!< \brief Number of CFL, one for each multigrid level. */ |
@@ -597,10 +598,10 @@ class CConfig { |
597 | 598 | *Kappa_AdjFlow, /*!< \brief Numerical dissipation coefficients for the adjoint flow equations. */ |
598 | 599 | *Kappa_Heat; /*!< \brief Numerical dissipation coefficients for the (fvm) heat equation. */ |
599 | 600 | su2double* FFD_Axis; /*!< \brief Numerical dissipation coefficients for the adjoint equations. */ |
600 | | - su2double Kappa_1st_AdjFlow, /*!< \brief JST 1st order dissipation coefficient for adjoint flow equations (coarse multigrid levels). */ |
| 601 | + su2double Kappa_1st_AdjFlow, /*!< \brief Lax 1st order dissipation coefficient for adjoint flow equations (coarse multigrid levels). */ |
601 | 602 | Kappa_2nd_AdjFlow, /*!< \brief JST 2nd order dissipation coefficient for adjoint flow equations. */ |
602 | 603 | Kappa_4th_AdjFlow, /*!< \brief JST 4th order dissipation coefficient for adjoint flow equations. */ |
603 | | - Kappa_1st_Flow, /*!< \brief JST 1st order dissipation coefficient for flow equations (coarse multigrid levels). */ |
| 604 | + Kappa_1st_Flow, /*!< \brief Lax 1st order dissipation coefficient for flow equations (coarse multigrid levels). */ |
604 | 605 | Kappa_2nd_Flow, /*!< \brief JST 2nd order dissipation coefficient for flow equations. */ |
605 | 606 | Kappa_4th_Flow, /*!< \brief JST 4th order dissipation coefficient for flow equations. */ |
606 | 607 | Kappa_2nd_Heat, /*!< \brief 2nd order dissipation coefficient for heat equation. */ |
@@ -1083,6 +1084,8 @@ class CConfig { |
1083 | 1084 | default_jst_adj_coeff[2], /*!< \brief Default artificial dissipation (adjoint) array for the COption class. */ |
1084 | 1085 | default_ad_coeff_heat[2], /*!< \brief Default artificial dissipation (heat) array for the COption class. */ |
1085 | 1086 | default_obj_coeff[5], /*!< \brief Default objective array for the COption class. */ |
| 1087 | + default_mesh_box_length[3], /*!< \brief Default mesh box length for the COption class. */ |
| 1088 | + default_mesh_box_offset[3], /*!< \brief Default mesh box offset for the COption class. */ |
1086 | 1089 | default_geo_loc[2], /*!< \brief Default SU2_GEO section locations array for the COption class. */ |
1087 | 1090 | default_distortion[2], /*!< \brief Default SU2_GEO section locations array for the COption class. */ |
1088 | 1091 | default_ea_lim[3], /*!< \brief Default equivalent area limit array for the COption class. */ |
@@ -1165,10 +1168,12 @@ class CConfig { |
1165 | 1168 | su2double *Gas_Composition, /*!< \brief Initial mass fractions of flow [dimensionless] */ |
1166 | 1169 | pnorm_heat; /*!< \brief pnorm for heat-flux. */ |
1167 | 1170 | bool frozen, /*!< \brief Flag for determining if mixture is frozen. */ |
1168 | | - ionization; /*!< \brief Flag for determining if free electron gas is in the mixture. */ |
| 1171 | + ionization, /*!< \brief Flag for determining if free electron gas is in the mixture. */ |
| 1172 | + vt_transfer_res_limit, /*!< \brief Flag for determining if residual limiting for source term VT-transfer is used. */ |
| 1173 | + monoatomic; /*!< \brief Flag for monoatomic mixture. */ |
1169 | 1174 | string GasModel, /*!< \brief Gas Model. */ |
1170 | 1175 | *Wall_Catalytic; /*!< \brief Pointer to catalytic walls. */ |
1171 | | - |
| 1176 | + |
1172 | 1177 | /*! |
1173 | 1178 | * \brief Set the default values of config options not set in the config file using another config object. |
1174 | 1179 | * \param config - Config object to use the default values from. |
@@ -4118,6 +4123,11 @@ class CConfig { |
4118 | 4123 | */ |
4119 | 4124 | unsigned short GetnQuasiNewtonSamples(void) const { return nQuasiNewtonSamples; } |
4120 | 4125 |
|
| 4126 | + /*! |
| 4127 | + * \brief Get whether to use vectorized numerics (if available). |
| 4128 | + */ |
| 4129 | + bool GetUseVectorization(void) const { return UseVectorization; } |
| 4130 | + |
4121 | 4131 | /*! |
4122 | 4132 | * \brief Get the relaxation coefficient of the linear solver for the implicit formulation. |
4123 | 4133 | * \return relaxation coefficient of the linear solver for the implicit formulation. |
@@ -4513,7 +4523,7 @@ class CConfig { |
4513 | 4523 | * during the computation. |
4514 | 4524 | * \return Kind of center convective numerical scheme for the flow equations. |
4515 | 4525 | */ |
4516 | | - unsigned short GetKind_Centered_Flow(void) const { return Kind_Centered_Flow; } |
| 4526 | + ENUM_CENTERED GetKind_Centered_Flow(void) const { return static_cast<ENUM_CENTERED>(Kind_Centered_Flow); } |
4517 | 4527 |
|
4518 | 4528 | /*! |
4519 | 4529 | * \brief Get the kind of center convective numerical scheme for the plasma equations. |
@@ -5268,6 +5278,16 @@ class CConfig { |
5268 | 5278 | */ |
5269 | 5279 | bool GetIonization(void) const { return ionization; } |
5270 | 5280 |
|
| 5281 | + /*! |
| 5282 | + * \brief Indicates whether the VT source residual is limited. |
| 5283 | + */ |
| 5284 | + bool GetVTTransferResidualLimiting(void) const { return vt_transfer_res_limit; } |
| 5285 | + |
| 5286 | + /*! |
| 5287 | + * \brief Indicates if mixture is monoatomic. |
| 5288 | + */ |
| 5289 | + bool GetMonoatomic(void) const { return monoatomic; } |
| 5290 | + |
5271 | 5291 | /*! |
5272 | 5292 | * \brief Information about computing and plotting the equivalent area distribution. |
5273 | 5293 | * \return <code>TRUE</code> or <code>FALSE</code> depending if we are computing the equivalent area. |
|
0 commit comments