Calculates the star formation rate for a given population of star particles.
Parameters : | pf : EnzoStaticOutput object data_source : AMRRegion object, optional
star_mass : Ordered array or list of floats
star_creation_time : Ordered array or list of floats
volume : Float
bins : Integer
|
---|
Examples
>>> pf = load("RedshiftOutput0000")
>>> sp = pf.h.sphere([0.5,0.5,0.5], [.1])
>>> sfr = StarFormationRate(pf, sp)