Skip to content

A pure-Python equilibrium model code with speedy t-z splining

Notifications You must be signed in to change notification settings

moews/pyquilibrium

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 

Repository files navigation

PyQuilibrium

A pure-Python equilibrium model code with speedy t-z splining

The equilibrium model is an analytic formalism to describe the evolution of a set of baryonic galaxy properties, specifically the star formation rate, gas fraction and metallicity (Finlator & Davé, 2008; Davé et al., 2012). After the incorporation of related work in Asplund et al. (2009), Chabrier (2003) and Moews et al. (2020), this code now provides a Python implementation of the formalism. In addition, the relationship between cosmological age and redshift is splined outside the primary loop to avoid computing the redshift for each separate iteration.

Quickstart

If you want to start quickly, 'equilibrium' only NEEDS four inputs:

  1. The final redshift to which the galaxy is evolved
  2. The initial halo mass as an exponential of base 10
  3. The hubble constant that is to be used by the code
  4. The matter density parameter (commonly as Omega_m)

In addition, there are two optional parameters that can be set:

  1. The exponent used for calculating the ejective feedback parameter 'eta' in the function 'eta_function()'
  2. The exponent used for calculating the gas fraction in 'gas_frac()'

An example with the four required parameters would look like this:

from pyquilibrium import equilibrium_model

output = equilibrium_model(final_redshift = 0.0,
                           halo_mass = 8.2,
                           hubble_const = 70.0,
                           omega_matter = 0.3)

Libraries

  • Python 3.4.5
  • NumPy 1.11.3
  • SciPy 0.18.1
  • Astropy 1.3

About

A pure-Python equilibrium model code with speedy t-z splining

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages