Using &divide_elements for CSRCSBEN?

Moderators: cyao, michael_borland

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

Using &divide_elements for CSRCSBEN?

Post by Zamank » 14 Jan 2014, 14:39

Hi All,

I am having difficulty using the divide element command for dividing a BC dipole to study the optics and CSR within the bend. Reading through the Elegant user manual, it says this should be possible, but I'm not so sure where I am going wrong.

Here is the command I am using BEFORE "&run_setup":

"&divide_elements
name = BX21
!type = CSRCSBEN,
!exclude = NULL,
divisions = 5,
!maximum_length = 0,
clear = 0,
&end"


This is the dipole I am wanting to divide:


BX21 : CSRCSBEN,L= 5.492670000E-01, &
ANGLE="-5.407138055E-02 0.995 *", &
EDGE1_EFFECTS=1,E1= 0.000000000E+00, &
EDGE2_EFFECTS=1,E2="-5.407138055E-02 0.995 *", &
HGAP= 1.667500000E-02,FINT= 6.330000000E-01, &
SG_HALFWIDTH=2,SG_ORDER=1,STEADY_STATE=0,BINS=200, &
N_KICKS=20,INTEGRATION_ORDER=4,ISR=1,CSR=1

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

Re: Using &divide_elements for CSRCSBEN?

Post by Zamank » 23 Jan 2014, 17:44

Decided towards manually breaking up the bend into two pieces. I am still still slight fluctuations in the dispersion through out the system when I look at "etax". Wondering where I am going wrong here (if at all)?

Dipoles Divided************************************************************************************************************************************************************************************************
BX21A : CSRCSBEN,L= 0.274634, &
ANGLE="-0.02689077695348494", &
EDGE1_EFFECTS=1,E1= 0.000000000E+00, &
EDGE2_EFFECTS=0,E2="0", &
HGAP= 1.667500000E-02,FINT= 6.330000000E-01, &
SG_HALFWIDTH=2,SG_ORDER=1,STEADY_STATE=0,BINS=200, &
N_KICKS=10,INTEGRATION_ORDER=4,ISR=1,CSR=1
BX21B : CSRCSBEN,L= 0.274634, &
ANGLE="-0.02689077695348494", &
EDGE1_EFFECTS=0,E1="0", &
EDGE2_EFFECTS=1,E2="-0.02689077695348494 2.0 *", &
HGAP= 1.667500000E-02,FINT= 6.330000000E-01, &
SG_HALFWIDTH=2,SG_ORDER=1,STEADY_STATE=1,BINS=200, &
N_KICKS=10,INTEGRATION_ORDER=4,ISR=1,CSR=1

BX22A : CSRCSBEN,L= 0.274634, &
ANGLE="0.02689077695348494", &
EDGE1_EFFECTS=1,E1= "0.02689077695348494 2.0 *", &
EDGE2_EFFECTS=0,E2= "0", &
HGAP= 1.667500000E-02,FINT= 6.330000000E-01, &
SG_HALFWIDTH=2,SG_ORDER=1,STEADY_STATE=0,BINS=200, &
N_KICKS=10,INTEGRATION_ORDER=4,ISR=1,CSR=1
BX22B : CSRCSBEN,L= 0.274634, &
ANGLE="0.02689077695348494", &
EDGE1_EFFECTS=0,E1= "0", &
EDGE2_EFFECTS=1,E2= 0.000000000E+00, &
HGAP= 1.667500000E-02,FINT= 6.330000000E-01, &
SG_HALFWIDTH=2,SG_ORDER=1,STEADY_STATE=1,BINS=200, &
N_KICKS=10,INTEGRATION_ORDER=4,ISR=1,CSR=1

BX23A : CSRCSBEN,L= 0.274634, &
ANGLE= "0.02689077695348494", &
EDGE1_EFFECTS=1,E1= 0.000000000E+00, &
EDGE2_EFFECTS=0,E2= "0", &
HGAP= 1.667500000E-02,FINT= 6.330000000E-01, &
SG_HALFWIDTH=2,SG_ORDER=1,STEADY_STATE=0,BINS=200, &
N_KICKS=10,INTEGRATION_ORDER=4,ISR=1,CSR=1
BX23B : CSRCSBEN,L= 0.274634, &
ANGLE= "0.02689077695348494", &
EDGE1_EFFECTS=0,E1= "0", &
EDGE2_EFFECTS=1,E2= "0.02689077695348494 2.0 *", &
HGAP= 1.667500000E-02,FINT= 6.330000000E-01, &
SG_HALFWIDTH=2,SG_ORDER=1,STEADY_STATE=1,BINS=200, &
N_KICKS=10,INTEGRATION_ORDER=4,ISR=1,CSR=1

BX24A : CSRCSBEN,L= 0.274634, &
ANGLE="-0.02689077695348494", &
EDGE1_EFFECTS=1,E1="-0.02689077695348494 2.0 *", &
EDGE2_EFFECTS=0,E2= "0", &
HGAP= 1.667500000E-02,FINT= 6.330000000E-01, &
SG_HALFWIDTH=2,SG_ORDER=1,STEADY_STATE=0,BINS=200, &
N_KICKS=10,INTEGRATION_ORDER=4,ISR=1,CSR=1
BX24B : CSRCSBEN,L= 0.274634, &
ANGLE="-0.02689077695348494", &
EDGE1_EFFECTS=0,E1="0", &
EDGE2_EFFECTS=1,E2= 0.000000000E+00, &
HGAP= 1.667500000E-02,FINT= 6.330000000E-01, &
SG_HALFWIDTH=2,SG_ORDER=1,STEADY_STATE=1,BINS=200, &
N_KICKS=10,INTEGRATION_ORDER=4,ISR=1,CSR=1


Nominal ***************************************************************************************************************************************************************************************************

BX21 : CSRCSBEN,L= 5.492670000E-01, &
ANGLE="-5.407138055E-02 0.995 *", &
EDGE1_EFFECTS=1,E1= 0.000000000E+00, &
EDGE2_EFFECTS=1,E2="-5.407138055E-02 0.995 *", &
HGAP= 1.667500000E-02,FINT= 6.330000000E-01, &
SG_HALFWIDTH=2,SG_ORDER=1,STEADY_STATE=0,BINS=200, &
N_KICKS=20,INTEGRATION_ORDER=4,ISR=1,CSR=1

BX22 : CSRCSBEN,L= 5.492670000E-01, &
ANGLE=" 5.407138055E-02 0.995 *", &
EDGE1_EFFECTS=1,E1= "5.407138055E-02 0.995 *", &
EDGE2_EFFECTS=1,E2= 0.000000000E+00, &
HGAP= 1.667500000E-02,FINT= 6.330000000E-01, &
SG_HALFWIDTH=2,SG_ORDER=1,STEADY_STATE=0,BINS=200, &
N_KICKS=20,INTEGRATION_ORDER=4,ISR=1,CSR=1

BX23 : CSRCSBEN,L= 5.492670000E-01, &
ANGLE= "5.407138055E-02 0.995 *", &
EDGE1_EFFECTS=1,E1= 0.000000000E+00, &
EDGE2_EFFECTS=1,E2= "5.407138055E-02 0.995 *", &
HGAP= 1.667500000E-02,FINT= 6.330000000E-01, &
SG_HALFWIDTH=2,SG_ORDER=1,STEADY_STATE=0,BINS=200, &
N_KICKS=20,INTEGRATION_ORDER=4,ISR=1,CSR=1

BX24 : CSRCSBEN,L= 5.492670000E-01, &
ANGLE="-5.407138055E-02 0.995 *", &
EDGE1_EFFECTS=1,E1="-5.407138055E-02 0.995 *", &
EDGE2_EFFECTS=1,E2= 0.000000000E+00, &
HGAP= 1.667500000E-02,FINT= 6.330000000E-01, &
SG_HALFWIDTH=2,SG_ORDER=1,STEADY_STATE=0,BINS=200, &
N_KICKS=20,INTEGRATION_ORDER=4,ISR=1,CSR=1

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

Re: Using &divide_elements for CSRCSBEN?

Post by Zamank » 31 Jan 2014, 14:31

Any help from anyone???

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

Re: Using &divide_elements for CSRCSBEN?

Post by michael_borland » 02 Apr 2014, 11:05

I'm sorry that I didn't see this until now. The forum doesn't always send email notices the way it is supposed to do. I hope you solved the problem in the mean time, but just in case...

Division should work for CSRCSBEND elements. See the attached files for an example.

If you are dividing by hand, you must be careful to turn off edge effects between slices of the same bend using the EDGE1_EFFECTS and EDGE2_EFFECTS controls.

--Michael
Attachments
run2.ele
Comparison with splitting.
(295 Bytes) Downloaded 364 times
run1.ele
Reference run, no splitting.
(205 Bytes) Downloaded 359 times
fourDipoleCSR.lte
(1.55 KiB) Downloaded 416 times

Post Reply