:::info Migrated from Old Wiki
This content was partially migrated from the old wiki using GitHub Copilot and should be double-checked for accuracy.
:::
Usage
enfw
4.0000 #x-coord (= x centroid)
3.0000 #y-coord (= y centroid)
0.7 #b/a (= q, axis ratio)
3.6 #theta (= position angle, ccw from +x in radians. 0 means distribution is elongated along x.)
0.2 #rho_s
20.0 #r_s ($x_s$ above, scale radius in arcsec)
...
Rsoft 1e-5 # See the additional configuration section at the end of the page!!!
Definition of r 0 ′ r_0' r 0 ′ and R R R
We define:
r 0 ′ = r s + r soft q and R = x 2 + y 2 q 2 r_0' = \frac{r_s + r_{\text{soft}}}{\sqrt{q}} \quad\text{and}\quad R = \sqrt{x^2 + \frac{y^2}{q^2}} r 0 ′ = q r s + r soft and R = x 2 + q 2 y 2
such that
:::warning Work in Progress
The surface mass density equations for the eNFW below are currently being verified. Please refer to the original paper (Oguri 2021) or consult a GLEE developer for the authoritative formulation.
:::
κ = { 0.5 ⋅ 1 3 , if R 2 + r soft 2 = r 0 ′ 0.5 ( ( R 2 + r soft 2 r 0 ′ ) 2 − 1 ) ( 1 − 1 1 − ( R 2 + r soft 2 r 0 ′ ) 2 arctanh ( 1 − ( R 2 + r soft 2 r 0 ′ ) 2 ) ) , if R 2 + r soft 2 > r 0 ′ 0.5 ( ( R 2 + r soft 2 r 0 ′ ) 2 − 1 ) ( 1 − 1 ( R 2 + r soft 2 r 0 ′ ) 2 − 1 arctan ( ( R 2 + r soft 2 r 0 ′ ) 2 − 1 ) ) , if R 2 + r soft 2 > r 0 ′ \kappa = \left\{\begin{array}{ll}0.5\cdot\frac{1}{3}, & \quad \text{if } \sqrt{R^2 + r_{\text{soft}}^2} = r_0' \\[12pt] \frac{0.5}{\left(\left(\frac{\sqrt{R^2 + r_{\text{soft}}^2}}{r_0'}\right)^2 - 1\right)} \left(1 - \frac{1}{\sqrt{1 - \left(\frac{\sqrt{R^2 + r_{\text{soft}}^2}}{r_0'}\right)^2}} \operatorname{arctanh}\left(\sqrt{1 - \left(\frac{\sqrt{R^2 + r_{\text{soft}}^2}}{r_0'}\right)^2}\right)\right), & \quad \text{if } \sqrt{R^2 + r_{\text{soft}}^2} > r_0' \\[10pt] \frac{0.5}{\left(\left(\frac{\sqrt{R^2 + r_{\text{soft}}^2}}{r_0'}\right)^2 - 1\right)} \left(1 - \frac{1}{\sqrt{\left(\frac{\sqrt{R^2 + r_{\text{soft}}^2}}{r_0'}\right)^2 - 1}} \arctan\left(\sqrt{\left(\frac{\sqrt{R^2 + r_{\text{soft}}^2}}{r_0'}\right)^2 - 1}\right)\right),& \quad \text{if } \sqrt{R^2 + r_{\text{soft}}^2} > r_0' \end{array}\right.
κ = ⎩ ⎨ ⎧ 0.5 ⋅ 3 1 , ( ( r 0 ′ R 2 + r soft 2 ) 2 − 1 ) 0.5 1 − 1 − ( r 0 ′ R 2 + r soft 2 ) 2 1 arctanh 1 − ( r 0 ′ R 2 + r soft 2 ) 2 , ( ( r 0 ′ R 2 + r soft 2 ) 2 − 1 ) 0.5 1 − ( r 0 ′ R 2 + r soft 2 ) 2 − 1 1 arctan ( r 0 ′ R 2 + r soft 2 ) 2 − 1 , if R 2 + r soft 2 = r 0 ′ if R 2 + r soft 2 > r 0 ′ if R 2 + r soft 2 > r 0 ′
Normalisation Factor
To make κ \kappa κ consistent with the NFW profile in GLEE (when q = 1 q=1 q = 1 ), we apply a normalisation factor:
κ = κ ⋅ norm_factor \kappa = \kappa \cdot \text{norm\_factor} κ = κ ⋅ norm_factor
where:
nor_factor = χ c 2 g nfw ( χ c ) \text{nor\_factor} = \frac{\chi_c^2}{g_{\text{nfw}}(\chi_c)} nor_factor = g nfw ( χ c ) χ c 2
with:
χ c = ρ s r s \chi_c = \frac{\rho_s}{r_s} χ c = r s ρ s
and g nfw ( χ c ) g_{\text{nfw}}(\chi_c) g nfw ( χ c ) is given by:
g nfw ( χ c ) = { log ( 0.5 χ c ) + arccosh ( 1 / χ c ) 1 − χ c 2 , χ c < 1 0.306852819440 , χ c = 1 log ( 0.5 χ c ) + arccos ( 1 / χ c ) χ c 2 − 1 , χ c > 1 g_{\text{nfw}}(\chi_c) = \left\{ \begin{array}{ll} \log(0.5\chi_c) + \frac{\text{arccosh}(1/\chi_c)}{\sqrt{1 - \chi_c^2}}, & \chi_c < 1 \\[10pt] 0.306852819440, & \chi_c = 1 \\[10pt] \log(0.5\chi_c) + \frac{\text{arccos}(1/\chi_c)}{\sqrt{\chi_c^2 - 1}}, & \chi_c > 1\end{array}\right.
g nfw ( χ c ) = ⎩ ⎨ ⎧ log ( 0.5 χ c ) + 1 − χ c 2 arccosh ( 1/ χ c ) , 0.306852819440 , log ( 0.5 χ c ) + χ c 2 − 1 arccos ( 1/ χ c ) , χ c < 1 χ c = 1 χ c > 1
Deflection Angle Calculation
The deflection angle is calculated by decomposing the κ \kappa κ profile into a set of Core Steep Ellipsoids (CSEs), from which an analytical solution for the deflection angle is derived. Details of this method are presented in Oguri 2019 .
Scaling Options in GLEE
If using GLEE installed after September 2024 :
scale: after ρ s \rho_s ρ s means κ ˉ ( ρ s ) = 1 \bar{\kappa}(\rho_s) = 1 κ ˉ ( ρ s ) = 1
Without scale:, ρ s \rho_s ρ s is simply a normalisation factor
If using older versions of GLEE :
Both "scale:" and non-"scale:" cases imply κ ˉ ( ρ s ) = 1 \bar{\kappa}(\rho_s) = 1 κ ˉ ( ρ s ) = 1
Additional Configuration
To use the eNFW profile in GLEE, set:
R soft = 10 − 5 R_{\text{soft}} = 10^{-5} R soft = 1 0 − 5
in the configuration file.
Profile Citation
@article{Oguri2021,
title = {Fast Calculation of Gravitational Lensing Properties of Elliptical Navarro–Frenk–White and Hernquist Density Profiles},
volume = {133},
ISSN = {1538-3873},
url = {http://dx.doi.org/10.1088/1538-3873/ac12db},
DOI = {10.1088/1538-3873/ac12db},
number = {1025},
journal = {Publications of the Astronomical Society of the Pacific},
publisher = {IOP Publishing},
author = {Oguri, Masamune},
year = {2021},
month = jul,
pages = {074504}
}