Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 2 additions & 11 deletions Common/include/config_structure.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -548,12 +548,10 @@ class CConfig {
su2double Linear_Solver_Error; /*!< \brief Min error of the linear solver for the implicit formulation. */
su2double Deform_Linear_Solver_Error; /*!< \brief Min error of the linear solver for the implicit formulation. */
su2double Linear_Solver_Error_FSI_Struc; /*!< \brief Min error of the linear solver for the implicit formulation in the structural side for FSI problems . */
su2double Linear_Solver_Error_Heat; /*!< \brief Min error of the linear solver for the implicit formulation in the fvm heat solver . */
su2double Linear_Solver_Smoother_Relaxation; /*!< \brief Relaxation factor for iterative linear smoothers. */
unsigned long Linear_Solver_Iter; /*!< \brief Max iterations of the linear solver for the implicit formulation. */
unsigned long Deform_Linear_Solver_Iter; /*!< \brief Max iterations of the linear solver for the implicit formulation. */
unsigned long Linear_Solver_Iter_FSI_Struc; /*!< \brief Max iterations of the linear solver for FSI applications and structural solver. */
unsigned long Linear_Solver_Iter_Heat; /*!< \brief Max iterations of the linear solver for the implicit formulation in the fvm heat solver. */
unsigned long Linear_Solver_Restart_Frequency; /*!< \brief Restart frequency of the linear solver for the implicit formulation. */
unsigned short Linear_Solver_ILU_n; /*!< \brief ILU fill=in level. */
su2double SemiSpan; /*!< \brief Wing Semi span. */
Expand Down Expand Up @@ -774,7 +772,6 @@ class CConfig {
Molecular_Weight, /*!< \brief Molecular weight of an incompressible ideal gas (g/mol). */
Specific_Heat_Cp, /*!< \brief Specific heat at constant pressure. */
Specific_Heat_CpND, /*!< \brief Non-dimensional specific heat at constant pressure. */
Specific_Heat_Cp_Solid, /*!< \brief Specific heat in solids. */
Specific_Heat_Cv, /*!< \brief Specific heat at constant volume. */
Specific_Heat_CvND, /*!< \brief Non-dimensional specific heat at constant volume. */
Thermal_Expansion_Coeff, /*!< \brief Thermal expansion coefficient. */
Expand Down Expand Up @@ -1684,12 +1681,6 @@ class CConfig {
* \return Value of the constant: Cp
*/
su2double GetSpecific_Heat_Cp(void);

/*!
* \brief Get the value of the specific heat for solids.
* \return Specific heat number (solid).
*/
su2double GetSpecific_Heat_Cp_Solid(void);

/*!
* \brief Get the non-dimensional value of specific heat at constant pressure.
Expand Down Expand Up @@ -1814,10 +1805,10 @@ class CConfig {
su2double GetThermalDiffusivity_Solid(void);

/*!
* \brief Get the temperature in solids at freestream conditions.
* \brief Get the temperature in solids at initial conditions.
* \return Freestream temperature (solid).
*/
su2double GetTemperature_Freestream_Solid(void);
su2double GetTemperature_Initial_Solid(void);

/*!
* \brief Get the value of the reference length for non-dimensionalization.
Expand Down
4 changes: 1 addition & 3 deletions Common/include/config_structure.inl
Original file line number Diff line number Diff line change
Expand Up @@ -364,7 +364,7 @@ inline su2double CConfig::GetThermalDiffusivity(void) { return Thermal_Diffusivi

inline su2double CConfig::GetThermalDiffusivity_Solid(void) { return Thermal_Diffusivity_Solid; }

inline su2double CConfig::GetTemperature_Freestream_Solid(void) { return Temperature_Freestream_Solid; }
inline su2double CConfig::GetTemperature_Initial_Solid(void) { return Temperature_Freestream_Solid; }

inline su2double CConfig::GetElasticyMod(unsigned short id_val) { return ElasticityMod[id_val]; }

Expand Down Expand Up @@ -454,8 +454,6 @@ inline su2double CConfig::GetMolecular_Weight(void) { return Molecular_Weight; }

inline su2double CConfig::GetSpecific_Heat_Cp(void) { return Specific_Heat_Cp; }

inline su2double CConfig::GetSpecific_Heat_Cp_Solid(void) { return Specific_Heat_Cp_Solid; }

inline su2double CConfig::GetSpecific_Heat_CpND(void) { return Specific_Heat_CpND; }

inline su2double CConfig::GetSpecific_Heat_Cv(void) { return Specific_Heat_Cv; }
Expand Down
14 changes: 1 addition & 13 deletions Common/src/config_structure.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -938,8 +938,6 @@ void CConfig::SetConfig_Options() {
addDoubleOption("SPECIFIC_HEAT_CP", Specific_Heat_Cp, 1004.703);
/*!\brief CP_VALUE \n DESCRIPTION: Specific heat at constant volume, Cp (717.645 J/kg*K (air), constant density incompressible fluids only) \ingroup Config*/
addDoubleOption("SPECIFIC_HEAT_CV", Specific_Heat_Cv, 717.645);
/* DESCRIPTION: Heat capacity used for heat equation */
addDoubleOption("SPECIFIC_HEAT_CP_SOLID", Specific_Heat_Cp_Solid, 896.0);
/*!\brief THERMAL_EXPANSION_COEFF \n DESCRIPTION: Thermal expansion coefficient (0.00347 K^-1 (air), used for Boussinesq approximation for liquids/non-ideal gases) \ingroup Config*/
addDoubleOption("THERMAL_EXPANSION_COEFF", Thermal_Expansion_Coeff, 0.00347);
/*!\brief MOLECULAR_WEIGHT \n DESCRIPTION: Molecular weight for an incompressible ideal gas (28.96 g/mol (air) default) \ingroup Config*/
Expand Down Expand Up @@ -1058,7 +1056,7 @@ void CConfig::SetConfig_Options() {
/* DESCRIPTION: Free-stream viscosity (1.853E-5 Ns/m^2 (air), 0.798E-3 Ns/m^2 (water)) */
addDoubleOption("FREESTREAM_VISCOSITY", Viscosity_FreeStream, -1.0);
/* DESCRIPTION: Thermal conductivity used for heat equation */
addDoubleOption("THERMAL_CONDUCTIVITY_SOLID", Thermal_Conductivity_Solid, 0.0);
addDoubleOption("SOLID_THERMAL_CONDUCTIVITY", Thermal_Conductivity_Solid, 0.0);
/* DESCRIPTION: Solids temperature at freestream conditions */
addDoubleOption("SOLID_TEMPERATURE_INIT", Temperature_Freestream_Solid, 288.15);
/* DESCRIPTION: Density used in solids */
Expand Down Expand Up @@ -1450,12 +1448,8 @@ void CConfig::SetConfig_Options() {
addEnumOption("LINEAR_SOLVER_PREC", Kind_Linear_Solver_Prec, Linear_Solver_Prec_Map, ILU);
/* DESCRIPTION: Minimum error threshold for the linear solver for the implicit formulation */
addDoubleOption("LINEAR_SOLVER_ERROR", Linear_Solver_Error, 1E-6);
/* DESCRIPTION: Minimum error threshold for the linear solver for the implicit formulation for the FVM heat solver. */
addDoubleOption("LINEAR_SOLVER_ERROR_HEAT", Linear_Solver_Error_Heat, 1E-8);
/* DESCRIPTION: Maximum number of iterations of the linear solver for the implicit formulation */
addUnsignedLongOption("LINEAR_SOLVER_ITER", Linear_Solver_Iter, 10);
/* DESCRIPTION: Max iterations of the linear solver for the FVM heat solver. */
addUnsignedLongOption("LINEAR_SOLVER_ITER_HEAT", Linear_Solver_Iter_Heat, 10);
/* DESCRIPTION: Fill in level for the ILU preconditioner */
addUnsignedShortOption("LINEAR_SOLVER_ILU_FILL_IN", Linear_Solver_ILU_n, 0);
/* DESCRIPTION: Maximum number of iterations of the linear solver for the implicit formulation */
Expand Down Expand Up @@ -3157,12 +3151,6 @@ void CConfig::SetPostprocessing(unsigned short val_software, unsigned short val_
Kind_Regime = NO_FLOW;
}


if ((Kind_Solver == HEAT_EQUATION_FVM) || (Kind_Solver == DISC_ADJ_HEAT)) {
Linear_Solver_Iter = Linear_Solver_Iter_Heat;
Linear_Solver_Error = Linear_Solver_Error_Heat;
}

if ((rank == MASTER_NODE) && ContinuousAdjoint && (Ref_NonDim == DIMENSIONAL) && (Kind_SU2 == SU2_CFD)) {
cout << "WARNING: The adjoint solver should use a non-dimensional flow solution." << endl;
}
Expand Down
2 changes: 1 addition & 1 deletion QuickStart/inv_NACA0012.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -217,7 +217,7 @@ DV_VALUE= 0.01
% ------------------------ GRID DEFORMATION PARAMETERS ------------------------%
%
% Number of smoothing iterations for FEA mesh deformation
DEFORM_LINEAR_ITER= 500
DEFORM_LINEAR_SOLVER_ITER= 500
%
% Number of nonlinear deformation iterations (surface deformation increments)
DEFORM_NONLINEAR_ITER= 1
Expand Down
Loading