freegs-plasma / freegs

Free boundary Grad-Shafranov solver
http://freegs.readthedocs.io/en/latest/
GNU Lesser General Public License v3.0
91 stars 53 forks source link

ShapedCoil fix: Multiply control response by turns #75

Closed bendudson closed 1 year ago

bendudson commented 1 year ago

The toroidal current is coil.current * coil.turns but the turns variable was not used in the calculation of the flux or field components.

This change should bring ShapedCoil in line with other coils in their behaviour.

Fixes #74