Computes, analyzes and optimizes 3D MHD equilibria for stellarators and tokamaks
Project description
Stellarator Optimization Package
Improvements
Like the original package, but with bounce integrals as well as all the improvements in this fork.
A list of papers which feature DESC can be found here.
Quick Start
The easiest way to install DESC is from PyPI: pip install desc-v2
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
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file desc_v2-1.17.4.tar.gz.
File metadata
- Download URL: desc_v2-1.17.4.tar.gz
- Upload date:
- Size: 2.4 MB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f07c5265688b4f344598237576468239781a07b5eeae9a04c8cad71f9ba92b13
|
|
| MD5 |
e96b3d0a46e99c6dde7a6a1884a63699
|
|
| BLAKE2b-256 |
dc783e5791ba96a40b600dd97c52b3ed2e6b85fb265ec105af6c010ef7b0240f
|
Provenance
The following attestation bundles were made for desc_v2-1.17.4.tar.gz:
Publisher:
release.yml on unalmis/DESC
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
desc_v2-1.17.4.tar.gz -
Subject digest:
f07c5265688b4f344598237576468239781a07b5eeae9a04c8cad71f9ba92b13 - Sigstore transparency entry: 1904009347
- Sigstore integration time:
-
Permalink:
unalmis/DESC@49cf9484f963b2bdbddd63e3cd7a5bf5735394ee -
Branch / Tag:
refs/tags/v1.17.4 - Owner: https://github.com/unalmis
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@49cf9484f963b2bdbddd63e3cd7a5bf5735394ee -
Trigger Event:
release
-
Statement type:
File details
Details for the file desc_v2-1.17.4-py3-none-any.whl.
File metadata
- Download URL: desc_v2-1.17.4-py3-none-any.whl
- Upload date:
- Size: 2.2 MB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
bc01598b47586ef21fabd571ac78afc7512adf7d9a6513bb2c2a92ed22da4484
|
|
| MD5 |
0465a473e38e91c27f278bf4b8e45bbd
|
|
| BLAKE2b-256 |
91f22f6c2caf962c1302c7d6675661d13e76dcf8cbe8f1ab837fc8df182d2ec9
|
Provenance
The following attestation bundles were made for desc_v2-1.17.4-py3-none-any.whl:
Publisher:
release.yml on unalmis/DESC
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
desc_v2-1.17.4-py3-none-any.whl -
Subject digest:
bc01598b47586ef21fabd571ac78afc7512adf7d9a6513bb2c2a92ed22da4484 - Sigstore transparency entry: 1904009486
- Sigstore integration time:
-
Permalink:
unalmis/DESC@49cf9484f963b2bdbddd63e3cd7a5bf5735394ee -
Branch / Tag:
refs/tags/v1.17.4 - Owner: https://github.com/unalmis
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@49cf9484f963b2bdbddd63e3cd7a5bf5735394ee -
Trigger Event:
release
-
Statement type: