Page 1 of 1

Writing Specific Data to File Post-Simulation

Posted: Tue 23 Jul 2024 17:47
by Abhishek
Dear Didier/TraceWin Users,

I am inquiring about the possibility of writing a selected beam parameter to a file after a simulation concludes. For instance, is there a command enabling the simulation to output data for specific parameters like beam energy or emittance throughout the lattice? Although the "partran1.out" file includes many parameters, I am seeking a method to extract a particular one into a separate file.
Could you please provide guidance on how to achieve this?

Thank you.

Best regards,
Abhishek Pathak

Re: Writing Specific Data to File Post-Simulation

Posted: Sat 3 Aug 2024 11:30
by Didier
Dear Abhishek,

As you point out, partran.out contains most of the parameters you need, and in particular those you are asking for. So sometimes a little simple calculation is needed to get it, like the energy from the gamma parameter, but normally everything is present in the file. Under these conditions, or I haven't understood your request, but I don't see the point in creating additional files.

Regards,

Didier