Page 1 of 1

modify global beam parameters

Posted: 27 Sep 2019, 04:49
by marlibgin
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

Re: modify global beam parameters

Posted: 01 Oct 2019, 19:04
by michael_borland
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