Skip to content

Commit 1811e61

Browse files
committed
Update to tutorial files and docs Part I.
1 parent 6628bc2 commit 1811e61

File tree

12 files changed

+97
-114
lines changed

12 files changed

+97
-114
lines changed

Inviscid_Bump/inv_channel.cfg

+10-23
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)

Inviscid_ONERAM6/inv_ONERAM6.cfg

+6-13
Original file line numberDiff line numberDiff line change
@@ -19,12 +19,6 @@ MATH_PROBLEM= DIRECT
1919
%
2020
% Restart solution (NO, YES)
2121
RESTART_SOL= NO
22-
%
23-
% Write binary restart files (YES, NO)
24-
WRT_BINARY_RESTART= NO
25-
%
26-
% Read binary restart files (YES, NO)
27-
READ_BINARY_RESTART= NO
2822

2923
% -------------------- COMPRESSIBLE FREE-STREAM DEFINITION --------------------%
3024
%
@@ -95,17 +89,17 @@ OBJECTIVE_FUNCTION= DRAG
9589
CFL_NUMBER= 25.0
9690
%
9791
% Adaptive CFL number (NO, YES)
98-
CFL_ADAPT= NO
92+
CFL_ADAPT= YES
9993
%
10094
% Parameters of the adaptive CFL number (factor down, factor up, CFL min value,
10195
% CFL max value )
102-
CFL_ADAPT_PARAM= ( 1.5, 0.5, 1.0, 100.0 )
96+
CFL_ADAPT_PARAM= ( 0.1, 2.0, 25.0, 1e10 )
10397
%
10498
% Runge-Kutta alpha coefficients
10599
RK_ALPHA_COEFF= ( 0.66667, 0.66667, 1.000000 )
106100
%
107101
% Number of total iterations
108-
ITER= 99999
102+
ITER= 9999
109103
%
110104
% Linear solver for the implicit formulation (BCGSTAB, FGMRES)
111105
LINEAR_SOLVER= FGMRES
@@ -117,7 +111,7 @@ LINEAR_SOLVER_PREC= ILU
117111
LINEAR_SOLVER_ERROR= 1E-6
118112
%
119113
% Max number of iterations of the linear solver for the implicit formulation
120-
LINEAR_SOLVER_ITER= 5
114+
LINEAR_SOLVER_ITER= 10
121115

122116
% ----------------------- SLOPE LIMITER DEFINITION ----------------------------%
123117
%
@@ -171,8 +165,7 @@ TIME_DISCRE_FLOW= EULER_IMPLICIT
171165
% --------------------------- CONVERGENCE PARAMETERS --------------------------&
172166
%
173167
% Convergence criteria (CAUCHY, RESIDUAL)
174-
CONV_CRITERIA= RESIDUAL
175-
%
168+
CONV_FIELD= RMS_DENSITY
176169
%
177170
% Min value of the residual (log10 of the residual)
178171
CONV_RESIDUAL_MINVAL= -12
@@ -238,5 +231,5 @@ WRT_SOL_FREQ= 100
238231
WRT_CON_FREQ= 1
239232
%
240233
% Screen output
241-
SCREEN_OUTPUT= (INNER_ITER, RMS_DENSITY, RMS_ENERGY, LIFT, DRAG)
234+
SCREEN_OUTPUT= (INNER_ITER, WALL_TIME, RMS_DENSITY, RMS_ENERGY, LIFT, DRAG)
242235

Inviscid_Wedge/inv_wedge_HLLC.cfg

+10-13
Original file line numberDiff line numberDiff line change
@@ -86,16 +86,16 @@ CFL_ADAPT= NO
8686
%
8787
% Parameters of the adaptive CFL number (factor down, factor up, CFL min value,
8888
% CFL max value )
89-
CFL_ADAPT_PARAM= ( 1.5, 0.5, 1.0, 100.0 )
89+
CFL_ADAPT_PARAM= ( 0.1, 2.0, 5.0, 1e10 )
9090
%
9191
% Runge-Kutta alpha coefficients
9292
RK_ALPHA_COEFF= ( 0.66667, 0.66667, 1.000000 )
9393
%
9494
% Number of total iterations
95-
ITER= 1000
95+
ITER= 10000
9696
%
9797
% Linear solver for the implicit formulation (BCGSTAB, FGMRES)
98-
LINEAR_SOLVER= BCGSTAB
98+
LINEAR_SOLVER= FGMRES
9999
%
100100
% Preconditioner of the Krylov linear solver (ILU, JACOBI, LINELET, LU_SGS)
101101
LINEAR_SOLVER_PREC= ILU
@@ -104,15 +104,15 @@ LINEAR_SOLVER_PREC= ILU
104104
LINEAR_SOLVER_ERROR= 1E-6
105105
%
106106
% Max number of iterations of the linear solver for the implicit formulation
107-
LINEAR_SOLVER_ITER= 5
107+
LINEAR_SOLVER_ITER= 20
108108

109109
% -------------------------- MULTIGRID PARAMETERS -----------------------------%
110110
%
111111
% Multi-Grid Levels (0 = no multi-grid)
112-
MGLEVEL= 2
112+
MGLEVEL= 3
113113
%
114114
% Multi-grid cycle (V_CYCLE, W_CYCLE, FULLMG_CYCLE)
115-
MGCYCLE= V_CYCLE
115+
MGCYCLE= W_CYCLE
116116
%
117117
% Multi-grid pre-smoothing level
118118
MG_PRE_SMOOTH= ( 1, 2, 3, 3 )
@@ -124,10 +124,10 @@ MG_POST_SMOOTH= ( 0, 0, 0, 0 )
124124
MG_CORRECTION_SMOOTH= ( 0, 0, 0, 0 )
125125
%
126126
% Damping factor for the residual restriction
127-
MG_DAMP_RESTRICTION= 0.8
127+
MG_DAMP_RESTRICTION= 1.0
128128
%
129129
% Damping factor for the correction prolongation
130-
MG_DAMP_PROLONGATION= 0.8
130+
MG_DAMP_PROLONGATION= 1.0
131131

132132
% -------------------- FLOW NUMERICAL METHOD DEFINITION -----------------------%
133133
%
@@ -155,9 +155,7 @@ TIME_DISCRE_FLOW= EULER_IMPLICIT
155155
% --------------------------- CONVERGENCE PARAMETERS --------------------------%
156156
%
157157
% Convergence criteria (CAUCHY, RESIDUAL)
158-
%
159-
CONV_CRITERIA= RESIDUAL
160-
%
158+
CONV_FIELD= RMS_DENSITY
161159
%
162160
% Min value of the residual (log10 of the residual)
163161
CONV_RESIDUAL_MINVAL= -13
@@ -170,7 +168,6 @@ CONV_CAUCHY_ELEMS= 100
170168
%
171169
% Epsilon to control the series convergence
172170
CONV_CAUCHY_EPS= 1E-10
173-
%
174171

175172
% ------------------------- INPUT/OUTPUT INFORMATION --------------------------%
176173
%
@@ -223,7 +220,7 @@ WRT_SOL_FREQ= 250
223220
WRT_CON_FREQ= 1
224221
%
225222
% Screen output
226-
SCREEN_OUTPUT=(INNER_ITER, RMS_DENSITY, RMS_ENERGY, LIFT, DRAG)
223+
SCREEN_OUTPUT=(INNER_ITER, WALL_TIME, RMS_DENSITY, RMS_ENERGY, LIFT, DRAG)
227224

228225
% ----------------------- DESIGN VARIABLE PARAMETERS --------------------------%
229226
%

Laminar_Cylinder/lam_cylinder.cfg

+6-8
Original file line numberDiff line numberDiff line change
@@ -75,14 +75,14 @@ MARKER_MONITORING= ( cylinder )
7575
NUM_METHOD_GRAD= WEIGHTED_LEAST_SQUARES
7676
%
7777
% Courant-Friedrichs-Lewy condition of the finest grid
78-
CFL_NUMBER= 10000.0
78+
CFL_NUMBER= 100.0
7979
%
8080
% Adaptive CFL number (NO, YES)
81-
CFL_ADAPT= NO
81+
CFL_ADAPT= YES
8282
%
8383
% Parameters of the adaptive CFL number (factor down, factor up, CFL min value,
8484
% CFL max value )
85-
CFL_ADAPT_PARAM= ( 1.5, 0.5, 1.0, 100.0 )
85+
CFL_ADAPT_PARAM= ( 0.1, 2.0, 100.0, 1e10 )
8686
%
8787
% Runge-Kutta alpha coefficients
8888
RK_ALPHA_COEFF= ( 0.66667, 0.66667, 1.000000 )
@@ -152,11 +152,10 @@ TIME_DISCRE_FLOW= EULER_IMPLICIT
152152
% --------------------------- CONVERGENCE PARAMETERS --------------------------%
153153
%
154154
% Convergence criteria (CAUCHY, RESIDUAL)
155-
CONV_CRITERIA= RESIDUAL
156-
%
155+
CONV_FIELD= RMS_DENSITY
157156
%
158157
% Min value of the residual (log10 of the residual)
159-
CONV_RESIDUAL_MINVAL= -14
158+
CONV_RESIDUAL_MINVAL= -15
160159
%
161160
% Start convergence criteria at iteration number
162161
CONV_STARTITER= 10
@@ -166,7 +165,6 @@ CONV_CAUCHY_ELEMS= 100
166165
%
167166
% Epsilon to control the series convergence
168167
CONV_CAUCHY_EPS= 1E-6
169-
%
170168
171169
% ------------------------- INPUT/OUTPUT INFORMATION --------------------------%
172170
%
@@ -219,5 +217,5 @@ WRT_SOL_FREQ= 250
219217
WRT_CON_FREQ= 1
220218
%
221219
% Screen output
222-
SCREEN_OUTPUT= (INNER_ITER, RMS_DENSITY, RMS_ENERGY, LIFT, DRAG)
220+
SCREEN_OUTPUT= (INNER_ITER, WALL_TIME, RMS_DENSITY, RMS_ENERGY, LIFT, DRAG)
223221

Laminar_Flat_Plate/lam_flatplate.cfg

+8-11
Original file line numberDiff line numberDiff line change
@@ -93,17 +93,17 @@ MARKER_MONITORING= ( wall )
9393
NUM_METHOD_GRAD= WEIGHTED_LEAST_SQUARES
9494
%
9595
% Courant-Friedrichs-Lewy condition of the finest grid
96-
CFL_NUMBER= 100.0
96+
CFL_NUMBER= 10.0
9797
%
9898
% Adaptive CFL number (NO, YES)
99-
CFL_ADAPT= NO
99+
CFL_ADAPT= YES
100100
%
101101
% Parameters of the adaptive CFL number (factor down, factor up, CFL min value,
102102
% CFL max value )
103-
CFL_ADAPT_PARAM= ( 1.5, 0.5, 1.0, 100.0 )
103+
CFL_ADAPT_PARAM= ( 0.1, 2.0, 100.0, 1e10 )
104104
%
105105
% Number of total iterations
106-
ITER= 999999
106+
ITER= 9999
107107

108108
% ------------------------ LINEAR SOLVER DEFINITION ---------------------------%
109109
%
@@ -117,12 +117,12 @@ LINEAR_SOLVER_PREC= ILU
117117
LINEAR_SOLVER_ERROR= 1E-6
118118
%
119119
% Max number of iterations of the linear solver for the implicit formulation
120-
LINEAR_SOLVER_ITER= 5
120+
LINEAR_SOLVER_ITER= 10
121121

122122
% -------------------------- MULTIGRID PARAMETERS -----------------------------%
123123
%
124124
% Multi-Grid Levels (0 = no multi-grid)
125-
MGLEVEL= 3
125+
MGLEVEL= 0
126126
%
127127
% Multi-grid cycle (V_CYCLE, W_CYCLE, FULLMG_CYCLE)
128128
MGCYCLE= W_CYCLE
@@ -168,9 +168,7 @@ TIME_DISCRE_FLOW= EULER_IMPLICIT
168168
% --------------------------- CONVERGENCE PARAMETERS --------------------------%
169169
%
170170
% Convergence criteria (CAUCHY, RESIDUAL)
171-
%
172-
CONV_CRITERIA= RESIDUAL
173-
%
171+
CONV_FIELD= RMS_DENSITY
174172
%
175173
% Min value of the residual (log10 of the residual)
176174
CONV_RESIDUAL_MINVAL= -12
@@ -183,7 +181,6 @@ CONV_CAUCHY_ELEMS= 100
183181
%
184182
% Epsilon to control the series convergence
185183
CONV_CAUCHY_EPS= 1E-6
186-
%
187184

188185
% ------------------------- INPUT/OUTPUT INFORMATION --------------------------%
189186
%
@@ -236,5 +233,5 @@ WRT_SOL_FREQ= 250
236233
WRT_CON_FREQ= 1
237234
%
238235
% Screen output
239-
SCREEN_OUTPUT=(INNER_ITER, RMS_DENSITY, RMS_ENERGY, LIFT, DRAG)
236+
SCREEN_OUTPUT=(INNER_ITER, WALL_TIME, RMS_DENSITY, RMS_ENERGY, LIFT, DRAG)
240237

Turbulent_Flat_Plate/turb_SA_flatplate.cfg

+6-7
Original file line numberDiff line numberDiff line change
@@ -88,14 +88,14 @@ MARKER_MONITORING= ( wall )
8888
NUM_METHOD_GRAD= WEIGHTED_LEAST_SQUARES
8989
%
9090
% Courant-Friedrichs-Lewy condition of the finest grid
91-
CFL_NUMBER= 5000.0
91+
CFL_NUMBER= 100.0
9292
%
9393
% Adaptive CFL number (NO, YES)
94-
CFL_ADAPT= NO
94+
CFL_ADAPT= YES
9595
%
9696
% Parameters of the adaptive CFL number (factor down, factor up, CFL min value,
9797
% CFL max value )
98-
CFL_ADAPT_PARAM= ( 1.5, 0.5, 1.0, 100.0 )
98+
CFL_ADAPT_PARAM= ( 0.1, 2.0, 100.0, 1e5 )
9999
%
100100
% Runge-Kutta alpha coefficients
101101
RK_ALPHA_COEFF= ( 0.66667, 0.66667, 1.000000 )
@@ -178,11 +178,10 @@ TIME_DISCRE_TURB= EULER_IMPLICIT
178178
% --------------------------- CONVERGENCE PARAMETERS --------------------------%
179179
%
180180
% Convergence criteria (CAUCHY, RESIDUAL)
181-
CONV_CRITERIA= RESIDUAL
182-
%
181+
CONV_FIELD= RMS_DENSITY
183182
%
184183
% Min value of the residual (log10 of the residual)
185-
CONV_RESIDUAL_MINVAL= -15
184+
CONV_RESIDUAL_MINVAL= -14
186185
%
187186
% Start convergence criteria at iteration number
188187
CONV_STARTITER= 10
@@ -245,5 +244,5 @@ WRT_SOL_FREQ= 1000
245244
WRT_CON_FREQ= 1
246245
%
247246
% Screen output
248-
SCREEN_OUTPUT= (INNER_ITER, RMS_DENSITY, RMS_NU_TILDE, LIFT, DRAG)
247+
SCREEN_OUTPUT= (INNER_ITER, WALL_TIME, RMS_DENSITY, RMS_NU_TILDE, LIFT, DRAG)
249248

0 commit comments

Comments
 (0)