diff options
-rw-r--r-- | fg21sim/utils/cosmology.py | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/fg21sim/utils/cosmology.py b/fg21sim/utils/cosmology.py index a3c8574..d66de09 100644 --- a/fg21sim/utils/cosmology.py +++ b/fg21sim/utils/cosmology.py @@ -295,3 +295,11 @@ class Cosmology: if self._growth_factor0 is None: self._growth_factor0 = self.growth_factor(0) return self._growth_factor0 + + def dVc(self, z): + """ + Calculate the differential comoving volume. + + The dimensions is [Mpc^3]/[sr]/[unit redshift]. + """ + return self._cosmo.differential_comoving_volume(z).value |