Skip to content

Commit

Permalink
added missing import
Browse files Browse the repository at this point in the history
  • Loading branch information
shimwell committed Sep 28, 2024
1 parent 5809f5b commit 40d537f
Show file tree
Hide file tree
Showing 9 changed files with 75 additions and 75 deletions.
10 changes: 5 additions & 5 deletions examples/spherical_tokamak_from_plasma_with_divertor.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,14 +9,14 @@
radial_builds=[
[
(paramak.LayerType.GAP, 10),
(LayerType.SOLID, 50),
(LayerType.SOLID, 15),
(paramak.LayerType.SOLID, 50),
(paramak.LayerType.SOLID, 15),
(paramak.LayerType.GAP, 50),
(paramak.LayerType.PLASMA, 300),
(paramak.LayerType.GAP, 60),
(LayerType.SOLID, 15),
(LayerType.SOLID, 60),
(LayerType.SOLID, 10),
(paramak.LayerType.SOLID, 15),
(paramak.LayerType.SOLID, 60),
(paramak.LayerType.SOLID, 10),
],
[(paramak.LayerType.GAP, 75), ("lower_divertor", 100)], # this divertor connects to the center column
[(paramak.LayerType.GAP, 120), ("upper_divertor", 140)], # this divertor has some blanket between the center colum and itself
Expand Down
10 changes: 5 additions & 5 deletions examples/spherical_tokamak_from_plasma_with_pf_magnets.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,14 +27,14 @@
my_reactor = paramak.spherical_tokamak_from_plasma(
radial_builds=[
(paramak.LayerType.GAP, 10),
(LayerType.SOLID, 50),
(LayerType.SOLID, 15),
(paramak.LayerType.SOLID, 50),
(paramak.LayerType.SOLID, 15),
(paramak.LayerType.GAP, 50),
(paramak.LayerType.PLASMA, 300),
(paramak.LayerType.GAP, 60),
(LayerType.SOLID, 15),
(LayerType.SOLID, 60),
(LayerType.SOLID, 10),
(paramak.LayerType.SOLID, 15),
(paramak.LayerType.SOLID, 60),
(paramak.LayerType.SOLID, 10),
],
elongation=2,
triangularity=0.55,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,14 +30,14 @@
radial_builds=[
[
(paramak.LayerType.GAP, 10),
(LayerType.SOLID, 50),
(LayerType.SOLID, 15),
(paramak.LayerType.SOLID, 50),
(paramak.LayerType.SOLID, 15),
(paramak.LayerType.GAP, 50),
(paramak.LayerType.PLASMA, 300),
(paramak.LayerType.GAP, 60),
(LayerType.SOLID, 15),
(LayerType.SOLID, 60),
(LayerType.SOLID, 10),
(paramak.LayerType.SOLID, 15),
(paramak.LayerType.SOLID, 60),
(paramak.LayerType.SOLID, 10),
],
[(paramak.LayerType.GAP, 75), ("lower_divertor", 100)],
],
Expand Down
10 changes: 5 additions & 5 deletions examples/spherical_tokamak_from_plasma_with_tf_magnets.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,14 +17,14 @@
result = paramak.spherical_tokamak_from_plasma(
radial_builds=[
(paramak.LayerType.GAP, 70),
(LayerType.SOLID, 10),
(LayerType.SOLID, 10),
(paramak.LayerType.SOLID, 10),
(paramak.LayerType.SOLID, 10),
(paramak.LayerType.GAP, 50),
(paramak.LayerType.PLASMA, 300),
(paramak.LayerType.GAP, 60),
(LayerType.SOLID, 10),
(LayerType.SOLID, 60),
(LayerType.SOLID, 10),
(paramak.LayerType.SOLID, 10),
(paramak.LayerType.SOLID, 60),
(paramak.LayerType.SOLID, 10),
],
elongation=2.5,
rotation_angle=180,
Expand Down
22 changes: 11 additions & 11 deletions examples/spherical_tokamak_minimal.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,26 +9,26 @@
radial_builds=[
[
(paramak.LayerType.GAP, 10),
(LayerType.SOLID, 50),
(LayerType.SOLID, 15),
(paramak.LayerType.SOLID, 50),
(paramak.LayerType.SOLID, 15),
(paramak.LayerType.GAP, 50),
(paramak.LayerType.PLASMA, 300),
(paramak.LayerType.GAP, 60),
(LayerType.SOLID, 40),
(LayerType.SOLID, 60),
(LayerType.SOLID, 10),
(paramak.LayerType.SOLID, 40),
(paramak.LayerType.SOLID, 60),
(paramak.LayerType.SOLID, 10),
]
],
vertical_build=[
(LayerType.SOLID, 15),
(LayerType.SOLID, 80),
(LayerType.SOLID, 10),
(paramak.LayerType.SOLID, 15),
(paramak.LayerType.SOLID, 80),
(paramak.LayerType.SOLID, 10),
(paramak.LayerType.GAP, 50),
(paramak.LayerType.PLASMA, 700),
(paramak.LayerType.GAP, 60),
(LayerType.SOLID, 10),
(LayerType.SOLID, 40),
(LayerType.SOLID, 15),
(paramak.LayerType.SOLID, 10),
(paramak.LayerType.SOLID, 40),
(paramak.LayerType.SOLID, 15),
],
rotation_angle=180,
triangularity=-0.55,
Expand Down
16 changes: 8 additions & 8 deletions examples/tokamak_from_plasma_minimal.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,17 +6,17 @@
my_reactor = paramak.tokamak_from_plasma(
radial_builds=[
(paramak.LayerType.GAP, 10),
(LayerType.SOLID, 30),
(LayerType.SOLID, 50),
(LayerType.SOLID, 10),
(LayerType.SOLID, 120),
(LayerType.SOLID, 20),
(paramak.LayerType.SOLID, 30),
(paramak.LayerType.SOLID, 50),
(paramak.LayerType.SOLID, 10),
(paramak.LayerType.SOLID, 120),
(paramak.LayerType.SOLID, 20),
(paramak.LayerType.GAP, 60),
(paramak.LayerType.PLASMA, 300),
(paramak.LayerType.GAP, 60),
(LayerType.SOLID, 20),
(LayerType.SOLID, 120),
(LayerType.SOLID, 10),
(paramak.LayerType.SOLID, 20),
(paramak.LayerType.SOLID, 120),
(paramak.LayerType.SOLID, 10),
],
elongation=2,
triangularity=0.55,
Expand Down
16 changes: 8 additions & 8 deletions examples/tokamak_from_plasma_with_divertor.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,17 +7,17 @@
radial_builds=[
[
(paramak.LayerType.GAP, 10),
(LayerType.SOLID, 30),
(LayerType.SOLID, 50),
(LayerType.SOLID, 10),
(LayerType.SOLID, 120),
(LayerType.SOLID, 20),
(paramak.LayerType.SOLID, 30),
(paramak.LayerType.SOLID, 50),
(paramak.LayerType.SOLID, 10),
(paramak.LayerType.SOLID, 120),
(paramak.LayerType.SOLID, 20),
(paramak.LayerType.GAP, 60),
(paramak.LayerType.PLASMA, 300),
(paramak.LayerType.GAP, 60),
(LayerType.SOLID, 20),
(LayerType.SOLID, 120),
(LayerType.SOLID, 10),
(paramak.LayerType.SOLID, 20),
(paramak.LayerType.SOLID, 120),
(paramak.LayerType.SOLID, 10),
],
[(paramak.LayerType.GAP, 300), ("lower_divertor", 150)],
],
Expand Down
28 changes: 14 additions & 14 deletions examples/tokamak_minimal.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,28 +6,28 @@
my_reactor = paramak.tokamak(
radial_builds=[
(paramak.LayerType.GAP, 10),
(LayerType.SOLID, 30),
(LayerType.SOLID, 50),
(LayerType.SOLID, 10),
(LayerType.SOLID, 120),
(LayerType.SOLID, 20),
(paramak.LayerType.SOLID, 30),
(paramak.LayerType.SOLID, 50),
(paramak.LayerType.SOLID, 10),
(paramak.LayerType.SOLID, 120),
(paramak.LayerType.SOLID, 20),
(paramak.LayerType.GAP, 60),
(paramak.LayerType.PLASMA, 300),
(paramak.LayerType.GAP, 60),
(LayerType.SOLID, 20),
(LayerType.SOLID, 120),
(LayerType.SOLID, 10),
(paramak.LayerType.SOLID, 20),
(paramak.LayerType.SOLID, 120),
(paramak.LayerType.SOLID, 10),
],
vertical_build=[
(LayerType.SOLID, 15),
(LayerType.SOLID, 80),
(LayerType.SOLID, 10),
(paramak.LayerType.SOLID, 15),
(paramak.LayerType.SOLID, 80),
(paramak.LayerType.SOLID, 10),
(paramak.LayerType.GAP, 50),
(paramak.LayerType.PLASMA, 700),
(paramak.LayerType.GAP, 60),
(LayerType.SOLID, 10),
(LayerType.SOLID, 40),
(LayerType.SOLID, 15),
(paramak.LayerType.SOLID, 10),
(paramak.LayerType.SOLID, 40),
(paramak.LayerType.SOLID, 15),
],
triangularity=0.55,
rotation_angle=180,
Expand Down
28 changes: 14 additions & 14 deletions examples/tokamak_with_pf_magnets.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,28 +26,28 @@
my_reactor = paramak.tokamak(
radial_builds=[
(paramak.LayerType.GAP, 10),
(LayerType.SOLID, 30),
(LayerType.SOLID, 50),
(LayerType.SOLID, 10),
(LayerType.SOLID, 120),
(LayerType.SOLID, 20),
(paramak.LayerType.SOLID, 30),
(paramak.LayerType.SOLID, 50),
(paramak.LayerType.SOLID, 10),
(paramak.LayerType.SOLID, 120),
(paramak.LayerType.SOLID, 20),
(paramak.LayerType.GAP, 60),
(paramak.LayerType.PLASMA, 300),
(paramak.LayerType.GAP, 60),
(LayerType.SOLID, 20),
(LayerType.SOLID, 120),
(LayerType.SOLID, 10),
(paramak.LayerType.SOLID, 20),
(paramak.LayerType.SOLID, 120),
(paramak.LayerType.SOLID, 10),
],
vertical_build=[
(LayerType.SOLID, 15),
(LayerType.SOLID, 80),
(LayerType.SOLID, 10),
(paramak.LayerType.SOLID, 15),
(paramak.LayerType.SOLID, 80),
(paramak.LayerType.SOLID, 10),
(paramak.LayerType.GAP, 50),
(paramak.LayerType.PLASMA, 700),
(paramak.LayerType.GAP, 60),
(LayerType.SOLID, 10),
(LayerType.SOLID, 40),
(LayerType.SOLID, 15),
(paramak.LayerType.SOLID, 10),
(paramak.LayerType.SOLID, 40),
(paramak.LayerType.SOLID, 15),
],
triangularity=0.55,
rotation_angle=180,
Expand Down

0 comments on commit 40d537f

Please sign in to comment.