Skip to content

Commit 58a8a84

Browse files
authored
Merge pull request #759 from MESAHub/introduce_q
Introduce mass ratio
2 parents 845f79c + 2b949a4 commit 58a8a84

File tree

4 files changed

+20
-6
lines changed

4 files changed

+20
-6
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/defaults/pgbinary.defaults

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1897,29 +1897,33 @@
18971897
! ::
18981898

18991899
Text_Summary1_win_flag = .false.
1900-
Text_Summary1_win_width = 10
1901-
Text_Summary1_win_aspect_ratio = 0.15
1900+
Text_Summary1_win_width = 7
1901+
Text_Summary1_win_aspect_ratio = 0.6
19021902

19031903
! ::
19041904

19051905
Text_Summary1_xleft = 0.02
19061906
Text_Summary1_xright = 0.98
19071907
Text_Summary1_ybot = 0.08
19081908
Text_Summary1_ytop = 0.98
1909-
Text_Summary1_txt_scale = 4.5
1909+
Text_Summary1_txt_scale = 3.0
19101910
Text_Summary1_title = ''
19111911

19121912
! setup default
19131913

19141914
! ::
19151915

1916-
Text_Summary1_num_rows = 8
1917-
Text_Summary1_num_cols = 4
1916+
Text_Summary1_num_rows = 5
1917+
Text_Summary1_num_cols = 1
19181918
Text_Summary1_name(:, :) = ''
19191919

19201920
! ::
19211921

19221922
Text_Summary1_name(1, 1) = 'model_number'
1923+
Text_Summary1_name(2, 1) = 'jdot'
1924+
Text_Summary1_name(3, 1) = 'mass_ratio'
1925+
Text_Summary1_name(4, 1) = 'period_days'
1926+
Text_Summary1_name(5, 1) = 'rl_relative_overflow_1'
19231927

19241928
! file output
19251929

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: 5 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
@@ -145,6 +147,8 @@ subroutine binary_history_column_names_init(ierr)
145147
binary_history_column_name(bh_star_2_mass) = 'star_2_mass'
146148
binary_history_column_name(bh_lg_star_2_mass) = 'lg_star_2_mass'
147149
binary_history_column_name(bh_sum_of_masses) = 'sum_of_masses'
150+
binary_history_column_name(bh_mass_ratio) = 'mass_ratio'
151+
binary_history_column_name(bh_obs_mass_ratio) = 'obs_mass_ratio'
148152
binary_history_column_name(bh_lg_mtransfer_rate) = 'lg_mtransfer_rate'
149153
binary_history_column_name(bh_lg_mstar_dot_1) = 'lg_mstar_dot_1'
150154
binary_history_column_name(bh_lg_mstar_dot_2) = 'lg_mstar_dot_2'

0 commit comments

Comments
 (0)