Skip to content
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

Something wrong with the unit of weight #785

Open
mccoys opened this issue Jan 6, 2025 Discussed in #783 · 0 comments
Open

Something wrong with the unit of weight #785

mccoys opened this issue Jan 6, 2025 Discussed in #783 · 0 comments

Comments

@mccoys
Copy link
Contributor

mccoys commented Jan 6, 2025

Discussed in #783

Originally posted by HaoPengYY December 30, 2024
Dear Developers and Users,

Hi, I was trying to dump the trajectories of a bunch of test electrons in a 3D laser-plasma interaction simulation and use the information including the particles weights for post-processing. But when I used h5py to open the trajectory file and get out the data, I found that the unit of the weight is different from what I calculated, while other data including the positions and fields agreed well with my calculation. It seems there is something wrong with the out weight unit in SMILEI.

Attached is the input file of the simulation I run. The normalized weight of 'teon' output from Happi is about 0.1211, which agrees well wight the calculation, but the unit stored in the hdf5 trajectory file, i.e. the attributes 'unitSI' of the weight dataset is wrong ,which is about the 25 orders of magnitude above the value I calculate according to the formula below:
image
Uploading input.py.zip…

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant