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 the following papers 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 best place to start learning about DESC is our tutorials:

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


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.12.3.tar.gz (2.1 MB view details)

Uploaded Source

Built Distribution

desc_opt-0.12.3-py3-none-any.whl (2.0 MB view details)

Uploaded Python 3

File details

Details for the file desc_opt-0.12.3.tar.gz.

File metadata

  • Download URL: desc_opt-0.12.3.tar.gz
  • Upload date:
  • Size: 2.1 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.9.20

File hashes

Hashes for desc_opt-0.12.3.tar.gz
Algorithm Hash digest
SHA256 73739169c55a9cfdd4ba8a5378a8c17936f6d92800ab218d006a6c55302a2694
MD5 2ea958688f692d109c85ef95c69f00fc
BLAKE2b-256 7f7a6c2313aa843e39e6f00762783c67471d5cd11507f63430e8128044f6d578

See more details on using hashes here.

File details

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

File metadata

  • Download URL: desc_opt-0.12.3-py3-none-any.whl
  • Upload date:
  • Size: 2.0 MB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.9.20

File hashes

Hashes for desc_opt-0.12.3-py3-none-any.whl
Algorithm Hash digest
SHA256 04455e772d0e1bb8629a911654f6d4227091d564a6717a4760af6b35a8a5623c
MD5 547fd0e425833260e2e4f345531165cd
BLAKE2b-256 5c96de0910f9f4c3f240ebf4d1b322972c9d27aa3944b2fb7a15a1339c940deb

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