Read off the one-turn matrix from the result files?

Moderators: cyao, michael_borland

Post Reply
gpark
Posts: 18
Joined: 07 Dec 2017, 13:15

Read off the one-turn matrix from the result files?

Post by gpark » 28 Aug 2023, 16:08

Is there a way I can read off the numerical values of the 6 x6 one-turn matrix from one of the result files after I ran the code ? I know it is possible in MadX. If it is available in the ELEGAT, could you tell me how to do it ?

Thanks,
Gunn

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

Re: Read off the one-turn matrix from the result files?

Post by michael_borland » 29 Aug 2023, 09:54

Gunn,

There are two ways to get this.

You can supply a filename for the final output in the run_setup command. You'll find the Rij values in parameters in that output file. This is convenient if you are varying something in the system and want to see how the matrix elements change as a function of the variable parameter.

You can also use the matrix_output command to get the s-dependent matrix elements, or just the full-turn matrix by setting full_matrix_only=1. This allows getting not only the linear matrix, but also higher-order matrix elements.

--Michael

Post Reply