Skip to content
Snippets Groups Projects
  1. Mar 23, 2022
  2. Mar 07, 2022
  3. Jan 10, 2022
    • Alexis GAMELIN's avatar
      Allow for particle losses in Monitor classes · db49cb81
      Alexis GAMELIN authored
      Add a is_empty property to the Bunch class.
      Add a check_empty optional parameter to the Monitor.track_bunch_data method.
      ProfileMonitor: if the bunch is empty, no profile is saved.
      WakePotentialMonitor: if the bunch is empty, the same from last good turn is saved.
      BunchSpectrumMonitor: if the bunch is empty, the incoherent spectrum is nan.
      db49cb81
  4. Jan 07, 2022
  5. Aug 31, 2021
  6. Aug 17, 2021
  7. Aug 09, 2021
    • Alexis GAMELIN's avatar
      Misc monitor changes · a7c73e5a
      Alexis GAMELIN authored
      Remove TuneMonitor (remplaced by BunchSpectrumMonitor).
      Remove default values for save_very, buffer_size, total_size.
      Set default value for mpi_mode to False.
      Add "xtau"/"ytau" choices for Bunch/BeamSpectrumMonitor classes.
      Set default value for n_fft to None to avoid zero-padding by default.
      Fix WakePotentialMontior n_bin (x2) problem.
      a7c73e5a
  8. Aug 05, 2021
  9. Jul 29, 2021
    • Alexis GAMELIN's avatar
      Add BeamSpectrumMonitor · 8adb9c18
      Alexis GAMELIN authored
      Add a monitor for the coherent beam spectrum (i.e. coupled bunch modes).
      Add utility functions to BunchSpectrumMonitor to know the fft and signal resolution.
      Save the frequency samples for BunchSpectrumMonitor in the hdf5 file.
      8adb9c18
  10. Jul 28, 2021
  11. Jul 02, 2021
  12. Apr 23, 2021
    • Gamelin Alexis's avatar
      Fix TuneMonitor · 7507d659
      Gamelin Alexis authored
      Fix bug when buffer_size=1 in TuneMonitor by switching to init buffer_count to 0. Now total_size should be 1 less.
      Improve plot_tunedata
      7507d659
  13. Apr 21, 2021
  14. Apr 07, 2021
    • Gamelin Alexis's avatar
      Add bunch to bunch monitoring of the CavityMonitor · 4da6ea49
      Gamelin Alexis authored
      Add a dict_dtype optional parameter to Monitor.monitor_init to allow to choose the dtype to use to save the data.
      Improve CavityMonitor to allow for saving beam and cavity phasor for all bunches
      Add a plot_cavitydata function
      Fix a bug on CavityResonator.track -> nturn += 1 at correct time
      Change CavityResonator.track to allow for monitoring the cavity/beam phasor at each bunch
      4da6ea49
  15. Apr 06, 2021
  16. Mar 15, 2021
    • Gamelin Alexis's avatar
      Tracking for CavityResonator · 9be14b74
      Gamelin Alexis authored
      Add tracking to CavityResonator based on the mbtrack implementation but using a analytic formula for speed-up
      Add method to Beam to share longitudinal distributions
      Add methods to Mpi to look for next and previous bunches
      Add start of a CavityMonitor, to improve to deal with multi-cores
      9be14b74
  17. Mar 09, 2021
    • Watanyu Foosang's avatar
      Add action monitor and plot · 3e817be0
      Watanyu Foosang authored
      - cs_invariant method in Bunch is renamed to 'action'.
      - Action is now saved together with BunchMonitor and can be plotted in plot_bunchdata
      3e817be0
  18. Mar 01, 2021
  19. Feb 26, 2021
  20. Dec 18, 2020
  21. Nov 15, 2020
    • Gamelin Alexis's avatar
      Bugfix : PhaseSpaceMonitor · 8010a120
      Gamelin Alexis authored
      Bugfix due to switch to numpy arrays.
      Allow to save less mp than the full number in the bunch.
      
      Bugfix2 : PhaseSpaceMonitor
      8010a120
  22. Nov 10, 2020
  23. Nov 05, 2020
  24. Sep 29, 2020
  25. Jun 10, 2020
    • Gamelin Alexis's avatar
      Rework import · cb8b05d8
      Gamelin Alexis authored
      Remove tools.py to avoid circular import problem with wakefield.py -> merged into wakefield.py
      Remove machines folder to save machine data in a seperate git instance
      Rework import so the code can be used as independant module mbtrack2
      cb8b05d8
  26. May 29, 2020
  27. May 02, 2020
    • Gamelin Alexis's avatar
      Add ProfileMonitor and misc on monitors.py · eba56ed7
      Gamelin Alexis authored
      Add ProfileMonitor to save bunch profile
      Add a track_bunch_data to Monitor class to group the code of track methods from BunchMonitor and PhaseSpaceMonitor
      Implement BeamMonitor for the case without mpi
      Remove hard coded h=416 ! in BeamMonitor
      eba56ed7
  28. Apr 24, 2020
  29. Mar 25, 2020
  30. Mar 24, 2020
    • Gamelin Alexis's avatar
      Monitor with a shared open HDF5 file between cores · b0da65b0
      Gamelin Alexis authored
      The HDF5 is now open only once on all the cores to be able to write in parallel in the same file. The file must be closed at the end of the tracking.
      BeamMonitor is used to save global statistics of all bunches
      Add docstrings
      TODO : Adding a flush() call at some point might be needed !
      b0da65b0
  31. Mar 20, 2020
    • Gamelin Alexis's avatar
      Monitor with open/close · a5daf052
      Gamelin Alexis authored
      Add a monitor module to save tracking data based on h5py
      Bunch Monitor is used to get statistics from a specific bunch
      PhaseSpaceMonitor is used to save the phase space of a specific bunch
      For now the .hdf5 file is opened and closed at each write operation, this seems to cause some problems for mpi.
      a5daf052
Loading