Simplified 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.
- An efficient implementation of the Biot-Savart law, including derivatives.
- Tools for parallelized finite-difference gradient calculations.
Some of the physics modules with compiled code reside in separate repositories. These separate modules include
- VMEC, for MHD equilibrium.
- SPEC, for MHD equilibrium. (This repository is private.)
- booz_xform, for Boozer coordinates and quasisymmetry.
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 make suggestions, contribute, and use.
Several methods are available for installing simsopt
. One
recommended approach is to use pip:
pip install simsopt
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.
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-0.4.0-cp39-cp39-manylinux2010_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | a7dc5fd56131aca4317481aee606a3521298c8c79fca9ee7a367ea3689320a71 |
|
MD5 | b686ed9376bc96f01231c0d481f85b79 |
|
BLAKE2b-256 | 3bd6b2a06ae571f65b1bc67f2a7c748916676aff3214fbb58865cd42039a751c |
Hashes for simsopt-0.4.0-cp39-cp39-macosx_10_15_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5276c4ad977443abb7f9cea5480890e9771e4c60942d381e313b7d9a4fc5fb22 |
|
MD5 | 7b50e8f00cfa84aa450e9b2eb74c8488 |
|
BLAKE2b-256 | 1c20c8c3c3121ba21bec6cb245885f2ef5966db9ba9c01db2963228c685326dd |
Hashes for simsopt-0.4.0-cp38-cp38-manylinux2010_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3d855a347ce3865767c205ed05646bb78ad440de3200b98fc34761c2d78f6636 |
|
MD5 | 39571b015eced977ade05a26c8935f0c |
|
BLAKE2b-256 | 238b98eba9c179c2ce2cbffbe781f03d083628f75bb884e33d1d1d5fdd572105 |
Hashes for simsopt-0.4.0-cp38-cp38-macosx_10_15_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 69150b986c7bffed6e6b331b0e07abbf8d218990f31cbe5d948116e6d6344475 |
|
MD5 | 0ed4e1b972dc9f86a4b7f0d7c1a59a55 |
|
BLAKE2b-256 | 361493786a3429f397fdba908afcc80f6aa8c88f12681d597c815efbc8c99ff7 |
Hashes for simsopt-0.4.0-cp37-cp37m-manylinux2010_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 954b25ac81531910546c1a0221f78ad885d8c103a298f3dd6e9bea1b4fff7e6d |
|
MD5 | 9b9542fafbf8d1badd224f14caf3e87f |
|
BLAKE2b-256 | b65d119ec2f0e5feda775ec559c4a62053490895bdc91d9791a7ff3b36e23b48 |
Hashes for simsopt-0.4.0-cp37-cp37m-macosx_10_15_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 234b85d03fe597df80326e3cc0acdd02f26cb66a8228fa744ac54d2896c815f1 |
|
MD5 | 21ee622d9528c0b8aac18d7f7a29cab6 |
|
BLAKE2b-256 | 4d2a1419d2d90896e1be4efee60db5d955d8a8cfc9d96290b0d7a289d97d1a89 |