Skip to content

Commit 62b8796

Browse files
committed
regression
1 parent 2b6d97a commit 62b8796

File tree

2 files changed

+43
-11
lines changed

2 files changed

+43
-11
lines changed

.github/workflows/regression.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -300,7 +300,7 @@ jobs:
300300
uses: docker://ghcr.io/su2code/su2/test-su2-asan:240320-1536
301301
with:
302302
# -t <Tutorials-branch> -c <Testcases-branch>
303-
args: -b ${{github.ref}} -t develop -c develop -s ${{matrix.testscript}} -a "--asan"
303+
args: -b ${{github.ref}} -t design_pipe -c tutorial_bend_Design -s ${{matrix.testscript}} -a "--asan"
304304
- name: Cleanup
305305
uses: docker://ghcr.io/su2code/su2/test-su2-asan:240320-1536
306306
with:

TestCases/tutorials.py

Lines changed: 42 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,7 @@ def main():
7373
cht_CR.multizone = True
7474
test_list.append(cht_CR)
7575

76+
7677
### Incompressible Flow
7778

7879
# 2D pin case massflow periodic with heatflux BC and prescribed extracted outlet heat
@@ -91,6 +92,34 @@ def main():
9192
sp_pinArray_2d_dp_hf_tp.test_vals = [-4.640621, 1.436697, -0.707302, 208.023676]
9293
test_list.append(sp_pinArray_2d_dp_hf_tp)
9394

95+
# 90 degree pipe bend with wall functions from the experiments of Sudo et al.
96+
sudo_tutorial = TestCase('sudo_bend')
97+
sudo_tutorial.cfg_dir = "../Tutorials/incompressible_flow/Inc_Turbulent_Bend_Wallfunctions"
98+
sudo_tutorial.cfg_file = "sudo.cfg"
99+
sudo_tutorial.test_iter = 10
100+
sudo_tutorial.test_vals = [-14.579462, -13.203791, -13.601782, -12.616876, -14.005299, -10.817605, 15.000000, -2.296083]
101+
sudo_tutorial.command = TestCase.Command("mpirun -n 2", "SU2_CFD")
102+
test_list.append(sudo_tutorial)
103+
104+
# design-primal: 90 degree pipe bend with wall functions from the experiments of Sudo et al.
105+
sudo_design_primal = TestCase('sudo_bend_design_primal')
106+
sudo_design_primal.cfg_dir = "../Tutorials/incompressible_flow/Inc_Turbulent_Bend_Wallfunctions"
107+
sudo_design_primal.cfg_file = "sudo_primal.cfg"
108+
sudo_design_primal.test_iter = 10
109+
sudo_design_primal.test_vals = [-14.579462, -13.203791, -13.601782, -12.616876, -14.005299, -10.817605, 15.000000, -2.296083]
110+
sudo_design_primal.command = TestCase.Command("mpirun -n 2", "SU2_CFD")
111+
test_list.append(sudo_design_primal)
112+
113+
# design-adjoint: 90 degree pipe bend with wall functions from the experiments of Sudo et al.
114+
sudo_design_adjoint = TestCase('sudo_bend_design_adjoint')
115+
sudo_design_adjoint.cfg_dir = "../Tutorials/incompressible_flow/Inc_Turbulent_Bend_Wallfunctions"
116+
sudo_design_adjoint.cfg_file = "sudo_adjoint.cfg"
117+
sudo_design_adjoint.test_iter = 10
118+
sudo_design_adjoint.test_vals = [-14.579462, -13.203791, -13.601782, -12.616876, -14.005299, -10.817605, 15.000000, -2.296083]
119+
sudo_design_adjoint.command = TestCase.Command("mpirun -n 2", "SU2_CFD_AD")
120+
test_list.append(sudo_design_adjoint)
121+
122+
94123
### Species Transport
95124

96125
# 3 species (2 eq) primitive venturi mixing
@@ -116,18 +145,20 @@ def main():
116145
kenics_mixer_tutorial.cfg_dir = "../Tutorials/incompressible_flow/Inc_Species_Transport_Composition_Dependent_Model"
117146
kenics_mixer_tutorial.cfg_file = "kenics_mixer_tutorial.cfg"
118147
kenics_mixer_tutorial.test_iter = 10
119-
kenics_mixer_tutorial.test_vals = [-7.489796, -6.823473, -6.838032, -5.157793, -7.911512, -3.166212, -7.447901, 5.000000, -1.862212, 4.000000, -5.131048, 3.000000, -6.380193, 0.025472, 0.000000, 0.025472, 0.000000, 64.105000, 8.479200, 48.099000, 7.526700]
148+
kenics_mixer_tutorial.test_vals = [-7.490002, -6.823162, -6.837602, -5.156401, -7.928720, -3.089782, -7.447883, 5.000000, -1.863052, 4.000000, -5.174773, 3.000000, -6.382946, 0.025471, 0.000000, 0.025471, 0.000000, 64.126000, 8.479400, 48.120000, 7.526800]
120149
kenics_mixer_tutorial.command = TestCase.Command("mpirun -n 2", "SU2_CFD")
121150
test_list.append(kenics_mixer_tutorial)
122151

123-
# 90 degree pipe bend with wall functions from the experiments of Sudo et al.
124-
sudo_tutorial = TestCase('sudo_bend')
125-
sudo_tutorial.cfg_dir = "../Tutorials/incompressible_flow/Inc_Turbulent_Bend_Wallfunctions"
126-
sudo_tutorial.cfg_file = "sudo.cfg"
127-
sudo_tutorial.test_iter = 10
128-
sudo_tutorial.test_vals = [-14.579462, -13.203791, -13.601782, -12.616876, -14.005299, -10.817605, 15.000000, -2.296083]
129-
sudo_tutorial.command = TestCase.Command("mpirun -n 2", "SU2_CFD")
130-
test_list.append(sudo_tutorial)
152+
# 3 species (2 eq) primitive venturi mixing
153+
DAspecies3_primitiveVenturi = TestCase('DAspecies3_primitiveVenturi')
154+
DAspecies3_primitiveVenturi.cfg_dir = "../Tutorials/incompressible_flow/Inc_Species_Transport"
155+
DAspecies3_primitiveVenturi.cfg_file = "DAspecies3_primitiveVenturi.cfg"
156+
DAspecies3_primitiveVenturi.test_iter = 50
157+
DAspecies3_primitiveVenturi.test_vals = [-7.584508, -7.211527, -6.740742, -6.896386, -11.472089, -10.865347, -10.096770]
158+
DAspecies3_primitiveVenturi.test_vals_aarch64 = [-7.865411, -7.548131, -7.347978, -7.217536, -11.822422, -10.968444, -10.193225]
159+
DAspecies3_primitiveVenturi.command = TestCase.Command("mpirun -n 2", "SU2_CFD_AD")
160+
test_list.append(DAspecies3_primitiveVenturi)
161+
131162

132163
### Incompressible Combustion
133164

@@ -139,6 +170,7 @@ def main():
139170
premixed_hydrogen.test_vals = [-9.809794, -10.369804, -11.044267, -4.332945, -11.883789]
140171
test_list.append(premixed_hydrogen)
141172

173+
142174
### Compressible Flow
143175

144176
# Inviscid Bump
@@ -254,7 +286,7 @@ def main():
254286
tutorial_nicfd_nozzle.cfg_dir = "../Tutorials/compressible_flow/NICFD_nozzle"
255287
tutorial_nicfd_nozzle.cfg_file = "NICFD_nozzle.cfg"
256288
tutorial_nicfd_nozzle.test_iter = 20
257-
tutorial_nicfd_nozzle.test_vals = [-2.056675, -2.124123, 3.687027, 0.000000, 0.000000]
289+
tutorial_nicfd_nozzle.test_vals = [-2.056675, -2.124123, 3.687857, 0.000000, 0.000000]
258290
tutorial_nicfd_nozzle.no_restart = True
259291
test_list.append(tutorial_nicfd_nozzle)
260292

0 commit comments

Comments
 (0)