Latest Results
Signed 1D Charge Deposits, `bunch_charge` Validation
`Deposit1D` and `DepositCharge1D` deposit the signed charge `q w`, as
the 3D deposition does. This removes the sign fix-ups in Gauss2p5D
(`chargesign`), 2p5D (`Qb_abs`) and CSR (`std::abs`).
`DerivativeCharge1D` loses `GetNumberDensity`: dividing by `q_e` is
only the number density for `|Z|=1`, as in `DensityAndSlope1D`.
`AddNParticles` raises for a negative `bunch_charge`, a magnitude. A
`bunch_charge` of zero adds particles of zero weight, e.g., test
particles, without a reference particle charge. Compute the weight
once, after the early return without particles.
Tests: kicks scale with q^2 also for negative charges, and for 3D
and Gauss3D in px and py (they kick at fixed t: back at fixed s, pt
also contains the squared transverse kicks); weights and `charge_C`
also via `sim.add_particles`; finalize in `try/finally`. Upgrade
guide: `sim.add_particles` for ions, old `BeamMonitor` weights, and
the `wakeconvolution` changes. Latest Branches
0%
0%
0%
cemitch99:user_specified_wake © 2026 CodSpeed Technology