Page 1 of 1

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

Posted: 28 Aug 2023, 16:08
by gpark
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

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

Posted: 29 Aug 2023, 09:54
by michael_borland
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