Skip to content

Commit 6510561

Browse files
committed
Merge remote-tracking branch 'upstream/develop' into remove_twist_2d
2 parents e200d8d + 53fcfc3 commit 6510561

12 files changed

Lines changed: 94 additions & 71 deletions

QuickStart/.gitignore

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,5 +8,10 @@
88
*.csv
99
*.plt
1010
*.szplt
11-
*.vtk
11+
*.vtu
12+
*.log
13+
*.out
14+
*.aux
15+
*.pdf
16+
*.png
1217
config_*.cfg

QuickStart/inv_NACA0012.cfg

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -284,6 +284,9 @@ SURFACE_ADJ_FILENAME= surface_adjoint
284284
%
285285
% Writing solution file frequency
286286
OUTPUT_WRT_FREQ= 250
287+
%
288+
% Output file format
289+
OUTPUT_FILES= (RESTART, PARAVIEW, SURFACE_CSV)
287290

288291
% --------------------- OPTIMAL SHAPE DESIGN DEFINITION -----------------------%
289292
% Available flow based objective functions or constraint functions
Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
INDEX GRAD
2-
0 -3.461461010189737e-03
3-
1 -1.841786479954763e-03
4-
2 -7.915536887423713e-04
5-
3 -2.739622314151781e-04
6-
4 -2.734869609160976e-04
7-
5 -7.881163788847894e-04
8-
6 -1.828978579462100e-03
9-
7 -3.427219908218581e-03
2+
0 -3.461460506635121e-03
3+
1 -1.841786208967458e-03
4+
2 -7.915535677936552e-04
5+
3 -2.739621839525785e-04
6+
4 -2.734869125125620e-04
7+
5 -7.881162552527191e-04
8+
6 -1.828978304797359e-03
9+
7 -3.427219401431795e-03

TestCases/hybrid_regression.py

Lines changed: 9 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,7 @@ def main():
137137
poiseuille_profile.cfg_file = "profile_poiseuille.cfg"
138138
poiseuille_profile.test_iter = 10
139139
poiseuille_profile.test_vals = [-12.494728, -7.712546, -0.000000, 2.085796]
140-
poiseuille_profile.test_vals_aarch64 = [-12.494692, -7.710648, -0.000000, 2.085796]
140+
poiseuille_profile.test_vals_aarch64 = [-12.494717, -7.711274, -0.000000, 2.085796]
141141
test_list.append(poiseuille_profile)
142142

143143
# 2D Rotational Periodic
@@ -199,7 +199,7 @@ def main():
199199
turb_naca0012_sa.cfg_file = "turb_NACA0012_sa.cfg"
200200
turb_naca0012_sa.test_iter = 5
201201
turb_naca0012_sa.test_vals = [-10.451625, -13.859808, 1.057622, 0.022916, 20.000000, -1.358306, 20.000000, -2.512316, -44.540000]
202-
turb_naca0012_sa.test_vals_aarch64 = [-8.627052, -10.377936, 1.064491, 0.019710, 20.000000, -1.763093, 20.000000, -4.794073, -46.506000]
202+
turb_naca0012_sa.test_vals_aarch64 = [-10.451625, -13.859809, 1.057622, 0.022916, 20.000000, -1.358307, 20.000000, -2.512316, -44.540000]
203203
test_list.append(turb_naca0012_sa)
204204

205205
# NACA0012 (SST, FUN3D finest grid results: CL=1.0840, CD=0.01253)
@@ -208,7 +208,6 @@ def main():
208208
turb_naca0012_sst.cfg_file = "turb_NACA0012_sst.cfg"
209209
turb_naca0012_sst.test_iter = 10
210210
turb_naca0012_sst.test_vals = [-12.216989, -14.439370, -7.108639, 1.050109, 0.019148, -1.483537, -38.510000]
211-
turb_naca0012_sst.test_vals_aarch64 = [-12.216989, -14.439370, -7.108639, 1.050109, 0.019148, -1.483537, -38.510000]
212211
test_list.append(turb_naca0012_sst)
213212

214213
# NACA0012 (SST_SUST, FUN3D finest grid results: CL=1.0840, CD=0.01253)
@@ -217,7 +216,6 @@ def main():
217216
turb_naca0012_sst_sust.cfg_file = "turb_NACA0012_sst_sust.cfg"
218217
turb_naca0012_sst_sust.test_iter = 10
219218
turb_naca0012_sst_sust.test_vals = [-12.148204, -14.755890, -6.342986, 1.001189, 0.019384, -1.432333]
220-
turb_naca0012_sst_sust.test_vals_aarch64 = [-12.148204, -14.755890, -6.342986, 1.001189, 0.019384, -1.432333]
221219
test_list.append(turb_naca0012_sst_sust)
222220

223221
# NACA0012 (SST, fixed values for turbulence quantities)
@@ -226,7 +224,7 @@ def main():
226224
turb_naca0012_sst_fixedvalues.cfg_file = "turb_NACA0012_sst_fixedvalues.cfg"
227225
turb_naca0012_sst_fixedvalues.test_iter = 10
228226
turb_naca0012_sst_fixedvalues.test_vals = [-5.192598, -10.042489, -1.617721, 1.022073, 0.040198, -2.381138]
229-
turb_naca0012_sst_fixedvalues.test_vals_aarch64 = [-5.192501, -9.575897, -1.568269, 1.022571, 0.040527, -2.384327]
227+
turb_naca0012_sst_fixedvalues.test_vals_aarch64 = [-5.192599, -10.042490, -1.617720, 1.022073, 0.040198, -2.381138]
230228
test_list.append(turb_naca0012_sst_fixedvalues)
231229

232230
# NACA0012 (SST, explicit Euler for flow and turbulence equations)
@@ -255,7 +253,6 @@ def main():
255253
axi_rans_air_nozzle_restart.cfg_file = "air_nozzle_restart.cfg"
256254
axi_rans_air_nozzle_restart.test_iter = 10
257255
axi_rans_air_nozzle_restart.test_vals = [-12.060634, -6.992273, -8.808757, -4.097753, -2019.800000]
258-
axi_rans_air_nozzle_restart.test_vals_aarch64 = [-12.060634, -6.992273, -8.808757, -4.097753, -2019.800000]
259256
test_list.append(axi_rans_air_nozzle_restart)
260257

261258
#################################
@@ -281,7 +278,7 @@ def main():
281278
turb_naca0012_1c.cfg_file = "turb_NACA0012_uq_1c.cfg"
282279
turb_naca0012_1c.test_iter = 10
283280
turb_naca0012_1c.test_vals = [-4.980878, 1.138865, 0.247731, -0.117335]
284-
turb_naca0012_1c.test_vals_aarch64 = [-4.981149, 1.139192, 0.244886, -0.112789]
281+
turb_naca0012_1c.test_vals_aarch64 = [-4.981105, 1.138873, 0.248013, -0.117248]
285282
test_list.append(turb_naca0012_1c)
286283

287284
# NACA0012 2c
@@ -290,7 +287,7 @@ def main():
290287
turb_naca0012_2c.cfg_file = "turb_NACA0012_uq_2c.cfg"
291288
turb_naca0012_2c.test_iter = 10
292289
turb_naca0012_2c.test_vals = [-5.483313, 0.968731, 0.215420, -0.124767]
293-
turb_naca0012_2c.test_vals_aarch64 = [-5.483350, 0.968882, 0.212493, -0.120171]
290+
turb_naca0012_2c.test_vals_aarch64 = [-5.483345, 0.968720, 0.214914, -0.124932]
294291
test_list.append(turb_naca0012_2c)
295292

296293
# NACA0012 3c
@@ -299,7 +296,7 @@ def main():
299296
turb_naca0012_3c.cfg_file = "turb_NACA0012_uq_3c.cfg"
300297
turb_naca0012_3c.test_iter = 10
301298
turb_naca0012_3c.test_vals = [-5.584300, 0.931293, 0.207446, -0.125692]
302-
turb_naca0012_3c.test_vals_aarch64 = [-5.584300, 0.931383, 0.205116, -0.120891]
299+
turb_naca0012_3c.test_vals_aarch64 = [-5.584300, 0.931293, 0.207447, -0.125691]
303300
test_list.append(turb_naca0012_3c)
304301

305302
# NACA0012 p1c1
@@ -308,7 +305,7 @@ def main():
308305
turb_naca0012_p1c1.cfg_file = "turb_NACA0012_uq_p1c1.cfg"
309306
turb_naca0012_p1c1.test_iter = 10
310307
turb_naca0012_p1c1.test_vals = [-5.132363, 1.075634, 0.337251, -0.082829]
311-
turb_naca0012_p1c1.test_vals_aarch64 = [-5.132731, 1.075863, 0.333419, -0.078553]
308+
turb_naca0012_p1c1.test_vals_aarch64 = [-5.132358, 1.075658, 0.337268, -0.082827]
312309
test_list.append(turb_naca0012_p1c1)
313310

314311
# NACA0012 p1c2
@@ -317,7 +314,7 @@ def main():
317314
turb_naca0012_p1c2.cfg_file = "turb_NACA0012_uq_p1c2.cfg"
318315
turb_naca0012_p1c2.test_iter = 10
319316
turb_naca0012_p1c2.test_vals = [-5.554392, 0.943703, 0.229483, -0.121058]
320-
turb_naca0012_p1c2.test_vals_aarch64 = [-5.554433, 0.943787, 0.226530, -0.116503]
317+
turb_naca0012_p1c2.test_vals_aarch64 = [-5.554425, 0.943683, 0.229293, -0.121125]
321318
test_list.append(turb_naca0012_p1c2)
322319

323320
######################################
@@ -458,7 +455,7 @@ def main():
458455
square_cylinder.cfg_file = "turb_square.cfg"
459456
square_cylinder.test_iter = 3
460457
square_cylinder.test_vals = [-2.557949, -1.173575, 0.058030, 1.399794, 2.220402, 1.399748, 2.218603, -0.453270]
461-
square_cylinder.test_vals_aarch64 = [-2.558106, -1.162563, 0.066386, 1.399788, 2.220402, 1.399743, 2.218603, -0.453110]
458+
square_cylinder.test_vals_aarch64 = [-2.557902, -1.173574, 0.058050, 1.399794, 2.220402, 1.399748, 2.218604, -0.453270]
462459
square_cylinder.unsteady = True
463460
test_list.append(square_cylinder)
464461

@@ -566,7 +563,6 @@ def main():
566563
axial_stage2D.cfg_file = "Axial_stage2D.cfg"
567564
axial_stage2D.test_iter = 20
568565
axial_stage2D.test_vals = [0.974788, 1.534326, -2.897693, 2.599374, -2.418314, 3.087291, 106380.000000, 106380.000000]
569-
axial_stage2D.test_vals_aarch64 = [1.047244, 1.661126, -2.914064, 2.588061, -2.486924, 3.050785, 106380, 106380]
570566
test_list.append(axial_stage2D)
571567

572568
# 2D transonic stator restart
@@ -575,7 +571,6 @@ def main():
575571
transonic_stator_restart.cfg_file = "transonic_stator_restart.cfg"
576572
transonic_stator_restart.test_iter = 20
577573
transonic_stator_restart.test_vals = [-5.346503, -3.510597, -3.156830, 0.752511, -3.834382, 1.816610, -471690]
578-
transonic_stator_restart.test_vals_aarch64 = [-5.346503, -3.510597, -3.156830, 0.752511, -3.834382, 1.816610, -471690]
579574
test_list.append(transonic_stator_restart)
580575

581576
######################################

TestCases/hybrid_regression_AD.py

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -75,8 +75,7 @@ def main():
7575
discadj_rans_naca0012_sa.cfg_dir = "disc_adj_rans/naca0012"
7676
discadj_rans_naca0012_sa.cfg_file = "turb_NACA0012_sa.cfg"
7777
discadj_rans_naca0012_sa.test_iter = 10
78-
discadj_rans_naca0012_sa.test_vals = [-2.230621, 0.644162, 0.177890, -0.000016, 5.000000, -3.007652, 5.000000, -7.728093]
79-
discadj_rans_naca0012_sa.test_vals_aarch64 = [-2.230631, 0.644954, 0.177890, -0.000016, 5.000000, -3.007651, 5.000000, -7.631909]
78+
discadj_rans_naca0012_sa.test_vals = [-2.230621, 0.644162, 0.177890, -0.000016, 5.000000, -3.007652, 5.000000, -7.728093]
8079
test_list.append(discadj_rans_naca0012_sa)
8180

8281
# Adjoint turbulent NACA0012 SST
@@ -194,7 +193,7 @@ def main():
194193
discadj_trans_stator.cfg_file = "transonic_stator.cfg"
195194
discadj_trans_stator.test_iter = 79
196195
discadj_trans_stator.test_vals = [79, 0.770065, 0.383137, 0.472153, -0.996484, 2.153296, -4.444301]
197-
discadj_trans_stator.test_vals_aarch64 = [79, 0.770065, 0.383137, 0.472153, -0.996484, 2.153296, -4.444301]
196+
discadj_trans_stator.test_vals_aarch64 = [79, 0.769987, 0.383135, 0.472391, -0.996504, 2.153296, -4.444301]
198197
test_list.append(discadj_trans_stator)
199198

200199
###################################
@@ -207,7 +206,7 @@ def main():
207206
discadj_fea.cfg_file = "configAD_fem.cfg"
208207
discadj_fea.test_iter = 4
209208
discadj_fea.test_vals = [1.774569, 1.928023, -0.000364, -8.690300]
210-
discadj_fea.test_vals_aarch64 = [2.216938, 2.129429, -0.000365, -8.782500]
209+
discadj_fea.test_vals_aarch64 = [1.939275, 1.989717, -0.000364, -8.708200]
211210
test_list.append(discadj_fea)
212211

213212
######################################
@@ -232,6 +231,7 @@ def main():
232231
pywrapper_FEA_AD_FlowLoad.cfg_file = "configAD_fem.cfg"
233232
pywrapper_FEA_AD_FlowLoad.test_iter = 100
234233
pywrapper_FEA_AD_FlowLoad.test_vals = [-0.131742, -0.553318, -0.000364, -0.003101] #last 4 columns
234+
pywrapper_FEA_AD_FlowLoad.test_vals_aarch64 = [-0.131745, -0.553214, -0.000364, -0.003101]
235235
pywrapper_FEA_AD_FlowLoad.command = TestCase.Command(exec = "python", param = "run_adjoint.py --parallel -f")
236236
pywrapper_FEA_AD_FlowLoad.timeout = 1600
237237
pywrapper_FEA_AD_FlowLoad.tol = 1e-4
@@ -245,6 +245,7 @@ def main():
245245
pywrapper_CFD_AD_MeshDisp.cfg_file = "configAD_flow.cfg"
246246
pywrapper_CFD_AD_MeshDisp.test_iter = 1000
247247
pywrapper_CFD_AD_MeshDisp.test_vals = [30.000000, -2.520967, 1.375188, 0.000000] #last 4 columns
248+
pywrapper_CFD_AD_MeshDisp.test_vals_aarch64 = [30.000000, -2.516536, 1.386443, 0.000000]
248249
pywrapper_CFD_AD_MeshDisp.command = TestCase.Command(exec = "python", param = "run_adjoint.py --parallel -f")
249250
pywrapper_CFD_AD_MeshDisp.timeout = 1600
250251
pywrapper_CFD_AD_MeshDisp.tol = 1e-4

0 commit comments

Comments
 (0)