Skip to content

Commit

Permalink
Add missing R_0 factor to Dommaschk fields. (Thanks @fhindenlang)
Browse files Browse the repository at this point in the history
  • Loading branch information
bshanahan committed Mar 7, 2024
1 parent 6df1209 commit 0fb7b00
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion zoidberg/field.py
Original file line number Diff line number Diff line change
Expand Up @@ -590,7 +590,7 @@ def __init__(self, A, R_0=1.0, B_0=1.0):

Bx = R_0 * diff(self.P, self.R)
By = R_0 / self.R * diff(self.P, self.phi)
Bz = diff(self.P, self.Z)
Bz = R_0 * diff(self.P, self.Z)

self.Sf = lambdify((self.R, self.phi, self.Z), S, "numpy")

Expand Down

0 comments on commit 0fb7b00

Please sign in to comment.