Skip to Content.
Sympa Menu

opal - [Opal] Re:Re: part statistic.dat

opal AT lists.psi.ch

Subject: The OPAL Discussion Forum

List archive

[Opal] Re:Re: part statistic.dat


Chronological Thread 
  • From: wangchuan02513 <wangchuan02513 AT 163.com>
  • To: "frederic.le.pimpec" <frederic.le.pimpec AT psi.ch>
  • Cc: "opal AT lists.psi.ch" <opal AT lists.psi.ch>
  • Subject: [Opal] Re:Re: part statistic.dat
  • Date: Fri, 21 Oct 2011 15:59:56 +0800 (CST)
  • List-archive: <https://lists.web.psi.ch/pipermail/opal/>
  • List-id: The OPAL Discussion Forum <opal.lists.psi.ch>

Hi, Frederic,
The last column of the partstatistic.dat file is the number of the physical particles, and the particle number in .h5 file or the .out file is the number of macro particles in simulation. They have different meaning as I've mentioned in previous emails that, the number of the physical particles is equal to the sum of the charge of all macro particles in simulation divided by the charge of one particle of initial bunch. This charge weight is used to prevent memory exhaustion as both field emission and secondary emission may emit unlimited number of particles.
 
So what you are interested in each time step should be the number of the physical particles but not the macro particle number. And you may not need to use either h5root or h5dump as a post processing tool for dark current simuation.
 
I'm now coming back to work on those addtional output that you are interested in postprocessing as you mentioned in your last email.
 
Best regards
Chuan



At 2011-10-19 22:50:16,"frederic.le.pimpec" <frederic.le.pimpec AT psi.ch> wrote: >Hi Chuan, >Something is strange with the last column of the  partstatistic.dat file >#Time/ns     tot_impac      tot_sey    TotalCharge      PartNum > >You write the PartNum is the number of particles at the end of the  >simulation. In my case I start with a few 1e4 and endup with 4e6 particles. >When using H5root, it has a filed called Entries wich is an integer. >This field changes at every step looked at, but it never shows the same  >number as the PartNum, the last step it shows 79000 particles, not 4e6. >So at the end what is the difference. >How many particles do I really have  at the end of my simulation ? > >I am trying to load in matlab the h5 file which is not standard, hence I  >have no clue about what is in the .h5 file >and writing:  h5disp('ctf3-injector-darkcurrent-1.h5') >displays a very very long list of stuff which is in ! >is there any way to display only the variables and their size ? and how  >many step numbers are in the file. > >Please note that I did not re-run the simulation since you have normally  >fixed the PartStatistic.dat header > >bests >Frederic > >wangchuan02513 wrote: >> Hi, Frederic, The number of particles in *.oxxx file is the number of >> macro particles in simulation, however the last column in .dat file >> is the number of physical particles which you are interested in. And >> I'll fix the header problem as soon as possible, but it will not >> affect the result you get. Best regards Chuan >> 





Archive powered by MHonArc 2.6.19.

Top of Page