Mismatch of vertical chromaticity from twiss_output with other codes

Moderators: cyao, michael_borland

Post Reply
felix_armborst
Posts: 10
Joined: 23 Aug 2017, 09:06

Mismatch of vertical chromaticity from twiss_output with other codes

Post by felix_armborst » 30 Jan 2020, 14:21

Hello,

We have encountered a mismatch in the vertical chromaticity for the BESSY II design lattice when comparing the results from elegant's twiss routine with those of other codes. Could you please help me get to the bottom of this problem? Here an overview of the obtained results (I have attached all used files):

Code: Select all

				nux 	nuy	dnux/dp	dnuy/dp
	Elegant			17.85 	6.74	1.18	1.396
	MAD-X			17.85	6.74	1.18	-1.05
	PTC (exact=true)	0.85	0.74	1.18	-1.05
	PTC (exact=false)	0.85	0.74	1.11	1.395

Thanks in advance and greetings from Berlin,
Felix Armborst

Version Info:
elegant 2019.1.1
MAD-X 5.05.02
Attachments
BII_SymDes.lte
(1.86 KiB) Downloaded 131 times
mad.out
(13.68 KiB) Downloaded 124 times
BII_SymDes.ele
(292 Bytes) Downloaded 119 times

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

Re: Mismatch of vertical chromaticity from twiss_output with other codes

Post by michael_borland » 30 Jan 2020, 14:59

Felix,

You need to switch to a more sophisticated edge model, which you can do using

Code: Select all

B : CSBEND, n_kicks="bkicks", L="L", ANGLE="angle", E1="hangle", E2="hangle", &
  edge_order=2, edge1_effects=2, edge2_effects=2, hgap=0.001, fse_correction=1
I've put HGAP=0.001 as a place holder. Ideally, you need to set HGAP and FINT based on measurements of your dipole fringe field.

--Michael

felix_armborst
Posts: 10
Joined: 23 Aug 2017, 09:06

Re: Mismatch of vertical chromaticity from twiss_output with other codes

Post by felix_armborst » 30 Jan 2020, 17:07

Hi Michael,

thank you very much for your fast response! Using 2nd order edge effects indeed solves my problem. The hgap is 25mm and fint should be around 0.7 (Rogowski formed pole shoes). I unfortunately do not have any measurements of the fringe fields. Which setting of fse_correction and edge_order would you recommend for investigations on far off axis closed orbits (TRIBs)?

--Felix

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

Re: Mismatch of vertical chromaticity from twiss_output with other codes

Post by michael_borland » 30 Jan 2020, 17:14

Felix,

The settings shown in my previous reply will invoke the best model elegant has, so I'd stick with those for small-radius rings.

--Michael

felix_armborst
Posts: 10
Joined: 23 Aug 2017, 09:06

Re: Mismatch of vertical chromaticity from twiss_output with other codes

Post by felix_armborst » 30 Jan 2020, 17:45

Michael,

Thank you again for your fast and very helpful response!

Best regards,
Felix Armborst

Post Reply