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

Authors
Affiliations
NTNU---Norwegian University of Science and Technology
NTNU---Norwegian University of Science and Technology

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

∂ψR∂x=C0ff′⋅(cos⁡θ⋅sinh⁡−1(f′f⋅xcos⁡θ+ysin⁡θR)−sin⁡θ⋅sin⁡−1(f′⋅−xsin⁡θ+ycos⁡θR))∂ψR∂y=C0ff′⋅(sin⁡θ⋅sinh⁡−1(f′f⋅xcos⁡θ+ysin⁡θR)+cos⁡θ⋅sin⁡−1(f′⋅−xsin⁡θ+ycos⁡θR))\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.

Roulette

Under Construction

αsm=Γsm□a−∑k=02k≤s(−1)k(s2k)∂s(∂x)s−2k(∂y)2kβsm=Γsm□a−∑k=02k+1≤s(−1)k(s2k+1)∂s(∂x)s−2k−1(∂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+1−s)/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 a−a^-