Skip to content

Commit 7632470

Browse files
authored
Merge pull request #24 from su2code/feature_nlctrl
Tutorial Updates for v7
2 parents ecbb09b + ceaeacc commit 7632470

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

41 files changed

+187
-389
lines changed

Inc_Inviscid_Hydrofoil/inv_naca0012.cfg

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -155,11 +155,10 @@ TIME_DISCRE_FLOW= EULER_IMPLICIT
155155
% --------------------------- CONVERGENCE PARAMETERS --------------------------%
156156
% Convergence criteria (CAUCHY, RESIDUAL)
157157
%
158-
CONV_CRITERIA= RESIDUAL
159-
%
158+
CONV_FIELD= RMS_PRESSURE
160159
%
161160
% Min value of the residual (log10 of the residual)
162-
CONV_RESIDUAL_MINVAL= -18
161+
CONV_RESIDUAL_MINVAL= -15
163162
%
164163
% Start Cauchy criteria at iteration number
165164
CONV_STARTITER= 10
@@ -204,4 +203,4 @@ WRT_SOL_FREQ= 50
204203
WRT_CON_FREQ= 1
205204
%
206205
% Screen output
207-
SCREEN_OUTPUT= (INNER_ITER, RMS_PRESSURE, RMS_VELOCITY-X, LIFT, DRAG)
206+
SCREEN_OUTPUT= (INNER_ITER, WALL_TIME, RMS_PRESSURE, RMS_VELOCITY-X, LIFT, DRAG)

Inc_Laminar_Cavity/lam_buoyancy_cavity.cfg

Lines changed: 10 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@
1515
% POISSON_EQUATION)
1616
SOLVER= INC_NAVIER_STOKES
1717
%
18-
%
1918
% Specify turbulent model (NONE, SA, SA_NEG, SST)
2019
KIND_TURB_MODEL= NONE
2120
%
@@ -123,11 +122,11 @@ NUM_METHOD_GRAD= GREEN_GAUSS
123122
CFL_NUMBER= 50.0
124123
%
125124
% Adaptive CFL number (NO, YES)
126-
CFL_ADAPT= NO
125+
CFL_ADAPT= YES
127126
%
128127
% Parameters of the adaptive CFL number (factor down, factor up, CFL min value,
129128
% CFL max value )
130-
CFL_ADAPT_PARAM= ( 1.5, 0.5, 15.0, 1e10)
129+
CFL_ADAPT_PARAM= ( 0.1, 2.0, 50.0, 1e10)
131130
%
132131
% Maximum Delta Time in local time stepping simulations
133132
MAX_DELTA_TIME= 1E6
@@ -153,18 +152,18 @@ LINEAR_SOLVER_ILU_FILL_IN= 0
153152
LINEAR_SOLVER_ERROR= 1E-15
154153
%
155154
% Max number of iterations of the linear solver for the implicit formulation
156-
LINEAR_SOLVER_ITER= 10
155+
LINEAR_SOLVER_ITER= 30
157156

158157
% -------------------------- MULTIGRID PARAMETERS -----------------------------%
159158
%
160159
% Multi-Grid Levels (0 = no multi-grid)
161-
MGLEVEL= 2
160+
MGLEVEL= 0
162161
%
163162
% Multi-grid cycle (V_CYCLE, W_CYCLE, FULLMG_CYCLE)
164163
MGCYCLE= V_CYCLE
165164
%
166165
% Multi-grid pre-smoothing level
167-
MG_PRE_SMOOTH= ( 1, 1, 1, 1 )
166+
MG_PRE_SMOOTH= ( 1, 2, 3, 3 )
168167
%
169168
% Multi-grid post-smoothing level
170169
MG_POST_SMOOTH= ( 0, 0, 0, 0 )
@@ -173,10 +172,10 @@ MG_POST_SMOOTH= ( 0, 0, 0, 0 )
173172
MG_CORRECTION_SMOOTH= ( 0, 0, 0, 0 )
174173
%
175174
% Damping factor for the residual restriction
176-
MG_DAMP_RESTRICTION= 0.8
175+
MG_DAMP_RESTRICTION= 0.95
177176
%
178177
% Damping factor for the correction prolongation
179-
MG_DAMP_PROLONGATION= 0.8
178+
MG_DAMP_PROLONGATION= 0.95
180179

181180
% -------------------- FLOW NUMERICAL METHOD DEFINITION -----------------------%
182181
%
@@ -199,11 +198,10 @@ TIME_DISCRE_FLOW= EULER_IMPLICIT
199198
% --------------------------- CONVERGENCE PARAMETERS --------------------------%
200199
%
201200
% Convergence criteria (CAUCHY, RESIDUAL)
202-
CONV_CRITERIA= RESIDUAL
203-
%
201+
CONV_FIELD= RMS_TEMPERATURE
204202
%
205203
% Min value of the residual (log10 of the residual)
206-
CONV_RESIDUAL_MINVAL= -12
204+
CONV_RESIDUAL_MINVAL= -8
207205
%
208206
% Start convergence criteria at iteration number
209207
CONV_STARTITER= 10
@@ -213,7 +211,6 @@ CONV_CAUCHY_ELEMS= 100
213211
%
214212
% Epsilon to control the series convergence
215213
CONV_CAUCHY_EPS= 1E-6
216-
%
217214

218215
% ------------------------- INPUT/OUTPUT INFORMATION --------------------------%
219216
%
@@ -266,12 +263,4 @@ WRT_SOL_FREQ= 100
266263
WRT_CON_FREQ= 1
267264
%
268265
% Screen output
269-
SCREEN_OUTPUT= (INNER_ITER, RMS_PRESSURE, RMS_VELOCITY-X, LIFT, DRAG)
270-
% ----------------------- GEOMETRY EVALUATION PARAMETERS ----------------------%
271-
%
272-
% Extract a slice using GEO_BOUNDS (works with 2D cartesian grids only)
273-
WRT_SLICE= YES
274-
%
275-
% Geometrical bounds (Y coordinate) for the wing geometry analysis or
276-
% fuselage evaluation (X coordinate).
277-
GEO_BOUNDS= ( 0.499, 0.501)
266+
SCREEN_OUTPUT= (INNER_ITER, WALL_TIME, RMS_PRESSURE, RMS_TEMPERATURE, LIFT, DRAG)

Inc_Laminar_Flat_Plate/lam_flatplate.cfg

Lines changed: 6 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -135,11 +135,11 @@ NUM_METHOD_GRAD= WEIGHTED_LEAST_SQUARES
135135
CFL_NUMBER= 15.0
136136
%
137137
% Adaptive CFL number (NO, YES)
138-
CFL_ADAPT= NO
138+
CFL_ADAPT= YES
139139
%
140140
% Parameters of the adaptive CFL number (factor down, factor up, CFL min value,
141141
% CFL max value )
142-
CFL_ADAPT_PARAM= ( 1.5, 0.5, 1.0, 100.0 )
142+
CFL_ADAPT_PARAM= ( 0.1, 2.0, 1.0, 1e10 )
143143
%
144144
% Number of total iterations
145145
ITER= 99999
@@ -164,7 +164,7 @@ LINEAR_SOLVER_ITER= 25
164164
% -------------------------- MULTIGRID PARAMETERS -----------------------------%
165165
%
166166
% Multi-Grid Levels (0 = no multi-grid)
167-
MGLEVEL= 3
167+
MGLEVEL= 0
168168
%
169169
% Multi-grid cycle (V_CYCLE, W_CYCLE, FULLMG_CYCLE)
170170
MGCYCLE= W_CYCLE
@@ -209,12 +209,10 @@ TIME_DISCRE_FLOW= EULER_IMPLICIT
209209
% --------------------------- CONVERGENCE PARAMETERS --------------------------%
210210
%
211211
% Convergence criteria (CAUCHY, RESIDUAL)
212-
%
213-
CONV_CRITERIA= RESIDUAL
214-
%
212+
CONV_FIELD= RMS_PRESSURE
215213
%
216214
% Min value of the residual (log10 of the residual)
217-
CONV_RESIDUAL_MINVAL= -14
215+
CONV_RESIDUAL_MINVAL= -16
218216
%
219217
% Start convergence criteria at iteration number
220218
CONV_STARTITER= 10
@@ -224,7 +222,6 @@ CONV_CAUCHY_ELEMS= 100
224222
%
225223
% Epsilon to control the series convergence
226224
CONV_CAUCHY_EPS= 1E-6
227-
%
228225
229226
% ------------------------- INPUT/OUTPUT INFORMATION --------------------------%
230227
%
@@ -277,12 +274,4 @@ WRT_SOL_FREQ= 250
277274
WRT_CON_FREQ= 1
278275
%
279276
% Screen output
280-
SCREEN_OUTPUT= (INNER_ITER, RMS_PRESSURE, RMS_VELOCITY-X, LIFT, DRAG)
281-
282-
% ----------------------- GEOMETRY EVALUATION PARAMETERS ----------------------%
283-
%
284-
WRT_SLICE= YES
285-
%
286-
% Geometrical bounds (Y coordinate) for the wing geometry analysis or
287-
% fuselage evaluation (X coordinate).
288-
GEO_BOUNDS= ( 0.304, 0.305)
277+
SCREEN_OUTPUT= (INNER_ITER, WALL_TIME, RMS_PRESSURE, RMS_VELOCITY-X, LIFT, DRAG)

Inc_Laminar_Step/lam_backwardstep.cfg

Lines changed: 2 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -194,9 +194,7 @@ TIME_DISCRE_FLOW= EULER_IMPLICIT
194194
% --------------------------- CONVERGENCE PARAMETERS --------------------------%
195195
%
196196
% Convergence criteria (CAUCHY, RESIDUAL)
197-
%
198-
CONV_CRITERIA= RESIDUAL
199-
%
197+
CONV_FIELD= RMS_PRESSURE
200198
%
201199
% Min value of the residual (log10 of the residual)
202200
CONV_RESIDUAL_MINVAL= -16
@@ -209,7 +207,6 @@ CONV_CAUCHY_ELEMS= 100
209207
%
210208
% Epsilon to control the series convergence
211209
CONV_CAUCHY_EPS= 1E-6
212-
%
213210

214211
% ------------------------- INPUT/OUTPUT INFORMATION --------------------------%
215212
%
@@ -262,14 +259,4 @@ WRT_SOL_FREQ= 250
262259
WRT_CON_FREQ= 1
263260
%
264261
% Screen output
265-
SCREEN_OUTPUT=(INNER_ITER, RMS_PRESSURE, RMS_VELOCITY-X, LIFT, DRAG)
266-
267-
% ----------------------- GEOMETRY EVALUATION PARAMETERS ----------------------%
268-
%
269-
% Extract a slice using GEO_BOUNDS (works with 2D cartesian grids only)
270-
WRT_SLICE= YES
271-
%
272-
% Geometrical bounds (Y coordinate) for the wing geometry analysis or
273-
% fuselage evaluation (X coordinate).
274-
%GEO_BOUNDS= ( 6.99, 7.01)
275-
GEO_BOUNDS= ( 14.99, 15.01)
262+
SCREEN_OUTPUT=(INNER_ITER, WALL_TIME, RMS_PRESSURE, RMS_VELOCITY-X, LIFT, DRAG)

Inc_Turbulent_Flat_Plate/turb_flatplate.cfg

Lines changed: 5 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
% Physical governing equations (EULER, NAVIER_STOKES,
1414
% WAVE_EQUATION, HEAT_EQUATION, FEM_ELASTICITY,
1515
% POISSON_EQUATION)
16-
SOLVER= INC_NAVIER_STOKES
16+
SOLVER= INC_RANS
1717
%
1818
% If Navier-Stokes, kind of turbulent model (NONE, SA)
1919
KIND_TURB_MODEL= SA
@@ -100,11 +100,11 @@ NUM_METHOD_GRAD= GREEN_GAUSS
100100
CFL_NUMBER= 100.0
101101
%
102102
% Adaptive CFL number (NO, YES)
103-
CFL_ADAPT= NO
103+
CFL_ADAPT= YES
104104
%
105105
% Parameters of the adaptive CFL number (factor down, factor up, CFL min value,
106106
% CFL max value )
107-
CFL_ADAPT_PARAM= ( 1.5, 0.5, 1.0, 100.0 )
107+
CFL_ADAPT_PARAM= ( 0.1, 2.0, 100.0, 1e3 )
108108
%
109109
% Runge-Kutta alpha coefficients
110110
RK_ALPHA_COEFF= ( 0.66667, 0.66667, 1.000000 )
@@ -201,8 +201,7 @@ TIME_DISCRE_TURB= EULER_IMPLICIT
201201
% --------------------------- CONVERGENCE PARAMETERS --------------------------%
202202
%
203203
% Convergence criteria (CAUCHY, RESIDUAL)
204-
CONV_CRITERIA= RESIDUAL
205-
%
204+
CONV_FIELD= RMS_PRESSURE
206205
%
207206
% Min value of the residual (log10 of the residual)
208207
CONV_RESIDUAL_MINVAL= -14
@@ -268,13 +267,5 @@ WRT_SOL_FREQ= 250
268267
WRT_CON_FREQ= 1
269268
%
270269
% Screen output
271-
SCREEN_OUTPUT= (INNER_ITER, RMS_PRESSURE, RMS_NU_TILDE, LIFT, DRAG)
272-
273-
% ----------------------- GEOMETRY EVALUATION PARAMETERS ----------------------%
274-
%
275-
WRT_SLICE= YES
276-
%
277-
% Geometrical bounds (Y coordinate) for the wing geometry analysis or
278-
% fuselage evaluation (X coordinate).
279-
GEO_BOUNDS= ( 0.970, 0.9701)
270+
SCREEN_OUTPUT= (INNER_ITER, WALL_TIME, RMS_PRESSURE, RMS_NU_TILDE, LIFT, DRAG)
280271

Inc_Turbulent_NACA0012/turb_naca0012.cfg

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
% Physical governing equations (EULER, NAVIER_STOKES,
1515
% WAVE_EQUATION, HEAT_EQUATION, FEM_ELASTICITY,
1616
% POISSON_EQUATION)
17-
SOLVER= INC_NAVIER_STOKES
17+
SOLVER= INC_RANS
1818
%
1919
% Specify turbulent model (NONE, SA, SA_NEG, SST)
2020
KIND_TURB_MODEL= SA
@@ -101,7 +101,7 @@ CFL_ADAPT= NO
101101
%
102102
% Parameters of the adaptive CFL number (factor down, factor up, CFL min value,
103103
% CFL max value )
104-
CFL_ADAPT_PARAM= ( 1.5, 0.5, 25.0, 10000.0 )
104+
CFL_ADAPT_PARAM= ( 0.1, 1.2, 25.0, 1e3 )
105105
%
106106
% Maximum Delta Time in local time stepping simulations
107107
MAX_DELTA_TIME= 1E6
@@ -203,9 +203,7 @@ TIME_DISCRE_TURB= EULER_IMPLICIT
203203
% --------------------------- CONVERGENCE PARAMETERS --------------------------%
204204
%
205205
% Convergence criteria (CAUCHY, RESIDUAL)
206-
%
207-
CONV_CRITERIA= RESIDUAL
208-
%
206+
CONV_FIELD= RMS_PRESSURE
209207
%
210208
% Min value of the residual (log10 of the residual)
211209
CONV_RESIDUAL_MINVAL= -14
@@ -218,7 +216,6 @@ CONV_CAUCHY_ELEMS= 100
218216
%
219217
% Epsilon to control the series convergence
220218
CONV_CAUCHY_EPS= 1E-6
221-
%
222219

223220
% ------------------------- INPUT/OUTPUT INFORMATION --------------------------%
224221
%
@@ -271,5 +268,5 @@ WRT_SOL_FREQ= 250
271268
WRT_CON_FREQ= 1
272269
%
273270
% Screen output
274-
SCREEN_OUTPUT = (INNER_ITER, RMS_PRESSURE, RMS_NU_TILDE, LIFT, DRAG)
271+
SCREEN_OUTPUT = (INNER_ITER, WALL_TIME, RMS_PRESSURE, RMS_NU_TILDE, LIFT, DRAG)
275272

Inviscid_Bump/inv_channel.cfg

Lines changed: 10 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -89,11 +89,11 @@ NUM_METHOD_GRAD= GREEN_GAUSS
8989
CFL_NUMBER= 50.0
9090
%
9191
% Adaptive CFL number (NO, YES)
92-
CFL_ADAPT= NO
92+
CFL_ADAPT= YES
9393
%
9494
% Parameters of the adaptive CFL number (factor down, factor up, CFL min value,
9595
% CFL max value )
96-
CFL_ADAPT_PARAM= ( 1.5, 0.5, 1.0, 100.0 )
96+
CFL_ADAPT_PARAM= ( 0.1, 2.0, 50.0, 1e10 )
9797
%
9898
% Runge-Kutta alpha coefficients
9999
RK_ALPHA_COEFF= ( 0.66667, 0.66667, 1.000000 )
@@ -110,18 +110,18 @@ LINEAR_SOLVER= FGMRES
110110
LINEAR_SOLVER_PREC= ILU
111111
%
112112
% Minimum error of the linear solver for implicit formulations
113-
LINEAR_SOLVER_ERROR= 1E-4
113+
LINEAR_SOLVER_ERROR= 1E-10
114114
%
115115
% Max number of iterations of the linear solver for the implicit formulation
116-
LINEAR_SOLVER_ITER= 10
116+
LINEAR_SOLVER_ITER= 20
117117

118118
% -------------------------- MULTIGRID PARAMETERS -----------------------------%
119119
%
120120
% Multi-Grid Levels (0 = no multi-grid)
121121
MGLEVEL= 3
122122
%
123123
% Multi-grid cycle (V_CYCLE, W_CYCLE, FULLMG_CYCLE)
124-
MGCYCLE= V_CYCLE
124+
MGCYCLE= W_CYCLE
125125
%
126126
% Multi-grid pre-smoothing level
127127
MG_PRE_SMOOTH= ( 1, 2, 3, 3 )
@@ -133,27 +133,17 @@ MG_POST_SMOOTH= ( 0, 0, 0, 0 )
133133
MG_CORRECTION_SMOOTH= ( 0, 0, 0, 0 )
134134
%
135135
% Damping factor for the residual restriction
136-
MG_DAMP_RESTRICTION= 0.9
136+
MG_DAMP_RESTRICTION= 1.0
137137
%
138138
% Damping factor for the correction prolongation
139-
MG_DAMP_PROLONGATION= 0.9
139+
MG_DAMP_PROLONGATION= 1.0
140140

141141
% -------------------- FLOW NUMERICAL METHOD DEFINITION -----------------------%
142142
%
143143
% Convective numerical method (JST, LAX-FRIEDRICH, CUSP, ROE, AUSM, HLLC,
144144
% TURKEL_PREC, MSW)
145145
CONV_NUM_METHOD_FLOW= JST
146146
%
147-
% Monotonic Upwind Scheme for Conservation Laws (TVD) in the flow equations.
148-
% Required for 2nd order upwind schemes (NO, YES)
149-
MUSCL_FLOW= YES
150-
%
151-
% Slope limiter (VENKATAKRISHNAN, MINMOD)
152-
SLOPE_LIMITER_FLOW= VENKATAKRISHNAN
153-
%
154-
% Coefficient for the limiter (smooth regions)
155-
VENKAT_LIMITER_COEFF= 0.03
156-
%
157147
% 2nd and 4th order artificial dissipation coefficients
158148
JST_SENSOR_COEFF= ( 0.5, 0.02 )
159149
%
@@ -163,12 +153,10 @@ TIME_DISCRE_FLOW= EULER_IMPLICIT
163153
% --------------------------- CONVERGENCE PARAMETERS --------------------------%
164154
%
165155
% Convergence criteria (CAUCHY, RESIDUAL)
166-
%
167-
CONV_CRITERIA= RESIDUAL
168-
%
156+
CONV_FIELD= RMS_DENSITY
169157
%
170158
% Min value of the residual (log10 of the residual)
171-
CONV_RESIDUAL_MINVAL= -12
159+
CONV_RESIDUAL_MINVAL= -10
172160
%
173161
% Start convergence criteria at iteration number
174162
CONV_STARTITER= 10
@@ -178,7 +166,6 @@ CONV_CAUCHY_ELEMS= 100
178166
%
179167
% Epsilon to control the series convergence
180168
CONV_CAUCHY_EPS= 1E-10
181-
%
182169

183170
% ------------------------- INPUT/OUTPUT INFORMATION --------------------------%
184171
%
@@ -231,4 +218,4 @@ WRT_SOL_FREQ= 250
231218
WRT_CON_FREQ= 1
232219
%
233220
% Screen output
234-
SCREEN_OUTPUT= (INNER_ITER, RMS_DENSITY, RMS_ENERGY, LIFT, DRAG)
221+
SCREEN_OUTPUT= (INNER_ITER, WALL_TIME, RMS_DENSITY, RMS_ENERGY, LIFT, DRAG)

0 commit comments

Comments
 (0)