Framework for optimizing stellarators
Project description
simsopt
simsopt
is a framework for optimizing
stellarators.
The high-level routines of simsopt
are in python, with calls to C++
or fortran where needed for performance. Several types of components
are included:
- Interfaces to physics codes, e.g. for MHD equilibrium.
- Tools for defining objective functions and parameter spaces for optimization.
- Geometric objects that are important for stellarators - surfaces and curves - with several available parameterizations.
- Efficient implementations of the Biot-Savart law and other magnetic field representations, including derivatives.
- Tools for parallelized finite-difference gradient calculations.
The design of simsopt
is guided by several principles:
- Thorough unit testing, regression testing, and continuous integration.
- Extensibility: It should be possible to add new codes and terms to the objective function without editing modules that already work, i.e. the open-closed principle. This is because any edits to working code can potentially introduce bugs.
- Modularity: Physics modules that are not needed for your optimization problem do not need to be installed. For instance, to optimize SPEC equilibria, the VMEC module need not be installed.
- Flexibility: The components used to define an objective function can
be re-used for applications other than standard optimization. For
instance, a
simsopt
objective function is a standard python function that can be plotted, passed to optimization packages outside ofsimsopt
, etc.
simsopt
is fully open-source, and anyone is welcome to use it, make
suggestions, and contribute.
Several methods are available for installing simsopt
. One
recommended approach is to use pip:
pip install simsopt
For detailed installation instructions on some specific systems, see
the wiki.
Also, a Docker container is available with simsopt
and its components pre-installed, which
can be started using
docker run -it --rm hiddensymmetries/simsopt
More installation options, instructions for the Docker container, and other information can be found in the main simsopt documentation here.
Some of the physics modules with compiled code reside in separate repositories. These separate modules include
- VMEC, for MHD equilibrium.
- SPEC, for MHD equilibrium.
- booz_xform, for Boozer coordinates.
If you use simsopt
in your research, kindly cite the code using
this reference:
[1] M Landreman, B Medasani, F Wechsung, A Giuliani, R Jorge, and C Zhu, "SIMSOPT: A flexible framework for stellarator optimization", J. Open Source Software 6, 3525 (2021).
See also the simsopt publications page.
We gratefully acknowledge funding from the Simons Foundation's Hidden symmetries and fusion energy project.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distributions
Hashes for simsopt-1.0.0-cp311-cp311-musllinux_1_1_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | d5c9c6a55d28d75ad802f7708860a04b9506bd840a7f630789ac4bb15b7f50d3 |
|
MD5 | 77653310eecb94b254276a4a0f97a6b6 |
|
BLAKE2b-256 | c67abf38bc75f76b7ae4b7a8a5ee6d9532e15caeac79927e9d647d20fdbcb815 |
Hashes for simsopt-1.0.0-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0f58a3e260f5054433058ae2627ddb33bc7f0205211550e152caf3f88b2b33ac |
|
MD5 | a9cb41b7f172de1745b440327fe37860 |
|
BLAKE2b-256 | acc7ead6b2c1ad08429d42b813cb8c800a34967d9ee2732ce1e0a501118cd771 |
Hashes for simsopt-1.0.0-cp311-cp311-macosx_11_0_arm64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | b20505bc8e8194fcfb92d5a70ce09c465aa6f01354037237700df90cdbf6a898 |
|
MD5 | 236c287d36619c1e70168cff243fce24 |
|
BLAKE2b-256 | 1ba7c497fae4aba7d31bb27b3e78b3112b58bb15f95c58d4e4098da5fb9505f6 |
Hashes for simsopt-1.0.0-cp311-cp311-macosx_10_9_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1dd0ccc37242ff59f103944b6d057401ff314b7b8eefad88bab4d5da81efd137 |
|
MD5 | 30141cdea36ea2c66b508abae19187d5 |
|
BLAKE2b-256 | ad6083bb9e8dcb9522861039ed79231f4d77d36b701d7a00148f83b0f4bae515 |
Hashes for simsopt-1.0.0-cp310-cp310-musllinux_1_1_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5c068f7a85bce0339c3539440ca3898b8d47f08d026f85498cbf6702487458b1 |
|
MD5 | 61c849fcce9825ae68f3b20653ac8973 |
|
BLAKE2b-256 | 6c209416cafac1ce0ebd3b96e88325446e865cdc7eb4c5edebc648568dc39f75 |
Hashes for simsopt-1.0.0-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 79c3e3270151283486a2fed85a2d9561b16642c17563be85a63d618d30874bca |
|
MD5 | 3b2aab42838fa1cd7a8d6797960a9087 |
|
BLAKE2b-256 | d08be42283346fd4569c68143a7aa0378b6ce9c708dac383c54aa8f7bc23e5ed |
Hashes for simsopt-1.0.0-cp310-cp310-macosx_11_0_arm64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 00f2a32b1259a61dae2186818d4daca7c5475d7b832e3a0c12ba5359c31501e8 |
|
MD5 | 8600513ec250b0a8f350b03668ad58af |
|
BLAKE2b-256 | a844233b7c5cc3499847953bdceb028268a89dcaebc173c48da4ba8db9ce7325 |
Hashes for simsopt-1.0.0-cp310-cp310-macosx_10_9_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 73947b126a4fe37786dc0826fa0c16b9067390e105310ae2b899c11d97ef3f37 |
|
MD5 | c1e972622d14639b35c47a444835b0d7 |
|
BLAKE2b-256 | 7beca647309a70a06402b6d21217fb7d137d5b5381e6ae203a534b4e8101c0e1 |
Hashes for simsopt-1.0.0-cp39-cp39-musllinux_1_1_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2ff0e212d18598c14a7d06a6a1cf8e0241ffdd0f0d8921d4dceaffce99cfc506 |
|
MD5 | 64fa58967f56619d027ba327f4137f0e |
|
BLAKE2b-256 | 99ba349cdc420df4f1cca0da5fc82e7370e9d998b52c70010728cac17bdd4543 |
Hashes for simsopt-1.0.0-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | af07b3e683a0f43577c5dfd99bba1b322c885f2a6cbd4c7445c4cb31e4b447ed |
|
MD5 | abb5e26f0faf490d7eabbe2e06342cff |
|
BLAKE2b-256 | 86f4fed7ae258dc7452fbe92867aa8c09db7ff584ad79efdf8d841865d789c68 |
Hashes for simsopt-1.0.0-cp39-cp39-macosx_11_0_arm64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5716ea5d45677eb34189f07ab5f29d98fcfa015c9f53839e30d352ca810ceb53 |
|
MD5 | 3ab61bebb4a8c5a66b0e518311281f82 |
|
BLAKE2b-256 | 0d580f383d24e506e11182b7ebbe508ca2a054223fbf1a97bc2ec9a3703936b2 |
Hashes for simsopt-1.0.0-cp39-cp39-macosx_10_9_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | f52887ec263991d56c18e1c124355b323684f00a26feb76e4ddd871c5c12023f |
|
MD5 | 36c466dea49df46813b6b0d936269780 |
|
BLAKE2b-256 | 37141650945a0dae2e3105546fd6c35af0c9d6b60e0ac9b027097ae74014f118 |
Hashes for simsopt-1.0.0-cp38-cp38-musllinux_1_1_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1a612f1ac26a2a0adb5ee2f7c4f7fac2849c38df2713ab6677179cccdd763db1 |
|
MD5 | 122a41a902fffadd6f9894a59ef4da5f |
|
BLAKE2b-256 | 7ed813f5afcebe9ac34bc12d993d3ddfa2be305365c8522f1a371d4ce3081f10 |
Hashes for simsopt-1.0.0-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 77094dc316265520507e7a1676fb841cf867392a40faf60017414ab6ad15ac5b |
|
MD5 | d9ae43f91dc3b4ad608a66965fa12d07 |
|
BLAKE2b-256 | bf21aef6af96011d28468d0ff7684f6680546353d5516e4ed270367ab5468106 |
Hashes for simsopt-1.0.0-cp38-cp38-macosx_11_0_arm64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 48700c99844c3bbfac6574062ab4ab58ea2da7a5590e7398891bdc69f95fd63c |
|
MD5 | e0ca92c6b654fcf76b95f80cda7d1a4f |
|
BLAKE2b-256 | 1182c71b733e50a7dfced4ecb14315882590184991d866c63d0a2fecf34d94ee |
Hashes for simsopt-1.0.0-cp38-cp38-macosx_10_9_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 897e03dc8b888e77d9f9893922752e64079eda193126dec2d53fa901cda321b6 |
|
MD5 | b1dd638f93e8dcb1fde61d74bbe35bd0 |
|
BLAKE2b-256 | 74c678132f7dd77b1d34f07729f6ce96d94ccce7e67cca375a8cda3358970354 |