desc-opt


Namedesc-opt JSON
Version 0.13.0 PyPI version JSON
download
home_pagehttps://github.com/PlasmaControl/DESC/
SummaryComputes, analyzes and optimizes 3D MHD equilibria for stellarators and tokamaks
upload_time2024-12-04 05:45:08
maintainerNone
docs_urlNone
authorDaniel Dudt, Rory Conlin, Dario Panici, Egemen Kolemen
requires_python>=3.9
licenseMIT
keywords stellarator tokamak equilibrium perturbation mhd magnetohydrodynamics stability confinement plasma physics optimization design fusion
VCS
bugtrack_url
requirements jax colorama diffrax h5py interpax matplotlib mpmath netcdf4 numpy nvgpu orthax plotly psutil pylatexenc scikit-image scipy termcolor
Travis-CI No Travis.
coveralls test coverage No coveralls.
            .. image:: https://raw.githubusercontent.com/PlasmaControl/DESC/master/docs/_static/images/logo_med_clear.png

.. inclusion-marker-do-not-remove

################################
Stellarator Optimization Package
################################
|License| |DOI| |Issues| |Pypi|

|Docs| |UnitTests| |RegressionTests| |Codecov|

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!

- Dudt, D. & Kolemen, E. (2020). DESC: A Stellarator Equilibrium Solver.
  [`Physics of Plasmas <https://doi.org/10.1063/5.0020743>`__]
  [`pdf <https://github.com/PlasmaControl/DESC/blob/master/publications/dudt2020/dudt2020desc.pdf>`__]
- Panici, D. et al (2023). The DESC Stellarator Code Suite Part I: Quick and accurate equilibria computations.
  [`Journal of Plasma Physics <https://doi.org/10.1017/S0022377823000272>`__]
  [`pdf <https://github.com/PlasmaControl/DESC/blob/master/publications/panici2022/Panici_DESC_Stellarator_suite_part_I_quick_accurate_equilibria.pdf>`__]
- Conlin, R. et al. (2023). The DESC Stellarator Code Suite Part II: Perturbation and continuation methods.
  [`Journal of Plasma Physics <https://doi.org/10.1017/S0022377823000399>`__]
  [`pdf <https://github.com/PlasmaControl/DESC/blob/master/publications/conlin2022/conlin2022perturbations.pdf>`__]
- Dudt, D. et al. (2023). The DESC Stellarator Code Suite Part III: Quasi-symmetry optimization.
  [`Journal of Plasma Physics <https://doi.org/10.1017/S0022377823000235>`__]
  [`pdf <https://github.com/PlasmaControl/DESC/blob/master/publications/dudt2022/dudt2022optimization.pdf>`__]

.. _Theory: https://desc-docs.readthedocs.io/en/latest/theory_general.html

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:

- `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`_.

.. _Installation: https://desc-docs.readthedocs.io/en/latest/installation.html
.. _Command Line Interface: https://desc-docs.readthedocs.io/en/latest/command_line.html
.. _Inputs: https://desc-docs.readthedocs.io/en/latest/input.html
.. _Outputs: https://desc-docs.readthedocs.io/en/latest/output.html
.. _Basic fixed boundary equilibrium: https://desc-docs.readthedocs.io/en/latest/notebooks/tutorials/basic_equilibrium.html
.. _Advanced equilibrium: https://desc-docs.readthedocs.io/en/latest/notebooks/tutorials/advanced_equilibrium_continuation.html
.. _Free boundary equilibrium: https://desc-docs.readthedocs.io/en/latest/notebooks/tutorials/free_boundary_equilibrium.html
.. _Using DESC outputs: https://desc-docs.readthedocs.io/en/latest/notebooks/tutorials/use_outputs.html
.. _Basic optimization: https://desc-docs.readthedocs.io/en/latest/notebooks/tutorials/basic_optimization.html
.. _Advanced optimization: https://desc-docs.readthedocs.io/en/latest/notebooks/tutorials/advanced_optimization.html
.. _Near axis constraints: https://desc-docs.readthedocs.io/en/latest/notebooks/tutorials/nae_constraint.html
.. _Coil optimization: https://desc-docs.readthedocs.io/en/latest/notebooks/tutorials/coil_stage_two_optimization.html
.. _api documentation: https://desc-docs.readthedocs.io/en/latest/api.html

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.

.. _desc: https://github.com/PlasmaControl/DESC/tree/master/desc
.. _docs: https://github.com/PlasmaControl/DESC/tree/master/docs
.. _tests: https://github.com/PlasmaControl/DESC/tree/master/tests
.. _publications: https://github.com/PlasmaControl/DESC/tree/master/publications
.. _API: https://desc-docs.readthedocs.io/en/latest/api.html

Contribute
==========

- `Contributing guidelines <https://github.com/PlasmaControl/DESC/blob/master/CONTRIBUTING.rst>`_
- `Issue Tracker <https://github.com/PlasmaControl/DESC/issues>`_
- `Source Code <https://github.com/PlasmaControl/DESC/>`_
- `Documentation <https://desc-docs.readthedocs.io/>`_

.. |License| image:: https://img.shields.io/github/license/PlasmaControl/desc?color=blue&logo=open-source-initiative&logoColor=white
    :target: https://github.com/PlasmaControl/DESC/blob/master/LICENSE
    :alt: License

.. |DOI| image:: https://zenodo.org/badge/DOI/10.5281/zenodo.4876504.svg
   :target: https://doi.org/10.5281/zenodo.4876504
   :alt: DOI

.. |Docs| image:: https://img.shields.io/readthedocs/desc-docs?logo=Read-the-Docs
    :target: https://desc-docs.readthedocs.io/en/latest/?badge=latest
    :alt: Documentation

.. |UnitTests| image:: https://github.com/PlasmaControl/DESC/actions/workflows/unit_tests.yml/badge.svg
    :target: https://github.com/PlasmaControl/DESC/actions/workflows/unit_tests.yml
    :alt: UnitTests

.. |RegressionTests| image:: https://github.com/PlasmaControl/DESC/actions/workflows/regression_tests.yml/badge.svg
    :target: https://github.com/PlasmaControl/DESC/actions/workflows/regression_tests.yml
    :alt: RegressionTests

.. |Codecov| image:: https://codecov.io/gh/PlasmaControl/DESC/branch/master/graph/badge.svg?token=5LDR4B1O7Z
    :target: https://codecov.io/github/PlasmaControl/DESC
    :alt: Coverage

.. |Issues| image:: https://img.shields.io/github/issues/PlasmaControl/DESC
    :target: https://github.com/PlasmaControl/DESC/issues
    :alt: GitHub issues

.. |Pypi| image:: https://img.shields.io/pypi/v/desc-opt
    :target: https://pypi.org/project/desc-opt/
    :alt: Pypi

            

Raw data

            {
    "_id": null,
    "home_page": "https://github.com/PlasmaControl/DESC/",
    "name": "desc-opt",
    "maintainer": null,
    "docs_url": null,
    "requires_python": ">=3.9",
    "maintainer_email": null,
    "keywords": "stellarator tokamak equilibrium perturbation mhd magnetohydrodynamics stability confinement plasma physics optimization design fusion",
    "author": "Daniel Dudt, Rory Conlin, Dario Panici, Egemen Kolemen",
    "author_email": "PlasmaControl@princeton.edu",
    "download_url": "https://files.pythonhosted.org/packages/1e/b5/e5e1b30945c65e30babc7e034d301c7bd0ce28c2db47e1e31459e41b7b48/desc_opt-0.13.0.tar.gz",
    "platform": null,
    "description": ".. image:: https://raw.githubusercontent.com/PlasmaControl/DESC/master/docs/_static/images/logo_med_clear.png\n\n.. inclusion-marker-do-not-remove\n\n################################\nStellarator Optimization Package\n################################\n|License| |DOI| |Issues| |Pypi|\n\n|Docs| |UnitTests| |RegressionTests| |Codecov|\n\nDESC solves for and optimizes 3D MHD equilibria using pseudo-spectral numerical methods\nand automatic differentiation.\n\nThe theoretical approach and implementation details used by DESC are presented in the\nfollowing papers and documented at Theory_. Please cite our work if you use DESC!\n\n- Dudt, D. & Kolemen, E. (2020). DESC: A Stellarator Equilibrium Solver.\n  [`Physics of Plasmas <https://doi.org/10.1063/5.0020743>`__]\n  [`pdf <https://github.com/PlasmaControl/DESC/blob/master/publications/dudt2020/dudt2020desc.pdf>`__]\n- Panici, D. et al (2023). The DESC Stellarator Code Suite Part I: Quick and accurate equilibria computations.\n  [`Journal of Plasma Physics <https://doi.org/10.1017/S0022377823000272>`__]\n  [`pdf <https://github.com/PlasmaControl/DESC/blob/master/publications/panici2022/Panici_DESC_Stellarator_suite_part_I_quick_accurate_equilibria.pdf>`__]\n- Conlin, R. et al. (2023). The DESC Stellarator Code Suite Part II: Perturbation and continuation methods.\n  [`Journal of Plasma Physics <https://doi.org/10.1017/S0022377823000399>`__]\n  [`pdf <https://github.com/PlasmaControl/DESC/blob/master/publications/conlin2022/conlin2022perturbations.pdf>`__]\n- Dudt, D. et al. (2023). The DESC Stellarator Code Suite Part III: Quasi-symmetry optimization.\n  [`Journal of Plasma Physics <https://doi.org/10.1017/S0022377823000235>`__]\n  [`pdf <https://github.com/PlasmaControl/DESC/blob/master/publications/dudt2022/dudt2022optimization.pdf>`__]\n\n.. _Theory: https://desc-docs.readthedocs.io/en/latest/theory_general.html\n\nQuick Start\n===========\n\nThe easiest way to install DESC is from PyPI: ``pip install desc-opt``\n\nFor more detailed instructions on installing DESC and its dependencies, see Installation_.\n\nThe best place to start learning about DESC is our tutorials:\n\n- `Basic fixed boundary equilibrium`_: running from a VMEC input, creating an equilibrium from scratch\n- `Advanced equilibrium`_: continuation and perturbation methods.\n- `Free boundary equilibrium`_: vacuum and or finite beta with external field.\n- `Using DESC outputs`_: analysis, plotting, saving to VMEC format.\n- `Basic optimization`_: specifying objectives, fixing degrees of freedom.\n- `Advanced optimization`_: advanced constraints, precise quasi-symmetry, constrained optimization.\n- `Near axis constraints`_: loading solutions from QSC/QIC and fixing near axis expansion.\n- `Coil optimization`_: \"second stage\" optimization of magnetic coils.\n\nFor details on the various objectives, constraints, optimizable objects and more, see\nthe full `api documentation`_.\n\nIf all you need is an equilibrium solution, the simplest method is through the command\nline by giving an input file specifying the equilibrium and solver options, this\nway can also can also accept VMEC input files.\n\nThe code is run using the syntax ``desc <path/to/inputfile>`` and the full list\nof command line options are given in `Command Line Interface`_. (Note that you may have\nto prepend the command with ``python -m``)\n\nRefer to `Inputs`_ for documentation on how to format the input file.\n\nThe equilibrium solution is output in a HDF5 binary file, whose format is detailed in `Outputs`_.\n\n.. _Installation: https://desc-docs.readthedocs.io/en/latest/installation.html\n.. _Command Line Interface: https://desc-docs.readthedocs.io/en/latest/command_line.html\n.. _Inputs: https://desc-docs.readthedocs.io/en/latest/input.html\n.. _Outputs: https://desc-docs.readthedocs.io/en/latest/output.html\n.. _Basic fixed boundary equilibrium: https://desc-docs.readthedocs.io/en/latest/notebooks/tutorials/basic_equilibrium.html\n.. _Advanced equilibrium: https://desc-docs.readthedocs.io/en/latest/notebooks/tutorials/advanced_equilibrium_continuation.html\n.. _Free boundary equilibrium: https://desc-docs.readthedocs.io/en/latest/notebooks/tutorials/free_boundary_equilibrium.html\n.. _Using DESC outputs: https://desc-docs.readthedocs.io/en/latest/notebooks/tutorials/use_outputs.html\n.. _Basic optimization: https://desc-docs.readthedocs.io/en/latest/notebooks/tutorials/basic_optimization.html\n.. _Advanced optimization: https://desc-docs.readthedocs.io/en/latest/notebooks/tutorials/advanced_optimization.html\n.. _Near axis constraints: https://desc-docs.readthedocs.io/en/latest/notebooks/tutorials/nae_constraint.html\n.. _Coil optimization: https://desc-docs.readthedocs.io/en/latest/notebooks/tutorials/coil_stage_two_optimization.html\n.. _api documentation: https://desc-docs.readthedocs.io/en/latest/api.html\n\nRepository Contents\n===================\n\n- 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.\n- docs_ contains the documentation files.\n- tests_ contains routines for automatic testing.\n- publications_ contains PDFs of publications by the DESC group, as well as scripts and data to reproduce the results of these papers.\n\n.. _desc: https://github.com/PlasmaControl/DESC/tree/master/desc\n.. _docs: https://github.com/PlasmaControl/DESC/tree/master/docs\n.. _tests: https://github.com/PlasmaControl/DESC/tree/master/tests\n.. _publications: https://github.com/PlasmaControl/DESC/tree/master/publications\n.. _API: https://desc-docs.readthedocs.io/en/latest/api.html\n\nContribute\n==========\n\n- `Contributing guidelines <https://github.com/PlasmaControl/DESC/blob/master/CONTRIBUTING.rst>`_\n- `Issue Tracker <https://github.com/PlasmaControl/DESC/issues>`_\n- `Source Code <https://github.com/PlasmaControl/DESC/>`_\n- `Documentation <https://desc-docs.readthedocs.io/>`_\n\n.. |License| image:: https://img.shields.io/github/license/PlasmaControl/desc?color=blue&logo=open-source-initiative&logoColor=white\n    :target: https://github.com/PlasmaControl/DESC/blob/master/LICENSE\n    :alt: License\n\n.. |DOI| image:: https://zenodo.org/badge/DOI/10.5281/zenodo.4876504.svg\n   :target: https://doi.org/10.5281/zenodo.4876504\n   :alt: DOI\n\n.. |Docs| image:: https://img.shields.io/readthedocs/desc-docs?logo=Read-the-Docs\n    :target: https://desc-docs.readthedocs.io/en/latest/?badge=latest\n    :alt: Documentation\n\n.. |UnitTests| image:: https://github.com/PlasmaControl/DESC/actions/workflows/unit_tests.yml/badge.svg\n    :target: https://github.com/PlasmaControl/DESC/actions/workflows/unit_tests.yml\n    :alt: UnitTests\n\n.. |RegressionTests| image:: https://github.com/PlasmaControl/DESC/actions/workflows/regression_tests.yml/badge.svg\n    :target: https://github.com/PlasmaControl/DESC/actions/workflows/regression_tests.yml\n    :alt: RegressionTests\n\n.. |Codecov| image:: https://codecov.io/gh/PlasmaControl/DESC/branch/master/graph/badge.svg?token=5LDR4B1O7Z\n    :target: https://codecov.io/github/PlasmaControl/DESC\n    :alt: Coverage\n\n.. |Issues| image:: https://img.shields.io/github/issues/PlasmaControl/DESC\n    :target: https://github.com/PlasmaControl/DESC/issues\n    :alt: GitHub issues\n\n.. |Pypi| image:: https://img.shields.io/pypi/v/desc-opt\n    :target: https://pypi.org/project/desc-opt/\n    :alt: Pypi\n",
    "bugtrack_url": null,
    "license": "MIT",
    "summary": "Computes, analyzes and optimizes 3D MHD equilibria for stellarators and tokamaks",
    "version": "0.13.0",
    "project_urls": {
        "Contributing": "https://github.com/PlasmaControl/DESC/blob/master/CONTRIBUTING.rst",
        "Documentation": "https://desc-docs.readthedocs.io/",
        "Homepage": "https://github.com/PlasmaControl/DESC/",
        "Issues Tracker": "https://github.com/PlasmaControl/DESC/issues",
        "Source Code": "https://github.com/PlasmaControl/DESC/"
    },
    "split_keywords": [
        "stellarator",
        "tokamak",
        "equilibrium",
        "perturbation",
        "mhd",
        "magnetohydrodynamics",
        "stability",
        "confinement",
        "plasma",
        "physics",
        "optimization",
        "design",
        "fusion"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "256549637a1f42f1ba40639fd33038b1c9a59181266c86b14f69145e4a6db936",
                "md5": "00fd7404e554c72f930bcb8c8a665d24",
                "sha256": "07d24d19cdaced6dcbfc4d5386561ffbb167015b78194dbddea4f19576b8ab8d"
            },
            "downloads": -1,
            "filename": "desc_opt-0.13.0-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "00fd7404e554c72f930bcb8c8a665d24",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.9",
            "size": 1982253,
            "upload_time": "2024-12-04T05:45:05",
            "upload_time_iso_8601": "2024-12-04T05:45:05.675028Z",
            "url": "https://files.pythonhosted.org/packages/25/65/49637a1f42f1ba40639fd33038b1c9a59181266c86b14f69145e4a6db936/desc_opt-0.13.0-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "1eb5e5e1b30945c65e30babc7e034d301c7bd0ce28c2db47e1e31459e41b7b48",
                "md5": "37b3e0ed9f62900dbd082e3fabe1ff90",
                "sha256": "06b5f93d49c5b228948facb68879aaf028002507bdbd57a28b62ba6fa2217b86"
            },
            "downloads": -1,
            "filename": "desc_opt-0.13.0.tar.gz",
            "has_sig": false,
            "md5_digest": "37b3e0ed9f62900dbd082e3fabe1ff90",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.9",
            "size": 2087168,
            "upload_time": "2024-12-04T05:45:08",
            "upload_time_iso_8601": "2024-12-04T05:45:08.086521Z",
            "url": "https://files.pythonhosted.org/packages/1e/b5/e5e1b30945c65e30babc7e034d301c7bd0ce28c2db47e1e31459e41b7b48/desc_opt-0.13.0.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2024-12-04 05:45:08",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "PlasmaControl",
    "github_project": "DESC",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": true,
    "requirements": [
        {
            "name": "jax",
            "specs": [
                [
                    ">=",
                    "0.4.24"
                ],
                [
                    "<",
                    "0.5.0"
                ]
            ]
        },
        {
            "name": "colorama",
            "specs": []
        },
        {
            "name": "diffrax",
            "specs": [
                [
                    ">=",
                    "0.4.1"
                ]
            ]
        },
        {
            "name": "h5py",
            "specs": [
                [
                    ">=",
                    "3.0.0"
                ],
                [
                    "<",
                    "4.0"
                ]
            ]
        },
        {
            "name": "interpax",
            "specs": [
                [
                    ">=",
                    "0.3.3"
                ]
            ]
        },
        {
            "name": "matplotlib",
            "specs": [
                [
                    ">=",
                    "3.5.0"
                ],
                [
                    "<",
                    "4.0.0"
                ]
            ]
        },
        {
            "name": "mpmath",
            "specs": [
                [
                    "<",
                    "2.0"
                ],
                [
                    ">=",
                    "1.0.0"
                ]
            ]
        },
        {
            "name": "netcdf4",
            "specs": [
                [
                    ">=",
                    "1.5.4"
                ],
                [
                    "<",
                    "2.0"
                ]
            ]
        },
        {
            "name": "numpy",
            "specs": [
                [
                    ">=",
                    "1.20.0"
                ]
            ]
        },
        {
            "name": "nvgpu",
            "specs": []
        },
        {
            "name": "orthax",
            "specs": []
        },
        {
            "name": "plotly",
            "specs": [
                [
                    ">=",
                    "5.16"
                ],
                [
                    "<",
                    "6.0"
                ]
            ]
        },
        {
            "name": "psutil",
            "specs": []
        },
        {
            "name": "pylatexenc",
            "specs": [
                [
                    "<",
                    "3.0"
                ],
                [
                    ">=",
                    "2.0"
                ]
            ]
        },
        {
            "name": "scikit-image",
            "specs": []
        },
        {
            "name": "scipy",
            "specs": [
                [
                    ">=",
                    "1.7.0"
                ]
            ]
        },
        {
            "name": "termcolor",
            "specs": []
        }
    ],
    "lcname": "desc-opt"
}
        
Elapsed time: 0.42795s