Splitting CSRCSBEND - propagate CSR computation

Moderators: cyao, michael_borland

Post Reply
astecpete
Posts: 35
Joined: 24 Jul 2008, 04:01
Location: Daresbury Laboratory, UK

Splitting CSRCSBEND - propagate CSR computation

Post by astecpete » 23 Mar 2010, 04:59

Hi,

I'd like to be able to look at how emittances and pcentral change within a CSRCSBEND element. If i manually split the dipole (and turn off the edges internally) it seems to restart the csr computation at each element. In the manual it says that this happens for versions 19 and lower. i am using version 22.0.1.

Thanks

Pete (on behalf of Deepa!)

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

Re: Splitting CSRCSBEND - propagate CSR computation

Post by michael_borland » 23 Mar 2010, 08:55

Pete and Deepa,

In order to continue the computation through multiple dipole segments, the segments must have the same name. E.g., instead of defining each slice, use

BMslice: csrcsbend,l=0.1,angle=0.01,e1=0.1,e2=0.1,...
BM: line=(10*BMslice)

Elegant will see 10 BMslice elements in a row and automatically turn off interior edge effects.

If you instead define BM1, BM2, BM3, ..., BM10, then elegant doesn't understand that this is one bending magnet because the names are different.

Let me know if that doesn't fix the problem.

--Michael

astecpete
Posts: 35
Joined: 24 Jul 2008, 04:01
Location: Daresbury Laboratory, UK

Re: Splitting CSRCSBEND - propagate CSR computation

Post by astecpete » 23 Mar 2010, 09:44

Thanks Micheal,

Yes, that has helped somewhat. However we have a discrepancy in the calculated pCentral at the end of the dipole when comparing the split dipole with a single dipole. Deepa will send you the example files, would you mind taking a look?

Thanks

Pete & Deepa

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

Re: Splitting CSRCSBEND - propagate CSR computation

Post by michael_borland » 23 Mar 2010, 10:01

Pete and Deepa,

Sure, send it me and I'll have a look.

--Michael

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

Re: Splitting CSRCSBEND - propagate CSR computation

Post by michael_borland » 23 Mar 2010, 11:34

Pete and Deepa,

It turns out this is a bug. The problem is the interaction of CSRBEND and CSRDRIFT is not correct when the dipoles are split.

I'll post a solution under the Bugs forum for those who build from source. It will also be corrected in the next release.

--MIchael

Post Reply