Skip to content

Calin/imas#162

Closed
calin1989 wants to merge 2 commits intoOpenFUSIONToolkit:developfrom
calin1989:Calin/IMAS
Closed

Calin/imas#162
calin1989 wants to merge 2 commits intoOpenFUSIONToolkit:developfrom
calin1989:Calin/IMAS

Conversation

@calin1989
Copy link
Collaborator

Work in progress

Sophia Puscalau and others added 2 commits February 17, 2026 20:35
Task 1 - Add 'imas' input type to equilibrium inputs:
- Add read_imas() function to ReadEquilibrium.jl that extracts
  psi(R,Z), F(psi), P(psi), q(psi) from an IMAS data dictionary (dd)
  and returns a DirectRunInput for the existing direct solver
- Add 'imas' dispatch case to setup_equilibrium() in Equilibrium.jl

Task 2 - Declare IMASdd.jl as a package dependency:
- Add IMASdd (uuid: c5a45a97-b3f9-491c-b9a7-aa88c3bc0067) to
  Project.toml [deps] and [compat] (>=8)
- Correct import from IMAS to IMASdd in Equilibrium.jl

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
…ts to dd

Tasks completed:
- Task 1: add read_imas() to ReadEquilibrium.jl — loads full plasma equilibrium
  (psi, q, p, F, dV/dpsi, 2D flux map) from an IMASdd.dd, with COCOS 11→2
  conversion (factor 1/2pi for psi, 2pi for q)
- Task 2: register IMASdd and EFIT as dependencies in Project.toml
- Task 3: add DCON.Main(path, dd) overload in Main.jl so DCON can be
  initialised directly from a dd without reading equil.toml from disk
- Task 4: add test/runtests_imas.jl — 27 automated tests covering the
  read_imas round-trip (gEQDSK→dd→JPEC matches gEQDSK→JPEC to <1%) and
  write_imas correctness; registered in runtests.jl
- Task 5: add WriteImas.jl with write_imas() — writes DCON energy eigenvalues
  and toroidal mode numbers into dd.mhd_linear after every IMAS-path run

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
@logan-nc
Copy link
Collaborator

logan-nc commented Mar 6, 2026

replaced with #183

@logan-nc logan-nc closed this Mar 6, 2026
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.

2 participants