Hello, I received a MAD-X file in .txt format and need to convert it to .tfs format to implement into OpticsBuilder. Is there a way this can be easily done?
Thanks in advance,
-Paul
Hello, I received a MAD-X file in .txt format and need to convert it to .tfs format to implement into OpticsBuilder. Is there a way this can be easily done?
Thanks in advance,
-Paul
Hello Paul,
As a TXT file can contain anything, it depends on the content.
If it’s a MADX sequence, you have to create a MADX script to execute and generate the Twiss file.
If it’s a MADX script, you’ll need to execute it, probably with additional input files.
For the case when you have a sequence file (LHC in my case), I wrote a tutorial here:
https://codimd.web.cern.ch/NY8a-hK1SsKuScsFlQAJ0A
Let me know if it works, good luck, Marton