Skip to content

feat(equilibrium): add OMAS tokamak equilibrium import support - #44

Open
duushgu wants to merge 4 commits into
proximafusion:mainfrom
duushgu:feat/omas-tokamak-import
Open

feat(equilibrium): add OMAS tokamak equilibrium import support#44
duushgu wants to merge 4 commits into
proximafusion:mainfrom
duushgu:feat/omas-tokamak-import

Conversation

@duushgu

@duushgu duushgu commented Aug 21, 2026

Copy link
Copy Markdown

Resolves #30.

Adds MagneticConfiguration.from_omas to import axisymmetric tokamak equilibria from ITER IMAS data dictionaries via the omas library.

The importer extracts the 2D poloidal plane variables (R, Z, B_R, B_Z, B_phi, psi) and 1D profiles (rho_tor, V) to construct the structured cylindrical grid expected by the raytracer.
Because this operates on the native (R, Z) rectilinear mesh from profiles_2d, the mapping is completely direct and avoids scatter interpolation.

Resolves proximafusion#30.

Adds `MagneticConfiguration.from_omas` to import axisymmetric tokamak equilibria from ITER IMAS data dictionaries via the `omas` library.

The importer extracts the 2D poloidal plane variables (R, Z, B_R, B_Z, B_phi, psi) and 1D profiles (rho_tor, V) to construct the structured cylindrical grid expected by the raytracer.
Because this operates on the native (R, Z) rectilinear mesh from `profiles_2d`, the mapping is completely direct and avoids scatter interpolation.
@duushgu
duushgu requested a review from DavidMStraub as a code owner August 21, 2026 14:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Import tokamak equilibria

1 participant