zontafil / Symplectic-Guiding-Center

Symplectic integrator for non canonical guiding center and others
1 stars 1 forks source link

bug magnetic field expression tokamak case #1

Open ghuys opened 8 years ago

ghuys commented 8 years ago

Thank you very much for making the code available.

It seems that the expression for the y component of the magnetic field for the tokamak case is not consistent with the vector potential and the pdf documentation.

zontafil commented 8 years ago

Hello, thank you for your interest and your feedback

You are correct, the y-component of the tokamak field was wrong, the x^2 component was missing. Apparently, I removed it from one of the latest source revisions. I've made a few tests and the results seem to be pretty similar.

You can fetch the updated version of the code and a fixed version of the documentation