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 . This allows for more flexibility in modeling dark matter halos with different central density profiles.
When , the GNFW profile reduces to the standard NFW profile (without the scale: option).
Mathematical Definition
The 3D density profile is:
where:
- = characteristic density
- = scale radius
- = inner slope parameter
Spherical Projection Formulas
For spherical models with in angular coordinates:
Convergence
Deflection Angle
Lens Potential
where:
- (dimensionless radius)
- is the hypergeometric function
Normalization
The normalization parameter is defined as:
where:
- = angular diameter distance to the lens
- = 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 directly:
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
| # | Parameter | Description | Notes |
|---|---|---|---|
| 1 | x | x-coordinate of centroid (arcsec) | |
| 2 | y | y-coordinate of centroid (arcsec) | |
| 3 | q | Axis ratio (b/a, minor/major) | |
| 4 | theta | Position angle (radians, CCW from +x axis) | |
| 5 | theta_e | Normalization () | No scale: option |
| 6 | r_scale | Scale radius (arcsec) | |
| 7 | gamma | Inner slope | 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 :
This matches the standard NFW profile (without scale: option).
Related Profiles
- 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