Skip to content

Commit 9f5dff1

Browse files
committed
missing file
1 parent 6df54b6 commit 9f5dff1

1 file changed

Lines changed: 99 additions & 0 deletions

File tree

Lines changed: 99 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,99 @@
1+
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
2+
% %
3+
% SU2 configuration file %
4+
% Case description: Test custom objective function. %
5+
% File Version 7.2.1 "Blackbird" %
6+
% %
7+
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
8+
%
9+
SOLVER= NAVIER_STOKES
10+
KIND_TURB_MODEL= NONE
11+
RESTART_SOL= NO
12+
%
13+
% "COMBO" is the name and group of the output for the objective function
14+
% (regardless of definition).
15+
SCREEN_OUTPUT= INNER_ITER, RMS_DENSITY, RMS_ENERGY, LINSOL_RESIDUAL, FORCE_Z,\
16+
SURFACE_MASSFLOW, SURFACE_TOTAL_TEMPERATURE, COMBO
17+
HISTORY_OUTPUT = ITER, AERO_COEFF, FLOW_COEFF, FLOW_COEFF_SURF, COMBO
18+
OBJECTIVE_FUNCTION= CUSTOM_OBJFUNC
19+
% Here we define how the custom objective is computed from other outputs. For
20+
% example, force in the z direction (computed for all MARKER_MONITORING and part
21+
% of AERO_COEFF) plus the absolute value of massflow across the second surface
22+
% ([1]) in MARKER_ANALYZE, scaled by a factor of 1000. It is also possible to
23+
% use "per surface" values from MARKER_MONITORING (use the dry-run mode to see
24+
% the names of available outputs, e.g. SU2_CFD -d lam_flatplate.cfg).
25+
% For multizone problems the CUSTOM_OBJFUNC should be defined for each zone
26+
% individually (with the outputs of that zone), the total for the problem is
27+
% the sum over zones, see disc_adj_fsi/Airfoil_2d.
28+
CUSTOM_OBJFUNC= '1e3 * (FORCE_Z + fabs(SURFACE_MASSFLOW[1]))'
29+
30+
% -------------------- COMPRESSIBLE FREE-STREAM DEFINITION --------------------%
31+
%
32+
MACH_NUMBER= 0.1
33+
INIT_OPTION= TD_CONDITIONS
34+
FREESTREAM_OPTION= TEMPERATURE_FS
35+
FREESTREAM_TEMPERATURE= 297.62
36+
REYNOLDS_NUMBER= 600
37+
REYNOLDS_LENGTH= 0.02
38+
39+
% ---------------------- REFERENCE VALUE DEFINITION ---------------------------%
40+
%
41+
REF_ORIGIN_MOMENT_X = 0.00
42+
REF_ORIGIN_MOMENT_Y = 0.00
43+
REF_ORIGIN_MOMENT_Z = 0.00
44+
REF_LENGTH= 0.02
45+
REF_AREA= 0.02
46+
%
47+
FLUID_MODEL= IDEAL_GAS
48+
GAMMA_VALUE= 1.4
49+
GAS_CONSTANT= 287.87
50+
VISCOSITY_MODEL= CONSTANT_VISCOSITY
51+
MU_CONSTANT= 0.001
52+
53+
% -------------------- BOUNDARY CONDITION DEFINITION --------------------------%
54+
%
55+
MARKER_HEATFLUX= ( y_minus, 0.0 )
56+
%
57+
MARKER_SYM= ( y_plus )
58+
MARKER_PERIODIC= ( x_minus, x_plus, 0,0,0, 0,0,0, 0.01,0,0 )
59+
%
60+
MARKER_INLET= ( z_minus, 300.0, 100000.0, 0.0, 0.0, 1.0 )
61+
MARKER_OUTLET= ( z_plus, 99000.0 )
62+
%
63+
MARKER_PLOTTING= ( y_minus )
64+
MARKER_MONITORING= ( y_minus )
65+
MARKER_ANALYZE= ( z_minus, z_plus )
66+
67+
% ------------- COMMON PARAMETERS DEFINING THE NUMERICAL METHOD ---------------%
68+
%
69+
NUM_METHOD_GRAD= GREEN_GAUSS
70+
CFL_NUMBER= 1e4
71+
CFL_ADAPT= NO
72+
TIME_DISCRE_FLOW= EULER_IMPLICIT
73+
74+
% ------------------------ LINEAR SOLVER DEFINITION ---------------------------%
75+
%
76+
LINEAR_SOLVER= FGMRES
77+
LINEAR_SOLVER_PREC= ILU
78+
LINEAR_SOLVER_ERROR= 0.2
79+
LINEAR_SOLVER_ITER= 5
80+
81+
% -------------------- FLOW NUMERICAL METHOD DEFINITION -----------------------%
82+
%
83+
CONV_NUM_METHOD_FLOW= ROE
84+
USE_VECTORIZATION= YES
85+
MUSCL_FLOW= YES
86+
SLOPE_LIMITER_FLOW= NONE
87+
88+
% --------------------------- CONVERGENCE PARAMETERS --------------------------%
89+
%
90+
CONV_RESIDUAL_MINVAL= -11
91+
CONV_STARTITER= 0
92+
INNER_ITER= 1000
93+
94+
% ------------------------- INPUT/OUTPUT INFORMATION --------------------------%
95+
%
96+
MESH_FORMAT= BOX
97+
MESH_BOX_LENGTH= (0.01, 0.01, 0.1)
98+
MESH_BOX_SIZE= (9, 17, 65)
99+

0 commit comments

Comments
 (0)