ocelot-collab / ocelot

OCELOT is a multiphysics simulation toolkit designed for studying FEL and storage ring-based light sources.
GNU General Public License v3.0
84 stars 58 forks source link

Plotting issues for results of "GENESIS 1.3" v4 simulations done in one4one mode #204

Closed ZeugAusHH closed 6 months ago

ZeugAusHH commented 9 months ago

Versions of OCELOT in the "GENESIS4 developer branch" need improvement of plotting functions.

Two examples applying for simulations done in one4one mode. Here at the edges of the bunch there can be very small particle numbers (or even zero particles) in the slices.

The result of these two examples is that the actually interesting FEL physics (how do the energy spread, the bunching factor, etc. evolve) is sometimes almost not visible in the plots.

I am currently looking into this. My current idea is to implement a user-adjustable current cut-off, with slices having less than X amps being ignored for the plotting. Unless adjusted by the user, the default cut-off would be zero (= no cut-off).

ZeugAusHH commented 8 months ago

Pull request https://github.com/ocelot-collab/ocelot/pull/205 contains an implementation of this cut-off feature for the beam energy/bunching panel generated by plot_gen4_out_z.