removed x boundary
This commit is contained in:
parent
cb1a2d1346
commit
047ab7388d
|
@ -26,9 +26,9 @@ class BrownIterator(object):
|
||||||
self._ys = self._ys + np.sin(theta)
|
self._ys = self._ys + np.sin(theta)
|
||||||
|
|
||||||
# Reflect the particles
|
# Reflect the particles
|
||||||
self._xs[self._xs > 3] += 1.5 * (3 - self._xs[self._xs > 3])
|
#self._xs[self._xs > 3] += 1.5 * (3 - self._xs[self._xs > 3])
|
||||||
self._ys[self._ys > 3] += 1.5 * (3 - self._ys[self._ys > 3])
|
self._ys[self._ys > 3] += 1.5 * (3 - self._ys[self._ys > 3])
|
||||||
self._xs[self._xs < -3] += 1.5 * (-3 - self._xs[self._xs < -3])
|
#self._xs[self._xs < -3] += 1.5 * (-3 - self._xs[self._xs < -3])
|
||||||
self._ys[self._ys < -3] += 1.5 * (-3 - self._ys[self._ys < -3])
|
self._ys[self._ys < -3] += 1.5 * (-3 - self._ys[self._ys < -3])
|
||||||
|
|
||||||
return self._xs, self._ys
|
return self._xs, self._ys
|
||||||
|
|
Loading…
Reference in New Issue
Block a user