How to randomly select one injection beam file from 1001 injection beam files
Posted: 12 Nov 2024, 03:38
Hello,
I am using Elegant for longitudinal jitter simulations. The &error_element command is used to add RF phase and cavity voltage errors. I have 1001 injection beam files (inj_0001.sdds to inj_1001.sdds) from the injector's simulation results. I want to simulate injection beam errors by randomly selecting an injection beam file in each step of the calculation. Assume n_steps=101 in run_control, how to randomly select one injection beam file from 1001 injection beam files at each step of the computation? Can input_list &sdds_beam in work? If it works, how to proceed?
Many thanks for any suggestion,
Zhenbiao
I am using Elegant for longitudinal jitter simulations. The &error_element command is used to add RF phase and cavity voltage errors. I have 1001 injection beam files (inj_0001.sdds to inj_1001.sdds) from the injector's simulation results. I want to simulate injection beam errors by randomly selecting an injection beam file in each step of the calculation. Assume n_steps=101 in run_control, how to randomly select one injection beam file from 1001 injection beam files at each step of the computation? Can input_list &sdds_beam in work? If it works, how to proceed?
Many thanks for any suggestion,
Zhenbiao