Page 1 of 1
PLOT_DST with errors study
Posted: Wed 20 Nov 2024 16:49
by comunian
Dear Didier,
is it possible to get all the dst files generate by the plot_dst command when is done an errors study?
What happens now is that is stored only the nominal runs .dst result, not the .dst of the errors study results.
Best Regards,
Michele Comunian
Re: PLOT_DST with errors study
Posted: Wed 20 Nov 2024 17:42
by Didier
Dear Michele,
You mean when the file name is specified in the ‘PLOT_DST file’ command because otherwise the distribution pointed to by PLOT_DST is saved in the plt file and this could already be kept for each run of an error study.
Regards,
Didier
Re: PLOT_DST with errors study
Posted: Thu 21 Nov 2024 09:18
by comunian
Dear Didier,
yes, when is indicate the command plot_dst "file" to save the distribution in a specific position along the line.
We use this command to save the beam distribution where are the diagnostics or other important points.
May be as final results of errors study something like:
file00000.dst
file00001.dst
file00002.dst
....
relative to the errors 00000, 00001,00002, etc...
Best Regards,
Michele Comunian
Re: PLOT_DST with errors study
Posted: Thu 21 Nov 2024 09:33
by Didier
Dear Michele,
OK, so if I've understood correctly, all you need to do is not specify a file name and the distribution will be saved in the file dtl1.plt and this file can be kept for each run.
Would this approach not suit you? It seems simpler to me and everything is in a single file
Let me know
Regards,
Didier
Re: PLOT_DST with errors study
Posted: Thu 21 Nov 2024 10:28
by comunian
Dear Didier,
yes, is possible to do in this way (save all the DTL1.plt files of the errors study and postread the results in a specific position) , but the problems is the total amount of disk space needed: we are getting quite fast a lot of disk space (hundred of GB) if we consider long beam lines with thousand of case study.
One way to save space is keeping only the distribution in some specific point of the line, i.e.:
....
plot_dst filea
...
plot_dst fileb
final results:
filea00001.dst
fileb00001.dst
...
filea00002.dst
fileb00002.dst
Of course the drawback is that we get a lot of small files and is needed a change on the code to handle this possibility.
What is your opinion about that ?
Best Regards,
Michele Comunian
Re: PLOT_DST with errors study
Posted: Thu 21 Nov 2024 10:35
by Didier
Dear Michele,
If you specify the right options, the plt file will only contain the positions requested!
Regards,
Didier
Re: PLOT_DST with errors study
Posted: Thu 21 Nov 2024 11:42
by comunian
Dear Didier,
sorry, but I do not understood, so I've attach the project: how I can get the phase space for diagnostic DBOX1, DBOX2,etc... for all the input beam errors study ?
Best Regards,
Michele Comunian
Re: PLOT_DST with errors study
Posted: Thu 21 Nov 2024 13:09
by Didier
Dear Michele,
That works well,if you replace all your commands "PLT_DST file" by "PLOT_DST"
In this way, the plt file contains distribution at position 0, 42, 110, 152, 193, 260
Regards,
Didier