34 use sufr_kinds
, only: double
35 use sufr_system
, only: syntax_quit
36 use sufr_constants
, only: set_sufr_constants, c3rd,pi,d2r, pc_g,pc_c, msun
39 real(double) :: m1,m2,mc,mu,eta, t,f0,m,s,theta,x,beta,pn, m0
42 if(command_argument_count().eq.5)
then
43 call get_command_argument(1,str)
45 call get_command_argument(2,str)
47 call get_command_argument(3,str)
49 call get_command_argument(4,str)
51 call get_command_argument(5,str)
54 call syntax_quit(
'<f0> <M1> <M2> <S1> <theta_SL>', 0, &
55 'This program calculates the coalescence time for a binary with masses M1 and M2 from a lower GW frequency of f0')
58 call set_sufr_constants()
60 m0 = msun*pc_g/pc_c**3
69 t = 5*(8.d0*pi*f0)**(-8.d0*c3rd) * (mc*m0)**(-5.d0*c3rd)
72 beta = 1.d0/12.d0*(113*(m1/m)**2 + 75*eta)*s*cos(theta)
74 pn = 1.d0 + 0.75d0*(743.d0/336.d0 + 11.d0/4.d0*eta)*x**(2*c3rd) - 8.d0/5.d0*(4*pi-beta)*x
78 write(6,
'(2x,A,3F15.4)')
'M1,M2,f0: ',m1,m2,f0
79 write(6,
'(2x,A,3F15.4)')
'Mu,eta,Mc: ',mu,eta,mc
80 write(6,
'(2x,A)')
'Tcoal: '
81 write(6,
'(2x,A,F15.4)')
' Newtonian: ',t
82 write(6,
'(2x,A,F15.4)')
' PN: ',t*pn
program gw_coalescence_time_from_f0