bmad-sim / bmad-ecosystem

Bmad simulation ecosystem for simulating high energy storage rings.
https://www.classe.cornell.edu/bmad/
11 stars 13 forks source link

LTT: Improve output consistency between single and beam #1100

Open mattsignorelli opened 1 month ago

DavidSagan commented 1 month ago

The default of -1 is independent of the mode. I do not understand what the issue is. Please provide details.

mattsignorelli commented 1 month ago

Basically there is a lot of inconsistency between the output for single particle tracking and beam tracking. For example, in 10_LongTermTracking/ParticleTrack, use this init file:

&params
    ltt%lat_file = "ring.bmad"
    ltt%simulation_mode = "SINGLE"
    ltt%tracking_method = "BMAD"
    ltt%n_turns = 30
    ltt%averages_output_file = "data"

    beam_init%n_particle = 1
    beam_init%center = 0, 0, 0, 0, 0, 0
/

single.dat output shows every single element, and all of the data.* files are empty completely. Single tracking prints every element for the particle. Now switch the simulation mode to BEAM and the data.* files only show the last turn. The defaults are different.

Here is what changes I think should be made: