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
Touschek lifetime calculation in presence of magnet errors in a ring
Moderators: cyao, michael_borland
-
- Posts: 15
- Joined: 07 Jul 2022, 01:07
-
- 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
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
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
-
- Posts: 15
- Joined: 07 Jul 2022, 01:07
Re: Touschek lifetime calculation in presence of magnet errors in a ring
Thank you. It worked this way.