Page 1 of 1

Varying the value of charge

Posted: 15 Dec 2020, 02:21
by arahim
I am tracking the particles to study the beam instability. The lattice file includes charge, impedance files and various watch points and other elements. Every time I vary the value of charge in the lattice file, then perform the tracking. I want to use use &vary element in run file to change the charge value from initial to final in defined steps. Please help me to modify my run file accordingly. How can we generate the tracking results in a single .w2 file for all charge values. If I have to generate separate .w2 files for each charge value, then what modifications I have to do. I have attached the run file for the reference.

Re: Varying the value of charge

Posted: 11 Jan 2021, 11:11
by michael_borland
Here's an example of how to do something similar to what you want to do.

--Michael