Package pycosmicstar :: Module cosmology
[hide private]
[frames] | no frames]

Source Code for Module pycosmicstar.cosmology

  1  #!/usr/bin/env python3 
  2  # *-* Coding: UTF-8 *-* 
  3   
  4  from __future__ import division, absolute_import 
  5   
  6  __author__ = "Eduardo dos Santos Pereira" 
  7  __email__ = "pereira.somoza@gmail.com" 
  8  __credits__ = ["Eduardo dos Santos Pereira"] 
  9  __license__ = "GPLV3" 
 10  __version__ = "1.0.1" 
 11  __maintainer__ = "Eduardo dos Santos Pereira" 
 12  __status__ = "Stable" 
 13   
 14  """Abstract Class of cosmological models. 
 15   
 16  This file is part of pystar. 
 17  copyright : Eduardo dos Santos Pereira 
 18   
 19  pystar is free software: you can redistribute it and/or modify 
 20  it under the terms of the GNU General Public License as published by 
 21  the Free Software Foundation, either version 3 of the License. 
 22  pystar is distributed in the hope that it will be useful, 
 23  but WITHOUT ANY WARRANTY; without even the implied warranty of 
 24  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the 
 25  GNU General Public License for more details. 
 26   
 27  You should have received a copy of the GNU General Public License 
 28  along with Foobar.  If not, see <http://www.gnu.org/licenses/>. 
 29   
 30  """ 
 31   
 32   
33 -class cosmology:
34
35 - def dt_dz(self, z):
36 """Return the relation between the cosmic time and the redshift 37 """ 38 raise NotImplementedError('I need to be implemented!')
39
40 - def dr_dz(self, z):
41 """Return the comove-radii""" 42 raise NotImplementedError('I need to be implemented!')
43
44 - def dV_dz(self, z):
45 """Return the comove volume""" 46 raise NotImplementedError('I need to be implemented!')
47
48 - def rodm(self, z):
49 """Return the Dark Matter Density""" 50 raise NotImplementedError('I need to be implemented!')
51
52 - def robr(self, z):
53 """Return the Barionic Matter Density""" 54 raise NotImplementedError('I need to be implemented!')
55
56 - def H(self, z):
57 """Return the Hubble Parameter""" 58 raise NotImplementedError('I need to be implemented!')
59
60 - def dgrowth_dt(self, z):
61 """Return the derivative of growth function of the 62 primordial perturbations""" 63 raise NotImplementedError('I need to be implemented!')
64
65 - def growthFunction(self, z):
66 """Return the growth function of the primordial perturbations""" 67 raise NotImplementedError('I need to be implemented!')
68
69 - def dsigma2_dk(self, kl):
70 """"Return the integrating of sigma(M,z) for a top-hat filtering. 71 In z = 0 return sigma_8, for z > 0 return sigma(M,z) 72 """ 73 raise NotImplementedError('I need to be implemented!')
74
75 - def sigma(self):
76 """Return the variance of the linear density field. 77 As pointed out by Jenkis et al. (2001), 78 this definition of the mass function has the advantage that it does 79 not explicitly depend on redshift, power spectrum or cosmology. 80 """ 81 raise NotImplementedError('I need to be implemented!')
82
83 - def age(self, z):
84 """Return the age of the Universe for a given z 85 """ 86 raise NotImplementedError('I need to be implemented!')
87
88 - def setCosmologicalParameter(self):
89 raise NotImplementedError('I need to be implemented!')
90
91 - def getCosmologicalParameter(self):
92 raise NotImplementedError('I need to be implemented!')
93
94 - def getTilt(self):
95 raise NotImplementedError('I need to be implemented!')
96
97 - def getRobr0(self):
98 raise NotImplementedError('I need to be implemented!')
99
100 - def getRodm0(self):
101 raise NotImplementedError('I need to be implemented!')
102