Page 1 of 1

Electron beam optics after Undulator using a dogleg type achromatic bend

Posted: 28 May 2020, 08:14
by Sarvesh
Dear Michael

I am a beginner in this code. I have designed an achromatic bend using GICOSY code and then try to compare results using Elegant. But findings are little different specialy in the evaluation of etax which is [X,D] in GICOSY code. Pls see the attched files. Why etax is not coming to zero at the end of the line? Whereas [X,D] is zero in the GICOSY code simulations. Pls see the attched files.

etax = [X,D] (Blue Line in the curve) should be zero at the end of the line.

Thanks and Regards
Sarvesh Kumar

Re: Electron beam optics after Undulator using a dogleg type achromatic bend

Posted: 06 Jun 2020, 05:51
by Sarvesh
I am struggling to define Q1,Q2, Q3 and Q4 as variable and fit the output in such a way that R16=R26=0 (Achromatic condition) and a double focusing at the output. Pls help me in this regards. I can do same things in other codes but not able to fix here, Pls modify the files to include this variation and mathching.

Pls see the sigma profiles which i am getting by above files.

Re: Electron beam optics after Undulator using a dogleg type achromatic bend

Posted: 06 Jun 2020, 06:58
by Sarvesh
sddsprocess run.twi run1.twi "-define=column,sqbx,betax sqrt" \ "-define=column, sqby,betay sqrt " \

Why the above command gives this error ?

argument \ is invalid: too many filenames (sddsprocess)

Re: Electron beam optics after Undulator using a dogleg type achromatic bend

Posted: 06 Jun 2020, 07:17
by Sarvesh
Pls note in above file, I am having edge angles in both dipole magnets in such a way that they focus in verticle plane. Means, edge angles are positive despite of bending angle being negative for first dipole magnet. Pls comment on this. I hope, this is practically feasible.

Re: Electron beam optics after Undulator using a dogleg type achromatic bend

Posted: 10 Jun 2020, 18:31
by michael_borland
Sarvesh,

I can see several possible problems. First, although you are trying to make etax(s) antisymmetric about the Q2 magnet, your dipoles are not antisymmetric, since B1 has ANGLE<0, E1>0, and E2>0, while B2 has ANGLE>0, E1>0, E2>0. So there's no way to get the solution you want. Maybe you mean to put E1=E2=ANGLE/10 in all cases.

The attached files show how to get a solution under this assumption.

The problem with

Code: Select all

sddsprocess run.twi run1.twi "-define=column,sqbx,betax sqrt" \ "-define=column, sqby,betay sqrt " \
is that you have spurious \ characters in the middle of the command and at the end. Those are used in the unix shell for line continuation.

--Michael