vice.singlezone.enhancement¶
Type : real number or <function>
Default : 1.0
The ratio of the outflow to ISM metallicities. Real numbers will be taken as constant. Functions must accept time in Gyr as the only parameter. This will apply to all elements tracked by the simulation.
Note
Saving this functional attribute with VICE outputs requires the
package dill, an extension to pickle
in the Python standard
library. It is recommended that VICE user’s install dill
>= 0.2.0.
See also
vice.singlezone.eta
vice.singlezone.smoothing
Example Code¶
>>> import vice
>>> sz = vice.singlezone(name = "example")
>>> sz.enhancement = 3
>>> def f(t):
if t <= 1:
return 5
else:
return 1
>>> sz.enhancement = f