Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Save Jpar0 to output tokamak grids #177

Open
wants to merge 9 commits into
base: master
Choose a base branch
from
Open

Save Jpar0 to output tokamak grids #177

wants to merge 9 commits into from

Conversation

bendudson
Copy link
Contributor

Reads ffprime, pprime from geqdsk file; passes through to regions, calculates Jpar0, and saves to the output grid.

  • Closes #xxxx
  • Tests added
  • Udated manual
  • Updated doc/whats-new.md with a summary of the changes

bendudson added 9 commits July 5, 2024 15:38
Reads ffprime, pprime from geqdsk file;
passes through to regions, calculates Jpar0
and saves to the output grid
H.Seto noted that in the COCOS +1 convention that Hypnotoad assumes,
Jpar has a minus sign.
Used to detect when outside the core plasma. Test cases have no
X-points so no psi_bdry.
Use Scipy.interpolate to differentiate w.r.t psi and save
to the output geqdsk file.
Jpar0 isn't in the reference grid files so integrated tests fail.
InterpolatedUnivariateSpline requires monotonically increasing X axis,
so reverse sign of psi in negative Bp case.
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.

1 participant