Computes, analyzes and optimizes 3D MHD equilibria for stellarators and tokamaks
Project description
Stellarator Optimization Package
DESC solves for and optimizes 3D MHD equilibria using pseudo-spectral numerical methods and automatic differentiation.
The theoretical approach and implementation details used by DESC are presented in the following papers and documented at Theory. Please cite our work if you use DESC!
Dudt, D. & Kolemen, E. (2020). DESC: A Stellarator Equilibrium Solver. [Physics of Plasmas] [pdf]
Panici, D. et al (2023). The DESC Stellarator Code Suite Part I: Quick and accurate equilibria computations. [Journal of Plasma Physics] [pdf]
Conlin, R. et al. (2023). The DESC Stellarator Code Suite Part II: Perturbation and continuation methods. [Journal of Plasma Physics] [pdf]
Dudt, D. et al. (2023). The DESC Stellarator Code Suite Part III: Quasi-symmetry optimization. [Journal of Plasma Physics] [pdf]
Quick Start
The easiest way to install DESC is from PyPI: pip install desc-opt
For more detailed instructions on installing DESC and its dependencies, see Installation.
The best place to start learning about DESC is our tutorials:
Basic fixed boundary equilibrium: running from a VMEC input, creating an equilibrium from scratch
Advanced equilibrium: continuation and perturbation methods.
Free boundary equilibrium: vacuum and or finite beta with external field.
Using DESC outputs: analysis, plotting, saving to VMEC format.
Basic optimization: specifying objectives, fixing degrees of freedom.
Advanced optimization: advanced constraints, precise quasi-symmetry, constrained optimization.
Near axis constraints: loading solutions from QSC/QIC and fixing near axis expansion.
Coil optimization: “second stage” optimization of magnetic coils.
For details on the various objectives, constraints, optimizable objects and more, see the full api documentation.
If all you need is an equilibrium solution, the simplest method is through the command line by giving an input file specifying the equilibrium and solver options, this way can also can also accept VMEC input files.
The code is run using the syntax desc <path/to/inputfile> and the full list of command line options are given in Command Line Interface. (Note that you may have to prepend the command with python -m)
Refer to Inputs for documentation on how to format the input file.
The equilibrium solution is output in a HDF5 binary file, whose format is detailed in Outputs.
Repository Contents
desc contains the source code including the main script and supplemental files. Refer to the API documentation for details on all of the available functions and classes.
docs contains the documentation files.
tests contains routines for automatic testing.
publications contains PDFs of publications by the DESC group, as well as scripts and data to reproduce the results of these papers.
Contribute
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 Distribution
File details
Details for the file desc_opt-0.12.1.tar.gz
.
File metadata
- Download URL: desc_opt-0.12.1.tar.gz
- Upload date:
- Size: 2.0 MB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.9.19
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 460b05cc546b5b72231068d83b83f10af355477e87318325e90ac067b2da4159 |
|
MD5 | 815cae0b9ab4d6a34114740cb4cf05a9 |
|
BLAKE2b-256 | d87b1761656ff78254865dd104f51d7e89f689c434dee24432ef58a0f313e8f1 |
File details
Details for the file desc_opt-0.12.1-py3-none-any.whl
.
File metadata
- Download URL: desc_opt-0.12.1-py3-none-any.whl
- Upload date:
- Size: 1.9 MB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.9.19
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | b7c482c009dce1b9455af0b7f8263e83ab9586cad873ba0f57e1d46fc582738d |
|
MD5 | 4c3d06afbf1bb032d9a3f0e37e1baf0e |
|
BLAKE2b-256 | 5bdf88796d6a1e5b87fc1b505fbefe834691622741fa1dbe4065e70402cc08f4 |