Computes, analyzes and optimizes 3D MHD equilibria for stellarators and tokamaks
Project description
Stellarator Equilibrium Solver
DESC computes 3D MHD equilibria by solving the force balance equations. It can also be used for perturbation analysis and sensitivity studies to see how the equilibria change as input parameters are varied.
The theoretical approach and numerical methods used by DESC are presented in this paper [1] and documented at Theory. Please cite our work if you use DESC!
Quick Start
For instructions on installing DESC and its dependencies, see Installation.
The code is run using the syntax python -m desc <path/to/input_file>
and the full list of command line options are given in Command Line Interface.
DESC requires an input file to specify the equilibrium and solver options, and can also accept VMEC input files.
Refer to Inputs for documentation on how to format the input file.
The equilibrium solution is output in both an ASCII text file and a HDF5 binary file, whose formats are detailed in Outputs.
As an example usage, to use DESC to solve for the equilibrium of the high-beta, D-shaped plasma described with the DSHAPE input file, the command from the :bash:’desc’ directory is
python -u -m desc -p examples/DESC/DSHAPE
Where the -u
flag is so Python prints the output of the optimization in real time as opposed to storing in a buffer, and the -p
flag tells DESC to plot the results once it finishes.
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.
docs contains the documentation files.
examples contains example input files along with corresponding VMEC solutions.
tests contains routines for automatic testing.
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.3.29.tar.gz
.
File metadata
- Download URL: desc-opt-0.3.29.tar.gz
- Upload date:
- Size: 125.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.1 importlib_metadata/3.10.0 pkginfo/1.5.0.1 requests/2.23.0 requests-toolbelt/0.9.1 tqdm/4.46.0 CPython/3.7.2
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3a1dd930b32df9d6eabecd7559b4c68c559e293e9ebf2c4cbe79c3a8a3d3ca54 |
|
MD5 | 14fc340bf4c8660204f5a05120ff896f |
|
BLAKE2b-256 | f616d63f20cb31144b1e32eeafbf60be2038b86ce524947665653b56313a131d |
File details
Details for the file desc_opt-0.3.29-py3-none-any.whl
.
File metadata
- Download URL: desc_opt-0.3.29-py3-none-any.whl
- Upload date:
- Size: 123.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.1 importlib_metadata/3.10.0 pkginfo/1.5.0.1 requests/2.23.0 requests-toolbelt/0.9.1 tqdm/4.46.0 CPython/3.7.2
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8ae55d53b7683c43c5321b90edecf3bca9584728580b54d37a6af37b555c600d |
|
MD5 | 64493f9d02ec5c837683719fca10fcfd |
|
BLAKE2b-256 | e1ebfee2fbf9f58a4c218a770a6401081ea0898ebc1bddd907c9105ccf6d4a5b |