GammaLib 2.0.0
Loading...
Searching...
No Matches
GModelSpatialRadialProfileDMBurkert::halo_kernel_los Class Reference

#include <GModelSpatialRadialProfileDMBurkert.hpp>

Inheritance diagram for GModelSpatialRadialProfileDMBurkert::halo_kernel_los:
GFunction

Public Member Functions

 halo_kernel_los (const double &scale_radius, const double &halo_distance, const double &theta, const double &core_radius)
 
double eval (const double &los)
 Kernel for halo density profile squared.
 
- Public Member Functions inherited from GFunction
 GFunction (void)
 Void constructor.
 
 GFunction (const GFunction &function)
 Copy constructor.
 
virtual ~GFunction (void)
 Destructor.
 
GFunctionoperator= (const GFunction &function)
 Assignment operator.
 

Protected Attributes

double m_scale_radius
 
double m_halo_distance
 
double m_theta
 
double m_core_radius
 

Additional Inherited Members

- Protected Member Functions inherited from GFunction
void init_members (void)
 Initialise class members.
 
void copy_members (const GFunction &function)
 Copy class members.
 
void free_members (void)
 Delete class members.
 

Detailed Description

Definition at line 90 of file GModelSpatialRadialProfileDMBurkert.hpp.

Constructor & Destructor Documentation

◆ halo_kernel_los()

GModelSpatialRadialProfileDMBurkert::halo_kernel_los::halo_kernel_los ( const double & scale_radius,
const double & halo_distance,
const double & theta,
const double & core_radius )
inline

Definition at line 92 of file GModelSpatialRadialProfileDMBurkert.hpp.

Member Function Documentation

◆ eval()

double GModelSpatialRadialProfileDMBurkert::halo_kernel_los::eval ( const double & los)
virtual

Kernel for halo density profile squared.

Parameters
[in]losDistance from observer to point in space (meters).
Returns
Halo density.

Computes the value of an einasto halo density profile squared, at distance l from observer, at angle

\[\theta\]

from the halo center:

\[ f(\theta, l) = \frac{r_{scale}^3}{ \left( r + r_{scale} \right) \left( r^2 + r_{scale}^2 \right)} \]

where

\[ r = \sqrt{l^2+d^2-2ldCos(\theta)} \]

This profile is detailed in: Burkert, 1995 "The Structure Of Dark Matter Halos In Dwarf Galaxies" The Astrophysical Journal, 447: L25–L28 http://iopscience.iop.org/article/10.1086/309560/pdf Equation 2

Implements GFunction.

Definition at line 614 of file GModelSpatialRadialProfileDMBurkert.cpp.

References m_core_radius, m_halo_distance, m_scale_radius, and m_theta.

Referenced by GModelSpatialRadialProfileDMBurkert::mass_density().

Member Data Documentation

◆ m_core_radius

double GModelSpatialRadialProfileDMBurkert::halo_kernel_los::m_core_radius
protected

Definition at line 105 of file GModelSpatialRadialProfileDMBurkert.hpp.

Referenced by eval().

◆ m_halo_distance

double GModelSpatialRadialProfileDMBurkert::halo_kernel_los::m_halo_distance
protected

Definition at line 103 of file GModelSpatialRadialProfileDMBurkert.hpp.

Referenced by eval().

◆ m_scale_radius

double GModelSpatialRadialProfileDMBurkert::halo_kernel_los::m_scale_radius
protected

Definition at line 102 of file GModelSpatialRadialProfileDMBurkert.hpp.

Referenced by eval().

◆ m_theta

double GModelSpatialRadialProfileDMBurkert::halo_kernel_los::m_theta
protected

Definition at line 104 of file GModelSpatialRadialProfileDMBurkert.hpp.

Referenced by eval().


The documentation for this class was generated from the following files: