Skip to content

Commit 0e1d92a

Browse files
committed
Add comment to clarify optimization for near-axis field and surface quasisymmetry
1 parent 06e49d1 commit 0e1d92a

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

examples/optimize_coils_and_surface.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -116,6 +116,8 @@ def loss_coils_and_surface(x, surface_all, dofs_curves, currents_scale, nfp, max
116116
AbsB_on_surface = jnp.linalg.norm(B_on_surface(surface, field), axis=2)
117117
B_surface_loss = jnp.abs(jnp.mean(AbsB_on_surface)-target_B_on_surface)
118118

119+
## Add near-axis so that the coils are optimized for the near-axis field and surface quasisymmetry?
120+
119121
return coil_length_loss+coil_curvature_loss+10*normal_cross_GradB_dot_grad_B_dot_GradB_surface\
120122
+bdotn_over_b_loss+30*mean_cross_sectional_area_loss+30*B_surface_loss
121123

0 commit comments

Comments
 (0)