Skip to content

Commit dc7fb83

Browse files
committed
Adding testcase for gust in combination with mesh deformation by using
the SU2-internal option SURFACE_MOVEMENT= DEFORMING
1 parent cb9701e commit dc7fb83

2 files changed

Lines changed: 191 additions & 0 deletions

File tree

Lines changed: 182 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,182 @@
1+
% ------------- DIRECT, ADJOINT, AND LINEARIZED PROBLEM DEFINITION ------------%
2+
%
3+
% Solver type (EULER, NAVIER_STOKES, RANS,
4+
% INC_EULER, INC_NAVIER_STOKES, INC_RANS,
5+
% NEMO_EULER, NEMO_NAVIER_STOKES,
6+
% FEM_EULER, FEM_NAVIER_STOKES, FEM_RANS, FEM_LES,
7+
% HEAT_EQUATION_FVM, ELASTICITY)
8+
SOLVER= EULER
9+
%
10+
% Mathematical problem (DIRECT, CONTINUOUS_ADJOINT)
11+
MATH_PROBLEM= DIRECT
12+
%
13+
% ------------------------------- SOLVER CONTROL ------------------------------%
14+
%
15+
% Maximum number of inner iterations
16+
INNER_ITER= 100
17+
%
18+
% Min value of the residual (log10 of the residual)
19+
CONV_RESIDUAL_MINVAL= -6
20+
%
21+
% Start convergence criteria at iteration number
22+
CONV_STARTITER= 0
23+
%
24+
% ------------------------- UNSTEADY SIMULATION -------------------------------%
25+
%
26+
TIME_DOMAIN=YES
27+
TIME_MARCHING= DUAL_TIME_STEPPING-2ND_ORDER
28+
TIME_STEP= 0.001
29+
TIME_ITER= 26
30+
%
31+
% --------------------------- GUST SIMULATION ---------------------------------%
32+
%
33+
% The gust simulation requires the GRID_MOVEMENT flag to be set to YES.
34+
% and the GRID_MOVEMENT_KIND to be set to GUST or any of the other options.
35+
% Apply a wind gust (NO, YES)
36+
GRID_MOVEMENT=GUST
37+
WIND_GUST= YES
38+
GUST_TYPE= ONE_M_COSINE
39+
GUST_DIR= Y_DIR
40+
GUST_WAVELENGTH= 10.0
41+
GUST_PERIODS= 1.0
42+
% Gust amplitude corresponds to ~2.0 deg AoA
43+
GUST_AMPL= 1.0
44+
%
45+
GUST_BEGIN_TIME= 0.0
46+
GUST_BEGIN_LOC=-10.0
47+
% --------------------------- MESH DEFORMATION--------------------------------%
48+
% Type of dynamic surface movement (NONE, DEFORMING, MOVING_WALL,
49+
% AEROELASTIC, AEROELASTIC_RIGID_MOTION EXTERNAL, EXTERNAL_ROTATION)
50+
SURFACE_MOVEMENT= DEFORMING
51+
%
52+
% Moving wall boundary marker(s) (NONE = no marker, ignored for RIGID_MOTION)
53+
MARKER_MOVING= ( airfoil )
54+
%
55+
% Plunging angular freq. (rad/s) in x, y, & z directions
56+
SURFACE_PLUNGING_OMEGA= 0.0 125.6 0.0
57+
%
58+
% Plunging amplitude (m or ft) in x, y, & z directions
59+
SURFACE_PLUNGING_AMPL= 0.0 0.001 0.0
60+
%
61+
% Move Motion Origin for marker moving (1 or 0)
62+
MOVE_MOTION_ORIGIN = 0
63+
% -------------------- COMPRESSIBLE FREE-STREAM DEFINITION --------------------%
64+
%
65+
% Mach number (non-dimensional, based on the free-stream values)
66+
MACH_NUMBER= 0.2
67+
%
68+
% Angle of attack (degrees, only for compressible flows)
69+
AOA= 0.0
70+
%
71+
% Side-slip angle (degrees, only for compressible flows)
72+
SIDESLIP_ANGLE= 0.0
73+
%
74+
% Free-stream option to choose between density and temperature (default) for
75+
% initializing the solution (TEMPERATURE_FS, DENSITY_FS)
76+
FREESTREAM_OPTION= DENSITY_FS
77+
%
78+
% Free-stream pressure (101325.0 N/m^2, 2116.216 psf by default)
79+
FREESTREAM_PRESSURE= 101325.0
80+
%
81+
% Free-stream density (1.2886 Kg/m^3, 0.0025 slug/ft^3 by default)
82+
FREESTREAM_DENSITY= 1.225
83+
%
84+
% Free-stream temperature (288.15 K, 518.67 R by default)
85+
FREESTREAM_TEMPERATURE= 288.15
86+
%
87+
% ---------------------- REFERENCE VALUE DEFINITION ---------------------------%
88+
%
89+
% Reference origin for moment computation (m or in)
90+
REF_ORIGIN_MOMENT_X = 0.25
91+
REF_ORIGIN_MOMENT_Y = 0.00
92+
REF_ORIGIN_MOMENT_Z = 0.00
93+
%
94+
% Reference length for moment non-dimensional coefficients (m or in)
95+
REF_LENGTH= 1.0
96+
%
97+
% Reference area for non-dimensional force coefficients (0 implies automatic
98+
% calculation) (m^2 or in^2)
99+
REF_AREA= 1.0
100+
%
101+
% Aircraft semi-span (0 implies automatic calculation) (m or in)
102+
SEMI_SPAN= 1.0
103+
%
104+
% Flow non-dimensionalization (DIMENSIONAL, FREESTREAM_PRESS_EQ_ONE,
105+
% FREESTREAM_VEL_EQ_MACH, FREESTREAM_VEL_EQ_ONE)
106+
REF_DIMENSIONALIZATION= DIMENSIONAL
107+
108+
% -------------------- BOUNDARY CONDITION DEFINITION --------------------------%
109+
%
110+
% Euler wall boundary marker(s) (NONE = no marker)
111+
% Implementation identical to MARKER_SYM.
112+
MARKER_EULER= ( airfoil )
113+
%
114+
% Far-field boundary marker(s) (NONE = no marker)
115+
MARKER_FAR= ( farfield )
116+
117+
% ------------------------ SURFACES IDENTIFICATION ----------------------------%
118+
%
119+
% Marker(s) of the surface in the surface flow solution file
120+
MARKER_PLOTTING = ( airfoil )
121+
%
122+
% Marker(s) of the surface where the non-dimensional coefficients are evaluated.
123+
MARKER_MONITORING = ( airfoil )
124+
125+
% ------------- COMMON PARAMETERS DEFINING THE NUMERICAL METHOD ---------------%
126+
%
127+
% CFL number (initial value for the adaptive CFL number)
128+
CFL_NUMBER= 100.0
129+
%
130+
% Adaptive CFL number (NO, YES)
131+
CFL_ADAPT= YES
132+
%
133+
% -------------------------- MULTIGRID PARAMETERS -----------------------------%
134+
%
135+
% Multi-grid levels (0 = no multi-grid)
136+
MGLEVEL= 3
137+
%
138+
% Multi-grid cycle (V_CYCLE, W_CYCLE, FULLMG_CYCLE)
139+
MGCYCLE= W_CYCLE
140+
141+
% -------------------- FLOW NUMERICAL METHOD DEFINITION -----------------------%
142+
%
143+
% Convective numerical method (JST, JST_KE, JST_MAT, LAX-FRIEDRICH, CUSP, ROE, AUSM,
144+
% AUSMPLUSUP, AUSMPLUSUP2, AUSMPWPLUS, HLLC, TURKEL_PREC,
145+
% SW, MSW, FDS, SLAU, SLAU2, L2ROE, LMROE)
146+
CONV_NUM_METHOD_FLOW= JST
147+
%
148+
% Max number of iterations of the linear solver for the implicit formulation
149+
LINEAR_SOLVER_ITER= 20
150+
%
151+
% ------------------------- SCREEN/HISTORY VOLUME OUTPUT --------------------------%
152+
%
153+
% Screen output fields (use 'SU2_CFD -d <config_file>' to view list of available fields)
154+
SCREEN_OUTPUT= (TIME_ITER, INNER_ITER, RMS_DENSITY, LIFT, MOMENT_Z)
155+
%
156+
% History output groups (use 'SU2_CFD -d <config_file>' to view list of available fields)
157+
HISTORY_OUTPUT= (ITER, RMS_RES, AERO_COEFF, CAUCHY, WALL_TIME)
158+
%
159+
% ------------------------- INPUT/OUTPUT FILE INFORMATION --------------------------%
160+
%
161+
% Mesh input file
162+
MESH_FILENAME= mesh_NACA0012_inv.su2
163+
%
164+
% Mesh input file format (SU2, CGNS)
165+
MESH_FORMAT= SU2
166+
%
167+
% Restart flow input file
168+
SOLUTION_FILENAME= restart_gust.dat
169+
RESTART_FILENAME= restart_gust.dat
170+
SURFACE_FILENAME= surface_gust
171+
VOLUME_FILENAME= volume_gust
172+
CONV_FILENAME= history_gust
173+
%
174+
% Output tabular file format (TECPLOT, CSV)
175+
TABULAR_FORMAT= CSV
176+
%
177+
% Files to output
178+
% Possible formats : (TECPLOT, TECPLOT_BINARY, SURFACE_TECPLOT,
179+
% SURFACE_TECPLOT_BINARY, CSV, SURFACE_CSV, PARAVIEW, PARAVIEW_BINARY, SURFACE_PARAVIEW,
180+
% SURFACE_PARAVIEW_BINARY, MESH, RESTART_BINARY, RESTART_ASCII, CGNS, SURFACE_CGNS, STL)
181+
OUTPUT_FILES= (TECPLOT, SURFACE_TECPLOT)
182+

TestCases/hybrid_regression.py

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -479,6 +479,15 @@ def main():
479479
cosine_gust.test_vals = [-2.418813, 0.004650, -0.001878, -0.000637, -0.000271]
480480
cosine_gust.unsteady = True
481481
test_list.append(cosine_gust)
482+
483+
# Gust with mesh deformation
484+
gust_mesh_defo = TestCase('gust_with_mesh_deformation')
485+
gust_mesh_defo.cfg_dir = "gust"
486+
gust_mesh_defo.cfg_file = "gust_with_mesh_deformation.cfg"
487+
gust_mesh_defo.test_iter = 25
488+
gust_mesh_defo.test_vals = [-1.585670, 0.004771, 0.000413]
489+
gust_mesh_defo.unsteady = True
490+
test_list.append(gust_mesh_defo)
482491

483492
# Aeroelastic
484493
aeroelastic = TestCase('aeroelastic')

0 commit comments

Comments
 (0)