Question about Parameter Scan Example?

Moderators: cyao, michael_borland

Post Reply
Zamank
Posts: 59
Joined: 03 Dec 2013, 10:57

Question about Parameter Scan Example?

Post by Zamank » 03 Dec 2013, 19:13

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!
Attachments
runScript.ele
Had to change the file extension!
(692 Bytes) Downloaded 892 times
quad.ele
(1000 Bytes) Downloaded 882 times

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

Re: Question about Parameter Scan Example?

Post by michael_borland » 04 Dec 2013, 09:10

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
Attachments
revised.tar.gz
(993 Bytes) Downloaded 873 times

Zamank
Posts: 59
Joined: 03 Dec 2013, 10:57

Re: Question about Parameter Scan Example?

Post by Zamank » 04 Dec 2013, 14:11

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 :/.

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

Re: Question about Parameter Scan Example?

Post by michael_borland » 04 Dec 2013, 15:05

Give this a try.

--Michael
Attachments
example.tar.gz
(884 Bytes) Downloaded 885 times

Post Reply