Provides linear growth factor $D(a)$.
Uses omega_m
in the cosmology
module; set it in advance, e.g, mock.cosmology_set(0.31)
.
Function | Result |
---|---|
growth_D(a) | linear growth factor $D(a)$ at scale factor $a$ |
%matplotlib inline
import numpy as np
import matplotlib.pyplot as plt
import mockgallib as mock
mock.cosmology_set(0.31)
mock.growth_D(1.0)
a = np.arange(0.0, 1.0, 0.01)
growth = [mock.growth_D(aa) for aa in a]
plt.plot(a, growth, 'r-')
plt.xlabel('scale factor $a$')
plt.ylabel('$D$')
plt.show();
%%html
<style>
table {float:left}
</style>