Skip to content

Commit 93c742f

Browse files
authored
Merge pull request #16 from su2code/feature_heatcoeff_BC
Feature heatcoeff bc
2 parents 07419e5 + f4536d6 commit 93c742f

File tree

11 files changed

+295
-167
lines changed

11 files changed

+295
-167
lines changed

compressible_flow/NICFD_nozzle/NICFD_nozzle.cfg

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ MU_CONSTANT= 1.21409E-05
104104
CONDUCTIVITY_MODEL= CONSTANT_CONDUCTIVITY
105105
%
106106
% Molecular Thermal Conductivity that would be constant (0.0257 by default)
107-
KT_CONSTANT= 0.030542828
107+
THERMAL_CONDUCTIVITY_CONSTANT= 0.030542828
108108

109109
% -------------------- BOUNDARY CONDITION DEFINITION --------------------------%
110110
%

incompressible_flow/Inc_Laminar_Cavity/lam_buoyancy_cavity.cfg

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ MU_CONSTANT= 1.716e-5
7777
CONDUCTIVITY_MODEL= CONSTANT_CONDUCTIVITY
7878
%
7979
% Molecular Thermal Conductivity that would be constant (0.0257 by default)
80-
KT_CONSTANT= 0.0246295028571
80+
THERMAL_CONDUCTIVITY_CONSTANT= 0.0246295028571
8181

8282
% ----------------------- BODY FORCE DEFINITION -------------------------------%
8383
%

multiphysics/steady_cht/cht_2d_3cylinders.cfg

Lines changed: 16 additions & 50 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,9 @@
55
% Author: O. Burghardt, T. Economon %
66
% Institution: Chair for Scientific Computing, TU Kaiserslautern %
77
% Date: August 8, 2019 %
8-
% File Version 6.0.1 "Falcon" %
8+
% File Version 7.1.1 "Blackbird" %
99
% %
1010
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
11-
1211
%
1312
% Physical governing equations (EULER, NAVIER_STOKES,
1413
% WAVE_EQUATION, HEAT_EQUATION, FEM_ELASTICITY,
@@ -18,67 +17,34 @@ SOLVER= MULTIPHYSICS
1817
% Mathematical problem (DIRECT, CONTINUOUS_ADJOINT, DISCRETE_ADJOINT)
1918
MATH_PROBLEM= DIRECT
2019
%
21-
% Restart solution (NO, YES)
22-
RESTART_SOL= NO
2320
%
24-
% Configuration file list, one for each physical zone
25-
CONFIG_LIST= (flow_cylinder.cfg, solid_cylinder1.cfg, solid_cylinder2.cfg, solid_cylinder3.cfg)
21+
CONFIG_LIST = (flow_cylinder.cfg, solid_cylinder1.cfg, solid_cylinder2.cfg, solid_cylinder3.cfg)
22+
%
2623
%
27-
% Definition of the interface
2824
MARKER_ZONE_INTERFACE= (cylinder_outer1, cylinder_inner1, cylinder_outer2, cylinder_inner2, cylinder_outer3, cylinder_inner3)
25+
%
26+
%
2927
MARKER_CHT_INTERFACE= (cylinder_outer1, cylinder_inner1, cylinder_outer2, cylinder_inner2, cylinder_outer3, cylinder_inner3)
3028
%
31-
% Objective function in gradient evaluation (DRAG, LIFT, SIDEFORCE, MOMENT_X,
32-
% MOMENT_Y, MOMENT_Z, EFFICIENCY,
33-
% EQUIVALENT_AREA, NEARFIELD_PRESSURE,
34-
% FORCE_X, FORCE_Y, FORCE_Z, THRUST,
35-
% TORQUE, TOTAL_HEATFLUX,
36-
% MAXIMUM_HEATFLUX, INVERSE_DESIGN_PRESSURE,
37-
% INVERSE_DESIGN_HEATFLUX, SURFACE_TOTAL_PRESSURE,
38-
% SURFACE_MASSFLOW, SURFACE_STATIC_PRESSURE, SURFACE_MACH)
39-
% For a weighted sum of objectives: separate by commas, add OBJECTIVE_WEIGHT and MARKER_MONITORING in matching order.
40-
OBJECTIVE_FUNCTION= TOTAL_HEATFLUX
4129
%
42-
% List of weighting values when using more than one OBJECTIVE_FUNCTION. Separate by commas and match with MARKER_MONITORING.
43-
OBJECTIVE_WEIGHT= 1.0
30+
CHT_COUPLING_METHOD= DIRECT_TEMPERATURE_ROBIN_HEATFLUX
31+
%
32+
%
33+
TIME_DOMAIN = NO
4434
%
45-
% Number of total iterations
46-
OUTER_ITER = 15000
47-
OUTPUT_WRT_FREQ = 15000
35+
% Number of total iterations (15000 for suitable results)
36+
OUTER_ITER = 11
4837
%
4938
% Mesh input file
5039
MESH_FILENAME= mesh_cht_3cyl_ffd.su2
51-
MESH_OUT_FILENAME= mesh_cht_3cyl_out.su2
5240
%
5341
% Mesh input file format (SU2, CGNS, NETCDF_ASCII)
5442
MESH_FORMAT= SU2
5543
%
5644
% Output file format
57-
OUTPUT_FILES= (RESTART, TECPLOT, PARAVIEW, SURFACE_TECPLOT, SURFACE_PARAVIEW)
58-
%
59-
% Multizone convergence criteria
60-
CONV_RESIDUAL_MINVAL= -20
61-
62-
% -------------------- FREE-FORM DEFORMATION PARAMETERS -----------------------%
63-
%
64-
% Tolerance of the Free-Form Deformation point inversion
65-
FFD_TOLERANCE= 1E-12
66-
%
67-
% Maximum number of iterations in the Free-Form Deformation point inversion
68-
FFD_ITERATIONS= 500
69-
%
70-
% FFD box definition: 3D case (FFD_BoxTag, X1, Y1, Z1, X2, Y2, Z2, X3, Y3, Z3, X4, Y4, Z4,
71-
% X5, Y5, Z5, X6, Y6, Z6, X7, Y7, Z7, X8, Y8, Z8)
72-
% 2D case (FFD_BoxTag, X1, Y1, 0.0, X2, Y2, 0.0, X3, Y3, 0.0, X4, Y4, 0.0,
73-
% 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0)
74-
FFD_DEFINITION= (MAIN_BOX, -0.1, -0.6, 0.0, 1.1, -0.6, 0.0, 1.1, 0.6, 0.0, -0.1, 0.6, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0)
75-
%
76-
% FFD box degree: 3D case (x_degree, y_degree, z_degree)
77-
% 2D case (x_degree, y_degree, 0)
78-
FFD_DEGREE= ( 24, 1, 0)
45+
OUTPUT_FILES= (RESTART, PARAVIEW_MULTIBLOCK)
7946
%
80-
% Surface continuity at the intersection with the FFD (1ST_DERIVATIVE, 2ND_DERIVATIVE)
81-
FFD_CONTINUITY= 2ND_DERIVATIVE
47+
% These are just default parameters so that we can run SU2_DOT_AD, they have no physical meaning for this test case.
8248

8349
% ----------------------- DESIGN VARIABLE PARAMETERS --------------------------%
8450
%
@@ -87,10 +53,10 @@ FFD_CONTINUITY= 2ND_DERIVATIVE
8753
% FFD_CONTROL_POINT, FFD_CAMBER, FFD_THICKNESS, FFD_TWIST
8854
% FFD_CONTROL_POINT_2D, FFD_CAMBER_2D, FFD_THICKNESS_2D, FFD_TWIST_2D,
8955
% HICKS_HENNE, SURFACE_BUMP)
90-
DV_KIND= FFD_CONTROL_POINT_2D
56+
DV_KIND= HICKS_HENNE
9157
%
9258
% Marker of the surface in which we are going apply the shape deformation
93-
DV_MARKER= (cylinder_outer1, cylinder_inner1, cylinder_outer2, cylinder_inner2, cylinder_outer3, cylinder_inner3)
59+
DV_MARKER= ( cylinder_outer1, cylinder_inner1, cylinder_outer2, cylinder_inner2, cylinder_outer3, cylinder_inner3 )
9460
%
9561
% Parameters of the shape deformation
9662
% - NO_DEFORMATION ( 1.0 )
@@ -112,7 +78,7 @@ DV_MARKER= (cylinder_outer1, cylinder_inner1, cylinder_outer2, cylinder_inner2,
11278
% - FFD_TWIST_2D ( FFD_BoxTag, x_Orig, y_Orig )
11379
% - HICKS_HENNE ( Lower Surface (0)/Upper Surface (1)/Only one Surface (2), x_Loc )
11480
% - SURFACE_BUMP ( x_Start, x_End, x_Loc )
115-
DV_PARAM= ( MAIN_BOX, 12, 1, 0.0, 1.0 )
81+
DV_PARAM= (0.0, 0.5)
11682
%
11783
% Value of the shape deformation
11884
DV_VALUE= 0.1

multiphysics/steady_cht/flow_cylinder.cfg

Lines changed: 59 additions & 42 deletions
Original file line numberDiff line numberDiff line change
@@ -15,20 +15,28 @@ SOLVER= INC_NAVIER_STOKES
1515
% If Navier-Stokes, kind of turbulent model (NONE, SA)
1616
KIND_TURB_MODEL= NONE
1717
%
18-
% Data written to history file
19-
WRT_ZONE_HIST= YES
20-
HISTORY_OUTPUT= (ITER, RMS_RES, HEAT)
21-
%
22-
% Number of inner iteration
23-
INNER_ITER=1
24-
25-
% --------------------------- CONVERGENCE PARAMETERS --------------------------%
26-
%
27-
% Min value of the residual (log10 of the residual)
28-
CONV_RESIDUAL_MINVAL= -20
18+
% Restart solution (NO, YES)
19+
RESTART_SOL= NO
20+
%
21+
% Objective function in gradient evaluation (DRAG, LIFT, SIDEFORCE, MOMENT_X,
22+
% MOMENT_Y, MOMENT_Z, EFFICIENCY,
23+
% EQUIVALENT_AREA, NEARFIELD_PRESSURE,
24+
% FORCE_X, FORCE_Y, FORCE_Z, THRUST,
25+
% TORQUE, TOTAL_HEATFLUX,
26+
% MAXIMUM_HEATFLUX, INVERSE_DESIGN_PRESSURE,
27+
% INVERSE_DESIGN_HEATFLUX, SURFACE_TOTAL_PRESSURE,
28+
% SURFACE_MASSFLOW, SURFACE_STATIC_PRESSURE, SURFACE_MACH)
29+
% For a weighted sum of objectives: separate by commas, add OBJECTIVE_WEIGHT and MARKER_MONITORING in matching order.
30+
OBJECTIVE_FUNCTION= TOTAL_HEATFLUX
31+
%
32+
% List of weighting values when using more than one OBJECTIVE_FUNCTION. Separate by commas and match with MARKER_MONITORING.
33+
OBJECTIVE_WEIGHT = 1.0
34+
%
35+
% Read binary restart files (YES, NO)
36+
READ_BINARY_RESTART = YES
2937
%
30-
% Start convergence criteria at iteration number
31-
CONV_STARTITER= 0
38+
% Data written to history file
39+
HISTORY_OUTPUT=(ITER, RMS_RES, HEAT )
3240

3341
% -------------------- BOUNDARY CONDITION DEFINITION --------------------------%
3442
%
@@ -52,7 +60,7 @@ INC_DENSITY_MODEL= VARIABLE
5260
INC_ENERGY_EQUATION = YES
5361
%
5462
% Initial density for incompressible flows (1.2886 kg/m^3 by default)
55-
INC_DENSITY_INIT= 0.00042
63+
INC_DENSITY_INIT= 0.000210322
5664
%
5765
% Initial velocity for incompressible flows (1.0,0,0 m/s by default)
5866
INC_VELOCITY_INIT= ( 3.40297, 0.0, 0.0 )
@@ -104,7 +112,7 @@ SUTHERLAND_CONSTANT= 110.4
104112
CONDUCTIVITY_MODEL= CONSTANT_PRANDTL
105113
%
106114
% Molecular Thermal Conductivity that would be constant (0.0257 by default)
107-
KT_CONSTANT= 0.0257
115+
THERMAL_CONDUCTIVITY_CONSTANT= 0.0257
108116
%
109117
% Laminar Prandtl number (0.72 (air), only for CONSTANT_PRANDTL)
110118
PRANDTL_LAM= 0.72
@@ -118,7 +126,7 @@ PRANDTL_TURB= 0.90
118126
NUM_METHOD_GRAD= GREEN_GAUSS
119127
%
120128
% Courant-Friedrichs-Lewy condition of the finest grid
121-
CFL_NUMBER= 50.0
129+
CFL_NUMBER= 10.0
122130
%
123131
% Adaptive CFL number (NO, YES)
124132
CFL_ADAPT= NO
@@ -140,14 +148,14 @@ LINEAR_SOLVER= FGMRES
140148
% Preconditioner of the Krylov linear solver (ILU, LU_SGS, LINELET, JACOBI)
141149
LINEAR_SOLVER_PREC= ILU
142150
%
143-
% Linael solver ILU preconditioner fill-in level (0 by default)
151+
% Linear solver ILU preconditioner fill-in level (0 by default)
144152
LINEAR_SOLVER_ILU_FILL_IN= 0
145153
%
146154
% Minimum error of the linear solver for implicit formulations
147155
LINEAR_SOLVER_ERROR= 1E-15
148156
%
149157
% Max number of iterations of the linear solver for the implicit formulation
150-
LINEAR_SOLVER_ITER= 10
158+
LINEAR_SOLVER_ITER= 5
151159

152160
% -------------------- FLOW NUMERICAL METHOD DEFINITION -----------------------%
153161
%
@@ -166,34 +174,19 @@ SLOPE_LIMITER_FLOW= NONE
166174
% Time discretization (RUNGE-KUTTA_EXPLICIT, EULER_IMPLICIT, EULER_EXPLICIT)
167175
TIME_DISCRE_FLOW= EULER_IMPLICIT
168176

169-
% ----------- SLOPE LIMITER AND DISSIPATION SENSOR DEFINITION -----------------%
170-
%
171-
% Coefficient for the Venkat's limiter (upwind scheme). A larger values decrease
172-
% the extent of limiting, values approaching zero cause
173-
% lower-order approximation to the solution (0.05 by default)
174-
VENKAT_LIMITER_COEFF= 0.05
175-
%
176-
% Coefficient for the adjoint sharp edges limiter (3.0 by default).
177-
ADJ_SHARP_LIMITER_COEFF= 3.0
178-
%
179-
% Freeze the value of the limiter after a number of iterations
180-
LIMITER_ITER= 999999
177+
% --------------------------- CONVERGENCE PARAMETERS --------------------------%
181178
%
182-
% 1st order artificial dissipation coefficients for
183-
% the Lax–Friedrichs method ( 0.15 by default )
184-
LAX_SENSOR_COEFF= 0.15
179+
% Min value of the residual (log10 of the residual)
180+
CONV_RESIDUAL_MINVAL= -19
185181
%
186-
% 2nd and 4th order artificial dissipation coefficients for
187-
% the JST method ( 0.5, 0.02 by default )
188-
JST_SENSOR_COEFF= ( 0.5, 0.05 )
182+
% Start convergence criteria at iteration number
183+
CONV_STARTITER= 10
189184
%
190-
% 1st order artificial dissipation coefficients for
191-
% the adjoint Lax–Friedrichs method ( 0.15 by default )
192-
ADJ_LAX_SENSOR_COEFF= 0.15
185+
% Number of elements to apply the criteria
186+
CONV_CAUCHY_ELEMS= 100
193187
%
194-
% 2nd, and 4th order artificial dissipation coefficients for
195-
% the adjoint JST method ( 0.5, 0.02 by default )
196-
ADJ_JST_SENSOR_COEFF= ( 0.5, 0.02 )
188+
% Epsilon to control the series convergence
189+
CONV_CAUCHY_EPS= 1E-6
197190

198191
% ------------------------- INPUT/OUTPUT INFORMATION --------------------------%
199192
%
@@ -203,6 +196,10 @@ SOLUTION_FILENAME= solution_flow.dat
203196
% Restart adjoint input file
204197
SOLUTION_ADJ_FILENAME= solution_adj.dat
205198
%
199+
% Output file format (TECPLOT, TECPLOT_BINARY, PARAVIEW,
200+
% FIELDVIEW, FIELDVIEW_BINARY)
201+
TABULAR_FORMAT= TECPLOT
202+
%
206203
% Output file convergence history (w/o extension)
207204
CONV_FILENAME= history
208205
%
@@ -232,3 +229,23 @@ SURFACE_FILENAME= surface_flow
232229
%
233230
% Output file surface adjoint coefficient (w/o extension)
234231
SURFACE_ADJ_FILENAME= surface_adjoint
232+
%
233+
234+
% ------------------------ GRID DEFORMATION PARAMETERS ------------------------%
235+
%
236+
% Linear solver or smoother for implicit formulations (FGMRES, RESTARTED_FGMRES, BCGSTAB)
237+
DEFORM_LINEAR_SOLVER= FGMRES
238+
%
239+
% Number of smoothing iterations for mesh deformation
240+
DEFORM_LINEAR_SOLVER_ITER= 200
241+
%
242+
% Number of nonlinear deformation iterations (surface deformation increments)
243+
DEFORM_NONLINEAR_ITER= 1
244+
%
245+
% Print the residuals during mesh deformation to the console (YES, NO)
246+
DEFORM_CONSOLE_OUTPUT= YES
247+
%
248+
% Type of element stiffness imposed for FEA mesh deformation (INVERSE_VOLUME,
249+
% WALL_DISTANCE, CONSTANT_STIFFNESS)
250+
DEFORM_STIFFNESS_TYPE= INVERSE_VOLUME
251+

0 commit comments

Comments
 (0)