modify global beam parameters

Moderators: cyao, michael_borland

Post Reply
marlibgin
Posts: 54
Joined: 15 Mar 2011, 12:43

modify global beam parameters

Post by marlibgin » 27 Sep 2019, 04:49

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

michael_borland
Posts: 1927
Joined: 19 May 2008, 09:33
Location: Argonne National Laboratory
Contact:

Re: modify global beam parameters

Post by michael_borland » 01 Oct 2019, 19:04

Marco,

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
Hope that helps.

--Michael

Post Reply