Page 1 of 1

EMATRIX - third order

Posted: 26 Aug 2009, 09:29
by tennant
It would be nice if EMATRIX could provide third order terms (e.g. U5666). Is there a quick and dirty way that I could implement that at present? Thanks.

Re: EMATRIX - third order

Posted: 09 Sep 2009, 08:18
by michael_borland
Chris,

I'll add this to the list.

I can't think of a way to do it in the present version.

--Michael

Re: EMATRIX - third order

Posted: 19 Feb 2010, 10:25
by tennant
Michael,

So to implement a third-order transformation I can write the following commands in a script and get the desired result. I know you can call scripts from within Elegant, but when I try to use these command lines, Elegant doesn't run and complains of "get_param_name(): no parameter found in string DPP". Clearly I am not using the SCRIPT element correctly. Any help would be appreciated. Thanks.

cmd1="sddsprocess watch.W4 coordCONVERT.sdds -define=col,pnew,"p $me *" -process=p,ave,pave -process=t,ave,tave -redefine=col,t,"t tave -" -redefine=col,pnew,"p pave -" -define=col,l,"t $clight *" -define=col,dpp,"pnew pave /"

cmd2="sddsprocess coordCONVERT.sdds transformed.sdds -define=col,lnew,"l $M56 dpp * + $T566 dpp sqr * + $W5666 dpp * dpp * dpp * +"

Re: EMATRIX - third order

Posted: 19 Feb 2010, 10:29
by michael_borland
Chris,

The problem is with parsing the lattice file. Can you post or send me the lattice file, or just the SCRIPT element definitions?

--Michael