Skip to content
Snippets Groups Projects
Commit b33dfbe5 authored by Gamelin Alexis's avatar Gamelin Alexis
Browse files

Change sign of LongitudinalMap dtau/dt equation

Compared to mbtrack, the head/tail convention is reversed which leads to this sign change.
In this python code, the head is for negative times, t<0.
The sign change allows successful tracking benchmark with mbtrack for pure inductive and resonator impedance
parent 99c35510
No related branches found
No related tags found
No related merge requests found
...@@ -93,7 +93,7 @@ class LongitudinalMap(Element): ...@@ -93,7 +93,7 @@ class LongitudinalMap(Element):
bunch : Bunch or Beam object bunch : Bunch or Beam object
""" """
bunch["delta"] -= self.ring.U0 / self.ring.E0 bunch["delta"] -= self.ring.U0 / self.ring.E0
bunch["tau"] -= self.ring.ac * self.ring.T0 * bunch["delta"] bunch["tau"] += self.ring.ac * self.ring.T0 * bunch["delta"]
class SynchrotronRadiation(Element): class SynchrotronRadiation(Element):
""" """
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment