SmileiPIC / Smilei

Particle-in-cell code for plasma simulation
https://smileipic.github.io/Smilei
335 stars 119 forks source link

Particle Binning: Axes limits [0, '"auto"] bug #688

Closed nkehoe closed 8 months ago

nkehoe commented 8 months ago

Description

When using the Particle Binning diagnostic and setting the limits on an axes as [0, "auto"] it encounters a bug and only measures up to the rest mass energy of the electron (0.511MeV). Already talked about and confirmed in element.io.

DiagParticleBinning(
    name = 'proton spectra',
    deposited_quantity = "weight",
    every = every,
    species = ['proton'],
    axes = [
        ["ekin", 0., 'auto', specbins]
    ]
)

Steps to reproduce the problem

If relevant, provide a step-by-step guide

Parameters

mccoys commented 8 months ago

The fix has been pushed to the branch develop. Please check if it works and close.

Thank you for reporting