synthpop.modules.population_density.triaxial_bulge

Bulge density models for all triaxial formulations from Dwek (1995).

Classes

TriaxialBulge

Bulge density models for all triaxial formulations from Dwek (1995).

Module Contents

class synthpop.modules.population_density.triaxial_bulge.TriaxialBulge(triaxial_type: str, density_unit: str, x0: float, y0: float, z0: float, rho0: float, Rmax=np.inf, bar_angle=29.4, **kwargs)

Bases: synthpop.modules.population_density._population_density.PopulationDensity

Bulge density models for all triaxial formulations from Dwek (1995).

Attributes

triaxial_typestr

functional form as defined in Dwek (1995); available options are ‘G1’, ‘G2’, ‘G3’, ‘E1’, ‘E2’, ‘E3’, ‘P1’, ‘P2’, ‘P3’

density_unit: str

options: ‘mass’ or ‘number’

x0, y0, z0float [kpc]

semi major axes of the bulge

rho0float [m_sun/kpc^3 or stars/kpc^3]

central density, unit determined by density_unit

Rmaxfloat [kpc]

cutoff radius for bulge

bar_anglefloat [degrees]

angle of the bar

population_density_name = 'Bulge_Density'
density_unit
x0
y0
z0
rho0
Rmax
bar_ang
rho_func
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.