Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

New Nonlinear Iteration Controller for Improved Fluid Solver Robustness & Convergence #790

Merged
merged 82 commits into from
Nov 28, 2019
Merged
Show file tree
Hide file tree
Changes from 8 commits
Commits
Show all changes
82 commits
Select commit Hold shift + click to select a range
5e79c2a
First implementation of nonlinear controller. Needs cleanup. Not stab…
economon Sep 4, 2019
e9fa062
Merged develop and fixed conflict.
economon Sep 4, 2019
76d22c9
Check point. Still needs more testing.
economon Sep 9, 2019
20ad166
More changes. Still needs testing.
economon Sep 10, 2019
5a274a9
Changed reconstruction gradient. Moved new CFL adaption and removed o…
economon Sep 13, 2019
ccea15a
Preparing for PR.
economon Sep 14, 2019
59c74d7
Merge branch 'develop' into feature_nlctrl
economon Sep 14, 2019
9b3b4a2
Removed unused variable.
economon Sep 14, 2019
071ead0
Added new option for reconstruction gradient. Activated recon. gradie…
economon Sep 26, 2019
3eb5bbd
Coupled CFL adaption to linear solver residual and nonlinear residual…
economon Sep 28, 2019
0271c69
Removed some unused code.
economon Oct 1, 2019
651ab5e
Merge branch 'develop' into feature_nlctrl
economon Oct 1, 2019
bb5d2fc
Merge branch 'develop' into feature_nlctrl
economon Oct 1, 2019
9e5cc2d
Couple of fixes related to the turbulence models.
economon Oct 2, 2019
d41d645
Fixing conflicts. Small bug fixes.
economon Oct 3, 2019
f9951ff
Removed old CFL adaption routine. Sync of the linear solver residual …
economon Oct 4, 2019
2827ea8
Added reporting of min/max delta time and min/max/avg CFL to output. …
economon Oct 8, 2019
6d69ae8
Added new class for marker profile reader and template writer.
economon Oct 13, 2019
f00292d
Adjusting min/max CFL.
economon Oct 13, 2019
81ee004
Merged contiguous cvariable changes and fixed conflicts.
economon Oct 15, 2019
c95cbe8
Merged various_fixes and fixed conflicts.
economon Oct 15, 2019
953dfe7
Fixed memory allocation.
economon Oct 16, 2019
1dd60a7
Removed old relaxation factors.
economon Oct 17, 2019
1cc9393
Updating with various_fixes again.
economon Oct 17, 2019
cacb0e9
Adjusting allocation of the reconstruction gradient memory.
economon Oct 17, 2019
9ef49a9
Adjustment to local CFL and underrelaxation allocations. Important ch…
economon Oct 18, 2019
1ad8850
Merge branch 'develop' into feature_nlctrl
rsanfer Oct 21, 2019
04dd6b2
Updating initializers for reconstruction gradient.
economon Oct 22, 2019
5fc9daa
Merge branch 'feature_nlctrl' of https://github.com/su2code/SU2 into …
economon Oct 22, 2019
9befd30
Merge branch 'develop' into feature_nlctrl
pcarruscag Oct 22, 2019
8df1d84
fix reconstruction gradient reference mechanism
pcarruscag Oct 22, 2019
f156d75
Fix for SST eddy viscosity expression. Adjusting SST clipping.
economon Oct 24, 2019
6624e0d
Small change to limits.
economon Oct 24, 2019
2b1356d
Meson fix for SU2_DOT_AD build.
economon Oct 25, 2019
00d1852
Removing old options from regression cfgs.
economon Oct 25, 2019
74f907f
Adding gitflow comment to readme.
economon Oct 31, 2019
08eee7b
Update with develop and fixed conflict.
economon Oct 31, 2019
663894e
Merge branch 'develop' into feature_nlctrl
talbring Nov 1, 2019
cf57e62
replace curly braces with parentheses for old compiler compatibility
pcarruscag Nov 1, 2019
b5d51af
Addressing small text clean up.
economon Nov 1, 2019
090f178
Merge branch 'feature_nlctrl' of https://github.com/su2code/SU2 into …
economon Nov 1, 2019
58f511a
Couple more small changes.
economon Nov 1, 2019
19a3932
Added a routine to reset CFL adaption variables
talbring Nov 4, 2019
aa9a1c3
Bug fix for profile reader.
economon Nov 4, 2019
0314a4d
Merge branch 'feature_nlctrl' of https://github.com/su2code/SU2 into …
economon Nov 4, 2019
f16e97c
Euler cases checked. Updated regression values.
economon Nov 4, 2019
01f13b8
RANS cases part I. Updated regression values.
economon Nov 4, 2019
2e8ea1d
Merge branch 'develop' into feature_nlctrl
talbring Nov 5, 2019
921ffd5
added reset of underrelaxation
talbring Nov 5, 2019
895c5ee
Merge branch 'feature_nlctrl' of github.com:su2code/SU2 into feature_…
talbring Nov 5, 2019
f900006
Adjustment for SA_NEG so under-relaxation does not cause stall.
economon Nov 6, 2019
8f7bcdc
Merge branch 'feature_nlctrl' of https://github.com/su2code/SU2 into …
economon Nov 6, 2019
40eab17
Bug fix for unweighted least squares with periodic BCs.
economon Nov 6, 2019
5a7fccf
Updated and fixed conflicts.
economon Nov 6, 2019
f637a91
RANS case regression updates part II. NACA 0012 with new restarts in …
economon Nov 6, 2019
1ae4065
Updated regression values using new restarts.
economon Nov 7, 2019
bd94840
Fix crash for adjoint in tecplot binary writer
talbring Nov 7, 2019
761dc2a
Reverting to old SST clipping. Seems to be important for UQ cases.
economon Nov 7, 2019
6a7c082
Merge branch 'feature_nlctrl' of https://github.com/su2code/SU2 into …
economon Nov 7, 2019
e896840
Another old conflict fixed.
economon Nov 7, 2019
f4ad569
Fixed initialization issue. More RANS regression updates.
economon Nov 8, 2019
982522f
Continuous adjoint and UQ regressions checked and updated.
economon Nov 8, 2019
72734cc
More regression updates.
economon Nov 8, 2019
6523e74
NICF and Turbomachinery regression updates.
economon Nov 8, 2019
94f559c
Fixing history/volume output for turbomachinery cases
talbring Nov 11, 2019
3dd7b60
Sliding interface regressions updated.
economon Nov 12, 2019
2b91aac
Merge branch 'feature_nlctrl' of https://github.com/su2code/SU2 into …
economon Nov 12, 2019
b83fcff
fixed conflicts and updated more regressions.
economon Nov 18, 2019
9529e19
Updating discrete adjoint regressions. Also added new restarts for so…
economon Nov 18, 2019
19874e0
Updating reference values for file diff regressions.
economon Nov 19, 2019
7c14cdb
Updating tutorial cases.
economon Nov 22, 2019
e63b1c8
Fixing conflicts.
economon Nov 24, 2019
21e9dae
Merge remote-tracking branch 'upstream/develop' into feature_nlctrl
pcarruscag Nov 25, 2019
2d9bd61
Final parallel regression updates.
economon Nov 26, 2019
33c85a1
More regressions.
economon Nov 26, 2019
89421ce
File diff fixes for regressions.
economon Nov 27, 2019
af79b7f
White space issue in file diff.
economon Nov 27, 2019
11af27f
Updating branch for tutorials.
economon Nov 27, 2019
e530059
More white space fixes for file diff regressions.
economon Nov 28, 2019
24e9a47
Merge branch 'develop' into feature_nlctrl
economon Nov 28, 2019
054266e
Switching test case branch back to develop. Leaving tutorials pointin…
economon Nov 28, 2019
07f9d7f
Merge branch 'feature_nlctrl' of https://github.com/su2code/SU2 into …
economon Nov 28, 2019
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: 0 additions & 13 deletions SU2_CFD/include/output_structure.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -784,19 +784,6 @@ class COutput {
*/
void SpecialOutput_ForcesBreakdown(CSolver *****solver, CGeometry ****geometry, CConfig **config, unsigned short val_iZone, bool output);

/*!
* \brief Write the history file and the convergence on the screen for serial computations.
* \param[in] ConvHist_file - Pointer to the convergence history file (which is defined in the main subroutine).
* \param[in] geometry - Geometrical definition of the problem.
* \param[in] solver_container - Container vector with all the solutions.
* \param[in] config - Definition of the particular problem.
* \param[in] integration - Generic subroutines for space integration, time integration, and monitoring.
* \param[in] iExtIter - Current external (time) iteration.
* \param[in] timeused - Current number of clock tick in the computation (related with total time).
* \param[in] val_nZone - iZone index.
*/
void SetCFL_Number(CSolver *****solver_container, CConfig **config, unsigned short val_iZone);

/*!
* \brief Write the sensitivity (including mesh sensitivity) computed with the discrete adjoint method
* on the surface and in the volume to a file.
Expand Down
45 changes: 41 additions & 4 deletions SU2_CFD/include/solver_structure.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,7 @@ class CSolver {
su2double ***VertexTractionAdjoint; /*- Also temporary -*/

public:

CSysVector<su2double> LinSysSol; /*!< \brief vector to store iterative solution of implicit linear system. */
CSysVector<su2double> LinSysRes; /*!< \brief vector to store iterative residual of implicit linear system. */
CSysVector<su2double> LinSysAux; /*!< \brief vector to store iterative residual of implicit linear system. */
Expand Down Expand Up @@ -1291,6 +1291,22 @@ class CSolver {
*/
virtual void ImplicitEuler_Iteration(CGeometry *geometry, CSolver **solver_container, CConfig *config);

/*!
* \brief A virtual member.
* \param[in] solver - Container vector with all the solutions.
* \param[in] config - Definition of the particular problem.
*/
virtual void ComputeUnderRelaxationFactor(CSolver **solver, CConfig *config);

/*!
* \brief Adapt the CFL number based on the local under-relaxation parameters
* computed for each nonlinear iteration.
economon marked this conversation as resolved.
Show resolved Hide resolved
* \param[in] geometry - Geometrical definition of the problem.
* \param[in] config - Definition of the particular problem.
* \param[in] solver_container - Container vector with all the solutions.
*/
void AdaptCFLNumber(CGeometry **geometry, CSolver ***solver_container, CConfig *config);

/*!
* \brief A virtual member.
* \param[in] geometry - Geometrical definition of the problem.
Expand Down Expand Up @@ -1427,7 +1443,7 @@ class CSolver {
* \param[in] geometry - Geometrical definition of the problem.
* \param[in] config - Definition of the particular problem.
*/
virtual void SetPrimitive_Gradient_LS(CGeometry *geometry, CConfig *config);
virtual void SetPrimitive_Gradient_LS(CGeometry *geometry, CConfig *config, bool reconstruction = false);

/*!
* \brief A virtual member.
Expand Down Expand Up @@ -5049,7 +5065,7 @@ class CEulerSolver : public CSolver {
* \param[in] geometry - Geometrical definition of the problem.
* \param[in] config - Definition of the particular problem.
*/
void SetPrimitive_Gradient_LS(CGeometry *geometry, CConfig *config);
void SetPrimitive_Gradient_LS(CGeometry *geometry, CConfig *config, bool reconstruction = false);

/*!
* \brief Compute the limiter of the primitive variables.
Expand Down Expand Up @@ -5427,6 +5443,13 @@ class CEulerSolver : public CSolver {
*/
void ImplicitEuler_Iteration(CGeometry *geometry, CSolver **solver_container, CConfig *config);

/*!
* \brief Compute a suitable under-relaxation parameter to limit the change in the solution variables over a nonlinear iteration for stability.
* \param[in] solver - Container vector with all the solutions.
* \param[in] config - Definition of the particular problem.
*/
void ComputeUnderRelaxationFactor(CSolver **solver, CConfig *config);

/*!
* \brief Compute the pressure forces and all the adimensional coefficients.
* \param[in] geometry - Geometrical definition of the problem.
Expand Down Expand Up @@ -7317,7 +7340,7 @@ class CIncEulerSolver : public CSolver {
* \param[in] geometry - Geometrical definition of the problem.
* \param[in] config - Definition of the particular problem.
*/
void SetPrimitive_Gradient_LS(CGeometry *geometry, CConfig *config);
void SetPrimitive_Gradient_LS(CGeometry *geometry, CConfig *config, bool reconstruction = false);

/*!
* \brief Compute the limiter of the primitive variables.
Expand Down Expand Up @@ -7496,6 +7519,13 @@ class CIncEulerSolver : public CSolver {
*/
void ImplicitEuler_Iteration(CGeometry *geometry, CSolver **solver_container, CConfig *config);

/*!
* \brief Compute a suitable under-relaxation parameter to limit the change in the solution variables over a nonlinear iteration for stability.
* \param[in] solver - Container vector with all the solutions.
* \param[in] config - Definition of the particular problem.
*/
void ComputeUnderRelaxationFactor(CSolver **solver, CConfig *config);

/*!
* \brief Provide the non dimensional lift coefficient (inviscid contribution).
* \param val_marker Surface where the coefficient is going to be computed.
Expand Down Expand Up @@ -9412,6 +9442,13 @@ class CTurbSolver : public CSolver {
void SetResidual_DualTime(CGeometry *geometry, CSolver **solver_container, CConfig *config,
unsigned short iRKStep, unsigned short iMesh, unsigned short RunTime_EqSystem);

/*!
* \brief Compute a suitable under-relaxation parameter to limit the change in the solution variables over a nonlinear iteration for stability.
* \param[in] solver - Container vector with all the solutions.
* \param[in] config - Definition of the particular problem.
*/
void ComputeUnderRelaxationFactor(CSolver **solver, CConfig *config);

/*!
* \brief Load a solution from a restart file.
* \param[in] geometry - Geometrical definition of the problem.
Expand Down
4 changes: 3 additions & 1 deletion SU2_CFD/include/solver_structure.inl
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ inline su2double CSolver::GetPsiE_Inf(void) { return 0; }

inline void CSolver::SetPrimitive_Gradient_GG(CGeometry *geometry, CConfig *config) { }

inline void CSolver::SetPrimitive_Gradient_LS(CGeometry *geometry, CConfig *config) { }
inline void CSolver::SetPrimitive_Gradient_LS(CGeometry *geometry, CConfig *config, bool reconstruction) { }

inline void CSolver::SetPrimitive_Limiter_MPI(CGeometry *geometry, CConfig *config) { }

Expand Down Expand Up @@ -855,6 +855,8 @@ inline void CSolver::ExplicitEuler_Iteration(CGeometry *geometry, CSolver **solv

inline void CSolver::ImplicitEuler_Iteration(CGeometry *geometry, CSolver **solver_container, CConfig *config) { }

inline void CSolver::ComputeUnderRelaxationFactor(CSolver **solver_container, CConfig *config) { }

inline void CSolver::ImplicitNewmark_Iteration(CGeometry *geometry, CSolver **solver_container, CConfig *config) { }

inline void CSolver::ImplicitNewmark_Update(CGeometry *geometry, CSolver **solver_container, CConfig *config) { }
Expand Down
23 changes: 23 additions & 0 deletions SU2_CFD/include/variables/CEulerVariable.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,7 @@ class CEulerVariable : public CVariable {

su2double *Primitive; /*!< \brief Primitive variables (T, vx, vy, vz, P, rho, h, c) in compressible flows. */
su2double **Gradient_Primitive; /*!< \brief Gradient of the primitive variables (T, vx, vy, vz, P, rho). */
su2double **Gradient_Reconstruction; /*!< \brief Gradient of the primitive variables for MUSCL reconstruction for the convective term (T, vx, vy, vz, P, rho). */
su2double *Limiter_Primitive; /*!< \brief Limiter of the primitive variables (T, vx, vy, vz, P, rho). */

/*--- Secondary variable definition ---*/
Expand Down Expand Up @@ -255,6 +256,28 @@ class CEulerVariable : public CVariable {
*/
inline su2double *GetLimiter_Secondary(void) {return Limiter_Secondary; }

/*!
* \brief Get the value of the primitive gradient for MUSCL reconstruction.
* \param[in] val_var - Index of the variable.
* \param[in] val_dim - Index of the dimension.
* \return Value of the primitive variables gradient.
*/
inline su2double GetGradient_Reconstruction(unsigned short val_var, unsigned short val_dim) {return Gradient_Reconstruction[val_var][val_dim]; }

/*!
* \brief Get the value of the primitive gradient for MUSCL reconstruction.
* \param[in] val_var - Index of the variable.
* \param[in] val_dim - Index of the dimension.
* \param[in] val_value - Value of the gradient.
*/
inline void SetGradient_Reconstruction(unsigned short val_var, unsigned short val_dim, su2double val_value) {Gradient_Reconstruction[val_var][val_dim] = val_value; }

/*!
* \brief Get the value of the primitive gradient for MUSCL reconstruction.
* \return Value of the primitive variables gradient.
*/
inline su2double **GetGradient_Reconstruction(void) {return Gradient_Reconstruction; }

/*!
* \brief A virtual member.
*/
Expand Down
30 changes: 27 additions & 3 deletions SU2_CFD/include/variables/CIncEulerVariable.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -51,9 +51,11 @@ class CIncEulerVariable : public CVariable {

/*--- Primitive variable definition ---*/

su2double *Primitive; /*!< \brief Primitive variables (T, vx, vy, vz, P, rho, h, c) in compressible flows. */
su2double **Gradient_Primitive; /*!< \brief Gradient of the primitive variables (T, vx, vy, vz, P, rho). */
su2double *Limiter_Primitive; /*!< \brief Limiter of the primitive variables (T, vx, vy, vz, P, rho). */
su2double *Primitive; /*!< \brief Primitive variables (P, vx, vy, vz, T, rho ...) for incompressible flows. */
su2double **Gradient_Primitive; /*!< \brief Gradient of the primitive variables */
su2double **Gradient_Reconstruction; /*!< \brief Gradient of the primitive variables for MUSCL reconstruction for the convective term */

su2double *Limiter_Primitive; /*!< \brief Limiter of the primitive variables */

/*--- Old solution container for BGS iterations ---*/

Expand Down Expand Up @@ -159,6 +161,28 @@ class CIncEulerVariable : public CVariable {
*/
inline su2double *GetLimiter_Primitive(void) {return Limiter_Primitive; }

/*!
* \brief Get the value of the primitive gradient for MUSCL reconstruction.
* \param[in] val_var - Index of the variable.
* \param[in] val_dim - Index of the dimension.
* \return Value of the primitive variables gradient.
*/
inline su2double GetGradient_Reconstruction(unsigned short val_var, unsigned short val_dim) {return Gradient_Reconstruction[val_var][val_dim]; }

/*!
* \brief Get the value of the primitive gradient for MUSCL reconstruction.
* \param[in] val_var - Index of the variable.
* \param[in] val_dim - Index of the dimension.
* \param[in] val_value - Value of the gradient.
*/
inline void SetGradient_Reconstruction(unsigned short val_var, unsigned short val_dim, su2double val_value) {Gradient_Reconstruction[val_var][val_dim] = val_value; }

/*!
* \brief Get the value of the primitive gradient for MUSCL reconstruction.
* \return Value of the primitive variables gradient.
*/
inline su2double **GetGradient_Reconstruction(void) {return Gradient_Reconstruction; }

/*!
* \brief Set the value of the pressure.
*/
Expand Down
64 changes: 62 additions & 2 deletions SU2_CFD/include/variables/CVariable.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,7 @@ class CVariable {
su2double *Solution, /*!< \brief Solution of the problem. */
*Solution_Old; /*!< \brief Old solution of the problem R-K. */
bool Non_Physical; /*!< \brief Non-physical points in the solution (force first order). */
unsigned short Non_Physical_Counter; /*!< \brief Number of consecutive iterations that a point has been treated first-order. After a specified number of successful reconstructions, the point can be returned to second-order. */
su2double *Solution_time_n, /*!< \brief Solution of the problem at time n for dual-time stepping technique. */
*Solution_time_n1; /*!< \brief Solution of the problem at time n-1 for dual-time stepping technique. */
su2double **Gradient; /*!< \brief Gradient of the solution of the problem. */
Expand All @@ -81,6 +82,9 @@ class CVariable {
su2double *Res_TruncError, /*!< \brief Truncation error for multigrid cycle. */
*Residual_Old, /*!< \brief Auxiliar structure for residual smoothing. */
*Residual_Sum; /*!< \brief Auxiliar structure for residual smoothing. */
su2double UnderRelaxation; /*!< \brief Value of the under-relxation parameter local to the control volume. */
su2double LocalCFL; /*!< \brief Value of the CFL number local to the control volume. */

static unsigned short nDim; /*!< \brief Number of dimension of the problem. */
unsigned short nVar; /*!< \brief Number of variables of the problem,
note that this variable cannnot be static, it is possible to
Expand Down Expand Up @@ -147,13 +151,23 @@ class CVariable {
* \brief Set the value of the non-physical point.
* \param[in] val_value - identification of the non-physical point.
*/
inline void SetNon_Physical(bool val_value) { Non_Physical = !val_value; }
inline void SetNon_Physical(bool val_value) {
if (val_value) {
Non_Physical = val_value;
Non_Physical_Counter = 0;
} else {
Non_Physical_Counter++;
if (Non_Physical_Counter > 20) {
Non_Physical = val_value;
}
}
}

/*!
* \brief Get the value of the non-physical point.
* \return Value of the Non-physical point.
*/
inline su2double GetNon_Physical(void) { return su2double(Non_Physical); }
inline bool GetNon_Physical(void) { return Non_Physical; }

/*!
* \brief Get the solution.
Expand Down Expand Up @@ -472,6 +486,30 @@ class CVariable {
val_residual[iVar] = Residual_Sum[iVar];
}

/*!
* \brief Set the value of the under-relaxation parameter for the current control volume (CV).
* \param[in] val_under_relaxation - the input value of the under-relaxation parameter for this CV.
*/
inline void SetUnderRelaxation(su2double val_under_relaxation) { UnderRelaxation = val_under_relaxation; }

/*!
* \brief Get the value of the under-relaxation parameter for the current control volume (CV).
* \return Value of the under-relaxation parameter for this CV.
*/
inline su2double GetUnderRelaxation(void) { return UnderRelaxation; }

/*!
* \brief Set the value of the local CFL number for the current control volume (CV).
* \param[in] val_cfl - the input value of the local CFL number for this CV.
*/
inline void SetLocalCFL(su2double val_cfl) { LocalCFL = val_cfl; }

/*!
* \brief Get the value of the local CFL number for the current control volume (CV).
* \return Value of the local CFL number for this CV.
*/
inline su2double GetLocalCFL(void) { return LocalCFL; }

/*!
* \brief Set auxiliar variables, we are looking for the gradient of that variable.
* \param[in] val_auxvar - Value of the auxiliar variable.
Expand Down Expand Up @@ -1850,6 +1888,28 @@ class CVariable {
*/
inline virtual su2double *GetLimiter_Secondary(void) {return NULL; }

/*!
* \brief Get the value of the primitive gradient for MUSCL reconstruction.
* \param[in] val_var - Index of the variable.
* \param[in] val_dim - Index of the dimension.
* \return Value of the primitive variables gradient.
*/
inline virtual su2double GetGradient_Reconstruction(unsigned short val_var, unsigned short val_dim) { return 0; }

/*!
* \brief Set the value of the primitive gradient for MUSCL reconstruction.
* \param[in] val_var - Index of the variable.
* \param[in] val_dim - Index of the dimension.
* \param[in] val_value - Value of the gradient.
*/
inline virtual void SetGradient_Reconstruction(unsigned short val_var, unsigned short val_dim, su2double val_value) { }

/*!
* \brief Get the value of the primitive gradient for MUSCL reconstruction.
* \return Value of the primitive gradient for MUSCL reconstruction.
*/
inline virtual su2double **GetGradient_Reconstruction(void) { return NULL; }

/*!
* \brief Set the blending function for the blending of k-w and k-eps.
* \param[in] val_viscosity - Value of the vicosity.
Expand Down
29 changes: 0 additions & 29 deletions SU2_CFD/src/drivers/CDriver.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3944,14 +3944,6 @@ bool CDriver::Monitor(unsigned long ExtIter) {
}
}

/*--- Evaluate the new CFL number (adaptive). ---*/
if (config_container[ZONE_0]->GetCFL_Adapt() == YES) {
for (iZone = 0; iZone < nZone; iZone++){
if (!(config_container[iZone]->GetMultizone_Problem())) // This needs to be changed everywhere in the code, in a future PR
output->SetCFL_Number(solver_container, config_container, iZone);
}
}

/*--- Check whether the current simulation has reached the specified
convergence criteria, and set StopCalc to true, if so. ---*/

Expand Down Expand Up @@ -4276,7 +4268,6 @@ void CTurbomachineryDriver::SetTurboPerformance(unsigned short targetZone){

bool CTurbomachineryDriver::Monitor(unsigned long ExtIter) {

su2double CFL;
su2double rot_z_ini, rot_z_final ,rot_z;
su2double outPres_ini, outPres_final, outPres;
unsigned long rampFreq, finalRamp_Iter;
Expand Down Expand Up @@ -4312,26 +4303,6 @@ bool CTurbomachineryDriver::Monitor(unsigned long ExtIter) {
config_container, integration_container, false, UsedTime, iZone, iInst);
}


/*--- Evaluate the new CFL number (adaptive). ---*/
if (config_container[ZONE_0]->GetCFL_Adapt() == YES) {
if(mixingplane){
CFL = 0;
for (iZone = 0; iZone < nZone; iZone++){
output->SetCFL_Number(solver_container, config_container, iZone);
CFL += config_container[iZone]->GetCFL(MESH_0);
}
/*--- For fluid-multizone the new CFL number is the same for all the zones and it is equal to the zones' minimum value. ---*/
for (iZone = 0; iZone < nZone; iZone++){
config_container[iZone]->SetCFL(MESH_0, CFL/nZone);
}
}
else{
output->SetCFL_Number(solver_container, config_container, ZONE_0);
}
}


/*--- ROTATING FRAME Ramp: Compute the updated rotational velocity. ---*/
if (config_container[ZONE_0]->GetGrid_Movement() && config_container[ZONE_0]->GetRampRotatingFrame()) {
rampFreq = SU2_TYPE::Int(config_container[ZONE_0]->GetRampRotatingFrame_Coeff(1));
Expand Down
Loading