-
Notifications
You must be signed in to change notification settings - Fork 50
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Particle selection #368
Comments
Thanks for reaching out!
Just to clarify, where do you see that change? Because |
Hi @ax3l The difference can be seen in the code snippets. When the selection is done in the physical space (first example) the array returned is empty. when it is done using cells (second example) it shows the correct slice along the simulation domain. The first example used to work so far but not with this new installation.
|
Oh, we think we have an idea what causes this. @franzpoeschel , you fixed In PIConGPU in the past, what I did is add the cell size as @cbontoiu can you share a single step data set via a dropbox/google drive/etc. link with us? Then I can take a quick look. |
Thanks for looking into this. I will upload a snapshot soon. Just now my internet connection is down. |
Thanks! I took a look at the file with $ bpls -A -l simData_001490.bp
double /data/1490/particles/e/position/x/unitSI attr = 2.5e-08
double /data/1490/particles/e/position/y/unitSI attr = 2.5e-08
double /data/1490/particles/e/position/z/unitSI attr = 2.5e-08
...
double /data/1490/particles/e/positionOffset/x/unitSI attr = 2.5e-08
double /data/1490/particles/e/positionOffset/y/unitSI attr = 2.5e-08
double /data/1490/particles/e/positionOffset/z/unitSI attr = 2.5e-08
...
$ bpls -l simData_001490.bp
...
float /data/1490/particles/e/position/x {33950341} = 0 / 0
float /data/1490/particles/e/position/y {33950341} = 0 / 0
float /data/1490/particles/e/position/z {33950341} = 0 / 0
int32_t /data/1490/particles/e/positionOffset/x {33950341} = 0 / 0
int32_t /data/1490/particles/e/positionOffset/y {33950341} = 0 / 0
int32_t /data/1490/particles/e/positionOffset/z {33950341} = 0 / 0
float /data/1490/particles/e/weighting {33950341} = 0 / 0 That in general looks good, but from your image I suspect an issue adding @cbontoiu are your cell sizes for the sim in question cubic, same edge length of |
@cbontoiu which version of PIConGPU did you use? On first sight, the logic in openPMD-viewer looks ok, we scale each openPMD-viewer/openpmd_viewer/openpmd_timeseries/data_reader/h5py_reader/particle_reader.py Lines 80 to 83 in dda9428
openPMD-viewer/openpmd_viewer/openpmd_timeseries/data_reader/io_reader/particle_reader.py Lines 86 to 89 in dda9428
|
The simulation snapshot provided was obtained with PIConGPU installed about 3 months ago
|
This assumption could be a bug: openPMD-viewer/openpmd_viewer/openpmd_timeseries/particle_tracker.py Lines 177 to 183 in dda9428
openPMD does not declare only |
@ax3l thank you for helping with this issue. |
In conda, you can specify the version with |
@cbontoiu are your cell sizes for the sim in question cubic, same edge length of 2.5e-8m each? |
Yes they are cubic, 25 nm each side, at least to 3 digits approximation. |
ts_particles.get_particle()
used to work well with selections in the physical space for macroparticle coordinates. With a Python script such as this:I used to plot a selection of all particles within a single mesh cell in the z-direction, where
SHIFTZ
is the middle of the simulation domain in [m]All selections which refer to the Cartesian space could be made in physical space and the macroparticle coordinates were returned in [m].
I have just reinstalled
openPMDviewer
and I see that selection is now done in cells, but also I see a strange grid across the macroparticles.Is there a way to revert to the old style, or maybe I would need to downgrade? Which version is indicated
The text was updated successfully, but these errors were encountered: