Hi all
I have a very trivial question and I am a bit lost in the topics.
I would like to take a twiss ouptut file (.twi), modify (scan) the energy spread and save the new file
Is there a quick way to do this?
Thanks
Marco
modify global beam parameters
Moderators: cyao, michael_borland
-
- Posts: 1933
- Joined: 19 May 2008, 09:33
- Location: Argonne National Laboratory
- Contact:
Re: modify global beam parameters
Marco,
You can try something like this (assuming bash script)
Hope that helps.
--Michael
You can try something like this (assuming bash script)
Code: Select all
for eSpread in 0.01 0.02 0.03 0.04 ; do
sddsprocess original.twi modified-$eSpread.twi -redefine=param,Sdelta0,$eSpread
done
--Michael