Varying the value of charge

Moderators: cyao, michael_borland

Post Reply
Posts: 26
Joined: 08 Jun 2012, 05:28

Varying the value of charge

Post by arahim » 15 Dec 2020, 02:21

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.
(517 Bytes) Downloaded 140 times

Posts: 1801
Joined: 19 May 2008, 09:33
Location: Argonne National Laboratory

Re: Varying the value of charge

Post by michael_borland » 11 Jan 2021, 11:11

Here's an example of how to do something similar to what you want to do.

(1.72 KiB) Downloaded 177 times

Post Reply