Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
P
PTAInterpretation
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
CI / CD
CI / CD
Pipelines
Schedules
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Commits
Open sidebar
Hannah Middleton
PTAInterpretation
Commits
0fc1a8b4
Commit
0fc1a8b4
authored
Jun 05, 2023
by
Hannah Middleton
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fixing typo and checking things with Siyuan
parent
58e8675c
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
5 deletions
+5
-5
mergerrate.py
models/galaxy_model/mergerrate.py
+5
-5
No files found.
models/galaxy_model/mergerrate.py
View file @
0fc1a8b4
...
@@ -23,12 +23,12 @@ def dtdz(z):
...
@@ -23,12 +23,12 @@ def dtdz(z):
def
dVcdz
(
z
):
def
dVcdz
(
z
):
c
=
const
.
c
.
value
# 3.e8
c
=
const
.
c
.
value
# 3.e8
H0
=
cosmo
.
H
(
0
)
.
value
*
1.e3
# 70.e3
-> check with Siyuan
H0
=
cosmo
.
H
(
0
)
.
value
*
1.e3
# 70.e3
return
4.
*
np
.
pi
*
c
/
H0
*
invE
(
z
)
*
DM
(
z
)
*
DM
(
z
)
return
4.
*
np
.
pi
*
c
/
H0
*
invE
(
z
)
*
DM
(
z
)
*
DM
(
z
)
def
DM
(
z
):
def
DM
(
z
):
c
=
const
.
c
.
value
# 3.e8
c
=
const
.
c
.
value
# 3.e8
H0
=
cosmo
.
H
(
0
)
.
value
*
1.e3
# 70.e3
-> check with Siyuan
H0
=
cosmo
.
H
(
0
)
.
value
*
1.e3
# 70.e3
return
c
/
H0
*
si
.
quad
(
invE
,
0.
,
z
)[
0
]
return
c
/
H0
*
si
.
quad
(
invE
,
0.
,
z
)[
0
]
def
mchirpq
(
q
):
def
mchirpq
(
q
):
...
@@ -53,7 +53,7 @@ def mfractionp(m):
...
@@ -53,7 +53,7 @@ def mfractionp(m):
#spectrum computation functions begin
#spectrum computation functions begin
Gu
=
const
.
G
.
value
# 6.673848e-11
Gu
=
const
.
G
.
value
# 6.673848e-11
cu
=
const
.
G
.
value
# 2.997925e8
cu
=
const
.
c
.
value
# 2.997925e8
Msun
=
const
.
M_sun
.
value
# 1.98855e30
Msun
=
const
.
M_sun
.
value
# 1.98855e30
pc
=
1.
*
u
.
parsec
.
to
(
u
.
m
)
# 3.0856776e16
pc
=
1.
*
u
.
parsec
.
to
(
u
.
m
)
# 3.0856776e16
Gyr
=
1.e9
*
1.
*
u
.
year
.
to
(
u
.
s
)
# 3.15576e16
Gyr
=
1.e9
*
1.
*
u
.
year
.
to
(
u
.
s
)
# 3.15576e16
...
@@ -404,8 +404,8 @@ class mergerrate(object):
...
@@ -404,8 +404,8 @@ class mergerrate(object):
def
hdrop
(
self
,
n0
,
f
,
fbin
):
def
hdrop
(
self
,
n0
,
f
,
fbin
):
if
fbin
is
None
:
if
fbin
is
None
:
return
n0
return
n0
c
=
c
onst
.
c
.
value
# 3.e8
c
=
c
u
# 3.e8
G
=
1.33e20
# should we use const.G.value here too (not sure what the unit is here)
G
=
const
.
G
.
value
*
const
.
M_sun
.
value
# 1.33e20
fhigh
=
f
+
fbin
fhigh
=
f
+
fbin
flow
=
f
-
fbin
flow
=
f
-
fbin
Mcbh
=
np
.
linspace
(
5
,
11
,
30
)
Mcbh
=
np
.
linspace
(
5
,
11
,
30
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment