Reusing identical random errors for a second simulation in TraceWin
Posted: Thu 30 Oct 2025 06:28
Dear Dr. Didier,
I am performing a machine error study using the following command:
ERROR_QUAD_NCPL_STAT 200 2 0.1 0.1 0.5 0.5 0.5 1
I successfully ran the simulation with the first input beam.
Now, I would like to run the same simulation with another beam (only the input beam parameters are different) under exactly the same random error conditions as the first one.
However, I couldn’t find a way in TraceWin to reuse or load the previously generated random errors.
My goal is to apply the identical Gaussian-distributed errors from the first simulation to the second simulation.
Is there any way to do this?
Best regards,
Jiyoung Choi.
P.S. 'ERROR_STAT_FILE'
I tried to reuse the Error_Data.txt file generated from the first simulation in the second simulation, but I encountered two issues:
1. I want to set 'Nbr of steps' to 10, but it only runs with 1 step.
2. When I load the first simulation’s result file 'Error_Datas.txt' using 'ERROR_STAT_FILE' an error message appears "Error_Datas000001.txt not found". However, the first simulation only produced a single file named 'Error_Data.txt'. There is no file called 'Error_Datas000001.txt'
I am performing a machine error study using the following command:
ERROR_QUAD_NCPL_STAT 200 2 0.1 0.1 0.5 0.5 0.5 1
I successfully ran the simulation with the first input beam.
Now, I would like to run the same simulation with another beam (only the input beam parameters are different) under exactly the same random error conditions as the first one.
However, I couldn’t find a way in TraceWin to reuse or load the previously generated random errors.
My goal is to apply the identical Gaussian-distributed errors from the first simulation to the second simulation.
Is there any way to do this?
Best regards,
Jiyoung Choi.
P.S. 'ERROR_STAT_FILE'
I tried to reuse the Error_Data.txt file generated from the first simulation in the second simulation, but I encountered two issues:
1. I want to set 'Nbr of steps' to 10, but it only runs with 1 step.
2. When I load the first simulation’s result file 'Error_Datas.txt' using 'ERROR_STAT_FILE' an error message appears "Error_Datas000001.txt not found". However, the first simulation only produced a single file named 'Error_Data.txt'. There is no file called 'Error_Datas000001.txt'