Skip to content

Commit 76e48f5

Browse files
author
matthiasfabry
committed
introduce q in history
1 parent 220a049 commit 76e48f5

File tree

3 files changed

+9
-1
lines changed

3 files changed

+9
-1
lines changed

binary/defaults/binary_history_columns.list

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,8 @@
7272
star_2_mass ! mass of second star in msun
7373
!lg_star_2_mass ! log10 mass of second star in msun
7474
!sum_of_masses ! star_1_mass + star_2_mass
75+
!mass_ratio ! star_2_mass / star_1_mass
76+
!obs_mass_ratio ! min(m2/m1, m2/m1)
7577
lg_mtransfer_rate ! log10 of abs(mass transfer rate) in Msun/yr
7678
! this considers the amount of mass lost from the donor due to RLOF
7779
! not the actual mass that ends up accreted

binary/private/binary_history.f90

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -595,6 +595,10 @@ subroutine binary_history_getval(b, c, val, int_val, is_int_val, ierr)
595595
val = safe_log10(b% m(2) / Msun)
596596
case(bh_sum_of_masses)
597597
val = (b% m(1) + b% m(2)) / Msun
598+
case(bh_mass_ratio)
599+
val = b% m(2) / b% m(1)
600+
case(bh_obs_mass_ratio)
601+
val = min(b% m(2) / b% m(1), b% m(1) / b% m(2))
598602
case(bh_lg_mtransfer_rate)
599603
val = safe_log10(abs(b% step_mtransfer_rate) / Msun * secyer)
600604
case(bh_lg_mstar_dot_1)

binary/private/binary_private_def.f90

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,9 @@ module binary_private_def
5757
integer, parameter :: bh_star_2_mass = bh_lg_star_1_mass + 1
5858
integer, parameter :: bh_lg_star_2_mass = bh_star_2_mass + 1
5959
integer, parameter :: bh_sum_of_masses = bh_lg_star_2_mass + 1
60-
integer, parameter :: bh_lg_mtransfer_rate = bh_sum_of_masses + 1
60+
integer, parameter :: bh_mass_ratio = bh_sum_of_masses + 1
61+
integer, parameter :: bh_obs_mass_ratio = bh_mass_ratio + 1
62+
integer, parameter :: bh_lg_mtransfer_rate = bh_obs_mass_ratio + 1
6163
integer, parameter :: bh_lg_mstar_dot_1 = bh_lg_mtransfer_rate + 1
6264
integer, parameter :: bh_lg_mstar_dot_2 = bh_lg_mstar_dot_1 + 1
6365
integer, parameter :: bh_lg_system_mdot_1 = bh_lg_mstar_dot_2 + 1

0 commit comments

Comments
 (0)