PlaNet: reconstruction of plasma equilibrium and separatrix using convolutional physics-informed neural operator. See https://doi.org/10.1016/j.fusengdes.2024.114193
Project description
PlaNet: plasma equilibrium reconstruction using physics-informed neural operator.
This is the official repository if the planet package. It is a PyTorch implementation of PlaNet (PLAsma equilibrium reconstruction NETwork), a convolutional physics-informed neural operator for performing plasma equilibrium reconstruction using magnetic and non-magnetic measurements.
For any kind of reference on the model architecture or the mathematical formulation, see this paper. The original work was developed using TensorFlow, as mentioned in the paper. This is a polished and optimized version, using modern PyTorch and PyTorch Lightning.
Installation
First, create a virtual environment using venv
python3.10 -m venv venv
source venv/bin/activate
then install the package and all the dependencies using poetry
pip3 install poetry==1.8.3
poetry config virtualenvs.create false
poetry install
Data
To train and test PlaNet you can use the dataset available at this repo, containing ~85k equilibria of an ITER-like devices. All the equilibria have been computed numerically using the free-boundary Grad-Shafranov solver FRIDA, which is publicly available here.
Tutorials
There are tutorial notebooks available to get started with planet:
- 1_dataset_creation.ipynb: show how to create and format your data to perform trainign and inference using the PlaNet model.
- 2_model_training.ipynb: shows how to perfrom a full training of the PlaNet model using PyTorch Lightning`.
- 3_load_pretrained_and_prediction.ipynb: shows how to load a pretrained model and how to use if to perform reconstruction of plasma equilibrium and to estimate the Grad-Shafranov operator.
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 planet_equil-0.1.0.tar.gz.
File metadata
- Download URL: planet_equil-0.1.0.tar.gz
- Upload date:
- Size: 2.9 MB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.10.17
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
8f061d69fd7e38c01583a3e5f4814e216bd22bef652c2fb6dd0c34e0ecef9ac4
|
|
| MD5 |
cad1eaf329ab0dc1436b3d3f8d6b6cd7
|
|
| BLAKE2b-256 |
5085601b39e337ddd21144709b708c7976770fca1e813fc9a8ab9547ad615f96
|
File details
Details for the file planet_equil-0.1.0-py3-none-any.whl.
File metadata
- Download URL: planet_equil-0.1.0-py3-none-any.whl
- Upload date:
- Size: 2.9 MB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.10.17
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
9d35f026ffc4e88cce97a37dae73021479240b4e92efec7b4696233ce60697d7
|
|
| MD5 |
a3b1451950126086c0a0f29cbfce6313
|
|
| BLAKE2b-256 |
ee30ef0998ff9db80941317bca143a54fd403e34dc9bb4c1b4dad99e85f23b6c
|