synthpop.modules.population_density.besancon2003_thickdisk
Thick disk density from the Besancon model (Robin et al., 2003)
Classes
Besancon Model (Robin et al., 2003) thick disk |
Module Contents
- class synthpop.modules.population_density.besancon2003_thickdisk.Besancon2003Thickdisk(rho0, hr, hz, xl, flare_flag=False, **kwargs)
Bases:
synthpop.modules.population_density._population_density.PopulationDensityBesancon Model (Robin et al., 2003) thick disk
Attributes
- rho0float [Msun/kpc**3]
density at the location of the sun
- hrfloat [kpc]
scale height in radii
- hzfloat [kpc]
scale height in height
- xlfloat
transit point
- flare_flag: boolean
flag if flare is included or not
- population_density_name = 'ThickDisk'
- density_unit = 'mass'
- rho0
- xl
- hr
- hz
- flare_flag = False
- 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.