R Matrix For Every Element?

Moderators: cyao, michael_borland

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

R Matrix For Every Element?

Post by Zamank » 03 Dec 2013, 12:03

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).
Attachments
help.ele
(1.8 KiB) Downloaded 154 times

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

Re: R Matrix For Every Element?

Post by michael_borland » 03 Dec 2013, 12:37

Please post the .lte file. Don't see any obvious problem with the .ele file.

--Michael

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

Re: R Matrix For Every Element?

Post by Zamank » 03 Dec 2013, 12:49

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!
Attachments
help.lte
(173.81 KiB) Downloaded 142 times

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

Re: R Matrix For Every Element?

Post by michael_borland » 03 Dec 2013, 13:00

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
Attachments
help.lte
(156.59 KiB) Downloaded 178 times
help.ele
(1.51 KiB) Downloaded 177 times

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

Re: R Matrix For Every Element?

Post by Zamank » 03 Dec 2013, 13:41

Yup, that fixed it...so simple too :?

Thanks a bunch Michael!

Post Reply