Problem 1844 - Kinetic Energy in electric and magnetic fields not correct
Summary: Kinetic Energy in electric and magnetic fields not correct
Status: RESOLVED INVALID
Alias: None
Product: Geant4
Classification: Unclassified
Component: processes/transportation (show other problems)
Version: 10.2
Hardware: Apple Mac OS X
: P5 major
Assignee: John Apostolakis
URL:
Depends on:
Blocks:
 
Reported: 2016-03-13 22:29 CET by Wolfgang Korsch
Modified: 2016-04-18 16:44 CEST (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this problem.
Description Wolfgang Korsch 2016-03-13 22:29:46 CET
In my code I track a proton (starting at a low energy of a few eV) in a strong magnetic field (~3 T). Inside the B-field there is an electrode charged to a potential of  e.g. -20 kV (relative to ground). The proton spirals towards the electrode and gets accelerated. The kinetic energy of the proton when hitting the electrode is only 20 keV when the B-field is zero, as the B-field increases, the final energy of the proton gets lowered!!! I use theTrack->GetKineticEnergy() and thePostStep->GetKineticEnergy() (both agree and both are too low for finite B-fields). Why is energy not conserved in this process? Thanks for any help.
Comment 1 Wolfgang Korsch 2016-03-15 23:24:08 CET
Hello,
 Geant4 does not violate energy. It was a bug I introduced!!! I withdraw my bug report. Sorry for the confusion.