Created attachment 555 [details] simple geant4 code based on example B1 to show energy divergence. I have found that the kinetic energy increases infinitely when the GenericIon is set as the primary particle in single scattering process. The attached file is a code based on Example B1, using GeneralParticleSource to set the GenericIon as the primary particle, and to output the position and energy every step. Files changed in B1: exampleB1.cc myPhysicsList.hh (added) myPhysicsList.cc (added) B1SteppingAction.cc run1.mac B1PrimaryGeneratorAction.cc B1PrimaryGeneratorAction.hh B1RunAction.cc The changes are marked as //************************ //******************* I did the following. (cmake) (make) ./exampleB1 /control/execute run1.mac I used G4EmStandardPhysicsSS in myPhysicsList, but in fact it uses G4IonCoulombScatteringModel via G4CoulombScattering, so the problem seems to be in the G4IonCoulombScatteringModel.
Hi Daren, thanks for this BR - it was non-trivial precision loss in computation of particle momentum. The fix is proposed for testing and will be submitted for the patch. Vladimir
Thanks to jhlee.