Skip to content

Commit 619b21c

Browse files
author
rois1995
committed
- Added regression test for CGNS writer
1 parent f25a4f2 commit 619b21c

2 files changed

Lines changed: 201 additions & 0 deletions

File tree

TestCases/CGNSWrite/config.cfg

Lines changed: 187 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,187 @@
1+
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
2+
% %
3+
% SU2 configuration file %
4+
% Case description: Transonic simulation RAE2822 (RANS) %
5+
% Author: Francisco Palacios %
6+
% Institution: Stanford University %
7+
% Date: 5/15/2013 %
8+
% File Version 7.4.0 "Blackbird" %
9+
% %
10+
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
11+
12+
% ------------- DIRECT, ADJOINT, AND LINEARIZED PROBLEM DEFINITION ------------%
13+
%
14+
% Physical governing equations (EULER, NAVIER_STOKES,
15+
% WAVE_EQUATION, HEAT_EQUATION, FEM_ELASTICITY,
16+
% POISSON_EQUATION)
17+
SOLVER= RANS
18+
%
19+
% Specify turbulent model (NONE, SA, SA_NEG, SST)
20+
KIND_TURB_MODEL= SST
21+
%
22+
% Mathematical problem (DIRECT, CONTINUOUS_ADJOINT)
23+
MATH_PROBLEM= DIRECT
24+
%
25+
% Restart solution (NO, YES)
26+
RESTART_SOL= NO
27+
28+
% -------------------- COMPRESSIBLE FREE-STREAM DEFINITION --------------------%
29+
%
30+
% Mach number (non-dimensional, based on the free-stream values)
31+
MACH_NUMBER= 0.2
32+
% AirSpeed = 279.9663
33+
% Density = 1.225
34+
%
35+
% Angle of attack (degrees, only for compressible flows)
36+
AOA= 0.0
37+
% Free-stream temperature (288.15 K by default)
38+
FREESTREAM_TEMPERATURE= 270.0
39+
%
40+
% Reynolds number (non-dimensional, based on the free-stream values)
41+
REYNOLDS_NUMBER= 3.28E6
42+
%
43+
% Reynolds length (1 m by default)
44+
REYNOLDS_LENGTH= 1
45+
REF_DIMENSIONALIZATION= FREESTREAM_VEL_EQ_MACH
46+
47+
% ---------------------- REFERENCE VALUE DEFINITION ---------------------------%
48+
%
49+
% Reference origin for moment computation
50+
REF_ORIGIN_MOMENT_X = -0.2473
51+
REF_ORIGIN_MOMENT_Y = 0.00
52+
REF_ORIGIN_MOMENT_Z = 0.00
53+
%
54+
% Reference length for pitching, rolling, and yawing non-dimensional moment
55+
REF_LENGTH= 1
56+
%
57+
% Reference area for force coefficients (0 implies automatic calculation)
58+
% Body tube cross-area
59+
REF_AREA= 1
60+
61+
% -------------------- BOUNDARY CONDITION DEFINITION --------------------------%
62+
%
63+
% Navier-Stokes wall boundary marker(s) (NONE = no marker)
64+
MARKER_HEATFLUX= ( OuterWall, 0.0, InnerWall, 0.0 )
65+
%
66+
% Farfield boundary marker(s) (NONE = no marker)
67+
MARKER_FAR= ( Inlet, Outlet )
68+
69+
%
70+
%
71+
% Marker(s) of the surface to be plotted or designed
72+
MARKER_PLOTTING= ( InnerWall )
73+
%
74+
% Marker(s) of the surface where the functional (Cd, Cl, etc.) will be evaluated
75+
MARKER_MONITORING= ( InnerWall )
76+
77+
78+
% ------------------------ LINEAR SOLVER DEFINITION ---------------------------%
79+
%
80+
LINEAR_SOLVER= FGMRES
81+
LINEAR_SOLVER_PREC= ILU
82+
LINEAR_SOLVER_ERROR= 1.0e-6
83+
% lower memory consumption:
84+
LINEAR_SOLVER_ITER= 15
85+
%
86+
% -------------------------- MULTIGRID PARAMETERS -----------------------------%
87+
%
88+
89+
NEWTON_KRYLOV= NO
90+
NEWTON_KRYLOV_IPARAM= (10, 5, 2) % n0, np, ft
91+
NEWTON_KRYLOV_DPARAM= (1.0, 0.01, -6, 1e-5) % r0, tp, rf, e
92+
CFL_ADAPT= YES
93+
CFL_NUMBER= 1
94+
CFL_REDUCTION_TURB= 1.0
95+
%
96+
CFL_ADAPT_PARAM= ( 0.5, 1.01, 1.0, 5, 0.0001)
97+
98+
ITER= 1
99+
100+
MGLEVEL= 0
101+
%
102+
MGCYCLE= V_CYCLE
103+
MG_PRE_SMOOTH= ( 1, 2, 3, 3 )
104+
MG_POST_SMOOTH= ( 1, 1, 1, 1 )
105+
MG_CORRECTION_SMOOTH= ( 1, 1, 1, 1 )
106+
MG_DAMP_RESTRICTION= 0.5
107+
MG_DAMP_PROLONGATION= 0.5
108+
109+
% -------------------- FLOW NUMERICAL METHOD DEFINITION -----------------------%
110+
%
111+
% Convective numerical method (JST, LAX-FRIEDRICH, CUSP, ROE, AUSM, HLLC,
112+
% TURKEL_PREC, MSW)
113+
CONV_NUM_METHOD_FLOW= ROE
114+
USE_VECTORIZATION= YES
115+
%
116+
% Monotonic Upwind Scheme for Conservation Laws (TVD) in the flow equations.
117+
% Required for 2nd order upwind schemes (NO, YES)
118+
MUSCL_FLOW= NO
119+
%
120+
% Slope limiter (VENKATAKRISHNAN, MINMOD)
121+
SLOPE_LIMITER_FLOW= VENKATAKRISHNAN
122+
%
123+
% Coefficient for the limiter (smooth regions)
124+
VENKAT_LIMITER_COEFF= 0.03
125+
%
126+
% 2nd and 4th order artificial dissipation coefficients
127+
JST_SENSOR_COEFF= ( 0.5, 0.02 )
128+
%
129+
% Time discretization (RUNGE-KUTTA_EXPLICIT, EULER_IMPLICIT, EULER_EXPLICIT)
130+
TIME_DISCRE_FLOW= EULER_IMPLICIT
131+
132+
% -------------------- TURBULENT NUMERICAL METHOD DEFINITION ------------------%
133+
%
134+
% Convective numerical method (SCALAR_UPWIND)
135+
CONV_NUM_METHOD_TURB= SCALAR_UPWIND
136+
%
137+
% Monotonic Upwind Scheme for Conservation Laws (TVD) in the turbulence equations.
138+
% Required for 2nd order upwind schemes (NO, YES)
139+
MUSCL_TURB= NO
140+
%
141+
% Time discretization (EULER_IMPLICIT)
142+
TIME_DISCRE_TURB= EULER_IMPLICIT
143+
144+
145+
% --------------------------- CONVERGENCE PARAMETERS --------------------------%
146+
%
147+
CONV_FIELD= MOMENT_X
148+
CONV_STARTITER= 10
149+
CONV_CAUCHY_ELEMS= 100
150+
CONV_CAUCHY_EPS= 1E-6
151+
%
152+
153+
% ------------------------- INPUT/OUTPUT INFORMATION --------------------------%
154+
%
155+
% Mesh input file
156+
MESH_FILENAME= mesh.cgns
157+
%
158+
% Mesh input file format (SU2, CGNS, NETCDF_ASCII)
159+
MESH_FORMAT= CGNS
160+
%
161+
% Restart flow input file
162+
SOLUTION_FILENAME= restart_flow
163+
%
164+
TABULAR_FORMAT= CSV
165+
%
166+
% Output file convergence history (w/o extension)
167+
CONV_FILENAME= history_First
168+
%
169+
% Output file restart flow
170+
RESTART_FILENAME= restart_flow
171+
%
172+
% Output file flow (w/o extension) variables
173+
VOLUME_FILENAME= flow
174+
%
175+
% Output file surface flow coefficient (w/o extension)
176+
SURFACE_FILENAME= surface_flow
177+
%
178+
% Writing solution file frequency
179+
OUTPUT_WRT_FREQ= 100
180+
%
181+
%
182+
% Screen output fields
183+
SCREEN_OUTPUT= (INNER_ITER, WALL_TIME, RMS_DENSITY, LIFT, DRAG, MOMENT_Z)
184+
OUTPUT_FILES= (SURFACE_CGNS)
185+
WRT_FORCES_BREAKDOWN= NO
186+
VOLUME_OUTPUT= (COORDINATES)
187+
HISTORY_OUTPUT= (ITER)

TestCases/parallel_regression.py

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1555,6 +1555,20 @@ def main():
15551555
species3_multizone_restart.multizone = True
15561556
test_list.append(species3_multizone_restart)
15571557

1558+
#####################
1559+
## CGNS writer ###
1560+
#####################
1561+
1562+
# CGNS writer
1563+
CGNSWrite = TestCase('CGNSWrite')
1564+
CGNSWrite.cfg_dir = "CGNSWrite"
1565+
CGNSWrite.cfg_file = "config.cfg"
1566+
CGNSWrite.test_iter = 1
1567+
CGNSWrite.test_vals = [-2.974473, 0.665204, 5.068846, -7.003873]
1568+
CGNSWrite.command = TestCase.Command("mpirun -n 2", "SU2_CFD")
1569+
CGNSWrite.new_output = True
1570+
test_list.append(CGNSWrite)
1571+
15581572
######################################
15591573
### RUN TESTS ###
15601574
######################################

0 commit comments

Comments
 (0)