github.com/PrincetonUniversity/FOCUS ↗
Flexible Optimized Coils Using Space curves
Open this visualization on its own page →
Contributors
15
Lines of Code
2,057
From
2017-04-04
To
2022-12-07
About PrincetonUniversity/FOCUS
FOCUS is a nonlinear optimization code written in Fortran designed to optimize the geometry of three-dimensional coils. The code uses space curves as its mathematical foundation to enable flexible and efficient coil design. A related variant called FAMUS uses the same optimization framework to design permanent magnet systems instead of coils. The project is actively maintained with multiple branches supporting different use cases, including development versions with the latest features and specialized branches for permanent magnet design and legacy functionality.
The code is developed at Princeton University and is intended for researchers and engineers working on stellarator fusion reactors and other applications requiring complex three-dimensional magnetic coil systems. FOCUS handles the computational complexity of optimizing coil shapes to meet specified magnetic field requirements through its nonlinear optimization approach. The project includes comprehensive documentation on its official website and provides complementary post-processing tools through a separate CoilPy repository for analyzing and visualizing results.