Difference in Touschek lifetime

Moderators: cyao, michael_borland

Post Reply
ranamonikaa
Posts: 24
Joined: 07 Jul 2022, 01:07

Difference in Touschek lifetime

Post by ranamonikaa » 14 Nov 2024, 06:26

Hi,
For a bare lattice with identical superperiods, the Touschek lifetime should ideally be the same regardless of whether you specify s_end as one superperiod length or leave it unspecified (assuming it defaults to the whole ring) in the momentum_aperture command. However, I am seeing significant difference in the Touschek lifetime for these two cases although the momentum aperture is consistent in both the cases.
What could be causing this discrepancy? and what should be the correct way of setting the momentum _aperture command.

-Monika

ranamonikaa
Posts: 24
Joined: 07 Jul 2022, 01:07

Re: Difference in Touschek lifetime

Post by ranamonikaa » 06 Dec 2024, 02:28

I have attached the lte and ele files below.
Attachments
A2.ele
(839 Bytes) Downloaded 1339 times
A2.lte
(4.69 KiB) Downloaded 1386 times

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

Re: Difference in Touschek lifetime

Post by michael_borland » 16 Dec 2024, 14:53

Monika,

Could you also upload your .mmap files for the two cases, along with the touschekLifetime commands you used?

Thanks--Michael

ranamonikaa
Posts: 24
Joined: 07 Jul 2022, 01:07

Re: Difference in Touschek lifetime

Post by ranamonikaa » 31 Dec 2024, 00:58

Hi, sorry for the late reply.
I have attached the mmap files for both the cases.
The touschek lifetime command I used is:
touschekLifetime -twiss=A2.twi -aperture=A2.mmap A2.lt -charge=0.2 -coupling=0.01 -rf=volt=7.0,harm=1600

Thanks.
-Monika
Attachments
A2_unit.mmap
taking s_end= length of one unit cell
(18.41 KiB) Downloaded 1237 times
A2.mmap
not taking s_end at all.
(540.74 KiB) Downloaded 1225 times

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

Re: Difference in Touschek lifetime

Post by michael_borland » 03 Jan 2025, 10:49

Monika,

The problem is that the computation of bunch length doesn't work correctly for a partial ring. If you use the -length option to provide the bunch length instead of the -rf option, you'll get essentially the same answer for both the full ring and the partial ring.

It should be possible to improve this by having the user specify the number of superperiods. I'll look into that.

--Michael

ranamonikaa
Posts: 24
Joined: 07 Jul 2022, 01:07

Re: Difference in Touschek lifetime

Post by ranamonikaa » 06 Jan 2025, 03:17

Hi,
Even after replacing -rf with the bunch length, the Touschek lifetime is still different for both the cases (i.e., for a single superperiod and the entire ring). . Furthermore, the .lt file shows the same bunch length for both cases suggesting that the computation of the bunch length is correct even for a partial ring. So, the difference in Touschek lifetime is still not clear to me.

Thanks

-Monika

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

Re: Difference in Touschek lifetime

Post by michael_borland » 06 Jan 2025, 10:23

Monika,

I get different results. Here's my script

Code: Select all

#!/bin/bash

touschekLifetime -twiss=A2Twiss.twi -aperture=A2.mmap A2.tlife -charge=0.2 -coupling=0.01 -rf=volt=7,harm=1600
sddsprintout -parameter=sigmaz -parameter=tLifetime A2.tlife -title="Full LMA and twiss files with -rf option"

touschekLifetime -twiss=A2TwissUnit.twi -aperture=A2_unit.mmap A2_unit.tlife -charge=0.2 -coupling=0.01 -rf=volt=7,harm=50 
sddsprintout -parameter=sigmaz -parameter=tLifetime A2_unit.tlife -title="Unit LMA and twiss files with -rf option"

length=`sdds2stream -parameter=sigmaz A2.tlife`
touschekLifetime -twiss=A2TwissUnit.twi -aperture=A2_unit.mmap A2_unit.tlife -charge=0.2 -coupling=0.01 -length=`rpnl $length 1e-3 /`
sddsprintout -parameter=sigmaz -parameter=tLifetime A2_unit.tlife -title="Unit LMA and twiss files with -length option"
and the output

Code: Select all

Full LMA and twiss files with -rf option
sigmaz (m) =        2.631383e-03  tLifetime (hour) =  1.746720e+01

Unit LMA and twiss files with -rf option
sigmaz (m) =        4.458803e-04  tLifetime (hour) =  2.925825e+00

Unit LMA and twiss files with -length option
sigmaz (m) =        2.631383e-03  tLifetime (hour) =  1.726689e+01
You can see that the bunch length and lifetime are different (and wrong) in the second case (unit LMA/twiss plus -rf option), but correct in the third case (unit LMA/twiss plus -length option).

--Michael

ranamonikaa
Posts: 24
Joined: 07 Jul 2022, 01:07

Re: Difference in Touschek lifetime

Post by ranamonikaa » 06 Jan 2025, 23:41

I don't get the same result as you for the unit cell case. Maybe I'd install the latest elegant version and then try again.
Thank you so much.

-Monika

Post Reply