fibe
FIxed Boundary Equilibrium (FIBE) solver for tokamak plasma geometries in pure Python
Installation
This package is available on PyPI, so installation can simply be done with:
pip install fibe
However, if you wish to make modifications to the source code or use alpha versions, it is possible to install via:
git clone <this_repo>
pip install [--user] -e fibe
Quick setup
Using the following lines in your script should allow for quick setup (parameters in <> are user-defined):
from fibe import FixedBoundaryEquilibrium
eq = FixedBoundaryEquilibrium()
eq.define_grid_and_boundary_with_mxh(
nr=129,
nz=129,
rgeo=<R0_m>,
zgeo=<Z0_m>,
rminor=<Rmin_m>,
kappa=<kappa>,
cos_coeffs=[0.0, 0.0, 0.0],
sin_coeffs=[0.0, np.arcsin(<delta>), -<zeta>],
)
eq.initialize_profiles_with_minimal_input(<P0_Pa>, <Ip_A>, <Bt_T>)
eq.initialize_psi()
eq.solve_psi()
To view the solution in script:
eq.plot_contour()
eq.plot_profiles()
To save the output in GEQDSK format:
eq.to_geqdsk(<geqdsk_filename>)
Metadata
Release files for fibe 0.5.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| fibe-0.5.0.tar.gz | 188.6 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| fibe-0.5.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 270.9 kB
Release files / fibe-0.5.0.tar.gz
| Download URL | fibe-0.5.0.tar.gz |
|---|---|
| Size | 188.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
812099e58712fab947855e835162e88c70e0487176502529e2d4baf8121d6746
|
|
BLAKE2b-256 checksum How to use checksums |
f881ed8dbcec08545f0eb70804c627ffea1d37b24821b7c32b11401f28a2ace4
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.12.12
|
Release files / fibe-0.5.0-py3-none-any.whl
| Download URL | fibe-0.5.0-py3-none-any.whl |
|---|---|
| Size | 82.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
1302ef2b9521b9a31c5a5a1fc6ff6d59529baee70d91e395f3f99b711263027d
|
|
BLAKE2b-256 checksum How to use checksums |
e69c44e142d7e8e12c1d17b1843ef1e19fae48b1acd4809f264f60db9f415312
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.12.12
|