Skip to content

Commit c568e62

Browse files
committed
Adding incompressible flow tutorial files
1 parent e06d74c commit c568e62

File tree

18 files changed

+1197502
-0
lines changed

18 files changed

+1197502
-0
lines changed
Lines changed: 80 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,80 @@
1+
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
2+
% %
3+
% SU2 configuration file %
4+
% Case description: 2D cylinder array with CHT couplings %
5+
% Author: O. Burghardt, T. Economon %
6+
% Institution: Chair for Scientific Computing, TU Kaiserslautern %
7+
% Date: August 8, 2019 %
8+
% File Version 6.0.1 "Falcon" %
9+
% %
10+
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
11+
12+
%
13+
% Physical governing equations (EULER, NAVIER_STOKES,
14+
% WAVE_EQUATION, HEAT_EQUATION, FEM_ELASTICITY,
15+
% POISSON_EQUATION)
16+
SOLVER= MULTIPHYSICS
17+
%
18+
% Mathematical problem (DIRECT, CONTINUOUS_ADJOINT, DISCRETE_ADJOINT)
19+
MATH_PROBLEM= DIRECT
20+
%
21+
%
22+
CONFIG_LIST= (flow_cylinder.cfg, solid_cylinder1.cfg, solid_cylinder2.cfg, solid_cylinder3.cfg)
23+
%
24+
%
25+
MARKER_ZONE_INTERFACE= (cylinder_outer1, cylinder_inner1, cylinder_outer2, cylinder_inner2, cylinder_outer3, cylinder_inner3)
26+
%
27+
%
28+
MARKER_CHT_INTERFACE= (cylinder_outer1, cylinder_inner1, cylinder_outer2, cylinder_inner2, cylinder_outer3, cylinder_inner3)
29+
%
30+
% Number of total iterations
31+
OUTER_ITER = 10000
32+
%
33+
% Mesh input file
34+
MESH_FILENAME= mesh_cht_3cyl.su2
35+
%
36+
% Mesh input file format (SU2, CGNS, NETCDF_ASCII)
37+
MESH_FORMAT= SU2
38+
%
39+
% Output file format
40+
OUTPUT_FILES= (RESTART, TECPLOT, PARAVIEW, SURFACE_TECPLOT, SURFACE_PARAVIEW)
41+
42+
43+
% These are just default parameters so that we can run SU2_DOT_AD, they have no physical meaning for this test case.
44+
45+
% ----------------------- DESIGN VARIABLE PARAMETERS --------------------------%
46+
%
47+
% Kind of deformation (NO_DEFORMATION, TRANSLATION, ROTATION, SCALE,
48+
% FFD_SETTING, FFD_NACELLE
49+
% FFD_CONTROL_POINT, FFD_CAMBER, FFD_THICKNESS, FFD_TWIST
50+
% FFD_CONTROL_POINT_2D, FFD_CAMBER_2D, FFD_THICKNESS_2D, FFD_TWIST_2D,
51+
% HICKS_HENNE, SURFACE_BUMP)
52+
DV_KIND= HICKS_HENNE
53+
%
54+
% Marker of the surface in which we are going apply the shape deformation
55+
DV_MARKER= (cylinder_outer1, cylinder_inner1, cylinder_outer2, cylinder_inner2, cylinder_outer3, cylinder_inner3)
56+
%
57+
% Parameters of the shape deformation
58+
% - NO_DEFORMATION ( 1.0 )
59+
% - TRANSLATION ( x_Disp, y_Disp, z_Disp ), as a unit vector
60+
% - ROTATION ( x_Orig, y_Orig, z_Orig, x_End, y_End, z_End )
61+
% - SCALE ( 1.0 )
62+
% - ANGLE_OF_ATTACK ( 1.0 )
63+
% - FFD_SETTING ( 1.0 )
64+
% - FFD_CONTROL_POINT ( FFD_BoxTag, i_Ind, j_Ind, k_Ind, x_Disp, y_Disp, z_Disp )
65+
% - FFD_NACELLE ( FFD_BoxTag, rho_Ind, theta_Ind, phi_Ind, rho_Disp, phi_Disp )
66+
% - FFD_GULL ( FFD_BoxTag, j_Ind )
67+
% - FFD_ANGLE_OF_ATTACK ( FFD_BoxTag, 1.0 )
68+
% - FFD_CAMBER ( FFD_BoxTag, i_Ind, j_Ind )
69+
% - FFD_THICKNESS ( FFD_BoxTag, i_Ind, j_Ind )
70+
% - FFD_TWIST ( FFD_BoxTag, j_Ind, x_Orig, y_Orig, z_Orig, x_End, y_End, z_End )
71+
% - FFD_CONTROL_POINT_2D ( FFD_BoxTag, i_Ind, j_Ind, x_Disp, y_Disp )
72+
% - FFD_CAMBER_2D ( FFD_BoxTag, i_Ind )
73+
% - FFD_THICKNESS_2D ( FFD_BoxTag, i_Ind )
74+
% - FFD_TWIST_2D ( FFD_BoxTag, x_Orig, y_Orig )
75+
% - HICKS_HENNE ( Lower Surface (0)/Upper Surface (1)/Only one Surface (2), x_Loc )
76+
% - SURFACE_BUMP ( x_Start, x_End, x_Loc )
77+
DV_PARAM= (0.0, 0.5)
78+
%
79+
% Value of the shape deformation
80+
DV_VALUE= 0.1
Lines changed: 251 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,251 @@
1+
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
2+
% %
3+
% SU2 configuration file %
4+
% Case description: Steady incompressible laminar flow around heated cylinders %
5+
% %
6+
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
7+
8+
% ------------- DIRECT, ADJOINT, AND LINEARIZED PROBLEM DEFINITION ------------%
9+
%
10+
% Physical governing equations (EULER, NAVIER_STOKES,
11+
% WAVE_EQUATION, HEAT_EQUATION, FEM_ELASTICITY,
12+
% POISSON_EQUATION)
13+
SOLVER= INC_NAVIER_STOKES
14+
%
15+
% If Navier-Stokes, kind of turbulent model (NONE, SA)
16+
KIND_TURB_MODEL= NONE
17+
%
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+
% Data written to history file
36+
HISTORY_OUTPUT= (ITER, RMS_RES, HEAT)
37+
38+
% -------------------- BOUNDARY CONDITION DEFINITION --------------------------%
39+
%
40+
% Farfield boundary marker(s) (NONE = no marker)
41+
MARKER_FAR= ( farfield )
42+
%
43+
% Marker(s) of the surface to be plotted or designed
44+
MARKER_PLOTTING= (cylinder_outer1, cylinder_outer2, cylinder_outer3)
45+
%
46+
% Marker(s) of the surface where the functional (Cd, Cl, etc.) will be evaluated
47+
MARKER_MONITORING= (cylinder_outer1, cylinder_outer2, cylinder_outer3)
48+
49+
% ---------------- INCOMPRESSIBLE FLOW CONDITION DEFINITION -------------------%
50+
%
51+
% Density model within the incompressible flow solver.
52+
% Options are CONSTANT (default), BOUSSINESQ, or VARIABLE. If VARIABLE,
53+
% an appropriate fluid model must be selected.
54+
INC_DENSITY_MODEL= VARIABLE
55+
%
56+
% Solve the energy equation in the incompressible flow solver
57+
INC_ENERGY_EQUATION = YES
58+
%
59+
% Initial density for incompressible flows (1.2886 kg/m^3 by default)
60+
INC_DENSITY_INIT= 0.000210322
61+
%
62+
% Initial velocity for incompressible flows (1.0,0,0 m/s by default)
63+
INC_VELOCITY_INIT= ( 3.40297, 0.0, 0.0 )
64+
%
65+
% Initial temperature for incompressible flows that include the
66+
% energy equation (288.15 K by default). Value is ignored if
67+
% INC_ENERGY_EQUATION is false.
68+
INC_TEMPERATURE_INIT= 288.15
69+
%
70+
% Non-dimensionalization scheme for incompressible flows. Options are
71+
% INITIAL_VALUES (default), REFERENCE_VALUES, or DIMENSIONAL.
72+
% INC_*_REF values are ignored unless REFERENCE_VALUES is chosen.
73+
INC_NONDIM= DIMENSIONAL
74+
75+
% ---- IDEAL GAS, POLYTROPIC, VAN DER WAALS AND PENG ROBINSON CONSTANTS -------%
76+
%
77+
% Fluid model (STANDARD_AIR, IDEAL_GAS, VW_GAS, PR_GAS,
78+
% CONSTANT_DENSITY, INC_IDEAL_GAS)
79+
FLUID_MODEL= INC_IDEAL_GAS
80+
%
81+
% Specific heat at constant pressure, Cp (1004.703 J/kg*K (air)).
82+
% Incompressible fluids with energy eqn. only (CONSTANT_DENSITY, INC_IDEAL_GAS).
83+
SPECIFIC_HEAT_CP= 1004.703
84+
%
85+
% Molecular weight for an incompressible ideal gas (28.96 g/mol (air) default)
86+
% Incompressible fluids with energy eqn. only (CONSTANT_DENSITY, INC_IDEAL_GAS).
87+
MOLECULAR_WEIGHT= 28.96
88+
89+
% --------------------------- VISCOSITY MODEL ---------------------------------%
90+
%
91+
% Viscosity model (SUTHERLAND, CONSTANT_VISCOSITY).
92+
VISCOSITY_MODEL= CONSTANT_VISCOSITY
93+
%
94+
% Molecular Viscosity that would be constant (1.716E-5 by default)
95+
MU_CONSTANT= 1.7893e-05
96+
%
97+
% Sutherland Viscosity Ref (1.716E-5 default value for AIR SI)
98+
MU_REF= 1.716E-5
99+
%
100+
% Sutherland Temperature Ref (273.15 K default value for AIR SI)
101+
MU_T_REF= 273.15
102+
%
103+
% Sutherland constant (110.4 default value for AIR SI)
104+
SUTHERLAND_CONSTANT= 110.4
105+
106+
% --------------------------- THERMAL CONDUCTIVITY MODEL ----------------------%
107+
%
108+
% Conductivity model (CONSTANT_CONDUCTIVITY, CONSTANT_PRANDTL).
109+
CONDUCTIVITY_MODEL= CONSTANT_PRANDTL
110+
%
111+
% Molecular Thermal Conductivity that would be constant (0.0257 by default)
112+
KT_CONSTANT= 0.0257
113+
%
114+
% Laminar Prandtl number (0.72 (air), only for CONSTANT_PRANDTL)
115+
PRANDTL_LAM= 0.72
116+
%
117+
% Turbulent Prandtl number (0.9 (air), only for CONSTANT_PRANDTL)
118+
PRANDTL_TURB= 0.90
119+
120+
% ------------- COMMON PARAMETERS DEFINING THE NUMERICAL METHOD ---------------%
121+
%
122+
% Numerical method for spatial gradients (GREEN_GAUSS, WEIGHTED_LEAST_SQUARES)
123+
NUM_METHOD_GRAD= GREEN_GAUSS
124+
%
125+
% Courant-Friedrichs-Lewy condition of the finest grid
126+
CFL_NUMBER= 10.0
127+
%
128+
% Adaptive CFL number (NO, YES)
129+
CFL_ADAPT= NO
130+
%
131+
% Parameters of the adaptive CFL number (factor down, factor up, CFL min value,
132+
% CFL max value )
133+
CFL_ADAPT_PARAM= ( 1.5, 0.5, 10.0, 10000.0 )
134+
%
135+
% Runge-Kutta alpha coefficients
136+
RK_ALPHA_COEFF= ( 0.66667, 0.66667, 1.000000 )
137+
138+
% ------------------------ LINEAR SOLVER DEFINITION ---------------------------%
139+
%
140+
% Linear solver or smoother for implicit formulations (BCGSTAB, FGMRES, SMOOTHER_JACOBI,
141+
% SMOOTHER_ILU, SMOOTHER_LUSGS,
142+
% SMOOTHER_LINELET)
143+
LINEAR_SOLVER= FGMRES
144+
%
145+
% Preconditioner of the Krylov linear solver (ILU, LU_SGS, LINELET, JACOBI)
146+
LINEAR_SOLVER_PREC= ILU
147+
%
148+
% Linael solver ILU preconditioner fill-in level (0 by default)
149+
LINEAR_SOLVER_ILU_FILL_IN= 0
150+
%
151+
% Minimum error of the linear solver for implicit formulations
152+
LINEAR_SOLVER_ERROR= 1E-15
153+
%
154+
% Max number of iterations of the linear solver for the implicit formulation
155+
LINEAR_SOLVER_ITER= 5
156+
157+
% -------------------- FLOW NUMERICAL METHOD DEFINITION -----------------------%
158+
%
159+
% Convective numerical method (JST, LAX-FRIEDRICH, CUSP, ROE, AUSM, HLLC,
160+
% TURKEL_PREC, MSW)
161+
CONV_NUM_METHOD_FLOW= FDS
162+
%
163+
% Monotonic Upwind Scheme for Conservation Laws (TVD) in the flow equations.
164+
% Required for 2nd order upwind schemes (NO, YES)
165+
MUSCL_FLOW= YES
166+
%
167+
% Slope limiter (NONE, VENKATAKRISHNAN, VENKATAKRISHNAN_WANG,
168+
% BARTH_JESPERSEN, VAN_ALBADA_EDGE)
169+
SLOPE_LIMITER_FLOW= NONE
170+
%
171+
% Time discretization (RUNGE-KUTTA_EXPLICIT, EULER_IMPLICIT, EULER_EXPLICIT)
172+
TIME_DISCRE_FLOW= EULER_IMPLICIT
173+
174+
% --------------------------- CONVERGENCE PARAMETERS --------------------------%
175+
%
176+
% Min value of the residual (log10 of the residual)
177+
CONV_RESIDUAL_MINVAL= -19
178+
%
179+
% Start convergence criteria at iteration number
180+
CONV_STARTITER= 10
181+
%
182+
% Number of elements to apply the criteria
183+
CONV_CAUCHY_ELEMS= 100
184+
%
185+
% Epsilon to control the series convergence
186+
CONV_CAUCHY_EPS= 1E-6
187+
188+
% ------------------------- INPUT/OUTPUT INFORMATION --------------------------%
189+
%
190+
% Restart flow input file
191+
SOLUTION_FILENAME= solution_flow.dat
192+
%
193+
% Restart adjoint input file
194+
SOLUTION_ADJ_FILENAME= solution_adj.dat
195+
%
196+
% Output file convergence history (w/o extension)
197+
CONV_FILENAME= history
198+
%
199+
% Output file with the forces breakdown
200+
BREAKDOWN_FILENAME= forces_breakdown.dat
201+
%
202+
% Output file restart flow
203+
RESTART_FILENAME= restart_flow.dat
204+
%
205+
% Output file restart adjoint
206+
RESTART_ADJ_FILENAME= restart_adj.dat
207+
%
208+
% Output file flow (w/o extension) variables
209+
VOLUME_FILENAME= flow
210+
%
211+
% Output file adjoint (w/o extension) variables
212+
VOLUME_ADJ_FILENAME= adjoint
213+
%
214+
% Output Objective function
215+
VALUE_OBJFUNC_FILENAME= of_eval.dat
216+
%
217+
% Output objective function gradient (using continuous adjoint)
218+
GRAD_OBJFUNC_FILENAME= of_grad.dat
219+
%
220+
% Output file surface flow coefficient (w/o extension)
221+
SURFACE_FILENAME= surface_flow
222+
%
223+
% Output file surface adjoint coefficient (w/o extension)
224+
SURFACE_ADJ_FILENAME= surface_adjoint
225+
%
226+
% Writing solution file frequency
227+
WRT_SOL_FREQ= 250
228+
%
229+
% Writing convergence history frequency
230+
WRT_CON_FREQ= 1
231+
232+
% ------------------------ GRID DEFORMATION PARAMETERS ------------------------%
233+
%
234+
% Linear solver or smoother for implicit formulations (FGMRES, RESTARTED_FGMRES, BCGSTAB)
235+
DEFORM_LINEAR_SOLVER= FGMRES
236+
%
237+
% Number of smoothing iterations for mesh deformation
238+
DEFORM_LINEAR_SOLVER_ITER= 200
239+
%
240+
% Number of nonlinear deformation iterations (surface deformation increments)
241+
DEFORM_NONLINEAR_ITER= 1
242+
%
243+
% Print the residuals during mesh deformation to the console (YES, NO)
244+
DEFORM_CONSOLE_OUTPUT= YES
245+
%
246+
% Type of element stiffness imposed for FEA mesh deformation (INVERSE_VOLUME,
247+
% WALL_DISTANCE, CONSTANT_STIFFNESS)
248+
DEFORM_STIFFNESS_TYPE= INVERSE_VOLUME
249+
%
250+
% Visualize the deformation (NO, YES)
251+
VISUALIZE_VOLUME_DEF= YES

0 commit comments

Comments
 (0)