Python package for running and analysing gyrokinetic simulations
Project description
# Pyrokinetics
This project aims to standardise gyrokinetic analysis.
A general pyro object can be loaded either from simulation/experimental data or from an existing gyrokinetics file.
In general pyrokinetics can do the following
- Read data in from:
Gyrokinetic input files
Simulations outputs
Write input files for various GK codes
WIP: Generate N-D pyro object for scans
WIP: Read in gyrokinetic outputs
WIP: Standardise analysis of gk outputs
At a minimum pyrokinetics needs the local geometry and species data. Example scripts can be found in the examples folder
## Installation
Install pyrokinetics with
`bash $ git clone https://github.com/bpatel2107/pyrokinetics.git $ cd pyrokinetics $ python setup.py install --user ` ## Code structure
Pyro object comprised of
- Equilibrium
- LocalGeometry
Miller
Fourier (to be added)
- Kinetics
LocalSpecies
Numerics
GKCodes
There also exists the PyroScan object which allows you to make a N-D parameter scan of Pyro objects
## Supports sources of Equilibrium data pyrokinetics currently supports * GEQDSK
Future formats to be added are * CHEASE
## Supported sources of Kinetic data
Sources of kinetic profile data currently supported are * SCENE * JETTO * TRANSP
Future codes to be add * SimDB * OMFIT
## Supported GK codes
The following gk codes are supported in pyrokinetics
CGYRO
GS2
Codes to be added in the future * GENE * TGLF
## Note on units
The pyro object uses standardised reference values to normalise the results. It will automatically handle converting to a GK codes standard units.
Note any scans/parameter changes made will be in standard pyro units so please account for this.
Reference values - <img src=”https://latex.codecogs.com/gif.latex?%5Cbg_white%20%5CLARGE%20T_%7Bref%7D%20%3D%20T_e” /> - <img src=”https://latex.codecogs.com/gif.latex?%5Cbg_white%20%5CLARGE%20n_%7Bref%7D%20%3D%20n_e” /> - <img src=”https://latex.codecogs.com/gif.latex?%5Cbg_white%20%5CLARGE%20m_%7Bref%7D%20%3D%20m_D” /> - <img src=”https://latex.codecogs.com/gif.latex?%5Cbg_white%20%5CLARGE%20v_%7Bref%7D%20%3D%20c_s%20%3D%20%5Csqrt%7BT_e/m_D%7D” /> - <img src=”https://latex.codecogs.com/gif.latex?%5Cbg_white%20%5CLARGE%20B_%7Bref%7D%20%3D%20B_0” /> - <img src=”https://latex.codecogs.com/gif.latex?%5Cbg_white%20%5CLARGE%20L_%7Bref%7D%20%3D%20a_%7Bmin%7D” /> - <img src=”https://latex.codecogs.com/gif.latex?%5Cbg_white%20%5CLARGE%20t_%7Bref%7D%20%3D%20a_%7Bmin%7D/c_s” /> - <img src=”https://latex.codecogs.com/gif.latex?%5Cbg_white%20%5CLARGE%20%5Crho_%7Bref%7D%20%3D%20%5Cfrac%7Bc_s%7D%7BeB_0/m_D%7D” />
It is possible to change the reference units but proceed with caution
## Documentation
[Documentation](https://linktodocumentation)
## Used By
This project is used by the following institutions
CCFE
University of York
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
File details
Details for the file pyrokinetics-0.0.0.tar.gz
.
File metadata
- Download URL: pyrokinetics-0.0.0.tar.gz
- Upload date:
- Size: 24.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.1 importlib_metadata/4.3.0 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.61.0 CPython/3.8.10
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0946b4a743afac2c653cc6761b87abca0189461cb291af0442f08daeb1ee538b |
|
MD5 | fb40c96d8c18f270ff6831083767a5a1 |
|
BLAKE2b-256 | 60108b040b2bff0d1a6cb16b347820264e2622efb181ebaeea5fc9d439d30364 |
File details
Details for the file pyrokinetics-0.0.0-py3-none-any.whl
.
File metadata
- Download URL: pyrokinetics-0.0.0-py3-none-any.whl
- Upload date:
- Size: 31.3 MB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.1 importlib_metadata/4.3.0 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.61.0 CPython/3.8.10
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | a2394903e6a77d1a7a98182fbd8625693e3a34ae3c384cdd0a9efad2305935f5 |
|
MD5 | b775aee8053c180fc09c74e9fa13c32c |
|
BLAKE2b-256 | 5354f5522f4b8e4cc00d5c671cf8d3457f3ea5331054a0ecc83d00850452d4ba |