Particles id in checkpoint files

Asked by Debski

Dear Dion,
Working on fixing the problem I'v mentioned in previous post I have found out
that particles ID reported in checkpoint files have sometimes values larger than number of
all particles. Thus my question
 Does Esys generates its own particles id or copy it from the gengeo- generated file?
(I am using gengeo to generate the sample).
The second question. In checkpoint files the bond section contains in entries in a form
Bond
particle_id particle_id
.
.
Are listed numbers the particles_id reported in 5-th column of the main/first part of the checkpoint file?
On the other hand in files created by dumpt2vtk the conectivity segment seems to
provide a position of particles in the list provided by the <Points section>
Am I right?

Thanks for help

Question information

Language:
English Edit question
Status:
Answered
For:
ESyS-Particle Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
Dion Weatherley (d-weatherley) said :
#1

Hi Wojciech,

> Does Esys generates its own particles id or copy it from the gengeo- generated file?

Both ESyS and Gengeo use semi-random particle id's by default. When importing a gengeo geometry file, the id's provided by gengeo are used. If you would prefer the particle id's to be numbered consecutively (from 0,1,...,numparticles), you can add a command to your gengeo script:

mntable.renumberParticlesContinuous()

Execute this command after generating the packing but before generating bonds (or writing out the geometry file). The (deprecated) ESyS in-simulation geometry creation does not have an option to renumber the particle ids.

> Are listed numbers the particles_id reported in 5-th column of the main/first part of the checkpoint file?

Yes, the 5th column contains the particle ids. More information about the format of checkpoint files is available here:
https://answers.launchpad.net/esys-particle/+faq/708

> in files created by dumpt2vtk the conectivity segment seems to
> provide a position of particles in the list provided by the <Points section> Am I right?

I think you are correct. In the VTK files, the bonds are represented as "connections" between points. This is how VTK represents unstructured grids. The numbering of the connection endpoints is determined by the order in which they appear in the Points section of the VTK file.

Cheers,

Dion

Can you help with this problem?

Provide an answer of your own, or ask Debski for more information if necessary.

To post a message you must log in.