Touschek lifetime calculation in presence of magnet errors in a ring

Moderators: cyao, michael_borland

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

Touschek lifetime calculation in presence of magnet errors in a ring

Post by ranamonikaa » 25 Aug 2023, 05:35

Hi all,
I want to calculate Touschek lifetime for different error sets (produced by n_steps) in a storage ring. When I run the simulation, elegant is making a single mmap file and twiss file, though different pages, for all the error sets. When I run Touschek lifetime command, it says “The code doesn't support multi twiss/aperture pages”. I want to know how to extract single error set data for Touschek lifetime calculation or if there’s another way to calculate the Touschek lifetime for all the error sets in elegant.

Monika

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

Re: Touschek lifetime calculation in presence of magnet errors in a ring

Post by michael_borland » 28 Aug 2023, 12:47

Monika,

You can use the sddssplit command to split the multi-page output files into many single-page files. Pairs of single-page files can then be fed to touschekLifetime.

Once done running touschekLifetime, you can use sddscombine to combine the touschek lifetime results into a single file, which is more convenient for further analysis. You can also delete the single-page files made with sddssplit.

--Michael

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

Re: Touschek lifetime calculation in presence of magnet errors in a ring

Post by ranamonikaa » 14 Sep 2023, 00:39

Thank you. It worked this way.

Post Reply