Page 1 of 1

Touschek lifetime calculation in presence of magnet errors in a ring

Posted: 25 Aug 2023, 05:35
by ranamonikaa
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

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

Posted: 28 Aug 2023, 12:47
by michael_borland
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

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

Posted: 14 Sep 2023, 00:39
by ranamonikaa
Thank you. It worked this way.