66# \version 7.0.5 "Blackbird"
77#
88# SU2 Project Website: https://su2code.github.io
9- #
10- # The SU2 Project is maintained by the SU2 Foundation
9+ #
10+ # The SU2 Project is maintained by the SU2 Foundation
1111# (http://su2foundation.org)
1212#
1313# Copyright 2012-2020, SU2 Contributors (cf. AUTHORS.md)
1616# modify it under the terms of the GNU Lesser General Public
1717# License as published by the Free Software Foundation; either
1818# version 2.1 of the License, or (at your option) any later version.
19- #
19+ #
2020# SU2 is distributed in the hope that it will be useful,
2121# but WITHOUT ANY WARRANTY; without even the implied warranty of
2222# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
2929from __future__ import print_function
3030
3131import sys
32- from TestCase import TestCase
32+ from TestCase import TestCase
3333
3434def main ():
35- '''This program runs SU2 and ensures that the output matches specified values.
36- This will be used to do checks when code is pushed to github
35+ '''This program runs SU2 and ensures that the output matches specified values.
36+ This will be used to do checks when code is pushed to github
3737 to make sure nothing is broken. '''
3838
3939 test_list = []
@@ -50,15 +50,15 @@ def main():
5050 channel .test_vals = [- 2.667326 , 2.797439 , 0.018717 , 0.006906 ]
5151 test_list .append (channel )
5252
53- # NACA0012
53+ # NACA0012
5454 naca0012 = TestCase ('naca0012' )
5555 naca0012 .cfg_dir = "euler/naca0012"
5656 naca0012 .cfg_file = "inv_NACA0012_Roe.cfg"
5757 naca0012 .test_iter = 20
5858 naca0012 .test_vals = [- 4.023999 , - 3.515034 , 0.339426 , 0.022217 ]
5959 test_list .append (naca0012 )
6060
61- # Supersonic wedge
61+ # Supersonic wedge
6262 wedge = TestCase ('wedge' )
6363 wedge .cfg_dir = "euler/wedge"
6464 wedge .cfg_file = "inv_wedge_HLLC.cfg"
@@ -82,7 +82,7 @@ def main():
8282 fixedCL_naca0012 .test_vals = [- 12.130189 , - 6.702728 , 0.300000 , 0.019470 ]
8383 test_list .append (fixedCL_naca0012 )
8484
85- # HYPERSONIC FLOW PAST BLUNT BODY
85+ # HYPERSONIC FLOW PAST BLUNT BODY
8686 bluntbody = TestCase ('bluntbody' )
8787 bluntbody .cfg_dir = "euler/bluntbody"
8888 bluntbody .cfg_file = "blunt.cfg"
@@ -145,7 +145,7 @@ def main():
145145 rae2822_sa .test_iter = 20
146146 rae2822_sa .test_vals = [- 2.021218 , - 5.268447 , 0.807465 , 0.060897 ]
147147 test_list .append (rae2822_sa )
148-
148+
149149 # RAE2822 SST
150150 rae2822_sst = TestCase ('rae2822_sst' )
151151 rae2822_sst .cfg_dir = "rans/rae2822"
@@ -185,7 +185,7 @@ def main():
185185 turb_naca0012_sa .test_iter = 10
186186 turb_naca0012_sa .test_vals = [- 12.076819 , - 16.049252 , 1.064326 , 0.019770 ]
187187 test_list .append (turb_naca0012_sa )
188-
188+
189189 # NACA0012 (SST, FUN3D finest grid results: CL=1.0840, CD=0.01253)
190190 turb_naca0012_sst = TestCase ('turb_naca0012_sst' )
191191 turb_naca0012_sst .cfg_dir = "rans/naca0012"
@@ -209,11 +209,11 @@ def main():
209209 propeller .test_iter = 10
210210 propeller .test_vals = [- 3.389576 , - 8.409529 , 0.000048 , 0.056329 ]
211211 test_list .append (propeller )
212-
212+
213213 #################################
214214 ## Compressible RANS Restart ###
215215 #################################
216-
216+
217217 # NACA0012 SST Multigrid restart
218218 turb_naca0012_sst_restart_mg = TestCase ('turb_naca0012_sst_restart_mg' )
219219 turb_naca0012_sst_restart_mg .cfg_dir = "rans/naca0012"
@@ -232,46 +232,46 @@ def main():
232232 turb_naca0012_1c .cfg_dir = "rans_uq/naca0012"
233233 turb_naca0012_1c .cfg_file = "turb_NACA0012_uq_1c.cfg"
234234 turb_naca0012_1c .test_iter = 10
235- turb_naca0012_1c .test_vals = [- 4.906563 , 1.338083 , 6.086180 , 2.412997 ]
235+ turb_naca0012_1c .test_vals = [- 4.979339 , 1.140084 , 1.217182 , 0.220079 ]
236236 test_list .append (turb_naca0012_1c )
237237
238238 # NACA0012 2c
239239 turb_naca0012_2c = TestCase ('turb_naca0012_2c' )
240240 turb_naca0012_2c .cfg_dir = "rans_uq/naca0012"
241241 turb_naca0012_2c .cfg_file = "turb_NACA0012_uq_2c.cfg"
242242 turb_naca0012_2c .test_iter = 10
243- turb_naca0012_2c .test_vals = [- 5.230218 , 1.262228 , 6.086157 , 2.412759 ]
243+ turb_naca0012_2c .test_vals = [- 5.484195 , 0.969780 , 1.315926 , 0.258346 ]
244244 test_list .append (turb_naca0012_2c )
245245
246246 # NACA0012 3c
247247 turb_naca0012_3c = TestCase ('turb_naca0012_3c' )
248248 turb_naca0012_3c .cfg_dir = "rans_uq/naca0012"
249249 turb_naca0012_3c .cfg_file = "turb_NACA0012_uq_3c.cfg"
250250 turb_naca0012_3c .test_iter = 10
251- turb_naca0012_3c .test_vals = [- 5.277130 , 1.246265 , 6.086053 , 2.412464 ]
251+ turb_naca0012_3c .test_vals = [- 5.586959 , 0.932347 , 1.540973 , 0.345562 ]
252252 test_list .append (turb_naca0012_3c )
253253
254254 # NACA0012 p1c1
255255 turb_naca0012_p1c1 = TestCase ('turb_naca0012_p1c1' )
256256 turb_naca0012_p1c1 .cfg_dir = "rans_uq/naca0012"
257257 turb_naca0012_p1c1 .cfg_file = "turb_NACA0012_uq_p1c1.cfg"
258258 turb_naca0012_p1c1 .test_iter = 10
259- turb_naca0012_p1c1 .test_vals = [- 5.012946 , 1.309725 , 6.086066 , 2.412931 ]
259+ turb_naca0012_p1c1 .test_vals = [- 5.132080 , 1.076459 , 1.183320 , 0.207012 ]
260260 test_list .append (turb_naca0012_p1c1 )
261261
262262 # NACA0012 p1c2
263263 turb_naca0012_p1c2 = TestCase ('turb_naca0012_p1c2' )
264264 turb_naca0012_p1c2 .cfg_dir = "rans_uq/naca0012"
265265 turb_naca0012_p1c2 .cfg_file = "turb_NACA0012_uq_p1c2.cfg"
266266 turb_naca0012_p1c2 .test_iter = 10
267- turb_naca0012_p1c2 .test_vals = [- 5.264019 , 1.251314 , 6.086451 , 2.413070 ]
267+ turb_naca0012_p1c2 .test_vals = [- 5.556645 , 0.945121 , 1.246337 , 0.231311 ]
268268 test_list .append (turb_naca0012_p1c2 )
269269
270- ######################################
271- ### Harmonic Balance ###
272- ######################################
270+ ######################################
271+ ### Harmonic Balance ###
272+ ######################################
273273
274- # Description of the regression test
274+ # Description of the regression test
275275 harmonic_balance = TestCase ('harmonic_balance' )
276276 harmonic_balance .cfg_dir = "harmonic_balance"
277277 harmonic_balance .cfg_file = "HB.cfg"
@@ -347,11 +347,11 @@ def main():
347347 ddes_flatplate .test_iter = 10
348348 ddes_flatplate .test_vals = [- 2.714758 , - 5.883004 , - 0.215005 , 0.023783 ]
349349 ddes_flatplate .unsteady = True
350- test_list .append (ddes_flatplate )
350+ test_list .append (ddes_flatplate )
351351
352352 ######################################
353353 ### NICFD ###
354- ######################################
354+ ######################################
355355
356356 # Rarefaction shock wave edge_VW
357357 edge_VW = TestCase ('edge_VW' )
@@ -368,10 +368,10 @@ def main():
368368 edge_PPR .test_iter = 100
369369 edge_PPR .test_vals = [- 5.401640 , 0.738165 , - 0.000035 , 0.000000 ]
370370 test_list .append (edge_PPR )
371-
371+
372372 ######################################
373373 ### Turbomachinery ###
374- ######################################
374+ ######################################
375375
376376 # Jones APU Turbocharger
377377 Jones_tc = TestCase ('jones_turbocharger' )
@@ -387,7 +387,7 @@ def main():
387387 Jones_tc_rst .cfg_dir = "turbomachinery/APU_turbocharger"
388388 Jones_tc_rst .cfg_file = "Jones_rst.cfg"
389389 Jones_tc_rst .test_iter = 5
390- Jones_tc_rst .test_vals = [- 4.625319 , - 1.569634 , 34.014100 , 10.187660 ]
390+ Jones_tc_rst .test_vals = [- 4.626647 , - 1.570858 , 34.014100 , 10.190720 ]
391391 Jones_tc_rst .new_output = False
392392 test_list .append (Jones_tc_rst )
393393
@@ -399,7 +399,7 @@ def main():
399399 axial_stage2D .test_vals = [- 1.933199 , 5.381560 , 73.357900 , 1.780500 ]
400400 axial_stage2D .new_output = False
401401 test_list .append (axial_stage2D )
402-
402+
403403 # 2D transonic stator
404404 transonic_stator = TestCase ('transonic_stator' )
405405 transonic_stator .cfg_dir = "turbomachinery/transonic_stator_2D"
@@ -408,7 +408,7 @@ def main():
408408 transonic_stator .test_vals = [- 0.563540 , 5.823232 , 96.736080 , 0.062426 ]
409409 transonic_stator .new_output = False
410410 test_list .append (transonic_stator )
411-
411+
412412 # 2D transonic stator restart
413413 transonic_stator_rst = TestCase ('transonic_stator_restart' )
414414 transonic_stator_rst .cfg_dir = "turbomachinery/transonic_stator_2D"
@@ -430,7 +430,7 @@ def main():
430430 uniform_flow .test_vals = [5.000000 , 0.000000 , - 0.188748 , - 10.631530 ]
431431 uniform_flow .unsteady = True
432432 uniform_flow .multizone = True
433- test_list .append (uniform_flow )
433+ test_list .append (uniform_flow )
434434
435435 # Channel_2D
436436 channel_2D = TestCase ('channel_2D' )
@@ -493,7 +493,7 @@ def main():
493493
494494 ##########################
495495 ### FEA - FSI ###
496- ##########################
496+ ##########################
497497
498498 # Static beam, 3d
499499 statbeam3d = TestCase ('statbeam3d' )
@@ -521,7 +521,7 @@ def main():
521521 fsi2d .multizone = True
522522 fsi2d .unsteady = True
523523 test_list .append (fsi2d )
524-
524+
525525 # FSI, Static, 2D, new mesh solver
526526 stat_fsi = TestCase ('stat_fsi' )
527527 stat_fsi .cfg_dir = "fea_fsi/stat_fsi"
@@ -561,7 +561,7 @@ def main():
561561 mms_fvm_ns .test_iter = 20
562562 mms_fvm_ns .test_vals = [- 2.851428 , 2.192348 , 0.000000 , 0.000000 ]
563563 test_list .append (mms_fvm_ns )
564-
564+
565565 ######################################
566566 ### RUN TESTS ###
567567 ######################################
0 commit comments