Package enrichpy :: Module delay :: Class MockDelay

Class MockDelay

source code

Delay --+
        |
       MockDelay

Instance Methods
 
__init__(self, binmasses, fractions, lifetimeFunc=<function main_sequence_life_K97 at 0x8f42b1c>, maxTime=None, **args)
Mimics the Delay class.
source code
 
metal_mass_dist(self, m)
Fraction of total carbon yield from stars of mass m, dfC/dm, i.e. the distribution of carbon production as a function of stellar mass.
source code
 
metal_mass_CCDF(self, mass)
Complementary cumulative distribution of metal yield by mass, i.e. the fraction of the total metal output produced by stars above mass m.
source code
 
metal_mass_dist_postinterp(self, m)
Like metal_mass_dist, but with interpolation after IMF multiplication.
source code
 
imf(self, mass)
The initial mass function.
source code
 
yield_mass(self, m)
Carbon yield from a star of mass m.
source code

Inherited from Delay: m_star, mass_limit_error, metal_mass_dist_binned, metal_time_CDF, metal_time_dist_binned, metal_time_dist_unbinned, printstats, stats, t_life

Method Details

__init__(self, binmasses, fractions, lifetimeFunc=<function main_sequence_life_K97 at 0x8f42b1c>, maxTime=None, **args)
(Constructor)

source code 
Mimics the Delay class.
Overrides: Delay.__init__

metal_mass_dist(self, m)

source code 

Fraction of total carbon yield from stars of mass m, dfC/dm, i.e. the distribution of carbon production as a function of stellar mass.

This is weighted by the stellar initial mass function (IMF), so that metal_mass_dist(m) * dm is the fraction of carbon emitted by stars with masses between m and m+dm.

Note that this is normalized over the interval from self.lowMass to self.highMass.

Overrides: Delay.metal_mass_dist
(inherited documentation)

metal_mass_CCDF(self, mass)

source code 

Complementary cumulative distribution of metal yield by mass, i.e. the fraction of the total metal output produced by stars above mass m.

This is the integral of metal_mass_dist from m to highMass (or self.highMass).

Note that this is normalized over the interval from self.lowMass to self.highMass, so values may be negative above highMass and greater than one below lowMass.

kwargs get passed to utils.ccumulate, which may passes them to utils.integrate_piecewise, which may pass them to the integration routine.

See also: metal_mass_dist.

Overrides: Delay.metal_mass_CCDF
(inherited documentation)

metal_mass_dist_postinterp(self, m)

source code 
Like metal_mass_dist, but with interpolation after IMF multiplication.
Overrides: Delay.metal_mass_dist_postinterp
(inherited documentation)

imf(self, mass)

source code 

The initial mass function.

Note that the normalization may include stars that do not contribute to the yield of metals.

Overrides: Delay.imf
(inherited documentation)

yield_mass(self, m)

source code 

Carbon yield from a star of mass m.

This is the total mass of carbon emitted by a single star of mass m over its lifetime.

Overrides: Delay.yield_mass
(inherited documentation)