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.

Implementation of SIE

Raytrace

This is implemented in the SIE class (src/simlib/SIE.cpp).

Evaluation of the lens potential.

To evaluate the lens potential ψR(x,y)\psi^{\mathrm{R}}(x,y), we calculate the polar coordinates RR and ϕ\phi, and use the formula (see SIE) for ψξ0,f,θ,DLSIE(R)(R,ϕ)\psi_{\xi_0,f,\theta,D_\mathrm{L}}^\textrm{SIE(R)}(R,\phi).

Evaluation of the Deflection.

This uses \begin{aligned} \frac{\partial\psi^{\mathrm{R}}}{\partial x} &= C_0\frac{\sqrt{f}}{f’}\cdot \left( \cos\theta\cdot\sinh^{-1}\left(\frac{f’}{f}\cdot\frac{x\cos\theta+y\sin\theta}{R}\right) -\sin\theta\cdot\sin^{-1}\left(f’\cdot\frac{-x\sin\theta+y\cos\theta}{R}\right) \right) \\\\ \frac{\partial\psi^{\mathrm{R}}}{\partial y} &= C_0\frac{\sqrt{f}}{f’}\cdot \left( \sin\theta\cdot\sinh^{-1}\left(\frac{f’}{f}\cdot\frac{x\cos\theta+y\sin\theta}{R}\right) +\cos\theta\cdot\sin^{-1}\left(f’\cdot\frac{-x\sin\theta+y\cos\theta}{R}\right) \right) \end{aligned} as taken from the expression for α(x,y)\vec\alpha(x,y) above.

Note in polar co-ordinates, we replace x/Rx/R and y/Ry/R with cosϕ\cos\phi and sinϕ\sin\phi respectively, and find that ψ\nabla\psi is constant in RR.

Roulette

Under Construction

αsm=Γsmak=02ks(1)k(s2k)s(x)s2k(y)2kβsm=Γsmak=02k+1s(1)k(s2k+1)s(x)s2k1(y)2k+1\begin{align} \alpha^m_s & = \Gamma^m_s \square^{a^-} \sum_{k=0}^{2k\le s} (-1)^k \binom{s}{2k} \frac{\partial^{s}}{(\partial x)^{s-2k}(\partial y)^{2k}} \\\\\\\\ \beta^m_s & = \Gamma^m_s \square^{a^-} \sum_{k=0}^{2k+1\le s} (-1)^k \binom{s}{2k+1} \frac{\partial^{s}}{(\partial x)^{s-2k-1}(\partial y)^{2k+1}} \end{align}

where

Γsm={(2δ0s)χm+12m(m+1(m+1s)/2),m+s odd0m+s even\Gamma^m_s = \begin{cases} -(2^{-\delta_{0s}})\frac{\chi^{m+1}}{2^m}\binom{m+1}{(m+1-s)/2}, \quad\text{$m+s$ odd} \\\\\\\\ 0 \quad\text{$m+s$ even} \end{cases}

and

=(ψ)2\square = (\nabla\psi)^2

TODO aa^-