Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Tilt + misalignment behaves strange in MAD-X PTC #949

Closed
tpersson opened this issue Aug 28, 2020 · 1 comment
Closed

Tilt + misalignment behaves strange in MAD-X PTC #949

tpersson opened this issue Aug 28, 2020 · 1 comment
Assignees
Labels
bug the behaviour is not documented and should be fixed in the code PTC Related to PTC or MAD-X PTC interface

Comments

@tpersson
Copy link
Contributor

It looks to be like the misalignment is applied in the tilted frame and is therefore moving the magnet in the wrong direction. I attach an example to illustrate:

FASER : SEQUENCE, L = 10;
b1:sbend, angle=138/180.0pi, HGAP=0.0258,e1=0/180.0pi, e2= 0/180.0pi,FINT=0.5 ,TILT=1.0pi, at=5,l=1;
endsequence;

beam;
use, sequence=faser;

eoption, add=true;
select, flag=error, clear=true;
select, flag=error, class=b1;
ealign, dx= 0.001, dy= 0.00, ds=0.00,dphi=0.00, dtheta=0.00, dpsi=0.00;

select, flag=twiss, column=name,s,x,px,y, py;
twiss, betx=1, bety=1, x=-0.000, file="mytwiss.dat";

ptc_create_universe;
ptc_create_layout, model=2, method=6,nst=10, exact;
ptc_align;
ptc_start, x=0.000;
ptc_observe, place=b1;
ptc_track, icase=5, element_by_element, dump, file="track.simple", ffile=1, onetable, maxaper={100.0, 100.0, 100.0, 100.0, 100.0, 100.0};
ptc_twiss, file="twiss.ptc.simple",betx=1,bety=1,betz=1;
ptc_track_end;

ptc_end;

@tpersson tpersson added defect PTC Related to PTC or MAD-X PTC interface bug the behaviour is not documented and should be fixed in the code labels Jan 29, 2021
@tpersson
Copy link
Contributor Author

tpersson commented Mar 2, 2021

This was fixed in #991

@tpersson tpersson closed this as completed Mar 2, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug the behaviour is not documented and should be fixed in the code PTC Related to PTC or MAD-X PTC interface
Projects
None yet
Development

No branches or pull requests

2 participants