Skip to content

Flux average#43

Merged
kpentland merged 2 commits into
mainfrom
flux_averages
Aug 20, 2025
Merged

Flux average#43
kpentland merged 2 commits into
mainfrom
flux_averages

Conversation

@kpentland
Copy link
Copy Markdown
Collaborator

@kpentland kpentland commented Aug 1, 2025

I have added a new method to equilibrium.py that allows one to calculate the flux averaged value of any user-defined 2D scalar field. It uses line integrals to integrate over flux contours inside the last closed flux surface. See the new method for the formula it implements.

Also see here for an example of how it is used in FreeGSNKE.

kpentland and others added 2 commits July 30, 2025 15:27
@kpentland kpentland requested a review from nicamo August 1, 2025 10:01
@kpentland kpentland added the enhancement New feature or request label Aug 1, 2025
@kpentland kpentland merged commit 1374038 into main Aug 20, 2025
1 check passed
@georgeholt1 georgeholt1 deleted the flux_averages branch August 21, 2025 15:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant