Reading and creating .dst files
Posted: Mon 7 Aug 2023 10:55
Hello,
Two questions related to the reading / creating .dst files
1/ I'm trying to read in a .dst file with an input file which has several fieldmaps. There is no compression on the .dst file. In the manual (page 39) there is a loop over Ne (number of elements), but it seems that inside the fieldmaps, much more steps are output to the .dst file (which is good .. !). But so could it be that the documentation on page 39 is not fully correct ? Also when I place a LATTICE command in the input file, the reading of the .dst file is completely wrong ...
2/ I'm creating a .dst file with 100 particles (protons) which are all started on axis (x=x'=y=y'=0) and have only an energy spread (phi = 0). The file seems to be read correctly in TRACEWIN (see ). But when running TRACEWIN with this file, I get 'Particle with negative energy' ... The Twiss parameters are obviously not calculated from this simple input distribution, but are the actual correct Twiss parameters for this linac. The purpose here is to launch just a few 100 protons to verify the longitudinal beam dynamics and acceptance.
I attach the input .dst file ...
Thanks in advance for any help on these topics!
With kind regards
Jarno
Two questions related to the reading / creating .dst files
1/ I'm trying to read in a .dst file with an input file which has several fieldmaps. There is no compression on the .dst file. In the manual (page 39) there is a loop over Ne (number of elements), but it seems that inside the fieldmaps, much more steps are output to the .dst file (which is good .. !). But so could it be that the documentation on page 39 is not fully correct ? Also when I place a LATTICE command in the input file, the reading of the .dst file is completely wrong ...
2/ I'm creating a .dst file with 100 particles (protons) which are all started on axis (x=x'=y=y'=0) and have only an energy spread (phi = 0). The file seems to be read correctly in TRACEWIN (see ). But when running TRACEWIN with this file, I get 'Particle with negative energy' ... The Twiss parameters are obviously not calculated from this simple input distribution, but are the actual correct Twiss parameters for this linac. The purpose here is to launch just a few 100 protons to verify the longitudinal beam dynamics and acceptance.
I attach the input .dst file ...
Thanks in advance for any help on these topics!
With kind regards
Jarno