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!
Question about Parameter Scan Example?
Moderators: cyao, michael_borland
Question about Parameter Scan Example?
- Attachments
-
- runScript.ele
- Had to change the file extension!
- (692 Bytes) Downloaded 892 times
-
- quad.ele
- (1000 Bytes) Downloaded 882 times
-
- Posts: 1959
- Joined: 19 May 2008, 09:33
- Location: Argonne National Laboratory
- Contact:
Re: Question about Parameter Scan Example?
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
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
Re: Question about Parameter Scan Example?
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 :/.
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 :/.
-
- Posts: 1959
- Joined: 19 May 2008, 09:33
- Location: Argonne National Laboratory
- Contact:
Re: Question about Parameter Scan Example?
Give this a try.
--Michael
--Michael
- Attachments
-
- example.tar.gz
- (884 Bytes) Downloaded 885 times