leon-vv / Traceon

Electromagnetic solver and electron tracer
https://traceon.org/
GNU Affero General Public License v3.0
3 stars 4 forks source link

Use analytical formulas for derivatives of higher order #7

Closed leon-vv closed 1 year ago

leon-vv commented 1 year ago

Currently we only take the analytical derivative up to order 4 in solver/__init__.py function get_axial_derivatives. After using the assumption r_0 = 0 to simplify the formulas (see #3) we should be able to calculate the derivatives of higher order analytically.

See also formula 13.16a in Peter W. Hawkes. Principles of Electron Optics, Basic Geometrical Optics. 2017.