iwhoppock / boris-algorithm

The Boris algorithm for numerically tracing non-relativistic charged particles in electromagnetic fields, written in C, matlab, and python
9 stars 2 forks source link

Physical errors #1

Open tui1994 opened 7 months ago

tui1994 commented 7 months ago

Dear Ian,

I'm tui from Hiroshima Univeristy, Japan. Now I'm trying to simulate particle under magnetic and electric field by using Boris method for particle pusher. I also applied your code into fortran language and constrcuted the main program. My fortran program assumed particle moving in 1D spatial space with 3D velocity. The magnetic field and electric field is the same direction in z-axis. Anyway, the velocity profiles from my simulation provided fluctuated features to kinetic energy, when I set E = 0 and squared those velcoities. Could you give any comments to my program? The main program is available from Boris_LInk Thank you very much.