Skip to content

Commit

Permalink
Add margin to CutRFBucket2D of 1% to avoid leakage of particles out o…
Browse files Browse the repository at this point in the history
…f bucket. Add version update.
  • Loading branch information
like2000 committed Nov 11, 2014
1 parent b47fdab commit 4660100
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion _version.py
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
__version__ = "1.0.2"
__version__ = "1.0.3"

3 changes: 2 additions & 1 deletion trackers/rf_bucket.py
Original file line number Diff line number Diff line change
Expand Up @@ -266,7 +266,8 @@ def is_in_separatrix(self, z, dp):
Returns boolean whether this coordinate is located
strictly inside the separatrix.
"""
return np.logical_and(np.logical_and(self.zleft < z, z < self.zright), self.hamiltonian(z, dp) > 0)
return np.logical_and(np.logical_and(self.zleft < z, z < self.zright),
self.hamiltonian(z, dp) > 0.01 * self.Hmax)

def bucket_area(self):
xmin, xmax = self.zleft, self.zright
Expand Down

0 comments on commit 4660100

Please sign in to comment.