Skip to content

Commit c52300b

Browse files
committed
allow for any C/O composition in the core
1 parent 43c1ba6 commit c52300b

10 files changed

+8
-22
lines changed

sub_chandra/_parameters

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,9 @@ X_C12 real 0.00
1313
# mass fraction of O16 to put in the accreted envelope
1414
X_O16 real 0.00
1515

16+
# mass fraction of core O16 composition
17+
core_O16 real 0.5
18+
1619
delta real 1.e-6
1720

1821
xmin real 0.0

sub_chandra/init_1d.H

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@
1515

1616
using namespace amrex;
1717

18-
1918
// generate an initial model for an arbitrary-mass, isothermal C WD
2019
// with an isentropic He envelope on the surface.
2120

@@ -37,7 +36,6 @@ AMREX_INLINE void init_1d() {
3736

3837
const int MAX_ITER = 1000;
3938

40-
4139
// convert the envelope and WD mass into CGS
4240

4341
problem_rp::M_tot *= C::M_solar;
@@ -62,13 +60,12 @@ AMREX_INLINE void init_1d() {
6260
Real xn_core[NumSpec] = {network_rp::small_x};
6361
Real xn_he[NumSpec] = {network_rp::small_x};;
6462

65-
if (problem_rp::mixed_co_wd) {
66-
xn_core[ic12] = 0.5_rt - 0.5_rt * (NumSpec - 1) * network_rp::small_x;
67-
xn_core[io16] = 0.5_rt - 0.5_rt * (NumSpec - 1) * network_rp::small_x;
68-
} else {
69-
xn_core[ic12] = 1.0_rt - (NumSpec - 1) * network_rp::small_x;
63+
if (problem_rp::core_O16 > 0.0_rt) {
64+
xn_core[io16] = problem_rp::core_O16;
7065
}
7166

67+
xn_core[ic12] = 1.0_rt - xn_core[io16] - (NumSpec - 2) * network_rp::small_x;
68+
7269
if (problem_rp::X_N14 > 0.0_rt) {
7370
xn_he[in14] = problem_rp::X_N14;
7471
}

sub_chandra/inputs.M_WD-0.9.M_He-0.1.CO.CNO

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,6 @@ problem.delta = 5.e6
1111
problem.temp_core = 3.e7
1212
problem.temp_base = 2.3e8
1313

14-
problem.mixed_co_wd = 1
15-
1614
problem.X_C12 = 0.05
1715
problem.X_O16 = 0.05
1816
problem.X_N14 = 0.009

sub_chandra/inputs.M_WD-0.981.M_He-0.05.CO.CO

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,6 @@ problem.delta = 5.e6
1111
problem.temp_core = 5.e7
1212
problem.temp_base = 2.e8
1313

14-
problem.mixed_co_wd = 1
15-
1614
problem.X_C12 = 0.05
1715
problem.X_O16 = 0.05
1816

sub_chandra/inputs.M_WD-0.981.M_He-0.05.CO.CO.isothermal

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,6 @@ problem.delta = 5.e6
1111
problem.temp_core = 5.e7
1212
problem.temp_base = 2.e8
1313

14-
problem.mixed_co_wd = 1
15-
1614
problem.X_C12 = 0.05
1715
problem.X_O16 = 0.05
1816

sub_chandra/inputs.M_WD-1.1.M_He-0.05

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ problem.delta = 5.e6
1111
problem.temp_core = 1.e7
1212
problem.temp_base = 1.75e8
1313

14-
problem.mixed_co_wd = 0
14+
problem.core_O16 = 0.0
1515

1616
problem.X_N14 = 0.01
1717

sub_chandra/inputs.M_WD-1.1.M_He-0.05.CO

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,6 @@ problem.delta = 5.e6
1111
problem.temp_core = 1.e7
1212
problem.temp_base = 1.75e8
1313

14-
problem.mixed_co_wd = 1
15-
1614
problem.X_N14 = 0.0
1715

1816
problem.low_density_cutoff = 1.e-4

sub_chandra/inputs.M_WD-1.1.M_He-0.05.CO.N14

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,6 @@ problem.delta = 5.e6
1111
problem.temp_core = 1.e7
1212
problem.temp_base = 1.75e8
1313

14-
problem.mixed_co_wd = 1
15-
1614
problem.X_N14 = 0.01
1715

1816
problem.low_density_cutoff = 1.e-4

sub_chandra/inputs.M_WD-1.1.M_He-0.05.CO.N14.thin

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,6 @@ problem.delta = 1.e6
1111
problem.temp_core = 1.e7
1212
problem.temp_base = 1.75e8
1313

14-
problem.mixed_co_wd = 1
15-
1614
problem.X_N14 = 0.01
1715

1816
problem.low_density_cutoff = 1.e-4

sub_chandra/inputs.M_WD-1.1.M_He-0.05.CO.N14.thinner

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,6 @@ problem.delta = 2.e5
1111
problem.temp_core = 1.e7
1212
problem.temp_base = 1.75e8
1313

14-
problem.mixed_co_wd = 1
15-
1614
problem.X_N14 = 0.01
1715

1816
problem.low_density_cutoff = 1.e-4

0 commit comments

Comments
 (0)