Skip to main content

GNFW (Generalized NFW)

:::info Migrated from Old Wiki This content was migrated from the old wiki using GitHub Copilot and should be double-checked for accuracy. :::

Overview

The GNFW (Generalized Navarro-Frenk-White) profile extends the standard NFW profile by introducing a variable inner slope parameter γ\gamma. This allows for more flexibility in modeling dark matter halos with different central density profiles.

When γ=1\gamma = 1, the GNFW profile reduces to the standard NFW profile (without the scale: option).

Mathematical Definition

The 3D density profile is:

ρ(r)=ρs(r/rs)γ(1+r/rs)3γ\rho(r) = \frac{\rho_s}{(r/r_s)^\gamma \cdot (1 + r/r_s)^{3-\gamma}}

where:

  • ρs\rho_s = characteristic density
  • rsr_s = scale radius
  • γ\gamma = inner slope parameter

Spherical Projection Formulas

For spherical models with r,rsr, r_s in angular coordinates:

Convergence

κ(r)=0.5θeχ1γ[(1+χ)γ3+(3γ)01(y+χ)γ4(11y2)dy]\kappa(r) = 0.5 \cdot \theta_e \cdot \chi^{1-\gamma} \left[ (1+\chi)^{\gamma-3} + (3-\gamma) \int_0^1 (y+\chi)^{\gamma-4}(1-\sqrt{1-y^2}) \, dy \right]

Deflection Angle

α(r)=θersχ2γ(13γ2F1[3γ,3γ,4γ,χ]+01(y+χ)γ3(11y2)ydy)\alpha(r) = \theta_e \cdot r_s \cdot \chi^{2-\gamma} \left( \frac{1}{3-\gamma} \, _2F_1[3-\gamma, 3-\gamma, 4-\gamma, -\chi] + \int_0^1 \frac{(y+\chi)^{\gamma-3}(1-\sqrt{1-y^2})}{y} \, dy \right)

Lens Potential

ϕ(r)=0rα(r)dr\phi(r) = \int_0^r \alpha(r') \, dr'

where:

  • χ=r/rs\chi = r/r_s (dimensionless radius)
  • 2F1_2F_1 is the hypergeometric function

Normalization

The normalization parameter θe\theta_e is defined as:

θe=4κs=4ρsrsDdΣcrit\theta_e = 4\kappa_s = 4\rho_s r_s \frac{D_d}{\Sigma_{\text{crit}}}

where:

  • κs=ρsrsDd/Σcrit\kappa_s = \rho_s r_s D_d / \Sigma_{\text{crit}}
  • DdD_d = angular diameter distance to the lens
  • Σcrit\Sigma_{\text{crit}} = critical surface density

:::note No Scale Option Since GNFW requires numerical integration (computationally intensive), the scale: option is not implemented for the strength parameter. The strength remains a direct normalization rather than an equivalent Einstein radius. :::

Ellipticity Implementation

:::warning Important Ellipticity is implemented in the lens potential, not in κ\kappa directly:

ϕ(r)ϕ(x2q+y2/q)\phi(r) \rightarrow \phi(\sqrt{x^2 q + y^2/q})

This differs from some other profiles where ellipticity is applied directly to the convergence. :::

GLEE Configuration

Basic Usage

gnfw
4.0000 #x-coord
3.0000 #y-coord
0.7 #b/a (q, axis ratio)
3.6 #theta (position angle, ccw from +x in radians; 0 = elongated along x)
0.2 #theta_e (normalization, see definition above)
20.0 #r_scale (rs, scale radius in arcsec)
1.0 #gamma (inner slope)

Parameter Summary

#ParameterDescriptionNotes
1xx-coordinate of centroid (arcsec)
2yy-coordinate of centroid (arcsec)
3qAxis ratio (b/a, minor/major)0<q10 < q \leq 1
4thetaPosition angle (radians, CCW from +x axis)
5theta_eNormalization (4κs4\kappa_s)No scale: option
6r_scaleScale radius rsr_s (arcsec)
7gammaInner slopeγ=1\gamma = 1 recovers NFW

Numerical Integration

The deflection angle and lens potential require numerical integration using GSL (GNU Scientific Library) integrators.

Available Integrators

GLEE supports three GSL integration methods:

  • QAGS (default) - Adaptive integration with singularities
  • QAGP - Adaptive integration with specified singular points
  • CQUAD - Doubly-adaptive integration

See GSL Documentation for implementation details.

Selecting an Integrator

Set the environment variable GNFW_INTEGRATOR before running GLEE:

tcsh shell:

setenv GNFW_INTEGRATOR CQUAD

bash shell:

export GNFW_INTEGRATOR=CQUAD

Valid values: QAGS, QAGP, CQUAD. If not set, QAGS is used. Invalid values trigger an error.

Integration Failure Handling

:::caution Automatic Handling When GSL fails to numerically integrate, GLEE does not halt with an error. Instead:

  • Deflection angles and lens potentials are set to INFINITY
  • MCMC/emcee chains continue running (avoiding periodic halts)

Warning: If integration fails frequently, the chains will be inaccurate. Monitor chain behavior and adjust parameters if needed. :::

Special Cases

Recovery of Standard NFW

When γ=1\gamma = 1:

ρ(r)=ρs(r/rs)(1+r/rs)2\rho(r) = \frac{\rho_s}{(r/r_s)(1 + r/r_s)^2}

This matches the standard NFW profile (without scale: option).

  • NFW - Standard Navarro-Frenk-White profile
  • TNFW - Triaxial NFW profile
  • PNFW - Prolate NFW profile
  • eNFW - Elliptical NFW with ellipticity in κ

References

  • Navarro, J. F., Frenk, C. S., & White, S. D. M. (1996). The Structure of Cold Dark Matter Halos. ApJ, 462, 563
  • Zhao, H. (1996). Analytical models for galactic nuclei. MNRAS, 278, 488