Add particle unique ID#351
Conversation
Conflicts: example/test_problem/Hydro/ParticleTest/README include/Prototype.h src/Makefile_base
Conflicts: src/TestProblem/Hydro/ClusterMerger/Par_Init_ByFunction_ClusterMerger.cpp
Conflicts: src/Output/Output_DumpData_Total_HDF5.cpp
Co-authored-by: Hsinhao Huang <hsinaohuang@gmail.com>
|
@ChunYen-Chen Since the C-binary output format is deprecated (i.e.,
Do you agree? |
@hyschive I assume you are referring to version |
No, I mean |
Conflicts: doc/wiki/Runtime-Parameters-related/[Runtime-Parameters]-All.md
This is a follow-up PR of PR #348. It solves part of #79.
Changes
New
PAR_PUIDto store the particle UID.track_particle.pyto track the particle by UID.Results
Comparison of tracking particle by UID and index of the array with different MPI rank number
Here I show the results of three different UIDs (



300,5403, and31111) with different MPI ranks (1,2, and16). As shown in the figures, the particles can be tracked well by the UID.The figure shows the position and the velocity in each direction of particles with specified UID. The
idxmeans the index of specified particle UID in the array at step 0.Note
ytmodule does not recognize the integer attribute type correctly.gamer_compare_datais not supported yet.libytis also not supported yet.