Skip to content

Commit

Permalink
f_psi_sign has been added in torpex.py for signed Bp
Browse files Browse the repository at this point in the history
  • Loading branch information
HarukiST committed Sep 18, 2024
1 parent 7d849d3 commit f7e7882
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions hypnotoad/cases/torpex.py
Original file line number Diff line number Diff line change
Expand Up @@ -206,6 +206,9 @@ def __init__(self, equilibOptions, meshOptions):
"direction of plasma current should be clockwise to be "
"consistent with sign of grad(psi)"
)

self.f_psi_sign = numpy.sign(psi_bndry - psi_axis)

# index of a point close to the magnetic axis
i_axis = numpy.searchsorted(R, R_axis)
j_axis = numpy.searchsorted(Z, Z_axis)
Expand Down

0 comments on commit f7e7882

Please sign in to comment.