Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

LTT: Improve output consistency between single and beam #1100

Open
mattsignorelli opened this issue Jul 30, 2024 · 2 comments
Open

LTT: Improve output consistency between single and beam #1100

mattsignorelli opened this issue Jul 30, 2024 · 2 comments
Assignees

Comments

@mattsignorelli
Copy link
Contributor

No description provided.

@DavidSagan DavidSagan self-assigned this Aug 4, 2024
@DavidSagan
Copy link
Member

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

@mattsignorelli
Copy link
Contributor Author

mattsignorelli commented Aug 9, 2024

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:

  • Consistency between single and beam tracking output (both should either do every element, or every turn. Not every element for single, but the last turn for beam, as is currently done)
  • For an open beamline, the default both for single (single.dat) and beam tracking (.ave, .emit, etc) should print every element
  • For a closed lattice, the default for both single and beam tracking should be turn-by-turn

@mattsignorelli mattsignorelli changed the title LTT: x_output_every_n_turns defaults to -1 for single LTT: Improve output consistency between single and beam Aug 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants