Skip to content

Commit

Permalink
Remove redundant simtests
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 615952475
  • Loading branch information
Torax team committed Mar 15, 2024
1 parent b6c7ab7 commit f1f7bec
Show file tree
Hide file tree
Showing 42 changed files with 52 additions and 1,669 deletions.
181 changes: 16 additions & 165 deletions torax/tests/sim.py
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ class SimTest(sim_test_case.SimTestCase):
# when the coefficient matrix is frozen
(
'test2_newton_raphson',
'test2.py',
'test2_newton_raphson.py',
'test2',
_ALL_PROFILES,
1e-6,
Expand All @@ -104,14 +104,6 @@ class SimTest(sim_test_case.SimTestCase):
0,
True,
),
# Tests ion-electron heat exchange at high density
(
'test4',
'test4.py',
'test4',
_ALL_PROFILES,
0,
),
# Tests pedestal internal boundary condition
(
'test5',
Expand All @@ -128,6 +120,15 @@ class SimTest(sim_test_case.SimTestCase):
_ALL_PROFILES,
0,
),
# Test that we are able to reproduce FiPy's behavior in a case where
# FiPy is unstable
(
'test6_no_pedestal',
'test6_no_pedestal.py',
'test6_no_pedestal',
_ALL_PROFILES,
1e-10,
),
# Tests QLKNN model, heat transport only
(
'test7',
Expand Down Expand Up @@ -186,14 +187,6 @@ class SimTest(sim_test_case.SimTestCase):
_ALL_PROFILES,
0,
),
# Tests bootstrap current with heat+current-diffusion. CGM model
(
'test10',
'test10.py',
'test10',
_ALL_PROFILES,
0,
),
# Tests bootstrap current with heat+current-diffusion. QLKNN model
(
'test11',
Expand All @@ -218,40 +211,14 @@ class SimTest(sim_test_case.SimTestCase):
_ALL_PROFILES,
0,
),
# Tests particle sources with CGM transport. No NBI source
(
'test14',
'test14.py',
'test14',
_ALL_PROFILES,
0,
),
# Tests all particle sources with CGM transport
# Tests all particle sources including NBI, with CGM transport
(
'test15',
'test15.py',
'test15',
_ALL_PROFILES,
0,
),
# Tests density transport with QLKNN. De scaled from chi_e model
(
'test16',
'test16.py',
'test16',
_ALL_PROFILES,
1e-3,
5e-4,
),
# Tests density transport with QLKNN. Deff+Veff model
(
'test17',
'test17.py',
'test17',
_ALL_PROFILES,
1e-5,
2e-6,
),
# Tests fusion power. CGM transport, heat+particle+psi transport
(
'test18',
Expand All @@ -269,30 +236,14 @@ class SimTest(sim_test_case.SimTestCase):
7e-5,
5e-4,
),
# Tests explicit solver. Ti only. CHEASE geometry.
(
'test20',
'test20.py',
'test20',
_ALL_PROFILES,
0,
),
# Tests implicit solver. Heat transport only. CHEASE geometry.
# Tests CHEASE geometry. Implicit solver. Heat transport only.
(
'test21',
'test21.py',
'test21',
_ALL_PROFILES,
0,
),
# Tests ion-electron heat exchange test at low density. CHEASE geometry.
(
'test22',
'test22.py',
'test22',
_ALL_PROFILES,
0,
),
# Tests Ohmic electron heat source. CHEASE geometry.
(
'test22_pohm',
Expand All @@ -309,55 +260,22 @@ class SimTest(sim_test_case.SimTestCase):
_ALL_PROFILES,
0,
),
# Tests pedestal internal boundary condition. CHEASE geometry.
(
'test24',
'test24.py',
'test24',
_ALL_PROFILES,
0,
),
# Tests CGM transport model. Heat transport only. CHEASE geometry.
(
'test25',
'test25.py',
'test25',
_ALL_PROFILES,
0,
),
# Tests QLKNN transport model. Heat transport only. CHEASE geometry.
(
'test26',
'test26.py',
'test26',
_ALL_PROFILES,
1e-10,
1e-10,
),
# Tests current diffusion. CHEASE geometry. Ip from parameters.
# Tests current diffusion with Ip from parameters. CHEASE geometry.
(
'test27',
'test27.py',
'test27',
_ALL_PROFILES,
0,
),
# Tests current diffusion. CHEASE geometry. Ip from CHEASE.
# Tests current diffusion with Ip from CHEASE.
(
'test28',
'test28.py',
'test28',
_ALL_PROFILES,
0,
),
# Tests combined heat+current-diffusion. CHEASE geometry. QLKNN.
(
'test29',
'test29.py',
'test29',
_ALL_PROFILES,
0,
),
# Tests time-dependent pedestal, Ptot, Ip. CHEASE geometry. QLKNN.
(
'test29_timedependent',
Expand All @@ -366,57 +284,8 @@ class SimTest(sim_test_case.SimTestCase):
_ALL_PROFILES,
0,
),
# Tests bootstrap current. CHEASE geometry. Heat+current-diffusion. CGM.
(
'test30',
'test30.py',
'test30',
_ALL_PROFILES,
0,
),
# Tests combined heat, particle, current-diffusion.
# CHEASE geometry. Constant transport
(
'test31',
'test31.py',
'test31',
_ALL_PROFILES,
0,
),
# Tests combined heat, particle, current-diffusion and pedestal.
# CHEASE geometry. Constant transport
(
'test32',
'test32.py',
'test32',
_ALL_PROFILES,
0,
),
# Tests particle sources. CHEASE geometry. No NBI.
(
'test33',
'test33.py',
'test33',
_ALL_PROFILES,
0,
),
# Tests particle sources. CHEASE geometry. No NBI. CGM + pedestal.
(
'test34',
'test34.py',
'test34',
_ALL_PROFILES,
0,
),
# Tests all particle sources. CHEASE geometry. CGM + pedestal.
(
'test35',
'test35.py',
'test35',
_ALL_PROFILES,
0,
),
# Tests particle transport with QLKNN. De scaled from chie.
# CHEASE geometry
(
'test36',
'test36.py',
Expand All @@ -425,7 +294,7 @@ class SimTest(sim_test_case.SimTestCase):
1e-3,
6e-5,
),
# Tests particle transport with QLKNN. Deff+Veff model.
# Tests particle transport with QLKNN. Deff+Veff model. CHEASE geometry.
(
'test37',
'test37.py',
Expand All @@ -442,15 +311,6 @@ class SimTest(sim_test_case.SimTestCase):
_ALL_PROFILES,
0,
),
# Tests fusion power. CHEASE geometry. Current, heat, particle transport.
# CGM transport model.
(
'test38',
'test38.py',
'test38',
_ALL_PROFILES,
0,
),
# Tests Pereverzev-Corrigan method for density. CHEASE geometry. QLKNN.
# De scaled from chie.
(
Expand Down Expand Up @@ -498,15 +358,6 @@ class SimTest(sim_test_case.SimTestCase):
7e-5,
5e-5,
),
# Tests TORAX regression of test42
(
'test42_torax',
'test42.py',
'test42_torax',
_ALL_PROFILES,
1e-11,
1e-11,
),
# Tests Newton-Raphson nonlinear solver for ITER-hybrid-like-config
(
'test42_nl_Hmode',
Expand Down
Binary file removed torax/tests/test_data/test10.h5
Binary file not shown.
66 changes: 0 additions & 66 deletions torax/tests/test_data/test10.py

This file was deleted.

Binary file removed torax/tests/test_data/test14.h5
Binary file not shown.
Loading

0 comments on commit f1f7bec

Please sign in to comment.