Skip to content

Commit 4f50655

Browse files
committed
Clarify RDU example
1 parent f1eebc9 commit 4f50655

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

examples/radial_distance_example.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,10 @@
4848
# symmetric
4949
available_space = enforce_helical_symmetry(available_space)
5050
# Modify available space to account for thickness of magnets
51-
available_space = available_space - max(width, thickness) - 20
51+
tolerance = 5
52+
available_space = available_space - (
53+
np.sqrt(width * width + thickness * thickness) + tolerance
54+
)
5255

5356
# Define a matrix of uniform unit thickness
5457
uniform_unit_thickness = np.ones((len(toroidal_angles), len(poloidal_angles)))

0 commit comments

Comments
 (0)