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

Commits on Jul 5, 2024

  1. Save Jpar0 to output tokamak grids

    Reads ffprime, pprime from geqdsk file;
    passes through to regions, calculates Jpar0
    and saves to the output grid
    bendudson committed Jul 5, 2024
    Configuration menu
    Copy the full SHA
    27b919e View commit details
    Browse the repository at this point in the history

Commits on Jul 31, 2024

  1. Fix sign of Jpar0

    H.Seto noted that in the COCOS +1 convention that Hypnotoad assumes,
    Jpar has a minus sign.
    bendudson committed Jul 31, 2024
    Configuration menu
    Copy the full SHA
    88a8d38 View commit details
    Browse the repository at this point in the history
  2. tokamak: Ignore missing psi_bdry in ffprime and pprime functions

    Used to detect when outside the core plasma. Test cases have no
    X-points so no psi_bdry.
    bendudson committed Jul 31, 2024
    Configuration menu
    Copy the full SHA
    642e0d0 View commit details
    Browse the repository at this point in the history
  3. geqdsk writer: Calculate ffprime and pprime if not set

    Use Scipy.interpolate to differentiate w.r.t psi and save
    to the output geqdsk file.
    bendudson committed Jul 31, 2024
    Configuration menu
    Copy the full SHA
    2f024c3 View commit details
    Browse the repository at this point in the history

Commits on Aug 1, 2024

  1. integrated test: Add Jpar0 to expected difference

    Jpar0 isn't in the reference grid files so integrated tests fail.
    bendudson committed Aug 1, 2024
    Configuration menu
    Copy the full SHA
    f769c3b View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    d4653e6 View commit details
    Browse the repository at this point in the history

Commits on Aug 2, 2024

  1. Configuration menu
    Copy the full SHA
    e0b3d22 View commit details
    Browse the repository at this point in the history
  2. Check for poloidal field sign before fitting spline

    InterpolatedUnivariateSpline requires monotonically increasing X axis,
    so reverse sign of psi in negative Bp case.
    bendudson committed Aug 2, 2024
    Configuration menu
    Copy the full SHA
    fe21db9 View commit details
    Browse the repository at this point in the history

Commits on Aug 3, 2024

  1. Fix spline signs

    bendudson committed Aug 3, 2024
    Configuration menu
    Copy the full SHA
    521ec7e View commit details
    Browse the repository at this point in the history