Skip to content

Commit

Permalink
f_psi_sign has been added for matfile 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 f7e7882 commit 7653245
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 @@ -297,6 +297,9 @@ def __init__(self, equilibOptions, meshOptions):
f"{eqfile['Z'][0, 0][ZindMid, RindMid]}"
)
self.Bt_axis = Bt[ZindMid, RindMid]

self.f_psi_sign = numpy.sign(0.0 - psi[ZindMid, RindMid]) # H.seto

else:
raise ValueError("Failed to initialise psi function from inputs")

Expand Down

0 comments on commit 7653245

Please sign in to comment.