Skip to content

Commit 1489354

Browse files
authored
Delete duplicated network nova2 (AMReX-Astro#1746)
nova2 is renamed nova, and the old nova network is removed
1 parent e668354 commit 1489354

29 files changed

+1054
-4073
lines changed

Docs/source/networks.rst

+22-9
Original file line numberDiff line numberDiff line change
@@ -149,21 +149,34 @@ burning. This network is managed by pynucastro.
149149
above).
150150

151151

152-
nova networks
153-
=============
152+
The ``nova`` network:
153+
=====================
154154

155-
The ``nova`` and ``nova2`` networks both are intended for modeling classical novae.
155+
This network is composed of 17 nuclei: $\isotm{H}{1,2}$, $\isotm{He}{3,4}$, $\isotm{Be}{7}$, $\isotm{B}{8}$,
156+
$\isotm{C}{12,13}$, $\isotm{N}{13-15}$, $\isotm{O}{14-17}$, $\isotm{F}{17,18}$ and is used to model the onset of
157+
a classical novae thermonuclear runaway. The first set of nuclei, $\isotm{H}{1,2}$, $\isotm{He}{3,4}$ represent
158+
the pp-chain sector of the reaction network, while the second set, of $\isotm{Be}{7}$, and $\isotm{B}{8}$, describe
159+
the involvement of the x-process. Finally, all the remaining nuclei are active participants of
160+
the CNO cycle with endpoints at $\isotm{F}{17}$ and $\isotm{F}{18}$. The triple-$\alpha$ reaction
161+
$\alpha(\alpha\alpha,\gamma)\isotm{C}{12}$, serves as bridge between the nuclei of first and the last set.
156162

163+
The the cold-CNO chain of reactions of the CN-branch are:
157164

158-
* ``nova`` focuses just on CNO/hot-CNO:
165+
* :math:`\isotm{C}{12}(p,\gamma)\isotm{N}{13}(\beta^{+}\nu_e)\isotm{C}{13}(p,\gamma)`
159166

160-
.. figure:: nova.png
161-
:align: center
167+
while the NO-branch chain of reactions is:
162168

163-
* ``nova2`` expands ``nova`` by adding the pp-chain nuclei:
169+
* :math:`\isotm{N}{14}(p,\gamma)\isotm{O}{15}(\beta^{+})\isotm{N}{15}(p,\gamma)\isotm{O}{16}(p,\gamma)\isotm{F}{17}(\beta^{+}\nu_e)\isotm{O}{17}`
164170

165-
.. figure:: nova2.png
166-
:align: center
171+
where the isotopes $\isotm{N}{15}$ and $\isotm{O}{17}$ may decay back into $\isotm{C}{12}$ and $\isotm{N}{14}$ through
172+
$\isotm{N}{15}(p,\alpha)\isotm{C}{12}$ and $\isotm{O}{17}(p,\alpha)\isotm{N}{14}$ respectively.
173+
174+
.. figure:: ../../networks/nova/nova.png
175+
:align: center
176+
177+
Once the temperature reaches a threshold of $\gtrsim 10^8\,\mathrm{K}$, the fast $p$-captures, for example,
178+
$\isotm{N}{13}(p,\gamma)\isotm{O}{14}$, are more likely than the $\beta^{+}$-decays $\isotm{N}{13}(\beta^{+}\nu_e)\isotm{C}{13}$
179+
reactions. These rates are also included in this network.
167180

168181

169182
He-burning networks

Docs/source/nova.png

-46.4 KB
Binary file not shown.

Docs/source/nova2.png

-62.2 KB
Binary file not shown.

networks/nova2/pynucastro.net networks/general_null/nova.net

+4
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
# The nova network contains the pp-chain, some
2+
# nuclei from the x-process, like Be and B, and
3+
# the CNO cycle, allowing a leakage throguh f18.
4+
15
hydrogen-1 H1 1.0 1.0
26
hydrogen-2 H2 2.0 1.0
37
helium-3 He3 3.0 2.0

networks/nova/Make.package

+1
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ ifeq ($(USE_REACT),TRUE)
55
CEXE_headers += actual_network.H
66
CEXE_headers += tfactors.H
77
CEXE_headers += partition_functions.H
8+
CEXE_sources += partition_functions_data.cpp
89
CEXE_headers += actual_rhs.H
910
CEXE_headers += reaclib_rates.H
1011
CEXE_headers += table_rates.H

networks/nova/actual_network.H

+80-44
Original file line numberDiff line numberDiff line change
@@ -29,41 +29,53 @@ namespace network
2929
if constexpr (spec == H1) {
3030
return 0.0_rt;
3131
}
32+
else if constexpr (spec == H2) {
33+
return 2.2245662689997516_rt;
34+
}
35+
else if constexpr (spec == He3) {
36+
return 7.718041347999588_rt;
37+
}
3238
else if constexpr (spec == He4) {
33-
return 28.29566_rt;
39+
return 28.295662457999697_rt;
40+
}
41+
else if constexpr (spec == Be7) {
42+
return 37.60083855599987_rt;
43+
}
44+
else if constexpr (spec == B8) {
45+
return 37.7372096199997_rt;
3446
}
3547
else if constexpr (spec == C12) {
36-
return 92.16172800000001_rt;
48+
return 92.16173498399803_rt;
3749
}
3850
else if constexpr (spec == C13) {
39-
return 97.108037_rt;
51+
return 97.10804378399916_rt;
4052
}
4153
else if constexpr (spec == N13) {
42-
return 94.105219_rt;
54+
return 94.10522604799917_rt;
4355
}
4456
else if constexpr (spec == N14) {
45-
return 104.65859599999999_rt;
57+
return 104.65860734799753_rt;
4658
}
4759
else if constexpr (spec == N15) {
48-
return 115.4919_rt;
60+
return 115.49190414799887_rt;
4961
}
5062
else if constexpr (spec == O14) {
51-
return 98.731892_rt;
63+
return 98.73189611199996_rt;
5264
}
5365
else if constexpr (spec == O15) {
54-
return 111.95538_rt;
66+
return 111.95539521199862_rt;
5567
}
5668
else if constexpr (spec == O16) {
57-
return 127.619296_rt;
69+
return 127.6193154119992_rt;
5870
}
5971
else if constexpr (spec == O17) {
60-
return 131.76237600000002_rt;
72+
return 131.76239561199873_rt;
6173
}
6274
else if constexpr (spec == F17) {
63-
return 128.21957600000002_rt;
75+
return 128.21958437599824_rt;
6476
}
6577
else if constexpr (spec == F18) {
66-
return 137.369484_rt;
78+
return 137.36950247599816_rt;
6779
}
6880

6981

@@ -125,27 +137,39 @@ namespace Rates
125137
k_O14_to_N14_weak_wc12 = 2,
126138
k_O15_to_N15_weak_wc12 = 3,
127139
k_F17_to_O17_weak_wc12 = 4,
128-
k_p_C12_to_N13 = 5,
129-
k_He4_C12_to_O16 = 6,
130-
k_p_C13_to_N14 = 7,
131-
k_p_N13_to_O14 = 8,
132-
k_p_N14_to_O15 = 9,
133-
k_He4_N14_to_F18 = 10,
134-
k_p_N15_to_O16 = 11,
135-
k_p_O16_to_F17 = 12,
136-
k_p_O17_to_F18 = 13,
137-
k_He4_N13_to_p_O16 = 14,
138-
k_p_N15_to_He4_C12 = 15,
139-
k_He4_O14_to_p_F17 = 16,
140-
k_p_O17_to_He4_N14 = 17,
141-
k_p_F18_to_He4_O15 = 18,
142-
k_He4_He4_He4_to_C12 = 19,
140+
k_B8_to_He4_He4_weak_wc12 = 5,
141+
k_p_p_to_d_weak_bet_pos_ = 6,
142+
k_p_p_to_d_weak_electron_capture = 7,
143+
k_p_d_to_He3 = 8,
144+
k_d_d_to_He4 = 9,
145+
k_p_He3_to_He4_weak_bet_pos_ = 10,
146+
k_He4_He3_to_Be7 = 11,
147+
k_p_Be7_to_B8 = 12,
148+
k_p_C12_to_N13 = 13,
149+
k_He4_C12_to_O16 = 14,
150+
k_p_C13_to_N14 = 15,
151+
k_p_N13_to_O14 = 16,
152+
k_p_N14_to_O15 = 17,
153+
k_He4_N14_to_F18 = 18,
154+
k_p_N15_to_O16 = 19,
155+
k_p_O16_to_F17 = 20,
156+
k_p_O17_to_F18 = 21,
157+
k_d_He3_to_p_He4 = 22,
158+
k_He4_N13_to_p_O16 = 23,
159+
k_p_N15_to_He4_C12 = 24,
160+
k_He4_O14_to_p_F17 = 25,
161+
k_p_O17_to_He4_N14 = 26,
162+
k_p_F18_to_He4_O15 = 27,
163+
k_He3_He3_to_p_p_He4 = 28,
164+
k_d_Be7_to_p_He4_He4 = 29,
165+
k_He3_Be7_to_p_p_He4_He4 = 30,
166+
k_He4_He4_He4_to_C12 = 31,
143167
NumRates = k_He4_He4_He4_to_C12
144168
};
145169

146170
// number of reaclib rates
147171

148-
const int NrateReaclib = 19;
172+
const int NrateReaclib = 31;
149173

150174
// number of tabular rates
151175

@@ -161,21 +185,33 @@ namespace Rates
161185
"O14_to_N14_weak_wc12", // 2,
162186
"O15_to_N15_weak_wc12", // 3,
163187
"F17_to_O17_weak_wc12", // 4,
164-
"p_C12_to_N13", // 5,
165-
"He4_C12_to_O16", // 6,
166-
"p_C13_to_N14", // 7,
167-
"p_N13_to_O14", // 8,
168-
"p_N14_to_O15", // 9,
169-
"He4_N14_to_F18", // 10,
170-
"p_N15_to_O16", // 11,
171-
"p_O16_to_F17", // 12,
172-
"p_O17_to_F18", // 13,
173-
"He4_N13_to_p_O16", // 14,
174-
"p_N15_to_He4_C12", // 15,
175-
"He4_O14_to_p_F17", // 16,
176-
"p_O17_to_He4_N14", // 17,
177-
"p_F18_to_He4_O15", // 18,
178-
"He4_He4_He4_to_C12" // 19,
188+
"B8_to_He4_He4_weak_wc12", // 5,
189+
"p_p_to_d_weak_bet_pos_", // 6,
190+
"p_p_to_d_weak_electron_capture", // 7,
191+
"p_d_to_He3", // 8,
192+
"d_d_to_He4", // 9,
193+
"p_He3_to_He4_weak_bet_pos_", // 10,
194+
"He4_He3_to_Be7", // 11,
195+
"p_Be7_to_B8", // 12,
196+
"p_C12_to_N13", // 13,
197+
"He4_C12_to_O16", // 14,
198+
"p_C13_to_N14", // 15,
199+
"p_N13_to_O14", // 16,
200+
"p_N14_to_O15", // 17,
201+
"He4_N14_to_F18", // 18,
202+
"p_N15_to_O16", // 19,
203+
"p_O16_to_F17", // 20,
204+
"p_O17_to_F18", // 21,
205+
"d_He3_to_p_He4", // 22,
206+
"He4_N13_to_p_O16", // 23,
207+
"p_N15_to_He4_C12", // 24,
208+
"He4_O14_to_p_F17", // 25,
209+
"p_O17_to_He4_N14", // 26,
210+
"p_F18_to_He4_O15", // 27,
211+
"He3_He3_to_p_p_He4", // 28,
212+
"d_Be7_to_p_He4_He4", // 29,
213+
"He3_Be7_to_p_p_He4_He4", // 30,
214+
"He4_He4_He4_to_C12" // 31,
179215
};
180216

181217
}
@@ -185,7 +221,7 @@ namespace NSE_INDEX
185221
{
186222
constexpr int H1_index = 0;
187223
constexpr int N_index = -1;
188-
constexpr int He4_index = 1;
224+
constexpr int He4_index = 3;
189225

190226
// Each row corresponds to the rate in NetworkRates enum
191227
// First 3 row indices for reactants, followed by 3 product indices

networks/nova/actual_network_data.cpp

+31-19
Original file line numberDiff line numberDiff line change
@@ -5,25 +5,37 @@
55
namespace NSE_INDEX
66
{
77
AMREX_GPU_MANAGED amrex::Array2D<int, 1, Rates::NumRates, 1, 7, Order::C> rate_indices {
8-
-1, -1, 4, -1, -1, 3, -1,
9-
-1, -1, 7, -1, -1, 5, -1,
10-
-1, -1, 8, -1, -1, 6, -1,
11-
-1, -1, 11, -1, -1, 10, -1,
12-
-1, 0, 2, -1, -1, 4, -1,
13-
-1, 1, 2, -1, -1, 9, -1,
14-
-1, 0, 3, -1, -1, 5, -1,
15-
-1, 0, 4, -1, -1, 7, -1,
16-
-1, 0, 5, -1, -1, 8, -1,
17-
-1, 1, 5, -1, -1, 12, -1,
18-
-1, 0, 6, -1, -1, 9, -1,
19-
-1, 0, 9, -1, -1, 11, -1,
20-
-1, 0, 10, -1, -1, 12, -1,
21-
-1, 1, 4, -1, 0, 9, -1,
22-
-1, 0, 6, -1, 1, 2, -1,
23-
-1, 1, 7, -1, 0, 11, -1,
24-
-1, 0, 10, -1, 1, 5, -1,
25-
-1, 0, 12, -1, 1, 8, -1,
26-
1, 1, 1, -1, -1, 2, -1
8+
-1, -1, 8, -1, -1, 7, -1,
9+
-1, -1, 11, -1, -1, 9, -1,
10+
-1, -1, 12, -1, -1, 10, -1,
11+
-1, -1, 15, -1, -1, 14, -1,
12+
-1, -1, 5, -1, 3, 3, -1,
13+
-1, 0, 0, -1, -1, 1, -1,
14+
-1, 0, 0, -1, -1, 1, -1,
15+
-1, 0, 1, -1, -1, 2, -1,
16+
-1, 1, 1, -1, -1, 3, -1,
17+
-1, 0, 2, -1, -1, 3, -1,
18+
-1, 2, 3, -1, -1, 4, -1,
19+
-1, 0, 4, -1, -1, 5, -1,
20+
-1, 0, 6, -1, -1, 8, -1,
21+
-1, 3, 6, -1, -1, 13, -1,
22+
-1, 0, 7, -1, -1, 9, -1,
23+
-1, 0, 8, -1, -1, 11, -1,
24+
-1, 0, 9, -1, -1, 12, -1,
25+
-1, 3, 9, -1, -1, 16, -1,
26+
-1, 0, 10, -1, -1, 13, -1,
27+
-1, 0, 13, -1, -1, 15, -1,
28+
-1, 0, 14, -1, -1, 16, -1,
29+
-1, 1, 2, -1, 0, 3, -1,
30+
-1, 3, 8, -1, 0, 13, -1,
31+
-1, 0, 10, -1, 3, 6, -1,
32+
-1, 3, 11, -1, 0, 15, -1,
33+
-1, 0, 14, -1, 3, 9, -1,
34+
-1, 0, 16, -1, 3, 12, -1,
35+
-1, 2, 2, 0, 0, 3, -1,
36+
-1, 1, 4, 0, 3, 3, -1,
37+
-1, 2, 4, 0, 0, 3, -1,
38+
3, 3, 3, -1, -1, 6, -1
2739
};
2840
}
2941
#endif

0 commit comments

Comments
 (0)