Page 1 of 1

R Matrix For Every Element?

Posted: 03 Dec 2013, 12:03
by Zamank
Hi All,

Sorry if this is a silly question (I just started with Elegant), but I would like to:

-Get the Rij matrix components for every element in my beamline (namely interested in R56).

I tried putting in the matrix_output option in my .ele file but no 's%.mat' file is written and I get the error:

"warning: 577 elements had no matrix"

Any help would be greatly appreciated. I can provide the .lte/.sdds files needed to run my .ele file (but I'm pretty sure my issue is with my command).

Re: R Matrix For Every Element?

Posted: 03 Dec 2013, 12:37
by michael_borland
Please post the .lte file. Don't see any obvious problem with the .ele file.

--Michael

Re: R Matrix For Every Element?

Posted: 03 Dec 2013, 12:49
by Zamank
Here is the lattice file; I have the other .sdds files, but they are over the 2MB size restriction. If needed I can probably send them to you some other way!

Thanks again in advance!

Re: R Matrix For Every Element?

Posted: 03 Dec 2013, 13:00
by michael_borland
I removed all the references to other files and made some small changes to the .ele file. It works as expected, see attached.

You can do

Code: Select all

% elegant help.ele
% sddsplot -column=s,R56 help.mat
--Michael

Re: R Matrix For Every Element?

Posted: 03 Dec 2013, 13:41
by Zamank
Yup, that fixed it...so simple too :?

Thanks a bunch Michael!