openPMD-viewer icon indicating copy to clipboard operation
openPMD-viewer copied to clipboard

possible issue - wrong scaling of weight

Open PrometheusPi opened this issue 4 years ago • 1 comments

There has been a report for PIConGPU https://github.com/ComputationalRadiationPhysics/picongpu/issues/3990 that particle momenta have been scaled wrongly by @cbontoiu. He reported that physics results of the phase space changed with changing ppc and concluded that there is an issue with the openPMD-viewer.

In case this is true, I opened this issue for future tracking/reference. I will cross check, whether I can reproduce the reported problem and try to determine wether the error is within PIConGPU or as suspected in openPMD-viewer.

PrometheusPi avatar Mar 07 '22 08:03 PrometheusPi

Here is the relevant openPMD-viewer code: https://github.com/openPMD/openPMD-viewer/blob/dev/openpmd_viewer/openpmd_timeseries/data_reader/h5py_reader/particle_reader.py#L71 It would be interesting to know the value of the macroWeighted and weightingPower meta data, for the particle momentum, in PIConGPU.

RemiLehe avatar Mar 07 '22 20:03 RemiLehe