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 Optimization Package

License DOI GitHub issues Pypi

Documentation UnitTests RegressionTests Coverage

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 these papers [1] [2] [3] [4] 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 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 DESC solutions, which are also accessible using the desc.examples.get function.

  • 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.9.2.tar.gz (2.7 MB view details)

Uploaded Source

Built Distribution

desc_opt-0.9.2-py3-none-any.whl (2.7 MB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: desc-opt-0.9.2.tar.gz
  • Upload date:
  • Size: 2.7 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.9.17

File hashes

Hashes for desc-opt-0.9.2.tar.gz
Algorithm Hash digest
SHA256 61f135b8706da959ddfcb93228c2f8c6904ca3b0fb2d838040f97e64f0d0ae4a
MD5 d7370a996543ef0c26a0f3eb3b225943
BLAKE2b-256 9a945ad30d8eb623100e4b0799f83b30e183f9d129bf21b241a388938c9f4295

See more details on using hashes here.

File details

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

File metadata

  • Download URL: desc_opt-0.9.2-py3-none-any.whl
  • Upload date:
  • Size: 2.7 MB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.9.17

File hashes

Hashes for desc_opt-0.9.2-py3-none-any.whl
Algorithm Hash digest
SHA256 730e74589520efe6bddcd1e844fabbea2ea5d5ebf50a218dfba740e690e6db69
MD5 5d1b8f3000687a3614a913ba597dc977
BLAKE2b-256 b826deeb75b572e4c61b7bdc7a0716d64ce39affa02a81a8490b0cb23d9c64fb

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