Skip to main content

Free boundary tokamak plasma equilibrium Grad-Shafranov solver for time evolution

Project description

FreeGS4E: Free-boundary Grad-Shafranov for Evolution

FreeGS4E is a package forked from FreeGS (v0.6.1), which has the capability to solve the static inverse free-boundary Grad-Shafranov problem for plasma equilibria in tokamak devices.

Its intended usage is as an underlying solver for the dynamic (time-dependent) free-boundary equilibrium solver FreeGSNKE.

The addtion and removal of certain features within FreeGS, as well as some performance optimisation, were neccesary to enable this and so FreeGS4E has now diverged significantly from original FreeGS codebase.

Therefore, FreeGS4E is not intended to be a drop in replacement solver for FreeGS but rather is designed for use explicitly within FreeGSNKE.

Installation

Given FreeGS4E is not a standalone equilibrium solver, we recommend following the installation instructions for FreeGSNKE (which will install FreeGS4E automatically).

If you would, however, like to contribute to FreeGS4E directly, please see the installation instructions in the section on contributing below.

Getting started

All of the examples for getting started can be found within the freegsnke/examples directory.

Contributing

We welcome contributions including bug fixes or new feature requests for FreeGS4E, though we would suggest making these via issues on the FreeGSNKE homepage.

If you would, however, like to install FreeGS4E separately for development purposes, clone this repository, and install the package in editable mode with the development dependencies:

git clone git@github.com:FusionComputingLab/freegs4e.git

cd freegs4e

pip install  -e  ".[dev]"

Changes to the main branch must be made via pull request. If you don't have write access to the repository, pull requests through GitHub forks are welcome.

Pre-commit hooks are used to ensure code quality so do make sure you install the following pre-commit hooks and run them prior submitting pull requests:

pre-commit install

License

Copyright 2024 Nicola C. Amorisco, George K. Holt, Adriano Agnello, and other contributors.

FreeGS4E is licensed under the GNU Lesser General Public License version 3. The license text is included in the file LICENSE.

The license text for FreeGS is reproduced below:

Copyright 2016-2021 Ben Dudson, University of York, and other contributors.
Email: benjamin.dudson@york.ac.uk

This program is free software: you can redistribute it and/or modify
it under the terms of the GNU Lesser General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.

This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
GNU Lesser General Public License for more details.

You should have received a copy of the GNU Lesser General Public License
along with this program.  If not, see <http://www.gnu.org/licenses/>.

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

freegs4e-0.8.0.tar.gz (102.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

freegs4e-0.8.0-py3-none-any.whl (125.2 kB view details)

Uploaded Python 3

File details

Details for the file freegs4e-0.8.0.tar.gz.

File metadata

  • Download URL: freegs4e-0.8.0.tar.gz
  • Upload date:
  • Size: 102.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.3

File hashes

Hashes for freegs4e-0.8.0.tar.gz
Algorithm Hash digest
SHA256 2d1a37a739e07d7fd35f29ba3cf371ab3683e4e073279e025c3cb8747d7ad219
MD5 1c3228ec1097b95fac46886b99f49684
BLAKE2b-256 6d66b251c4ea6513a7467a10ce1adb9a8f6a19740876a2bc160a2859c013f972

See more details on using hashes here.

File details

Details for the file freegs4e-0.8.0-py3-none-any.whl.

File metadata

  • Download URL: freegs4e-0.8.0-py3-none-any.whl
  • Upload date:
  • Size: 125.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.3

File hashes

Hashes for freegs4e-0.8.0-py3-none-any.whl
Algorithm Hash digest
SHA256 21e38aacdad67e037d34e3a53bdda96a9216d6cf761e7116a7f7ba7126e3da48
MD5 d6a6de620ad509e896215cd4df3ed72e
BLAKE2b-256 ce2e10a0a659df09b75fdc5e3d629dc652605974a29ea34951e9991170cda096

See more details on using hashes here.

Supported by

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