32 use sufr_kinds
, only: double
33 use sufr_system
, only: syntax_quit
34 use sufr_constants
, only: set_sufr_constants, c3rd,pi2, pc_g,pc_c, msun, solday,julyear
37 real(double) :: m1,m2,per,time,cst
38 character :: tmpstr*(99)
40 if(command_argument_count().eq.3)
then
41 call get_command_argument(1, tmpstr)
43 call get_command_argument(2, tmpstr)
45 call get_command_argument(3, tmpstr)
48 call syntax_quit(
'<M1> <M2> <time> (Mo and Gyr)', 0, &
49 'This program calculates the maximum initial period that can coalesce due to GWs within a given time')
52 call set_sufr_constants()
54 cst = 5.d0/256.d0 * pi2**(-8*c3rd) * pc_c**5/pc_g**(5*c3rd) * (m1+m2)**(c3rd) / (m1*m2*msun**(5*c3rd))
56 per = (time*1.d9*julyear/cst)**0.375d0/solday
58 write(6,
'(/,A,1p,G13.5,A5,/)')
' Maximum initial period for convergence:',per,
'days'
program gw_coalescence_pmax
Calculates the maximum initial period that can coalesce within a given time.