synthpop.modules.population_density.besancon2003_bulge

Density Subclass to describe the bulge density from the Besancon model (Robin et al., 2003)

Classes

Besancon2003Bulge

Besancon model (Robin et al. 2003) bulge density

Module Contents

class synthpop.modules.population_density.besancon2003_bulge.Besancon2003Bulge(x0=1.59, y0=0.424, z0=0.424, Rc=2.54, n0=13700000000.0, bar_angle=11.1, **kwargs)

Bases: synthpop.modules.population_density._population_density.PopulationDensity

Besancon model (Robin et al. 2003) bulge density

Attributes

x0, y0, z0float [kpc]

semi major axis of the bulge

Rcfloat [kpc]

critical Radius

n0float [stars/kpc^3]

central number density

bar_anglefloat [°]

angle of the bar,

population_density_name = 'Besancon2003Bulge'
density_unit = 'number'
x0 = 1.59
y0 = 0.424
z0 = 0.424
Rc = 2.54
n0 = 13700000000.0
bar_ang
density(r: numpy.ndarray, phi_rad: numpy.ndarray, z: numpy.ndarray) numpy.ndarray

Estimates the density at the given position

Parameters

rndarray [‘kpc’]

Distance to z axis

phi_radndarray [‘rad’]

azimuth angle of the stars. phi_rad = 0 is pointing towards sun.

z : height above the galactic plane (corrected for warp of the galaxy)

Returns

rhondarray [M_sun/kpc^3 or #/kpc^3]

density at the given location, either in number density evolved mass density or initial mass density should be specified in density_unit.