Skip to content

Commit f8fceb6

Browse files
committed
running the model, seems to be working
1 parent fc1def0 commit f8fceb6

File tree

1 file changed

+7
-6
lines changed

1 file changed

+7
-6
lines changed

simplemc/models/HolographicCosmology.py

+7-6
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ def __init__(self, varyOk=False, varychde=True, mean=-2,
3333
self.varyOk = varyOk
3434
self.varychde = varychde
3535

36-
self.c_par = Parameter("c", 1.0, 0.1, (0.5, 2.0), "c")
36+
self.c_par = Parameter("c", 1.0, 0.1, (0.0, 2.0), "c")
3737

3838
self.Ok = Ok_par.value
3939
self.c_hde = self.c_par.value
@@ -51,8 +51,8 @@ def __init__(self, varyOk=False, varychde=True, mean=-2,
5151

5252
# = 0 for CC, = -2 for Barrow
5353
mean = mean
54-
priors = (-3, 1)
55-
sigma = 0.2
54+
priors = (-3.0 , 0.0)
55+
sigma = 0.1
5656

5757
self.pname = 'amp_'
5858
amps = 1 if nodes <= 1 else nodes
@@ -115,7 +115,8 @@ def ini_function(self):
115115

116116
def extra_term(self, z, Ode):
117117
# Bear in mind that f=D-2
118-
q_term = self.c_hde**2/(self.Om*(1 + z)**3)
118+
h0_c = 100*self.h/(constants.c/1000.)
119+
q_term = self.c_hde**2/(h0_c**2*self.Om*(1 + z)**3)
119120
return q_term*(1 - Ode)/Ode
120121

121122

@@ -127,7 +128,7 @@ def RHS_hde(self, Ode, z):
127128

128129
if np.abs(func) > self.tol:
129130
ex_term = self.extra_term(z, Ode)
130-
fact += -1*func*np.sqrt(Ode)/self.c_hde*ex_term**(0.5*(func+2)/func)
131+
fact += -1*func*np.sqrt(Ode)/self.c_hde*ex_term**(0.5 + 1./func)
131132

132133
# derivative term
133134
if self.nnodes > 1:
@@ -169,7 +170,7 @@ def EoS(self, z):
169170

170171
if np.abs(self.ffunc(z)) > self.tol:
171172
ex_term = self.extra_term(z, Ode)
172-
fact += -1*func*np.sqrt(Ode)/self.c_hde*ex_term**(0.5*(func+2)/func)
173+
fact += -1*func*np.sqrt(Ode)/self.c_hde*ex_term**(0.5 + 1./func)
173174

174175
if self.nnodes > 1:
175176
fact += (1+z)/func*self.dffunc(z)*np.log(ex_term)

0 commit comments

Comments
 (0)