Page 1 of 1

Twiss for varied momentum

Posted: 04 Feb 2013, 15:22
by kron
Hi All,

Can elegant calculate twiss parameters for varied momentum?
I try the following:
&twiss_output
filename=%s_0.twi
output_at_each_step=1
radiation_integrals=1
compute_driving_terms=1
concat_order = 2
&end

&run_control
n_indices = 1
n_steps=3
&end
&vary_element name=MAL, item=DP, initial=-0.04, final=0.04, index_number=0, index_limit=2 &end

&bunched_beam &end

&track &end


There is no change when I plot the functions.

Many thanks,
Thapakron

Re: Twiss for varied momentum

Posted: 06 Feb 2013, 10:06
by michael_borland
Thapakron,

Yes, this can be done. Please look in the examples files at elegantExamples/PAR/chromTracking2

--Michael

Re: Twiss for varied momentum

Posted: 06 Feb 2013, 11:28
by kron
Michael
Thanks a lot, It's all clear now.
Thapakron