Skip to article frontmatterSkip to article content
Site not loading correctly?

This may be due to an incorrect BASE_URL configuration. See the MyST Documentation for reference.

Lens Models

Point Mass

ψ=RE2DL2lnξRE\begin{aligned} \psi = \frac{R_E^2}{D_L^2}\ln \frac{\xi}{R_E} \end{aligned}

SIS (Singular isothermal sphere)

The following expression for ψ\psi is implemented in amplitudes.py

ψSIS(x,y)=REDL2x2+y2\begin{aligned} \psi^\mathrm{SIS}(x,y) = - \frac{R_E}{D_L^2}\cdot\sqrt{x^2+y^2} \end{aligned}

The sign causes some confusion, and we need to check if also SIE below needs a negative sign.

In practice, we omit the (constant) factor DLD_L in the implementation. In other words, what is called einsteinR in the code, is the quantity C0=RE/DL2C_0=R_E/D_L^2. Thus the deflection is given as

ψx=C0xx2+y2ψy=C0yx2+y2\begin{aligned} \frac{\partial\psi}{\partial x} &= C_0\cdot\frac{x}{\sqrt{x^2+y^2}}\\\\\\\\ \frac{\partial\psi}{\partial y} &= C_0\cdot\frac{y}{\sqrt{x^2+y^2}} \end{aligned}

The differentiation is straight forward. See psiXvalue and psiYvalue in SIS.cpp.

Roulette amplitudes are calculated using the recursive formulæ.

SIE

ψξ0,f,θ,DLSIE(R)(R,ϕ)=ξ0DL2f1f2R([sin(ϕθ)]sin1(1f2sin(ϕθ))+[cos(ϕθ)]sinh1(1f2fcos(ϕθ))).\begin{aligned} \begin{split} \psi_{\xi_0,f,\theta,D_\mathrm{L}}^\textrm{SIE(R)}(R,\phi) = \frac{\xi_0}{D_\textrm{L}^2}\sqrt{\frac{f}{1-f^2}}R\cdot &\Bigg([\sin(\phi-\theta)]\cdot\sin^{-1}\left(\sqrt{1-f^2}\cdot \sin{(\phi-\theta)}\right) \\\\& +[\cos(\phi-\theta)]\cdot\sinh^{-1}\left(\frac{\sqrt{1-f^2}}{f}\cos(\phi-\theta)\right)\Bigg). \end{split} \end{aligned}

where (R,ϕ)(R,\phi) are the polar coordinates in the lens plane, i.e. $$

(x,y)=R(sinϕ,cosϕ).(x,y) = R\cdot (\sin\phi,\cos\phi).

$$

The deflection is given as

ψx=C0f1f2(cosθsinh1(1f2fxR)sinθsin1(1f2yR))ψy=C0f1f2(sinθsinh1(1f2fxR)+cosθsin1(1f2yR))\begin{aligned} \frac{\partial\psi}{\partial x} &= C_0\cdot\frac{\sqrt{f}}{\sqrt{1-f^2}}\cdot\big( \cos\theta\cdot\sinh^{-1}(\frac{\sqrt{1-f^2}}{f}\frac{x'}{R}) - \sin\theta\cdot\sin^{-1}(\sqrt{1-f^2}\frac{y'}{R}) \big) \\\\\\\\ \frac{\partial\psi}{\partial y} &= C_0\cdot\frac{\sqrt{f}}{\sqrt{1-f^2}}\cdot\big( \sin\theta\cdot\sinh^{-1}(\frac{\sqrt{1-f^2}}{f}\frac{x'}{R}) + \cos\theta\cdot\sin^{-1}(\sqrt{1-f^2}\frac{y'}{R}) \big) \end{aligned}

where

x=cosθx+sinθyy=sinθx+cosθyR=x2+y2\begin{aligned} x' &= \cos\theta\cdot x + \sin\theta\cdot y \\\\\\\\ y' &= -\sin\theta\cdot x + \cos\theta\cdot y \\\\\\\\ R &= \sqrt{x^2+y^2} \end{aligned}

As for SIS, C0=RE/DL2C_0=R_E/D_L^2 is called einsteinR in the code. See psiXvalue and psiYvalue in SIE.cpp.