SkillAgentSearch skills...

PyTokamak

Routines for tokamak analysis

Install / Use

/learn @bendudson/PyTokamak
About this skill

Quality Score

0/100

Supported Platforms

Universal

README

Tokamak utilities in Python

B.Dudson, University of York

Routines for reading tokamak equilibria, calculating flux-surface quantites such as safety factor, collision frequencies, and trapped particle fraction. Neoclassical viscosities and Bootstrap current calculation using Hirshman-Sigmar formalism

tokamak.equilibrium Defines classes FluxSurface and Equilibrium for iterating over and performing calculations on flux surfaces

tokamak.neoclass Neoclassical theory calculations

tokamak.formats.dskgato Reads DSKGATO 't' files tokamak.formats.elite Reads ELITE .inp files

Requirements

NumPy

If SciPy is available, then this is used for the erf and integrate.quad functions. Otherwise fall-back implementations are used

Examples

See the examples_xx.py files

View on GitHub
GitHub Stars23
CategoryDevelopment
Updated1mo ago
Forks9

Languages

Python

Security Score

75/100

Audited on Feb 19, 2026

No findings