Skip to Content.
Sympa Menu

opal - [Opal] Re: part statistic.dat

opal AT

Subject: The OPAL Discussion Forum

List archive

[Opal] Re: part statistic.dat

Chronological Thread 
  • From: "frederic.le.pimpec" <frederic.le.pimpec AT>
  • To: wangchuan02513 <wangchuan02513 AT>
  • Cc: "opal AT" <opal AT>
  • Subject: [Opal] Re: part statistic.dat
  • Date: Fri, 21 Oct 2011 10:26:07 +0200
  • List-archive: <>
  • List-id: The OPAL Discussion Forum <>
  • Organization: PSI

Hi Chuan,

I missed an email it seems.

I was effectively guessing that one was the macroparticle and the other the real particles.

Now it is clear ! No more confusion on my side

Actually H5root is very useful to see how the distribution evolves step by step, without to have to write a small program.
now the surface losses h5 files is not standard that h5root cannot open it.
So here again it is a weird way to look at what it is in.

Maybe the manual, in an annex, could list the parameters which are dumped in the various h5 files.
And give an example on how to load some of the parameters with matlab, Maple, Mathematica etc...


wangchuan02513 wrote:
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> 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

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

Dr Frederic Le Pimpec
Paul Scherrer Institut
WBBA 315
5232 Villigen
Tel : +41 56 310 5130
FAX : +41 56 310 4488

Archive powered by MHonArc 2.6.19.

Top of Page