Skip to main content

Computes, analyzes and optimizes 3D MHD equilibria for stellarators and tokamaks

Project description

https://raw.githubusercontent.com/PlasmaControl/DESC/master/docs/_static/images/logo_med_clear.png

Stellarator Equilibrium Solver

License DOI Documentation Tests Coverage GitHub issues Pypi

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

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 code is run using the syntax desc <path/to/input_file> and the full list of command line options are given in Command Line Interface. (Note that if you may have to prepend the command with python -m) 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 a HDF5 binary file, whose format is 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 DESC directory is desc -p examples/DESC/DSHAPE Where 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 and classes.

  • docs contains the documentation files.

  • examples contains example input files along with corresponding VMEC solutions.

  • tests contains routines for automatic testing.

Contribute

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

desc-opt-0.4.10.tar.gz (155.3 kB view details)

Uploaded Source

Built Distribution

desc_opt-0.4.10-py3-none-any.whl (154.9 kB view details)

Uploaded Python 3

File details

Details for the file desc-opt-0.4.10.tar.gz.

File metadata

  • Download URL: desc-opt-0.4.10.tar.gz
  • Upload date:
  • Size: 155.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/4.6.1 pkginfo/1.7.1 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.61.2 CPython/3.9.6

File hashes

Hashes for desc-opt-0.4.10.tar.gz
Algorithm Hash digest
SHA256 7067d014994b5e2530490490543ee7232b379ea0381e1cbf4bfcf9cceaec766a
MD5 9de52d956642e23a31d1932b21c26e48
BLAKE2b-256 2ef3606f50b621b22e031af6758d61dfe66915295d2eda995e66bc3a71764d28

See more details on using hashes here.

File details

Details for the file desc_opt-0.4.10-py3-none-any.whl.

File metadata

  • Download URL: desc_opt-0.4.10-py3-none-any.whl
  • Upload date:
  • Size: 154.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/4.6.1 pkginfo/1.7.1 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.61.2 CPython/3.9.6

File hashes

Hashes for desc_opt-0.4.10-py3-none-any.whl
Algorithm Hash digest
SHA256 4c4ac061764970ae81afc4a810ad91fc9600dd245bb8116bbd9d18551de8a6ec
MD5 8dab8abc6b08ca92e5863a4b4007d5c8
BLAKE2b-256 cb5ece6b59f527f6e34a484d66e45176e122250071acca031d69f3c6b0c66baf

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page