Skip to content
Projects

Einzel lens

The equations of beamtracer.optimization.einzel, declared on the code that implements them and checked by the tests.

EinzelLens

classsource

The fixed settings of an einzel lens, and its problems.

ray
r′′+ϕ′2ϕr′+ϕ′′4ϕr=0,ϕ(z)=Eq−V(z)r'' + \frac{\phi'}{2\phi} r' + \frac{\phi''}{4\phi} r = 0, \qquad \phi(z) = \frac{E}{q} - V(z)
objective
spot=12⟨r2⟩ at the target plane\text{spot} = \sqrt{\tfrac12 \langle r^2 \rangle} \ \text{at the target plane}
constraints
loss=max⁡(0,1−T)−max_loss,surface_field=max⁡∣Esurface∣field_limit−1\text{loss} = \max(0, 1 - T) - \text{max\_loss}, \qquad \text{surface\_field} = \frac{\max |E_\mathrm{surface}|}{\text{field\_limit}} - 1
transmission
T=ItargetπJRb2T = \frac{I_\mathrm{target}}{\pi J R_b^2}
Assumes
  • three coaxial tubes, the outer two grounded, the middle one at VV, inside a grounded wall; a parallel beam launched upstream as rings
  • without space charge (current 0) one field solve and trace is the solution, with 10−910^{-9} A as the weight of the moments
  • a design that does not fit is a failed evaluation
References
Built from

paraxial_focus

functionsource

Return where a paraxial ray, parallel at the start, crosses the axis [m].

picht
R′′+316(ϕ′ϕ)2R=0,R=r ϕ1/4,R(z0)=1, R′(z0)=0R'' + \frac{3}{16}\left(\frac{\phi'}{\phi}\right)^2 R = 0, \qquad R = r\, \phi^{1/4}, \qquad R(z_0) = 1, \ R'(z_0) = 0
focus
zf:R(zf)=0,or zend−R/R′ for a ray still off the axis at the endz_f: R(z_f) = 0, \qquad \text{or } z_\mathrm{end} - R / R' \text{ for a ray still off the axis at the end}
Assumes
  • a thick lens, paraxial and without aberrations; integrated by solve_ivp (rtol 10−910^{-9}, at most one cell per step), the coefficient interpolated linearly
  • ∞\infty for a diverging ray; the voltage that focuses on the target by Brent's method

thin_lens_focal_length

functionsource

Return the thin-lens focal length [m] of the on-axis potential [V].

thin lens
1f=316∫(ϕ′ϕ)2dz\frac{1}{f} = \frac{3}{16} \int \left(\frac{\phi'}{\phi}\right)^2 dz
discrete
ϕ′ by central differences,∫ by the trapezoidal rule on the mesh nodes\phi' \text{ by central differences}, \qquad \int \text{ by the trapezoidal rule on the mesh nodes}
voltage
1f(V)=1xtarget−xcentre(Brent’s method)\frac{1}{f(V)} = \frac{1}{x_\mathrm{target} - x_\mathrm{centre}} \quad \text{(Brent's method)}
Order
2
Assumes
  • paraxial rays, a lens short compared with ff, the same potential on both sides; ϕ>0\phi > 0 everywhere (NaN if an ion is stopped), ∞\infty without a lens
  • the on-axis potential per volt from one vacuum solve at 1 kV on the middle tube
  • the order is in the node spacing