Page 1 of 1

Question about Parameter Scan Example?

Posted: 03 Dec 2013, 19:13
by Zamank
Hi All,

I was looking through the scan parameter example "scanParamters1" and was wondering:

How to get the Twiss parameters (%s.twi) instead of the final parameters (%s.fin)? Or even better how to get both; I tried (code attached), but had no success. The page numbers are zero for my 'quad.twic' file.


Thanks in advance!

Re: Question about Parameter Scan Example?

Posted: 04 Dec 2013, 09:10
by michael_borland
I'm guessing that you want to plot the nominal beta functions as the scan is performed. If so, the attached files should do it.

Of course, these are based on whatever initial beta functions you gave in the &twiss_output command, and don't reflect the determinatin of the sigma matrix by sddsemitproc.

--Michael

Re: Question about Parameter Scan Example?

Posted: 04 Dec 2013, 14:11
by Zamank
Hi Michael,

Thanks for the code. I actually wanted to try and implement the code to:

1. Vary a quad right before my BC
2. Plot the twiss parameters of the beamline for any interesting case "index" of varied quad value (sddsplot quad.twi -col=s,betax)

I've been reading through the documentation and noodling around with it, but still not sure how I would go about doing that :/.

Re: Question about Parameter Scan Example?

Posted: 04 Dec 2013, 15:05
by michael_borland
Give this a try.

--Michael