From 485b6a4805dffe1660204507841b9c1cdb35c8f4 Mon Sep 17 00:00:00 2001 From: onaumenk Date: Thu, 13 Apr 2023 15:58:31 +0200 Subject: [PATCH] The FullRingandRFTracker has an option to include the induced voltage in the tracking, but it does not update the induced voltage class itself, i.e. if you don't track the induced voltage, it will remain constant. This adds the updating of the induced voltage into the FullRingAndRFTracker, such that if the TotalInducedVoltage class is passed to the tracker, all updates will be done within the FullRingAndRFTracker. This means you do not need to add TotalInducedVoltage classes to the map and track them seperately in the simulation. --- blond/trackers/tracker.py | 1 + 1 file changed, 1 insertion(+) diff --git a/blond/trackers/tracker.py b/blond/trackers/tracker.py index b4b82479..d57c0b1b 100644 --- a/blond/trackers/tracker.py +++ b/blond/trackers/tracker.py @@ -486,6 +486,7 @@ def track(self): if self.interpolation: self.rf_voltage_calculation() if self.totalInducedVoltage is not None: + self.totalInducedVoltage.induced_voltage_sum() self.total_voltage = self.rf_voltage \ + self.totalInducedVoltage.induced_voltage else: