From 804f360e4e4cbd6b33fdf88259e966ec7909834b Mon Sep 17 00:00:00 2001 From: Michael Zingale Date: Wed, 7 Oct 2026 12:06:09 -0400 Subject: [PATCH 1/6] add a massive star network --- Docs/source/networks.rst | 19 + networks/massive-star-medium/Make.package | 21 + networks/massive-star-medium/_parameters | 2 + networks/massive-star-medium/actual_network.H | 1514 ++ networks/massive-star-medium/actual_rhs.H | 9689 +++++++++++ .../massive-star-medium/approximate_rates.H | 1671 ++ networks/massive-star-medium/branched_rates.H | 33 + networks/massive-star-medium/derived_rates.H | 14041 ++++++++++++++++ .../flycheck_massive_star_medium.py | 46 + networks/massive-star-medium/interp_tools.H | 222 + .../massive-star-medium.png | Bin 0 -> 216845 bytes .../massive_star_medium.py | 47 + networks/massive-star-medium/modified_rates.H | 34 + .../massive-star-medium/partition_functions.H | 2430 +++ .../massive-star-medium/pynucastro-info.txt | 1 + networks/massive-star-medium/pynucastro.net | 76 + networks/massive-star-medium/rate_type.H | 73 + networks/massive-star-medium/reaclib_rates.H | 10251 +++++++++++ networks/massive-star-medium/table_rates.H | 1061 ++ .../massive-star-medium/tabular_weak_rates.H | 340 + .../temperature_table_rates.H | 33 + networks/massive-star-medium/tfactors.H | 34 + 22 files changed, 41638 insertions(+) create mode 100644 networks/massive-star-medium/Make.package create mode 100644 networks/massive-star-medium/_parameters create mode 100644 networks/massive-star-medium/actual_network.H create mode 100644 networks/massive-star-medium/actual_rhs.H create mode 100644 networks/massive-star-medium/approximate_rates.H create mode 100644 networks/massive-star-medium/branched_rates.H create mode 100644 networks/massive-star-medium/derived_rates.H create mode 100644 networks/massive-star-medium/flycheck_massive_star_medium.py create mode 100644 networks/massive-star-medium/interp_tools.H create mode 100644 networks/massive-star-medium/massive-star-medium.png create mode 100644 networks/massive-star-medium/massive_star_medium.py create mode 100644 networks/massive-star-medium/modified_rates.H create mode 100644 networks/massive-star-medium/partition_functions.H create mode 100644 networks/massive-star-medium/pynucastro-info.txt create mode 100644 networks/massive-star-medium/pynucastro.net create mode 100644 networks/massive-star-medium/rate_type.H create mode 100644 networks/massive-star-medium/reaclib_rates.H create mode 100644 networks/massive-star-medium/table_rates.H create mode 100644 networks/massive-star-medium/tabular_weak_rates.H create mode 100644 networks/massive-star-medium/temperature_table_rates.H create mode 100644 networks/massive-star-medium/tfactors.H diff --git a/Docs/source/networks.rst b/Docs/source/networks.rst index 823165b423..cc927a8559 100644 --- a/Docs/source/networks.rst +++ b/Docs/source/networks.rst @@ -543,6 +543,25 @@ of (Graboske 1973) for weak screening and the work of (Alastuey 1978 and Itoh 1979) for strong screening. +Massive star networks +===================== + +``massive-star-medium`` +----------------------- + +This is a network that tries to better capture O and Si burning for +massive star convection leading up to core-collapse (as compared to +``aprox21``). It has 53 nuclei (+ 23 more nuclei approximated out, +mostly via the double-n capture approximation) and 318 rates +explicitly connecting the nuclei. + +.. figure:: ../../networks/massive-star-medium/massive-star-medium.png + :align: center + +The highlighted links in the figure above are the tabulated weak rates +included. + + ``powerlaw`` ============ diff --git a/networks/massive-star-medium/Make.package b/networks/massive-star-medium/Make.package new file mode 100644 index 0000000000..e667964316 --- /dev/null +++ b/networks/massive-star-medium/Make.package @@ -0,0 +1,21 @@ +PYNUCASTRO_NETWORK = TRUE +CEXE_headers += network_properties.H + +ifeq ($(USE_REACT),TRUE) + CEXE_headers += actual_network.H + CEXE_headers += tfactors.H + CEXE_headers += interp_tools.H + CEXE_headers += partition_functions.H + CEXE_headers += actual_rhs.H + CEXE_headers += rate_type.H + CEXE_headers += reaclib_rates.H + CEXE_headers += approximate_rates.H + CEXE_headers += branched_rates.H + CEXE_headers += modified_rates.H + CEXE_headers += table_rates.H + CEXE_headers += temperature_table_rates.H + CEXE_headers += tabular_weak_rates.H + CEXE_headers += derived_rates.H + USE_SCREENING = TRUE + USE_NEUTRINOS = TRUE +endif diff --git a/networks/massive-star-medium/_parameters b/networks/massive-star-medium/_parameters new file mode 100644 index 0000000000..e7a017d5aa --- /dev/null +++ b/networks/massive-star-medium/_parameters @@ -0,0 +1,2 @@ +@namespace: network + diff --git a/networks/massive-star-medium/actual_network.H b/networks/massive-star-medium/actual_network.H new file mode 100644 index 0000000000..cc2fe272a8 --- /dev/null +++ b/networks/massive-star-medium/actual_network.H @@ -0,0 +1,1514 @@ +#ifndef ACTUAL_NETWORK_H +#define ACTUAL_NETWORK_H + +#include +#include + +#include +#include +#include + +#include +#include +#include + +using namespace amrex::literals; + + +inline +void actual_network_init() { + + +} + +constexpr std::string_view network_name = "pynucastro-cxx"; + +namespace network +{ + + template + AMREX_GPU_HOST_DEVICE AMREX_INLINE + constexpr amrex::Real bion () { + using namespace Species; + + static_assert(spec >= 1 && spec <= NumSpec); + + // Set the binding energy of the element + + if constexpr (spec == N) { + return 0.0_rt; + } + else if constexpr (spec == H1) { + return 0.0_rt; + } + else if constexpr (spec == He4) { + return 28.295662457999697_rt; + } + else if constexpr (spec == C12) { + return 92.16173498399803_rt; + } + else if constexpr (spec == O16) { + return 127.6193154119992_rt; + } + else if constexpr (spec == Ne20) { + return 160.64482384000075_rt; + } + else if constexpr (spec == Mg23) { + return 181.7258218679999_rt; + } + else if constexpr (spec == Mg24) { + return 198.2570479679962_rt; + } + else if constexpr (spec == Al27) { + return 224.95193723199915_rt; + } + else if constexpr (spec == Si27) { + return 219.3572401960009_rt; + } + else if constexpr (spec == Si28) { + return 236.53684539599638_rt; + } + else if constexpr (spec == Si30) { + return 255.61964649599756_rt; + } + else if constexpr (spec == P29) { + return 239.28581936000046_rt; + } + else if constexpr (spec == P31) { + return 262.9161999600037_rt; + } + else if constexpr (spec == S30) { + return 243.68124042399725_rt; + } + else if constexpr (spec == S32) { + return 271.78016372399725_rt; + } + else if constexpr (spec == S34) { + return 291.83895282400044_rt; + } + else if constexpr (spec == Cl33) { + return 274.05689768799857_rt; + } + else if constexpr (spec == Cl35) { + return 298.20976388800045_rt; + } + else if constexpr (spec == Ar34) { + return 278.7208587519963_rt; + } + else if constexpr (spec == Ar36) { + return 306.7167469519991_rt; + } + else if constexpr (spec == Ar38) { + return 327.3426711519933_rt; + } + else if constexpr (spec == K37) { + return 308.5743760159967_rt; + } + else if constexpr (spec == K39) { + return 333.7240072160057_rt; + } + else if constexpr (spec == Ca38) { + return 313.1216470799991_rt; + } + else if constexpr (spec == Ca40) { + return 342.05218528000114_rt; + } + else if constexpr (spec == Ca42) { + return 361.8957094799989_rt; + } + else if constexpr (spec == Sc41) { + return 343.1371143439974_rt; + } + else if constexpr (spec == Sc43) { + return 366.82549054399715_rt; + } + else if constexpr (spec == Ti42) { + return 346.88807540800184_rt; + } + else if constexpr (spec == Ti44) { + return 375.47496160800074_rt; + } + else if constexpr (spec == Ti46) { + return 398.19726780800556_rt; + } + else if constexpr (spec == V45) { + return 377.1017326720029_rt; + } + else if constexpr (spec == V47) { + return 403.3650388719979_rt; + } + else if constexpr (spec == V49) { + return 425.4628050719984_rt; + } + else if constexpr (spec == Cr46) { + return 381.97630373600254_rt; + } + else if constexpr (spec == Cr48) { + return 411.4679399359957_rt; + } + else if constexpr (spec == Cr50) { + return 435.0509361359945_rt; + } + else if constexpr (spec == Cr52) { + return 456.35172233599593_rt; + } + else if constexpr (spec == Mn49) { + return 413.55581099999836_rt; + } + else if constexpr (spec == Mn51) { + return 440.321747199996_rt; + } + else if constexpr (spec == Mn53) { + return 462.9114833999993_rt; + } + else if constexpr (spec == Fe50) { + return 417.7008820640039_rt; + } + else if constexpr (spec == Fe52) { + return 447.6996182639923_rt; + } + else if constexpr (spec == Fe54) { + return 471.76475446399854_rt; + } + else if constexpr (spec == Fe56) { + return 492.2599506639962_rt; + } + else if constexpr (spec == Co53) { + return 449.3158893279979_rt; + } + else if constexpr (spec == Co55) { + return 476.82912552799826_rt; + } + else if constexpr (spec == Co56) { + return 486.91094362799777_rt; + } + else if constexpr (spec == Co57) { + return 498.28746172798856_rt; + } + else if constexpr (spec == Ni56) { + return 483.9956965919919_rt; + } + else if constexpr (spec == Ni58) { + return 506.4596327920008_rt; + } + else if constexpr (spec == Cu59) { + return 509.8782038560021_rt; + } + + + // Return zero if we don't recognize the species. + return 0.0_rt; + } + + template + AMREX_GPU_HOST_DEVICE AMREX_INLINE + constexpr amrex::Real mion () { + using namespace Species; + + static_assert(spec >= 1 && spec <= NumSpec); + + // Set the mass of the element + + if constexpr (spec == N) { + return 1.674927498034172e-24_rt; + } + else if constexpr (spec == H1) { + return 1.6735328377636005e-24_rt; + } + else if constexpr (spec == He4) { + return 6.646479071584587e-24_rt; + } + else if constexpr (spec == C12) { + return 1.99264687992e-23_rt; + } + else if constexpr (spec == O16) { + return 2.6560180592333686e-23_rt; + } + else if constexpr (spec == Ne20) { + return 3.3198227947612416e-23_rt; + } + else if constexpr (spec == Mg23) { + return 3.8182640828719474e-23_rt; + } + else if constexpr (spec == Mg24) { + return 3.9828098739467446e-23_rt; + } + else if constexpr (spec == Al27) { + return 4.480389861070653e-23_rt; + } + else if constexpr (spec == Si27) { + return 4.4812477403805044e-23_rt; + } + else if constexpr (spec == Si28) { + return 4.6456779473820677e-23_rt; + } + else if constexpr (spec == Si30) { + return 4.977261628701015e-23_rt; + } + else if constexpr (spec == P29) { + return 4.812541182037512e-23_rt; + } + else if constexpr (spec == P31) { + return 5.14331418367544e-23_rt; + } + else if constexpr (spec == S30) { + return 4.979110910837843e-23_rt; + } + else if constexpr (spec == S32) { + return 5.309087322384128e-23_rt; + } + else if constexpr (spec == S34) { + return 5.64049701803872e-23_rt; + } + else if constexpr (spec == Cl33) { + return 5.476034741466158e-23_rt; + } + else if constexpr (spec == Cl35) { + return 5.806714601585715e-23_rt; + } + else if constexpr (spec == Ar34) { + return 5.642556598663247e-23_rt; + } + else if constexpr (spec == Ar36) { + return 5.972551377884467e-23_rt; + } + else if constexpr (spec == Ar38) { + return 6.303859972524341e-23_rt; + } + else if constexpr (spec == K37) { + return 6.139573509201139e-23_rt; + } + else if constexpr (spec == K39) { + return 6.470075679819664e-23_rt; + } + else if constexpr (spec == Ca38) { + return 6.30611616828019e-23_rt; + } + else if constexpr (spec == Ca40) { + return 6.635944331004904e-23_rt; + } + else if constexpr (spec == Ca42) { + return 6.967392401113526e-23_rt; + } + else if constexpr (spec == Sc41) { + return 6.80310420860826e-23_rt; + } + else if constexpr (spec == Sc43) { + return 7.133866871591414e-23_rt; + } + else if constexpr (spec == Ti42) { + return 6.969788822838791e-23_rt; + } + else if constexpr (spec == Ti44) { + return 7.299678247096977e-23_rt; + } + else if constexpr (spec == Ti46) { + return 7.630613127700392e-23_rt; + } + else if constexpr (spec == V45) { + return 7.466741532590238e-23_rt; + } + else if constexpr (spec == V47) { + return 7.797045172607207e-23_rt; + } + else if constexpr (spec == V49) { + return 8.128091387578276e-23_rt; + } + else if constexpr (spec == Cr46) { + return 7.633225845144595e-23_rt; + } + else if constexpr (spec == Cr48) { + return 7.962953983065421e-23_rt; + } + else if constexpr (spec == Cr50) { + return 8.293735431739904e-23_rt; + } + else if constexpr (spec == Cr52) { + return 8.624923721300802e-23_rt; + } + else if constexpr (spec == Mn49) { + return 8.129935070017476e-23_rt; + } + else if constexpr (spec == Mn51) { + return 8.460149108098279e-23_rt; + } + else if constexpr (spec == Mn53) { + return 8.79110762145079e-23_rt; + } + else if constexpr (spec == Fe50) { + return 8.296549427759014e-23_rt; + } + else if constexpr (spec == Fe52) { + return 8.626187166893794e-23_rt; + } + else if constexpr (spec == Fe54) { + return 8.95688266630639e-23_rt; + } + else if constexpr (spec == Fe56) { + return 9.288214565329033e-23_rt; + } + else if constexpr (spec == Co53) { + return 8.793252324182073e-23_rt; + } + else if constexpr (spec == Co55) { + return 9.123333143937473e-23_rt; + } + else if constexpr (spec == Co56) { + return 9.289028646418131e-23_rt; + } + else if constexpr (spec == Co57) { + return 9.454493347659797e-23_rt; + } + else if constexpr (spec == Ni56) { + return 9.289408870379396e-23_rt; + } + else if constexpr (spec == Ni58) { + return 9.620389809618879e-23_rt; + } + else if constexpr (spec == Cu59) { + return 9.787133677749025e-23_rt; + } + + + // Return zero if we don't recognize the species. + return 0.0_rt; + } + + // Legacy (non-templated) interfaces + + AMREX_GPU_HOST_DEVICE AMREX_INLINE + amrex::Real bion (int spec) { + using namespace Species; + + amrex::Real b = 0.0_rt; + + // Set the binding energy of the element + amrex::constexpr_for<1, NumSpec+1>([&] (auto n) { + if (n == spec) { + b = bion(); + } + }); + + return b; + } + + AMREX_GPU_HOST_DEVICE AMREX_INLINE + amrex::Real mion (int spec) { + using namespace Species; + + amrex::Real m = 0.0_rt; + + amrex::constexpr_for<1, NumSpec+1>([&] (auto n) { + if (n == spec) { + m = mion(); + } + }); + + return m; + } +} + +namespace Rates +{ + + enum NetworkRates : + std::uint16_t + { + k_C12_He4_to_O16_reaclib = 1, + k_O16_He4_to_Ne20_reaclib = 2, + k_Mg23_n_to_Mg24_reaclib = 3, + k_Mg23_He4_to_Si27_reaclib = 4, + k_Mg24_He4_to_Si28_reaclib = 5, + k_Al27_p_to_Si28_reaclib = 6, + k_Al27_He4_to_P31_reaclib = 7, + k_Si27_n_to_Si28_reaclib = 8, + k_Si28_p_to_P29_reaclib = 9, + k_Si28_He4_to_S32_reaclib = 10, + k_Si30_p_to_P31_reaclib = 11, + k_Si30_He4_to_S34_reaclib = 12, + k_P29_p_to_S30_reaclib = 13, + k_P29_He4_to_Cl33_reaclib = 14, + k_P31_p_to_S32_reaclib = 15, + k_P31_He4_to_Cl35_reaclib = 16, + k_S30_He4_to_Ar34_reaclib = 17, + k_S32_p_to_Cl33_reaclib = 18, + k_S32_He4_to_Ar36_reaclib = 19, + k_S34_p_to_Cl35_reaclib = 20, + k_S34_He4_to_Ar38_reaclib = 21, + k_Cl33_p_to_Ar34_reaclib = 22, + k_Cl33_He4_to_K37_reaclib = 23, + k_Cl35_p_to_Ar36_reaclib = 24, + k_Cl35_He4_to_K39_reaclib = 25, + k_Ar34_He4_to_Ca38_reaclib = 26, + k_Ar36_p_to_K37_reaclib = 27, + k_Ar36_He4_to_Ca40_reaclib = 28, + k_Ar38_p_to_K39_reaclib = 29, + k_Ar38_He4_to_Ca42_reaclib = 30, + k_K37_p_to_Ca38_reaclib = 31, + k_K37_He4_to_Sc41_reaclib = 32, + k_K39_p_to_Ca40_reaclib = 33, + k_K39_He4_to_Sc43_reaclib = 34, + k_Ca38_He4_to_Ti42_reaclib = 35, + k_Ca40_p_to_Sc41_reaclib = 36, + k_Ca40_He4_to_Ti44_reaclib = 37, + k_Ca42_p_to_Sc43_reaclib = 38, + k_Ca42_He4_to_Ti46_reaclib = 39, + k_Sc41_p_to_Ti42_reaclib = 40, + k_Sc41_He4_to_V45_reaclib = 41, + k_Sc43_p_to_Ti44_reaclib = 42, + k_Sc43_He4_to_V47_reaclib = 43, + k_Ti42_He4_to_Cr46_reaclib = 44, + k_Ti44_p_to_V45_reaclib = 45, + k_Ti44_He4_to_Cr48_reaclib = 46, + k_Ti46_p_to_V47_reaclib = 47, + k_Ti46_He4_to_Cr50_reaclib = 48, + k_V45_p_to_Cr46_reaclib = 49, + k_V45_He4_to_Mn49_reaclib = 50, + k_V47_p_to_Cr48_reaclib = 51, + k_V47_He4_to_Mn51_reaclib = 52, + k_V49_p_to_Cr50_reaclib = 53, + k_V49_He4_to_Mn53_reaclib = 54, + k_Cr46_He4_to_Fe50_reaclib = 55, + k_Cr48_p_to_Mn49_reaclib = 56, + k_Cr48_He4_to_Fe52_reaclib = 57, + k_Cr50_p_to_Mn51_reaclib = 58, + k_Cr50_He4_to_Fe54_reaclib = 59, + k_Cr52_p_to_Mn53_reaclib = 60, + k_Cr52_He4_to_Fe56_reaclib = 61, + k_Mn49_p_to_Fe50_reaclib = 62, + k_Mn49_He4_to_Co53_reaclib = 63, + k_Mn51_p_to_Fe52_reaclib = 64, + k_Mn51_He4_to_Co55_reaclib = 65, + k_Mn53_p_to_Fe54_reaclib = 66, + k_Mn53_He4_to_Co57_reaclib = 67, + k_Fe52_p_to_Co53_reaclib = 68, + k_Fe52_He4_to_Ni56_reaclib = 69, + k_Fe54_p_to_Co55_reaclib = 70, + k_Fe54_He4_to_Ni58_reaclib = 71, + k_Fe56_p_to_Co57_reaclib = 72, + k_Co55_n_to_Co56_reaclib = 73, + k_Co55_p_to_Ni56_reaclib = 74, + k_Co55_He4_to_Cu59_reaclib = 75, + k_Co56_n_to_Co57_reaclib = 76, + k_Co57_p_to_Ni58_reaclib = 77, + k_Ni58_p_to_Cu59_reaclib = 78, + k_O16_C12_to_p_Al27_reaclib = 79, + k_O16_C12_to_He4_Mg24_reaclib = 80, + k_O16_O16_to_p_P31_reaclib = 81, + k_O16_O16_to_He4_Si28_reaclib = 82, + k_Ne20_C12_to_p_P31_reaclib = 83, + k_Ne20_C12_to_He4_Si28_reaclib = 84, + k_Mg23_n_to_He4_Ne20_reaclib = 85, + k_Mg23_n_to_C12_C12_reaclib = 86, + k_Al27_p_to_He4_Mg24_reaclib = 87, + k_Al27_He4_to_p_Si30_reaclib = 88, + k_Si27_n_to_p_Al27_reaclib = 89, + k_Si27_n_to_He4_Mg24_reaclib = 90, + k_Si27_n_to_C12_O16_reaclib = 91, + k_P29_He4_to_p_S32_reaclib = 92, + k_P31_p_to_He4_Si28_reaclib = 93, + k_P31_He4_to_p_S34_reaclib = 94, + k_S30_n_to_He4_Si27_reaclib = 95, + k_S30_He4_to_p_Cl33_reaclib = 96, + k_Cl33_He4_to_p_Ar36_reaclib = 97, + k_Cl35_p_to_He4_S32_reaclib = 98, + k_Cl35_He4_to_p_Ar38_reaclib = 99, + k_Ar34_He4_to_p_K37_reaclib = 100, + k_K37_He4_to_p_Ca40_reaclib = 101, + k_K39_p_to_He4_Ar36_reaclib = 102, + k_Ca38_He4_to_p_Sc41_reaclib = 103, + k_Ca42_p_to_He4_K39_reaclib = 104, + k_Sc41_He4_to_p_Ti44_reaclib = 105, + k_Sc43_p_to_He4_Ca40_reaclib = 106, + k_Sc43_He4_to_p_Ti46_reaclib = 107, + k_Ti42_He4_to_p_V45_reaclib = 108, + k_Ti44_He4_to_p_V47_reaclib = 109, + k_V45_He4_to_p_Cr48_reaclib = 110, + k_V47_He4_to_p_Cr50_reaclib = 111, + k_V49_p_to_He4_Ti46_reaclib = 112, + k_V49_He4_to_p_Cr52_reaclib = 113, + k_Cr46_He4_to_p_Mn49_reaclib = 114, + k_Cr48_He4_to_p_Mn51_reaclib = 115, + k_Mn49_He4_to_p_Fe52_reaclib = 116, + k_Mn51_He4_to_p_Fe54_reaclib = 117, + k_Mn53_p_to_He4_Cr50_reaclib = 118, + k_Mn53_He4_to_p_Fe56_reaclib = 119, + k_Fe50_He4_to_p_Co53_reaclib = 120, + k_Fe52_He4_to_p_Co55_reaclib = 121, + k_Co53_He4_to_p_Ni56_reaclib = 122, + k_Co55_He4_to_p_Ni58_reaclib = 123, + k_Co56_n_to_p_Fe56_reaclib = 124, + k_Co56_n_to_He4_Mn53_reaclib = 125, + k_Co57_p_to_He4_Fe54_reaclib = 126, + k_Ni56_n_to_p_Co56_reaclib = 127, + k_Cu59_n_to_He4_Co56_reaclib = 128, + k_Cu59_p_to_He4_Ni56_reaclib = 129, + k_He4_He4_He4_to_C12_reaclib = 130, + k_Ni56_n_to_Ni57_reaclib = 131, + k_Ni57_n_to_Ni58_reaclib = 132, + k_Co53_n_to_Co54_reaclib = 133, + k_Co54_n_to_Co55_reaclib = 134, + k_Fe50_n_to_Fe51_reaclib = 135, + k_Fe51_n_to_Fe52_reaclib = 136, + k_Fe52_n_to_Fe53_reaclib = 137, + k_Fe53_n_to_Fe54_reaclib = 138, + k_Fe54_n_to_Fe55_reaclib = 139, + k_Fe55_n_to_Fe56_reaclib = 140, + k_Mn49_n_to_Mn50_reaclib = 141, + k_Mn50_n_to_Mn51_reaclib = 142, + k_Mn51_n_to_Mn52_reaclib = 143, + k_Mn52_n_to_Mn53_reaclib = 144, + k_Cr46_n_to_Cr47_reaclib = 145, + k_Cr47_n_to_Cr48_reaclib = 146, + k_Cr48_n_to_Cr49_reaclib = 147, + k_Cr49_n_to_Cr50_reaclib = 148, + k_Cr50_n_to_Cr51_reaclib = 149, + k_Cr51_n_to_Cr52_reaclib = 150, + k_V45_n_to_V46_reaclib = 151, + k_V46_n_to_V47_reaclib = 152, + k_V47_n_to_V48_reaclib = 153, + k_V48_n_to_V49_reaclib = 154, + k_Ti42_n_to_Ti43_reaclib = 155, + k_Ti43_n_to_Ti44_reaclib = 156, + k_Ti44_n_to_Ti45_reaclib = 157, + k_Ti45_n_to_Ti46_reaclib = 158, + k_Sc41_n_to_Sc42_reaclib = 159, + k_Sc42_n_to_Sc43_reaclib = 160, + k_Ca38_n_to_Ca39_reaclib = 161, + k_Ca39_n_to_Ca40_reaclib = 162, + k_Ca40_n_to_Ca41_reaclib = 163, + k_Ca41_n_to_Ca42_reaclib = 164, + k_Ar34_n_to_Ar35_reaclib = 165, + k_Ar35_n_to_Ar36_reaclib = 166, + k_Ar36_n_to_Ar37_reaclib = 167, + k_Ar37_n_to_Ar38_reaclib = 168, + k_Si28_n_to_Si29_reaclib = 169, + k_Si29_n_to_Si30_reaclib = 170, + k_S30_n_to_S31_reaclib = 171, + k_S31_n_to_S32_reaclib = 172, + k_S32_n_to_S33_reaclib = 173, + k_S33_n_to_S34_reaclib = 174, + k_C12_C12_to_p_Na23_reaclib = 175, + k_Na23_p_to_He4_Ne20_reaclib = 176, + k_Na23_p_to_Mg24_reaclib = 177, + k_C12_C12_to_He4_Ne20_reaclib = 178, + k_Ne20_He4_to_Mg24_reaclib = 179, + k_Al27_to_Si27_beta_neg_weaktab = 180, + k_Co56_to_Fe56_electron_capture_weaktab = 181, + k_Co56_to_Ni56_beta_neg_weaktab = 182, + k_Fe56_to_Co56_beta_neg_weaktab = 183, + k_Ni56_to_Co56_electron_capture_weaktab = 184, + k_n_to_p_beta_neg_weaktab = 185, + k_p_to_n_electron_capture_weaktab = 186, + k_Si27_to_Al27_electron_capture_weaktab = 187, + k_Ni56_n_n_to_Ni58_approx = 188, + k_Ni58_to_Ni56_n_n_approx = 189, + k_Co53_n_n_to_Co55_approx = 190, + k_Co55_to_Co53_n_n_approx = 191, + k_Fe50_n_n_to_Fe52_approx = 192, + k_Fe52_to_Fe50_n_n_approx = 193, + k_Fe52_n_n_to_Fe54_approx = 194, + k_Fe54_to_Fe52_n_n_approx = 195, + k_Fe54_n_n_to_Fe56_approx = 196, + k_Fe56_to_Fe54_n_n_approx = 197, + k_Mn49_n_n_to_Mn51_approx = 198, + k_Mn51_to_Mn49_n_n_approx = 199, + k_Mn51_n_n_to_Mn53_approx = 200, + k_Mn53_to_Mn51_n_n_approx = 201, + k_Cr46_n_n_to_Cr48_approx = 202, + k_Cr48_to_Cr46_n_n_approx = 203, + k_Cr48_n_n_to_Cr50_approx = 204, + k_Cr50_to_Cr48_n_n_approx = 205, + k_Cr50_n_n_to_Cr52_approx = 206, + k_Cr52_to_Cr50_n_n_approx = 207, + k_V45_n_n_to_V47_approx = 208, + k_V47_to_V45_n_n_approx = 209, + k_V47_n_n_to_V49_approx = 210, + k_V49_to_V47_n_n_approx = 211, + k_Ti42_n_n_to_Ti44_approx = 212, + k_Ti44_to_Ti42_n_n_approx = 213, + k_Ti44_n_n_to_Ti46_approx = 214, + k_Ti46_to_Ti44_n_n_approx = 215, + k_Sc41_n_n_to_Sc43_approx = 216, + k_Sc43_to_Sc41_n_n_approx = 217, + k_Ca38_n_n_to_Ca40_approx = 218, + k_Ca40_to_Ca38_n_n_approx = 219, + k_Ca40_n_n_to_Ca42_approx = 220, + k_Ca42_to_Ca40_n_n_approx = 221, + k_Ar34_n_n_to_Ar36_approx = 222, + k_Ar36_to_Ar34_n_n_approx = 223, + k_Ar36_n_n_to_Ar38_approx = 224, + k_Ar38_to_Ar36_n_n_approx = 225, + k_Si28_n_n_to_Si30_approx = 226, + k_Si30_to_Si28_n_n_approx = 227, + k_S30_n_n_to_S32_approx = 228, + k_S32_to_S30_n_n_approx = 229, + k_S32_n_n_to_S34_approx = 230, + k_S34_to_S32_n_n_approx = 231, + k_C12_C12_to_Mg24_approx = 232, + k_Mg24_to_C12_C12_approx = 233, + k_C12_C12_to_Ne20_He4_approx = 234, + k_Ne20_He4_to_C12_C12_approx = 235, + k_Ne20_He4_to_Mg24_approx = 236, + k_Mg24_to_Ne20_He4_approx = 237, + k_O16_to_He4_C12_derived = 238, + k_Ne20_to_He4_O16_derived = 239, + k_Mg24_to_n_Mg23_derived = 240, + k_Si27_to_He4_Mg23_derived = 241, + k_Si28_to_n_Si27_derived = 242, + k_Si28_to_p_Al27_derived = 243, + k_Si28_to_He4_Mg24_derived = 244, + k_P29_to_p_Si28_derived = 245, + k_P31_to_p_Si30_derived = 246, + k_P31_to_He4_Al27_derived = 247, + k_S30_to_p_P29_derived = 248, + k_S32_to_p_P31_derived = 249, + k_S32_to_He4_Si28_derived = 250, + k_S34_to_He4_Si30_derived = 251, + k_Cl33_to_p_S32_derived = 252, + k_Cl33_to_He4_P29_derived = 253, + k_Cl35_to_p_S34_derived = 254, + k_Cl35_to_He4_P31_derived = 255, + k_Ar34_to_p_Cl33_derived = 256, + k_Ar34_to_He4_S30_derived = 257, + k_Ar36_to_p_Cl35_derived = 258, + k_Ar36_to_He4_S32_derived = 259, + k_Ar38_to_He4_S34_derived = 260, + k_K37_to_p_Ar36_derived = 261, + k_K37_to_He4_Cl33_derived = 262, + k_K39_to_p_Ar38_derived = 263, + k_K39_to_He4_Cl35_derived = 264, + k_Ca38_to_p_K37_derived = 265, + k_Ca38_to_He4_Ar34_derived = 266, + k_Ca40_to_p_K39_derived = 267, + k_Ca40_to_He4_Ar36_derived = 268, + k_Ca42_to_He4_Ar38_derived = 269, + k_Sc41_to_p_Ca40_derived = 270, + k_Sc41_to_He4_K37_derived = 271, + k_Sc43_to_p_Ca42_derived = 272, + k_Sc43_to_He4_K39_derived = 273, + k_Ti42_to_p_Sc41_derived = 274, + k_Ti42_to_He4_Ca38_derived = 275, + k_Ti44_to_p_Sc43_derived = 276, + k_Ti44_to_He4_Ca40_derived = 277, + k_Ti46_to_He4_Ca42_derived = 278, + k_V45_to_p_Ti44_derived = 279, + k_V45_to_He4_Sc41_derived = 280, + k_V47_to_p_Ti46_derived = 281, + k_V47_to_He4_Sc43_derived = 282, + k_Cr46_to_p_V45_derived = 283, + k_Cr46_to_He4_Ti42_derived = 284, + k_Cr48_to_p_V47_derived = 285, + k_Cr48_to_He4_Ti44_derived = 286, + k_Cr50_to_p_V49_derived = 287, + k_Cr50_to_He4_Ti46_derived = 288, + k_Mn49_to_p_Cr48_derived = 289, + k_Mn49_to_He4_V45_derived = 290, + k_Mn51_to_p_Cr50_derived = 291, + k_Mn51_to_He4_V47_derived = 292, + k_Mn53_to_p_Cr52_derived = 293, + k_Mn53_to_He4_V49_derived = 294, + k_Fe50_to_p_Mn49_derived = 295, + k_Fe50_to_He4_Cr46_derived = 296, + k_Fe52_to_p_Mn51_derived = 297, + k_Fe52_to_He4_Cr48_derived = 298, + k_Fe54_to_p_Mn53_derived = 299, + k_Fe54_to_He4_Cr50_derived = 300, + k_Fe56_to_He4_Cr52_derived = 301, + k_Co53_to_p_Fe52_derived = 302, + k_Co53_to_He4_Mn49_derived = 303, + k_Co55_to_p_Fe54_derived = 304, + k_Co55_to_He4_Mn51_derived = 305, + k_Co56_to_n_Co55_derived = 306, + k_Co57_to_n_Co56_derived = 307, + k_Co57_to_p_Fe56_derived = 308, + k_Co57_to_He4_Mn53_derived = 309, + k_Ni56_to_p_Co55_derived = 310, + k_Ni56_to_He4_Fe52_derived = 311, + k_Ni58_to_p_Co57_derived = 312, + k_Ni58_to_He4_Fe54_derived = 313, + k_Cu59_to_p_Ni58_derived = 314, + k_Cu59_to_He4_Co55_derived = 315, + k_C12_to_3He4_derived = 316, + k_C12_C12_to_n_Mg23_derived = 317, + k_O16_C12_to_n_Si27_derived = 318, + k_Ne20_He4_to_n_Mg23_derived = 319, + k_Mg24_He4_to_n_Si27_derived = 320, + k_Mg24_He4_to_p_Al27_derived = 321, + k_Mg24_He4_to_C12_O16_derived = 322, + k_Al27_p_to_n_Si27_derived = 323, + k_Al27_p_to_C12_O16_derived = 324, + k_Si27_He4_to_n_S30_derived = 325, + k_Si28_He4_to_p_P31_derived = 326, + k_Si28_He4_to_C12_Ne20_derived = 327, + k_Si28_He4_to_O16_O16_derived = 328, + k_Si30_p_to_He4_Al27_derived = 329, + k_P31_p_to_C12_Ne20_derived = 330, + k_P31_p_to_O16_O16_derived = 331, + k_S32_p_to_He4_P29_derived = 332, + k_S32_He4_to_p_Cl35_derived = 333, + k_S34_p_to_He4_P31_derived = 334, + k_Cl33_p_to_He4_S30_derived = 335, + k_Ar36_p_to_He4_Cl33_derived = 336, + k_Ar36_He4_to_p_K39_derived = 337, + k_Ar38_p_to_He4_Cl35_derived = 338, + k_K37_p_to_He4_Ar34_derived = 339, + k_K39_He4_to_p_Ca42_derived = 340, + k_Ca40_p_to_He4_K37_derived = 341, + k_Ca40_He4_to_p_Sc43_derived = 342, + k_Sc41_p_to_He4_Ca38_derived = 343, + k_Ti44_p_to_He4_Sc41_derived = 344, + k_Ti46_p_to_He4_Sc43_derived = 345, + k_Ti46_He4_to_p_V49_derived = 346, + k_V45_p_to_He4_Ti42_derived = 347, + k_V47_p_to_He4_Ti44_derived = 348, + k_Cr48_p_to_He4_V45_derived = 349, + k_Cr50_p_to_He4_V47_derived = 350, + k_Cr50_He4_to_p_Mn53_derived = 351, + k_Cr52_p_to_He4_V49_derived = 352, + k_Mn49_p_to_He4_Cr46_derived = 353, + k_Mn51_p_to_He4_Cr48_derived = 354, + k_Mn53_He4_to_n_Co56_derived = 355, + k_Fe52_p_to_He4_Mn49_derived = 356, + k_Fe54_p_to_He4_Mn51_derived = 357, + k_Fe54_He4_to_p_Co57_derived = 358, + k_Fe56_p_to_n_Co56_derived = 359, + k_Fe56_p_to_He4_Mn53_derived = 360, + k_Co53_p_to_He4_Fe50_derived = 361, + k_Co55_p_to_He4_Fe52_derived = 362, + k_Co56_p_to_n_Ni56_derived = 363, + k_Co56_He4_to_n_Cu59_derived = 364, + k_Ni56_p_to_He4_Co53_derived = 365, + k_Ni56_He4_to_p_Cu59_derived = 366, + k_Ni58_p_to_He4_Co55_derived = 367, + k_Ni57_to_n_Ni56_derived = 368, + k_Ni58_to_n_Ni57_derived = 369, + k_Co54_to_n_Co53_derived = 370, + k_Co55_to_n_Co54_derived = 371, + k_Fe51_to_n_Fe50_derived = 372, + k_Fe52_to_n_Fe51_derived = 373, + k_Fe53_to_n_Fe52_derived = 374, + k_Fe54_to_n_Fe53_derived = 375, + k_Fe55_to_n_Fe54_derived = 376, + k_Fe56_to_n_Fe55_derived = 377, + k_Mn50_to_n_Mn49_derived = 378, + k_Mn51_to_n_Mn50_derived = 379, + k_Mn52_to_n_Mn51_derived = 380, + k_Mn53_to_n_Mn52_derived = 381, + k_Cr47_to_n_Cr46_derived = 382, + k_Cr48_to_n_Cr47_derived = 383, + k_Cr49_to_n_Cr48_derived = 384, + k_Cr50_to_n_Cr49_derived = 385, + k_Cr51_to_n_Cr50_derived = 386, + k_Cr52_to_n_Cr51_derived = 387, + k_V46_to_n_V45_derived = 388, + k_V47_to_n_V46_derived = 389, + k_V48_to_n_V47_derived = 390, + k_V49_to_n_V48_derived = 391, + k_Ti43_to_n_Ti42_derived = 392, + k_Ti44_to_n_Ti43_derived = 393, + k_Ti45_to_n_Ti44_derived = 394, + k_Ti46_to_n_Ti45_derived = 395, + k_Sc42_to_n_Sc41_derived = 396, + k_Sc43_to_n_Sc42_derived = 397, + k_Ca39_to_n_Ca38_derived = 398, + k_Ca40_to_n_Ca39_derived = 399, + k_Ca41_to_n_Ca40_derived = 400, + k_Ca42_to_n_Ca41_derived = 401, + k_Ar35_to_n_Ar34_derived = 402, + k_Ar36_to_n_Ar35_derived = 403, + k_Ar37_to_n_Ar36_derived = 404, + k_Ar38_to_n_Ar37_derived = 405, + k_Si29_to_n_Si28_derived = 406, + k_Si30_to_n_Si29_derived = 407, + k_S31_to_n_S30_derived = 408, + k_S32_to_n_S31_derived = 409, + k_S33_to_n_S32_derived = 410, + k_S34_to_n_S33_derived = 411, + k_Na23_p_to_C12_C12_derived = 412, + k_Mg24_to_p_Na23_derived = 413, + k_Ne20_He4_to_C12_C12_derived = 414, + k_Ne20_He4_to_p_Na23_derived = 415, + k_Mg24_to_He4_Ne20_derived = 416, + NumRates = k_Mg24_to_He4_Ne20_derived + }; + + enum ScreenPairs : + std::uint8_t + { + k_He4_Mn53 = 1, + k_p_Ti44 = 2, + k_p_Ca42 = 3, + k_p_Sc43 = 4, + k_p_Fe56 = 5, + k_p_Ar38 = 6, + k_He4_Ti44 = 7, + k_He4_Ca42 = 8, + k_He4_Mg24 = 9, + k_C12_O16 = 10, + k_He4_Ar38 = 11, + k_p_V47 = 12, + k_He4_Co53 = 13, + k_p_Co55 = 14, + k_C12_C12 = 15, + k_He4_Cl33 = 16, + k_p_Al27 = 17, + k_He4_Ti46 = 18, + k_He4_V47 = 19, + k_He4_Ni56 = 20, + k_p_P31 = 21, + k_p_Ni58 = 22, + k_He4_V49 = 23, + k_He4_Cr46 = 24, + k_O16_O16 = 25, + k_He4_P31 = 26, + k_p_Mn49 = 27, + k_p_Cr52 = 28, + k_p_S34 = 29, + k_He4_Fe50 = 30, + k_He4_Ca40 = 31, + k_He4_Mn49 = 32, + k_He4_Ar36 = 33, + k_He4_Cr52 = 34, + k_He4_S34 = 35, + k_He4_S30 = 36, + k_He4_Sc43 = 37, + k_He4_Ne20 = 38, + k_p_Co56 = 39, + k_p_Si28 = 40, + k_p_Fe54 = 41, + k_He4_Co55 = 42, + k_He4_Al27 = 43, + k_p_V45 = 44, + k_p_Cl35 = 45, + k_p_Si30 = 46, + k_He4_O16 = 47, + k_He4_Si30 = 48, + k_p_P29 = 49, + k_He4_Mg23 = 50, + k_He4_P29 = 51, + k_p_Fe52 = 52, + k_p_Cr50 = 53, + k_p_S32 = 54, + k_He4_Ca38 = 55, + k_He4_Ar34 = 56, + k_p_Cu59 = 57, + k_He4_S32 = 58, + k_p_Sc41 = 59, + k_He4_Ti42 = 60, + k_p_Mn53 = 61, + k_He4_Sc41 = 62, + k_He4_Co56 = 63, + k_He4_Si28 = 64, + k_He4_Fe54 = 65, + k_He4_Be8 = 66, + k_He4_V45 = 67, + k_p_Co57 = 68, + k_p_K39 = 69, + k_He4_Cl35 = 70, + k_p_Co53 = 71, + k_He4_C12 = 72, + k_He4_K39 = 73, + k_p_Cr48 = 74, + k_p_Cl33 = 75, + k_p_Ti46 = 76, + k_He4_Cr48 = 77, + k_He4_Si27 = 78, + k_p_K37 = 79, + k_p_Ni56 = 80, + k_p_Mn51 = 81, + k_p_Na23 = 82, + k_p_V49 = 83, + k_He4_Fe52 = 84, + k_He4_K37 = 85, + k_He4_Cr50 = 86, + k_He4_Mn51 = 87, + k_He4_He4 = 88, + k_C12_Ne20 = 89, + k_p_Ca40 = 90, + k_p_Ar36 = 91, + NumScreenPairs = k_p_Ar36 + }; + + // rate names -- note: the rates are 1-based, not zero-based, so we pad + // this vector with rate_names[0] = "" so the indices line up with the + // NetworkRates enum + + static const std::vector rate_names = { + "", // 0 + "C12_He4_to_O16_reaclib", // 1, + "O16_He4_to_Ne20_reaclib", // 2, + "Mg23_n_to_Mg24_reaclib", // 3, + "Mg23_He4_to_Si27_reaclib", // 4, + "Mg24_He4_to_Si28_reaclib", // 5, + "Al27_p_to_Si28_reaclib", // 6, + "Al27_He4_to_P31_reaclib", // 7, + "Si27_n_to_Si28_reaclib", // 8, + "Si28_p_to_P29_reaclib", // 9, + "Si28_He4_to_S32_reaclib", // 10, + "Si30_p_to_P31_reaclib", // 11, + "Si30_He4_to_S34_reaclib", // 12, + "P29_p_to_S30_reaclib", // 13, + "P29_He4_to_Cl33_reaclib", // 14, + "P31_p_to_S32_reaclib", // 15, + "P31_He4_to_Cl35_reaclib", // 16, + "S30_He4_to_Ar34_reaclib", // 17, + "S32_p_to_Cl33_reaclib", // 18, + "S32_He4_to_Ar36_reaclib", // 19, + "S34_p_to_Cl35_reaclib", // 20, + "S34_He4_to_Ar38_reaclib", // 21, + "Cl33_p_to_Ar34_reaclib", // 22, + "Cl33_He4_to_K37_reaclib", // 23, + "Cl35_p_to_Ar36_reaclib", // 24, + "Cl35_He4_to_K39_reaclib", // 25, + "Ar34_He4_to_Ca38_reaclib", // 26, + "Ar36_p_to_K37_reaclib", // 27, + "Ar36_He4_to_Ca40_reaclib", // 28, + "Ar38_p_to_K39_reaclib", // 29, + "Ar38_He4_to_Ca42_reaclib", // 30, + "K37_p_to_Ca38_reaclib", // 31, + "K37_He4_to_Sc41_reaclib", // 32, + "K39_p_to_Ca40_reaclib", // 33, + "K39_He4_to_Sc43_reaclib", // 34, + "Ca38_He4_to_Ti42_reaclib", // 35, + "Ca40_p_to_Sc41_reaclib", // 36, + "Ca40_He4_to_Ti44_reaclib", // 37, + "Ca42_p_to_Sc43_reaclib", // 38, + "Ca42_He4_to_Ti46_reaclib", // 39, + "Sc41_p_to_Ti42_reaclib", // 40, + "Sc41_He4_to_V45_reaclib", // 41, + "Sc43_p_to_Ti44_reaclib", // 42, + "Sc43_He4_to_V47_reaclib", // 43, + "Ti42_He4_to_Cr46_reaclib", // 44, + "Ti44_p_to_V45_reaclib", // 45, + "Ti44_He4_to_Cr48_reaclib", // 46, + "Ti46_p_to_V47_reaclib", // 47, + "Ti46_He4_to_Cr50_reaclib", // 48, + "V45_p_to_Cr46_reaclib", // 49, + "V45_He4_to_Mn49_reaclib", // 50, + "V47_p_to_Cr48_reaclib", // 51, + "V47_He4_to_Mn51_reaclib", // 52, + "V49_p_to_Cr50_reaclib", // 53, + "V49_He4_to_Mn53_reaclib", // 54, + "Cr46_He4_to_Fe50_reaclib", // 55, + "Cr48_p_to_Mn49_reaclib", // 56, + "Cr48_He4_to_Fe52_reaclib", // 57, + "Cr50_p_to_Mn51_reaclib", // 58, + "Cr50_He4_to_Fe54_reaclib", // 59, + "Cr52_p_to_Mn53_reaclib", // 60, + "Cr52_He4_to_Fe56_reaclib", // 61, + "Mn49_p_to_Fe50_reaclib", // 62, + "Mn49_He4_to_Co53_reaclib", // 63, + "Mn51_p_to_Fe52_reaclib", // 64, + "Mn51_He4_to_Co55_reaclib", // 65, + "Mn53_p_to_Fe54_reaclib", // 66, + "Mn53_He4_to_Co57_reaclib", // 67, + "Fe52_p_to_Co53_reaclib", // 68, + "Fe52_He4_to_Ni56_reaclib", // 69, + "Fe54_p_to_Co55_reaclib", // 70, + "Fe54_He4_to_Ni58_reaclib", // 71, + "Fe56_p_to_Co57_reaclib", // 72, + "Co55_n_to_Co56_reaclib", // 73, + "Co55_p_to_Ni56_reaclib", // 74, + "Co55_He4_to_Cu59_reaclib", // 75, + "Co56_n_to_Co57_reaclib", // 76, + "Co57_p_to_Ni58_reaclib", // 77, + "Ni58_p_to_Cu59_reaclib", // 78, + "O16_C12_to_p_Al27_reaclib", // 79, + "O16_C12_to_He4_Mg24_reaclib", // 80, + "O16_O16_to_p_P31_reaclib", // 81, + "O16_O16_to_He4_Si28_reaclib", // 82, + "Ne20_C12_to_p_P31_reaclib", // 83, + "Ne20_C12_to_He4_Si28_reaclib", // 84, + "Mg23_n_to_He4_Ne20_reaclib", // 85, + "Mg23_n_to_C12_C12_reaclib", // 86, + "Al27_p_to_He4_Mg24_reaclib", // 87, + "Al27_He4_to_p_Si30_reaclib", // 88, + "Si27_n_to_p_Al27_reaclib", // 89, + "Si27_n_to_He4_Mg24_reaclib", // 90, + "Si27_n_to_C12_O16_reaclib", // 91, + "P29_He4_to_p_S32_reaclib", // 92, + "P31_p_to_He4_Si28_reaclib", // 93, + "P31_He4_to_p_S34_reaclib", // 94, + "S30_n_to_He4_Si27_reaclib", // 95, + "S30_He4_to_p_Cl33_reaclib", // 96, + "Cl33_He4_to_p_Ar36_reaclib", // 97, + "Cl35_p_to_He4_S32_reaclib", // 98, + "Cl35_He4_to_p_Ar38_reaclib", // 99, + "Ar34_He4_to_p_K37_reaclib", // 100, + "K37_He4_to_p_Ca40_reaclib", // 101, + "K39_p_to_He4_Ar36_reaclib", // 102, + "Ca38_He4_to_p_Sc41_reaclib", // 103, + "Ca42_p_to_He4_K39_reaclib", // 104, + "Sc41_He4_to_p_Ti44_reaclib", // 105, + "Sc43_p_to_He4_Ca40_reaclib", // 106, + "Sc43_He4_to_p_Ti46_reaclib", // 107, + "Ti42_He4_to_p_V45_reaclib", // 108, + "Ti44_He4_to_p_V47_reaclib", // 109, + "V45_He4_to_p_Cr48_reaclib", // 110, + "V47_He4_to_p_Cr50_reaclib", // 111, + "V49_p_to_He4_Ti46_reaclib", // 112, + "V49_He4_to_p_Cr52_reaclib", // 113, + "Cr46_He4_to_p_Mn49_reaclib", // 114, + "Cr48_He4_to_p_Mn51_reaclib", // 115, + "Mn49_He4_to_p_Fe52_reaclib", // 116, + "Mn51_He4_to_p_Fe54_reaclib", // 117, + "Mn53_p_to_He4_Cr50_reaclib", // 118, + "Mn53_He4_to_p_Fe56_reaclib", // 119, + "Fe50_He4_to_p_Co53_reaclib", // 120, + "Fe52_He4_to_p_Co55_reaclib", // 121, + "Co53_He4_to_p_Ni56_reaclib", // 122, + "Co55_He4_to_p_Ni58_reaclib", // 123, + "Co56_n_to_p_Fe56_reaclib", // 124, + "Co56_n_to_He4_Mn53_reaclib", // 125, + "Co57_p_to_He4_Fe54_reaclib", // 126, + "Ni56_n_to_p_Co56_reaclib", // 127, + "Cu59_n_to_He4_Co56_reaclib", // 128, + "Cu59_p_to_He4_Ni56_reaclib", // 129, + "He4_He4_He4_to_C12_reaclib", // 130, + "Ni56_n_to_Ni57_reaclib", // 131, + "Ni57_n_to_Ni58_reaclib", // 132, + "Co53_n_to_Co54_reaclib", // 133, + "Co54_n_to_Co55_reaclib", // 134, + "Fe50_n_to_Fe51_reaclib", // 135, + "Fe51_n_to_Fe52_reaclib", // 136, + "Fe52_n_to_Fe53_reaclib", // 137, + "Fe53_n_to_Fe54_reaclib", // 138, + "Fe54_n_to_Fe55_reaclib", // 139, + "Fe55_n_to_Fe56_reaclib", // 140, + "Mn49_n_to_Mn50_reaclib", // 141, + "Mn50_n_to_Mn51_reaclib", // 142, + "Mn51_n_to_Mn52_reaclib", // 143, + "Mn52_n_to_Mn53_reaclib", // 144, + "Cr46_n_to_Cr47_reaclib", // 145, + "Cr47_n_to_Cr48_reaclib", // 146, + "Cr48_n_to_Cr49_reaclib", // 147, + "Cr49_n_to_Cr50_reaclib", // 148, + "Cr50_n_to_Cr51_reaclib", // 149, + "Cr51_n_to_Cr52_reaclib", // 150, + "V45_n_to_V46_reaclib", // 151, + "V46_n_to_V47_reaclib", // 152, + "V47_n_to_V48_reaclib", // 153, + "V48_n_to_V49_reaclib", // 154, + "Ti42_n_to_Ti43_reaclib", // 155, + "Ti43_n_to_Ti44_reaclib", // 156, + "Ti44_n_to_Ti45_reaclib", // 157, + "Ti45_n_to_Ti46_reaclib", // 158, + "Sc41_n_to_Sc42_reaclib", // 159, + "Sc42_n_to_Sc43_reaclib", // 160, + "Ca38_n_to_Ca39_reaclib", // 161, + "Ca39_n_to_Ca40_reaclib", // 162, + "Ca40_n_to_Ca41_reaclib", // 163, + "Ca41_n_to_Ca42_reaclib", // 164, + "Ar34_n_to_Ar35_reaclib", // 165, + "Ar35_n_to_Ar36_reaclib", // 166, + "Ar36_n_to_Ar37_reaclib", // 167, + "Ar37_n_to_Ar38_reaclib", // 168, + "Si28_n_to_Si29_reaclib", // 169, + "Si29_n_to_Si30_reaclib", // 170, + "S30_n_to_S31_reaclib", // 171, + "S31_n_to_S32_reaclib", // 172, + "S32_n_to_S33_reaclib", // 173, + "S33_n_to_S34_reaclib", // 174, + "C12_C12_to_p_Na23_reaclib", // 175, + "Na23_p_to_He4_Ne20_reaclib", // 176, + "Na23_p_to_Mg24_reaclib", // 177, + "C12_C12_to_He4_Ne20_reaclib", // 178, + "Ne20_He4_to_Mg24_reaclib", // 179, + "Al27_to_Si27_beta_neg_weaktab", // 180, + "Co56_to_Fe56_electron_capture_weaktab", // 181, + "Co56_to_Ni56_beta_neg_weaktab", // 182, + "Fe56_to_Co56_beta_neg_weaktab", // 183, + "Ni56_to_Co56_electron_capture_weaktab", // 184, + "n_to_p_beta_neg_weaktab", // 185, + "p_to_n_electron_capture_weaktab", // 186, + "Si27_to_Al27_electron_capture_weaktab", // 187, + "Ni56_n_n_to_Ni58_approx", // 188, + "Ni58_to_Ni56_n_n_approx", // 189, + "Co53_n_n_to_Co55_approx", // 190, + "Co55_to_Co53_n_n_approx", // 191, + "Fe50_n_n_to_Fe52_approx", // 192, + "Fe52_to_Fe50_n_n_approx", // 193, + "Fe52_n_n_to_Fe54_approx", // 194, + "Fe54_to_Fe52_n_n_approx", // 195, + "Fe54_n_n_to_Fe56_approx", // 196, + "Fe56_to_Fe54_n_n_approx", // 197, + "Mn49_n_n_to_Mn51_approx", // 198, + "Mn51_to_Mn49_n_n_approx", // 199, + "Mn51_n_n_to_Mn53_approx", // 200, + "Mn53_to_Mn51_n_n_approx", // 201, + "Cr46_n_n_to_Cr48_approx", // 202, + "Cr48_to_Cr46_n_n_approx", // 203, + "Cr48_n_n_to_Cr50_approx", // 204, + "Cr50_to_Cr48_n_n_approx", // 205, + "Cr50_n_n_to_Cr52_approx", // 206, + "Cr52_to_Cr50_n_n_approx", // 207, + "V45_n_n_to_V47_approx", // 208, + "V47_to_V45_n_n_approx", // 209, + "V47_n_n_to_V49_approx", // 210, + "V49_to_V47_n_n_approx", // 211, + "Ti42_n_n_to_Ti44_approx", // 212, + "Ti44_to_Ti42_n_n_approx", // 213, + "Ti44_n_n_to_Ti46_approx", // 214, + "Ti46_to_Ti44_n_n_approx", // 215, + "Sc41_n_n_to_Sc43_approx", // 216, + "Sc43_to_Sc41_n_n_approx", // 217, + "Ca38_n_n_to_Ca40_approx", // 218, + "Ca40_to_Ca38_n_n_approx", // 219, + "Ca40_n_n_to_Ca42_approx", // 220, + "Ca42_to_Ca40_n_n_approx", // 221, + "Ar34_n_n_to_Ar36_approx", // 222, + "Ar36_to_Ar34_n_n_approx", // 223, + "Ar36_n_n_to_Ar38_approx", // 224, + "Ar38_to_Ar36_n_n_approx", // 225, + "Si28_n_n_to_Si30_approx", // 226, + "Si30_to_Si28_n_n_approx", // 227, + "S30_n_n_to_S32_approx", // 228, + "S32_to_S30_n_n_approx", // 229, + "S32_n_n_to_S34_approx", // 230, + "S34_to_S32_n_n_approx", // 231, + "C12_C12_to_Mg24_approx", // 232, + "Mg24_to_C12_C12_approx", // 233, + "C12_C12_to_Ne20_He4_approx", // 234, + "Ne20_He4_to_C12_C12_approx", // 235, + "Ne20_He4_to_Mg24_approx", // 236, + "Mg24_to_Ne20_He4_approx", // 237, + "O16_to_He4_C12_derived", // 238, + "Ne20_to_He4_O16_derived", // 239, + "Mg24_to_n_Mg23_derived", // 240, + "Si27_to_He4_Mg23_derived", // 241, + "Si28_to_n_Si27_derived", // 242, + "Si28_to_p_Al27_derived", // 243, + "Si28_to_He4_Mg24_derived", // 244, + "P29_to_p_Si28_derived", // 245, + "P31_to_p_Si30_derived", // 246, + "P31_to_He4_Al27_derived", // 247, + "S30_to_p_P29_derived", // 248, + "S32_to_p_P31_derived", // 249, + "S32_to_He4_Si28_derived", // 250, + "S34_to_He4_Si30_derived", // 251, + "Cl33_to_p_S32_derived", // 252, + "Cl33_to_He4_P29_derived", // 253, + "Cl35_to_p_S34_derived", // 254, + "Cl35_to_He4_P31_derived", // 255, + "Ar34_to_p_Cl33_derived", // 256, + "Ar34_to_He4_S30_derived", // 257, + "Ar36_to_p_Cl35_derived", // 258, + "Ar36_to_He4_S32_derived", // 259, + "Ar38_to_He4_S34_derived", // 260, + "K37_to_p_Ar36_derived", // 261, + "K37_to_He4_Cl33_derived", // 262, + "K39_to_p_Ar38_derived", // 263, + "K39_to_He4_Cl35_derived", // 264, + "Ca38_to_p_K37_derived", // 265, + "Ca38_to_He4_Ar34_derived", // 266, + "Ca40_to_p_K39_derived", // 267, + "Ca40_to_He4_Ar36_derived", // 268, + "Ca42_to_He4_Ar38_derived", // 269, + "Sc41_to_p_Ca40_derived", // 270, + "Sc41_to_He4_K37_derived", // 271, + "Sc43_to_p_Ca42_derived", // 272, + "Sc43_to_He4_K39_derived", // 273, + "Ti42_to_p_Sc41_derived", // 274, + "Ti42_to_He4_Ca38_derived", // 275, + "Ti44_to_p_Sc43_derived", // 276, + "Ti44_to_He4_Ca40_derived", // 277, + "Ti46_to_He4_Ca42_derived", // 278, + "V45_to_p_Ti44_derived", // 279, + "V45_to_He4_Sc41_derived", // 280, + "V47_to_p_Ti46_derived", // 281, + "V47_to_He4_Sc43_derived", // 282, + "Cr46_to_p_V45_derived", // 283, + "Cr46_to_He4_Ti42_derived", // 284, + "Cr48_to_p_V47_derived", // 285, + "Cr48_to_He4_Ti44_derived", // 286, + "Cr50_to_p_V49_derived", // 287, + "Cr50_to_He4_Ti46_derived", // 288, + "Mn49_to_p_Cr48_derived", // 289, + "Mn49_to_He4_V45_derived", // 290, + "Mn51_to_p_Cr50_derived", // 291, + "Mn51_to_He4_V47_derived", // 292, + "Mn53_to_p_Cr52_derived", // 293, + "Mn53_to_He4_V49_derived", // 294, + "Fe50_to_p_Mn49_derived", // 295, + "Fe50_to_He4_Cr46_derived", // 296, + "Fe52_to_p_Mn51_derived", // 297, + "Fe52_to_He4_Cr48_derived", // 298, + "Fe54_to_p_Mn53_derived", // 299, + "Fe54_to_He4_Cr50_derived", // 300, + "Fe56_to_He4_Cr52_derived", // 301, + "Co53_to_p_Fe52_derived", // 302, + "Co53_to_He4_Mn49_derived", // 303, + "Co55_to_p_Fe54_derived", // 304, + "Co55_to_He4_Mn51_derived", // 305, + "Co56_to_n_Co55_derived", // 306, + "Co57_to_n_Co56_derived", // 307, + "Co57_to_p_Fe56_derived", // 308, + "Co57_to_He4_Mn53_derived", // 309, + "Ni56_to_p_Co55_derived", // 310, + "Ni56_to_He4_Fe52_derived", // 311, + "Ni58_to_p_Co57_derived", // 312, + "Ni58_to_He4_Fe54_derived", // 313, + "Cu59_to_p_Ni58_derived", // 314, + "Cu59_to_He4_Co55_derived", // 315, + "C12_to_3He4_derived", // 316, + "C12_C12_to_n_Mg23_derived", // 317, + "O16_C12_to_n_Si27_derived", // 318, + "Ne20_He4_to_n_Mg23_derived", // 319, + "Mg24_He4_to_n_Si27_derived", // 320, + "Mg24_He4_to_p_Al27_derived", // 321, + "Mg24_He4_to_C12_O16_derived", // 322, + "Al27_p_to_n_Si27_derived", // 323, + "Al27_p_to_C12_O16_derived", // 324, + "Si27_He4_to_n_S30_derived", // 325, + "Si28_He4_to_p_P31_derived", // 326, + "Si28_He4_to_C12_Ne20_derived", // 327, + "Si28_He4_to_O16_O16_derived", // 328, + "Si30_p_to_He4_Al27_derived", // 329, + "P31_p_to_C12_Ne20_derived", // 330, + "P31_p_to_O16_O16_derived", // 331, + "S32_p_to_He4_P29_derived", // 332, + "S32_He4_to_p_Cl35_derived", // 333, + "S34_p_to_He4_P31_derived", // 334, + "Cl33_p_to_He4_S30_derived", // 335, + "Ar36_p_to_He4_Cl33_derived", // 336, + "Ar36_He4_to_p_K39_derived", // 337, + "Ar38_p_to_He4_Cl35_derived", // 338, + "K37_p_to_He4_Ar34_derived", // 339, + "K39_He4_to_p_Ca42_derived", // 340, + "Ca40_p_to_He4_K37_derived", // 341, + "Ca40_He4_to_p_Sc43_derived", // 342, + "Sc41_p_to_He4_Ca38_derived", // 343, + "Ti44_p_to_He4_Sc41_derived", // 344, + "Ti46_p_to_He4_Sc43_derived", // 345, + "Ti46_He4_to_p_V49_derived", // 346, + "V45_p_to_He4_Ti42_derived", // 347, + "V47_p_to_He4_Ti44_derived", // 348, + "Cr48_p_to_He4_V45_derived", // 349, + "Cr50_p_to_He4_V47_derived", // 350, + "Cr50_He4_to_p_Mn53_derived", // 351, + "Cr52_p_to_He4_V49_derived", // 352, + "Mn49_p_to_He4_Cr46_derived", // 353, + "Mn51_p_to_He4_Cr48_derived", // 354, + "Mn53_He4_to_n_Co56_derived", // 355, + "Fe52_p_to_He4_Mn49_derived", // 356, + "Fe54_p_to_He4_Mn51_derived", // 357, + "Fe54_He4_to_p_Co57_derived", // 358, + "Fe56_p_to_n_Co56_derived", // 359, + "Fe56_p_to_He4_Mn53_derived", // 360, + "Co53_p_to_He4_Fe50_derived", // 361, + "Co55_p_to_He4_Fe52_derived", // 362, + "Co56_p_to_n_Ni56_derived", // 363, + "Co56_He4_to_n_Cu59_derived", // 364, + "Ni56_p_to_He4_Co53_derived", // 365, + "Ni56_He4_to_p_Cu59_derived", // 366, + "Ni58_p_to_He4_Co55_derived", // 367, + "Ni57_to_n_Ni56_derived", // 368, + "Ni58_to_n_Ni57_derived", // 369, + "Co54_to_n_Co53_derived", // 370, + "Co55_to_n_Co54_derived", // 371, + "Fe51_to_n_Fe50_derived", // 372, + "Fe52_to_n_Fe51_derived", // 373, + "Fe53_to_n_Fe52_derived", // 374, + "Fe54_to_n_Fe53_derived", // 375, + "Fe55_to_n_Fe54_derived", // 376, + "Fe56_to_n_Fe55_derived", // 377, + "Mn50_to_n_Mn49_derived", // 378, + "Mn51_to_n_Mn50_derived", // 379, + "Mn52_to_n_Mn51_derived", // 380, + "Mn53_to_n_Mn52_derived", // 381, + "Cr47_to_n_Cr46_derived", // 382, + "Cr48_to_n_Cr47_derived", // 383, + "Cr49_to_n_Cr48_derived", // 384, + "Cr50_to_n_Cr49_derived", // 385, + "Cr51_to_n_Cr50_derived", // 386, + "Cr52_to_n_Cr51_derived", // 387, + "V46_to_n_V45_derived", // 388, + "V47_to_n_V46_derived", // 389, + "V48_to_n_V47_derived", // 390, + "V49_to_n_V48_derived", // 391, + "Ti43_to_n_Ti42_derived", // 392, + "Ti44_to_n_Ti43_derived", // 393, + "Ti45_to_n_Ti44_derived", // 394, + "Ti46_to_n_Ti45_derived", // 395, + "Sc42_to_n_Sc41_derived", // 396, + "Sc43_to_n_Sc42_derived", // 397, + "Ca39_to_n_Ca38_derived", // 398, + "Ca40_to_n_Ca39_derived", // 399, + "Ca41_to_n_Ca40_derived", // 400, + "Ca42_to_n_Ca41_derived", // 401, + "Ar35_to_n_Ar34_derived", // 402, + "Ar36_to_n_Ar35_derived", // 403, + "Ar37_to_n_Ar36_derived", // 404, + "Ar38_to_n_Ar37_derived", // 405, + "Si29_to_n_Si28_derived", // 406, + "Si30_to_n_Si29_derived", // 407, + "S31_to_n_S30_derived", // 408, + "S32_to_n_S31_derived", // 409, + "S33_to_n_S32_derived", // 410, + "S34_to_n_S33_derived", // 411, + "Na23_p_to_C12_C12_derived", // 412, + "Mg24_to_p_Na23_derived", // 413, + "Ne20_He4_to_C12_C12_derived", // 414, + "Ne20_He4_to_p_Na23_derived", // 415, + "Mg24_to_He4_Ne20_derived" // 416, + }; + + template + AMREX_GPU_DEVICE AMREX_INLINE + constexpr amrex::Real get_p_random() { + return 0.0_rt; + } + +} + +#ifdef NSE_NET +namespace NSE_INDEX +{ + // A RatePair data table, 2D array of shape (NumNSERatePairs, 10). + // Each row corresponds to a RatePair returned by _get_nse_rate_pairs(). + // Use enum names following NetworkSpecies and NetworkRates. + + // - Columns 1–3: 1-based index of reactant nuclei (forward rate) + // - Columns 4–6: 1-based index of product nuclei (forward rate) + // - Columns 7-8: 1-based index of non (n, H1, He4) nuclei. + // - Column 9: 1-based index of the forward rate + // - Column 10: 1-based index of the reverse rate + + using namespace Species; + using namespace Rates; + + constexpr int H1_index = 2; + constexpr int N_index = 1; + constexpr int He4_index = 3; + constexpr int NumNSERatePairs = 123; + + inline AMREX_GPU_MANAGED amrex::Array2D rate_pair_data { + He4, C12, -1, O16, -1, -1, C12, O16, k_C12_He4_to_O16_reaclib, k_O16_to_He4_C12_derived, + He4, O16, -1, Ne20, -1, -1, O16, Ne20, k_O16_He4_to_Ne20_reaclib, k_Ne20_to_He4_O16_derived, + N, Mg23, -1, Mg24, -1, -1, Mg23, Mg24, k_Mg23_n_to_Mg24_reaclib, k_Mg24_to_n_Mg23_derived, + He4, Mg23, -1, Si27, -1, -1, Mg23, Si27, k_Mg23_He4_to_Si27_reaclib, k_Si27_to_He4_Mg23_derived, + He4, Mg24, -1, Si28, -1, -1, Mg24, Si28, k_Mg24_He4_to_Si28_reaclib, k_Si28_to_He4_Mg24_derived, + H1, Al27, -1, Si28, -1, -1, Al27, Si28, k_Al27_p_to_Si28_reaclib, k_Si28_to_p_Al27_derived, + He4, Al27, -1, P31, -1, -1, Al27, P31, k_Al27_He4_to_P31_reaclib, k_P31_to_He4_Al27_derived, + N, Si27, -1, Si28, -1, -1, Si27, Si28, k_Si27_n_to_Si28_reaclib, k_Si28_to_n_Si27_derived, + H1, Si28, -1, P29, -1, -1, Si28, P29, k_Si28_p_to_P29_reaclib, k_P29_to_p_Si28_derived, + He4, Si28, -1, S32, -1, -1, Si28, S32, k_Si28_He4_to_S32_reaclib, k_S32_to_He4_Si28_derived, + H1, Si30, -1, P31, -1, -1, Si30, P31, k_Si30_p_to_P31_reaclib, k_P31_to_p_Si30_derived, + He4, Si30, -1, S34, -1, -1, Si30, S34, k_Si30_He4_to_S34_reaclib, k_S34_to_He4_Si30_derived, + H1, P29, -1, S30, -1, -1, P29, S30, k_P29_p_to_S30_reaclib, k_S30_to_p_P29_derived, + He4, P29, -1, Cl33, -1, -1, P29, Cl33, k_P29_He4_to_Cl33_reaclib, k_Cl33_to_He4_P29_derived, + H1, P31, -1, S32, -1, -1, P31, S32, k_P31_p_to_S32_reaclib, k_S32_to_p_P31_derived, + He4, P31, -1, Cl35, -1, -1, P31, Cl35, k_P31_He4_to_Cl35_reaclib, k_Cl35_to_He4_P31_derived, + He4, S30, -1, Ar34, -1, -1, S30, Ar34, k_S30_He4_to_Ar34_reaclib, k_Ar34_to_He4_S30_derived, + H1, S32, -1, Cl33, -1, -1, S32, Cl33, k_S32_p_to_Cl33_reaclib, k_Cl33_to_p_S32_derived, + He4, S32, -1, Ar36, -1, -1, S32, Ar36, k_S32_He4_to_Ar36_reaclib, k_Ar36_to_He4_S32_derived, + H1, S34, -1, Cl35, -1, -1, S34, Cl35, k_S34_p_to_Cl35_reaclib, k_Cl35_to_p_S34_derived, + He4, S34, -1, Ar38, -1, -1, S34, Ar38, k_S34_He4_to_Ar38_reaclib, k_Ar38_to_He4_S34_derived, + H1, Cl33, -1, Ar34, -1, -1, Cl33, Ar34, k_Cl33_p_to_Ar34_reaclib, k_Ar34_to_p_Cl33_derived, + He4, Cl33, -1, K37, -1, -1, Cl33, K37, k_Cl33_He4_to_K37_reaclib, k_K37_to_He4_Cl33_derived, + H1, Cl35, -1, Ar36, -1, -1, Cl35, Ar36, k_Cl35_p_to_Ar36_reaclib, k_Ar36_to_p_Cl35_derived, + He4, Cl35, -1, K39, -1, -1, Cl35, K39, k_Cl35_He4_to_K39_reaclib, k_K39_to_He4_Cl35_derived, + He4, Ar34, -1, Ca38, -1, -1, Ar34, Ca38, k_Ar34_He4_to_Ca38_reaclib, k_Ca38_to_He4_Ar34_derived, + H1, Ar36, -1, K37, -1, -1, Ar36, K37, k_Ar36_p_to_K37_reaclib, k_K37_to_p_Ar36_derived, + He4, Ar36, -1, Ca40, -1, -1, Ar36, Ca40, k_Ar36_He4_to_Ca40_reaclib, k_Ca40_to_He4_Ar36_derived, + H1, Ar38, -1, K39, -1, -1, Ar38, K39, k_Ar38_p_to_K39_reaclib, k_K39_to_p_Ar38_derived, + He4, Ar38, -1, Ca42, -1, -1, Ar38, Ca42, k_Ar38_He4_to_Ca42_reaclib, k_Ca42_to_He4_Ar38_derived, + H1, K37, -1, Ca38, -1, -1, K37, Ca38, k_K37_p_to_Ca38_reaclib, k_Ca38_to_p_K37_derived, + He4, K37, -1, Sc41, -1, -1, K37, Sc41, k_K37_He4_to_Sc41_reaclib, k_Sc41_to_He4_K37_derived, + H1, K39, -1, Ca40, -1, -1, K39, Ca40, k_K39_p_to_Ca40_reaclib, k_Ca40_to_p_K39_derived, + He4, K39, -1, Sc43, -1, -1, K39, Sc43, k_K39_He4_to_Sc43_reaclib, k_Sc43_to_He4_K39_derived, + He4, Ca38, -1, Ti42, -1, -1, Ca38, Ti42, k_Ca38_He4_to_Ti42_reaclib, k_Ti42_to_He4_Ca38_derived, + H1, Ca40, -1, Sc41, -1, -1, Ca40, Sc41, k_Ca40_p_to_Sc41_reaclib, k_Sc41_to_p_Ca40_derived, + He4, Ca40, -1, Ti44, -1, -1, Ca40, Ti44, k_Ca40_He4_to_Ti44_reaclib, k_Ti44_to_He4_Ca40_derived, + H1, Ca42, -1, Sc43, -1, -1, Ca42, Sc43, k_Ca42_p_to_Sc43_reaclib, k_Sc43_to_p_Ca42_derived, + He4, Ca42, -1, Ti46, -1, -1, Ca42, Ti46, k_Ca42_He4_to_Ti46_reaclib, k_Ti46_to_He4_Ca42_derived, + H1, Sc41, -1, Ti42, -1, -1, Sc41, Ti42, k_Sc41_p_to_Ti42_reaclib, k_Ti42_to_p_Sc41_derived, + He4, Sc41, -1, V45, -1, -1, Sc41, V45, k_Sc41_He4_to_V45_reaclib, k_V45_to_He4_Sc41_derived, + H1, Sc43, -1, Ti44, -1, -1, Sc43, Ti44, k_Sc43_p_to_Ti44_reaclib, k_Ti44_to_p_Sc43_derived, + He4, Sc43, -1, V47, -1, -1, Sc43, V47, k_Sc43_He4_to_V47_reaclib, k_V47_to_He4_Sc43_derived, + He4, Ti42, -1, Cr46, -1, -1, Ti42, Cr46, k_Ti42_He4_to_Cr46_reaclib, k_Cr46_to_He4_Ti42_derived, + H1, Ti44, -1, V45, -1, -1, Ti44, V45, k_Ti44_p_to_V45_reaclib, k_V45_to_p_Ti44_derived, + He4, Ti44, -1, Cr48, -1, -1, Ti44, Cr48, k_Ti44_He4_to_Cr48_reaclib, k_Cr48_to_He4_Ti44_derived, + H1, Ti46, -1, V47, -1, -1, Ti46, V47, k_Ti46_p_to_V47_reaclib, k_V47_to_p_Ti46_derived, + He4, Ti46, -1, Cr50, -1, -1, Ti46, Cr50, k_Ti46_He4_to_Cr50_reaclib, k_Cr50_to_He4_Ti46_derived, + H1, V45, -1, Cr46, -1, -1, V45, Cr46, k_V45_p_to_Cr46_reaclib, k_Cr46_to_p_V45_derived, + He4, V45, -1, Mn49, -1, -1, V45, Mn49, k_V45_He4_to_Mn49_reaclib, k_Mn49_to_He4_V45_derived, + H1, V47, -1, Cr48, -1, -1, V47, Cr48, k_V47_p_to_Cr48_reaclib, k_Cr48_to_p_V47_derived, + He4, V47, -1, Mn51, -1, -1, V47, Mn51, k_V47_He4_to_Mn51_reaclib, k_Mn51_to_He4_V47_derived, + H1, V49, -1, Cr50, -1, -1, V49, Cr50, k_V49_p_to_Cr50_reaclib, k_Cr50_to_p_V49_derived, + He4, V49, -1, Mn53, -1, -1, V49, Mn53, k_V49_He4_to_Mn53_reaclib, k_Mn53_to_He4_V49_derived, + He4, Cr46, -1, Fe50, -1, -1, Cr46, Fe50, k_Cr46_He4_to_Fe50_reaclib, k_Fe50_to_He4_Cr46_derived, + H1, Cr48, -1, Mn49, -1, -1, Cr48, Mn49, k_Cr48_p_to_Mn49_reaclib, k_Mn49_to_p_Cr48_derived, + He4, Cr48, -1, Fe52, -1, -1, Cr48, Fe52, k_Cr48_He4_to_Fe52_reaclib, k_Fe52_to_He4_Cr48_derived, + H1, Cr50, -1, Mn51, -1, -1, Cr50, Mn51, k_Cr50_p_to_Mn51_reaclib, k_Mn51_to_p_Cr50_derived, + He4, Cr50, -1, Fe54, -1, -1, Cr50, Fe54, k_Cr50_He4_to_Fe54_reaclib, k_Fe54_to_He4_Cr50_derived, + H1, Cr52, -1, Mn53, -1, -1, Cr52, Mn53, k_Cr52_p_to_Mn53_reaclib, k_Mn53_to_p_Cr52_derived, + He4, Cr52, -1, Fe56, -1, -1, Cr52, Fe56, k_Cr52_He4_to_Fe56_reaclib, k_Fe56_to_He4_Cr52_derived, + H1, Mn49, -1, Fe50, -1, -1, Mn49, Fe50, k_Mn49_p_to_Fe50_reaclib, k_Fe50_to_p_Mn49_derived, + He4, Mn49, -1, Co53, -1, -1, Mn49, Co53, k_Mn49_He4_to_Co53_reaclib, k_Co53_to_He4_Mn49_derived, + H1, Mn51, -1, Fe52, -1, -1, Mn51, Fe52, k_Mn51_p_to_Fe52_reaclib, k_Fe52_to_p_Mn51_derived, + He4, Mn51, -1, Co55, -1, -1, Mn51, Co55, k_Mn51_He4_to_Co55_reaclib, k_Co55_to_He4_Mn51_derived, + H1, Mn53, -1, Fe54, -1, -1, Mn53, Fe54, k_Mn53_p_to_Fe54_reaclib, k_Fe54_to_p_Mn53_derived, + He4, Mn53, -1, Co57, -1, -1, Mn53, Co57, k_Mn53_He4_to_Co57_reaclib, k_Co57_to_He4_Mn53_derived, + H1, Fe52, -1, Co53, -1, -1, Fe52, Co53, k_Fe52_p_to_Co53_reaclib, k_Co53_to_p_Fe52_derived, + He4, Fe52, -1, Ni56, -1, -1, Fe52, Ni56, k_Fe52_He4_to_Ni56_reaclib, k_Ni56_to_He4_Fe52_derived, + H1, Fe54, -1, Co55, -1, -1, Fe54, Co55, k_Fe54_p_to_Co55_reaclib, k_Co55_to_p_Fe54_derived, + He4, Fe54, -1, Ni58, -1, -1, Fe54, Ni58, k_Fe54_He4_to_Ni58_reaclib, k_Ni58_to_He4_Fe54_derived, + H1, Fe56, -1, Co57, -1, -1, Fe56, Co57, k_Fe56_p_to_Co57_reaclib, k_Co57_to_p_Fe56_derived, + N, Co55, -1, Co56, -1, -1, Co55, Co56, k_Co55_n_to_Co56_reaclib, k_Co56_to_n_Co55_derived, + H1, Co55, -1, Ni56, -1, -1, Co55, Ni56, k_Co55_p_to_Ni56_reaclib, k_Ni56_to_p_Co55_derived, + He4, Co55, -1, Cu59, -1, -1, Co55, Cu59, k_Co55_He4_to_Cu59_reaclib, k_Cu59_to_He4_Co55_derived, + N, Co56, -1, Co57, -1, -1, Co56, Co57, k_Co56_n_to_Co57_reaclib, k_Co57_to_n_Co56_derived, + H1, Co57, -1, Ni58, -1, -1, Co57, Ni58, k_Co57_p_to_Ni58_reaclib, k_Ni58_to_p_Co57_derived, + H1, Ni58, -1, Cu59, -1, -1, Ni58, Cu59, k_Ni58_p_to_Cu59_reaclib, k_Cu59_to_p_Ni58_derived, + N, Mg23, -1, He4, Ne20, -1, Mg23, Ne20, k_Mg23_n_to_He4_Ne20_reaclib, k_Ne20_He4_to_n_Mg23_derived, + H1, Al27, -1, He4, Mg24, -1, Al27, Mg24, k_Al27_p_to_He4_Mg24_reaclib, k_Mg24_He4_to_p_Al27_derived, + He4, Al27, -1, H1, Si30, -1, Al27, Si30, k_Al27_He4_to_p_Si30_reaclib, k_Si30_p_to_He4_Al27_derived, + N, Si27, -1, H1, Al27, -1, Si27, Al27, k_Si27_n_to_p_Al27_reaclib, k_Al27_p_to_n_Si27_derived, + N, Si27, -1, He4, Mg24, -1, Si27, Mg24, k_Si27_n_to_He4_Mg24_reaclib, k_Mg24_He4_to_n_Si27_derived, + He4, P29, -1, H1, S32, -1, P29, S32, k_P29_He4_to_p_S32_reaclib, k_S32_p_to_He4_P29_derived, + H1, P31, -1, He4, Si28, -1, P31, Si28, k_P31_p_to_He4_Si28_reaclib, k_Si28_He4_to_p_P31_derived, + He4, P31, -1, H1, S34, -1, P31, S34, k_P31_He4_to_p_S34_reaclib, k_S34_p_to_He4_P31_derived, + N, S30, -1, He4, Si27, -1, S30, Si27, k_S30_n_to_He4_Si27_reaclib, k_Si27_He4_to_n_S30_derived, + He4, S30, -1, H1, Cl33, -1, S30, Cl33, k_S30_He4_to_p_Cl33_reaclib, k_Cl33_p_to_He4_S30_derived, + He4, Cl33, -1, H1, Ar36, -1, Cl33, Ar36, k_Cl33_He4_to_p_Ar36_reaclib, k_Ar36_p_to_He4_Cl33_derived, + H1, Cl35, -1, He4, S32, -1, Cl35, S32, k_Cl35_p_to_He4_S32_reaclib, k_S32_He4_to_p_Cl35_derived, + He4, Cl35, -1, H1, Ar38, -1, Cl35, Ar38, k_Cl35_He4_to_p_Ar38_reaclib, k_Ar38_p_to_He4_Cl35_derived, + He4, Ar34, -1, H1, K37, -1, Ar34, K37, k_Ar34_He4_to_p_K37_reaclib, k_K37_p_to_He4_Ar34_derived, + He4, K37, -1, H1, Ca40, -1, K37, Ca40, k_K37_He4_to_p_Ca40_reaclib, k_Ca40_p_to_He4_K37_derived, + H1, K39, -1, He4, Ar36, -1, K39, Ar36, k_K39_p_to_He4_Ar36_reaclib, k_Ar36_He4_to_p_K39_derived, + He4, Ca38, -1, H1, Sc41, -1, Ca38, Sc41, k_Ca38_He4_to_p_Sc41_reaclib, k_Sc41_p_to_He4_Ca38_derived, + H1, Ca42, -1, He4, K39, -1, Ca42, K39, k_Ca42_p_to_He4_K39_reaclib, k_K39_He4_to_p_Ca42_derived, + He4, Sc41, -1, H1, Ti44, -1, Sc41, Ti44, k_Sc41_He4_to_p_Ti44_reaclib, k_Ti44_p_to_He4_Sc41_derived, + H1, Sc43, -1, He4, Ca40, -1, Sc43, Ca40, k_Sc43_p_to_He4_Ca40_reaclib, k_Ca40_He4_to_p_Sc43_derived, + He4, Sc43, -1, H1, Ti46, -1, Sc43, Ti46, k_Sc43_He4_to_p_Ti46_reaclib, k_Ti46_p_to_He4_Sc43_derived, + He4, Ti42, -1, H1, V45, -1, Ti42, V45, k_Ti42_He4_to_p_V45_reaclib, k_V45_p_to_He4_Ti42_derived, + He4, V45, -1, H1, Cr48, -1, V45, Cr48, k_V45_He4_to_p_Cr48_reaclib, k_Cr48_p_to_He4_V45_derived, + He4, V47, -1, H1, Cr50, -1, V47, Cr50, k_V47_He4_to_p_Cr50_reaclib, k_Cr50_p_to_He4_V47_derived, + H1, V49, -1, He4, Ti46, -1, V49, Ti46, k_V49_p_to_He4_Ti46_reaclib, k_Ti46_He4_to_p_V49_derived, + He4, V49, -1, H1, Cr52, -1, V49, Cr52, k_V49_He4_to_p_Cr52_reaclib, k_Cr52_p_to_He4_V49_derived, + He4, Cr46, -1, H1, Mn49, -1, Cr46, Mn49, k_Cr46_He4_to_p_Mn49_reaclib, k_Mn49_p_to_He4_Cr46_derived, + He4, Cr48, -1, H1, Mn51, -1, Cr48, Mn51, k_Cr48_He4_to_p_Mn51_reaclib, k_Mn51_p_to_He4_Cr48_derived, + He4, Mn49, -1, H1, Fe52, -1, Mn49, Fe52, k_Mn49_He4_to_p_Fe52_reaclib, k_Fe52_p_to_He4_Mn49_derived, + He4, Mn51, -1, H1, Fe54, -1, Mn51, Fe54, k_Mn51_He4_to_p_Fe54_reaclib, k_Fe54_p_to_He4_Mn51_derived, + H1, Mn53, -1, He4, Cr50, -1, Mn53, Cr50, k_Mn53_p_to_He4_Cr50_reaclib, k_Cr50_He4_to_p_Mn53_derived, + He4, Mn53, -1, H1, Fe56, -1, Mn53, Fe56, k_Mn53_He4_to_p_Fe56_reaclib, k_Fe56_p_to_He4_Mn53_derived, + He4, Fe50, -1, H1, Co53, -1, Fe50, Co53, k_Fe50_He4_to_p_Co53_reaclib, k_Co53_p_to_He4_Fe50_derived, + He4, Fe52, -1, H1, Co55, -1, Fe52, Co55, k_Fe52_He4_to_p_Co55_reaclib, k_Co55_p_to_He4_Fe52_derived, + He4, Co53, -1, H1, Ni56, -1, Co53, Ni56, k_Co53_He4_to_p_Ni56_reaclib, k_Ni56_p_to_He4_Co53_derived, + He4, Co55, -1, H1, Ni58, -1, Co55, Ni58, k_Co55_He4_to_p_Ni58_reaclib, k_Ni58_p_to_He4_Co55_derived, + N, Co56, -1, H1, Fe56, -1, Co56, Fe56, k_Co56_n_to_p_Fe56_reaclib, k_Fe56_p_to_n_Co56_derived, + N, Co56, -1, He4, Mn53, -1, Co56, Mn53, k_Co56_n_to_He4_Mn53_reaclib, k_Mn53_He4_to_n_Co56_derived, + H1, Co57, -1, He4, Fe54, -1, Co57, Fe54, k_Co57_p_to_He4_Fe54_reaclib, k_Fe54_He4_to_p_Co57_derived, + N, Ni56, -1, H1, Co56, -1, Ni56, Co56, k_Ni56_n_to_p_Co56_reaclib, k_Co56_p_to_n_Ni56_derived, + N, Cu59, -1, He4, Co56, -1, Cu59, Co56, k_Cu59_n_to_He4_Co56_reaclib, k_Co56_He4_to_n_Cu59_derived, + H1, Cu59, -1, He4, Ni56, -1, Cu59, Ni56, k_Cu59_p_to_He4_Ni56_reaclib, k_Ni56_He4_to_p_Cu59_derived, + He4, He4, He4, C12, -1, -1, C12, -1, k_He4_He4_He4_to_C12_reaclib, k_C12_to_3He4_derived, + H1, V47, -1, He4, Ti44, -1, V47, Ti44, k_V47_p_to_He4_Ti44_derived, k_Ti44_He4_to_p_V47_reaclib, + Ne20, He4, -1, Mg24, -1, -1, Ne20, Mg24, k_Ne20_He4_to_Mg24_approx, k_Mg24_to_Ne20_He4_approx + }; +} +#endif + +#endif diff --git a/networks/massive-star-medium/actual_rhs.H b/networks/massive-star-medium/actual_rhs.H new file mode 100644 index 0000000000..8036d3b7d8 --- /dev/null +++ b/networks/massive-star-medium/actual_rhs.H @@ -0,0 +1,9689 @@ +#ifndef ACTUAL_RHS_H +#define ACTUAL_RHS_H + +#include +#include + +#include +#include +#include +#include +#ifdef SCREENING +#include +#endif +#include +#ifdef NEUTRINOS +#include +#endif +#include +#include +#include +#include +#include +#include +#include +#include + +using namespace amrex::literals; + +template +AMREX_GPU_DEVICE AMREX_INLINE +void ener_gener_rate(T const& dydt, amrex::Real& enuc) +{ + + // Computes the instantaneous energy generation rate (from the nuclei) + + // This is basically e = m c**2 + + enuc = 0.0_rt; + + amrex::constexpr_for<1, NumSpec+1>([&] (auto n) + { + enuc += dydt(n) * network::mion(); + }); + + enuc *= C::enuc_conv2; +} + + +#ifdef SCREENING +template +AMREX_GPU_DEVICE AMREX_INLINE +void evaluate_screening(const burn_t& state, + const amrex::Array1D& Y, + T& rate_eval) { + + using namespace Rates; + + // Evaluate screening terms + + using number_t = std::conditional_t; + number_t temp = state.T; + if constexpr (do_T_derivatives) { + // seed the dual number for temperature before calculating anything with it + autodiff::seed(temp); + } + + plasma_state_t pstate{}; + fill_plasma_state(pstate, temp, state.rho, Y); + + amrex::Real log_scor, dlog_scor_dT; + + { + constexpr auto scn_fac = scrn::calculate_screen_factor(2.0_rt, 4.0_rt, 25.0_rt, 53.0_rt); + static_assert(scn_fac.z1 == 2.0_rt); + actual_log_screen(pstate, scn_fac, log_scor, dlog_scor_dT); + rate_eval.log_screen(k_He4_Mn53) = log_scor; + if constexpr (std::is_same_v) { + rate_eval.dlog_screen_dT(k_He4_Mn53) = dlog_scor_dT; + } + } + + { + constexpr auto scn_fac = scrn::calculate_screen_factor(1.0_rt, 1.0_rt, 22.0_rt, 44.0_rt); + static_assert(scn_fac.z1 == 1.0_rt); + actual_log_screen(pstate, scn_fac, log_scor, dlog_scor_dT); + rate_eval.log_screen(k_p_Ti44) = log_scor; + if constexpr (std::is_same_v) { + rate_eval.dlog_screen_dT(k_p_Ti44) = dlog_scor_dT; + } + } + + { + constexpr auto scn_fac = scrn::calculate_screen_factor(1.0_rt, 1.0_rt, 20.0_rt, 42.0_rt); + static_assert(scn_fac.z1 == 1.0_rt); + actual_log_screen(pstate, scn_fac, log_scor, dlog_scor_dT); + rate_eval.log_screen(k_p_Ca42) = log_scor; + if constexpr (std::is_same_v) { + rate_eval.dlog_screen_dT(k_p_Ca42) = dlog_scor_dT; + } + } + + { + constexpr auto scn_fac = scrn::calculate_screen_factor(1.0_rt, 1.0_rt, 21.0_rt, 43.0_rt); + static_assert(scn_fac.z1 == 1.0_rt); + actual_log_screen(pstate, scn_fac, log_scor, dlog_scor_dT); + rate_eval.log_screen(k_p_Sc43) = log_scor; + if constexpr (std::is_same_v) { + rate_eval.dlog_screen_dT(k_p_Sc43) = dlog_scor_dT; + } + } + + { + constexpr auto scn_fac = scrn::calculate_screen_factor(1.0_rt, 1.0_rt, 26.0_rt, 56.0_rt); + static_assert(scn_fac.z1 == 1.0_rt); + actual_log_screen(pstate, scn_fac, log_scor, dlog_scor_dT); + rate_eval.log_screen(k_p_Fe56) = log_scor; + if constexpr (std::is_same_v) { + rate_eval.dlog_screen_dT(k_p_Fe56) = dlog_scor_dT; + } + } + + { + constexpr auto scn_fac = scrn::calculate_screen_factor(1.0_rt, 1.0_rt, 18.0_rt, 38.0_rt); + static_assert(scn_fac.z1 == 1.0_rt); + actual_log_screen(pstate, scn_fac, log_scor, dlog_scor_dT); + rate_eval.log_screen(k_p_Ar38) = log_scor; + if constexpr (std::is_same_v) { + rate_eval.dlog_screen_dT(k_p_Ar38) = dlog_scor_dT; + } + } + + { + constexpr auto scn_fac = scrn::calculate_screen_factor(2.0_rt, 4.0_rt, 22.0_rt, 44.0_rt); + static_assert(scn_fac.z1 == 2.0_rt); + actual_log_screen(pstate, scn_fac, log_scor, dlog_scor_dT); + rate_eval.log_screen(k_He4_Ti44) = log_scor; + if constexpr (std::is_same_v) { + rate_eval.dlog_screen_dT(k_He4_Ti44) = dlog_scor_dT; + } + } + + { + constexpr auto scn_fac = scrn::calculate_screen_factor(2.0_rt, 4.0_rt, 20.0_rt, 42.0_rt); + static_assert(scn_fac.z1 == 2.0_rt); + actual_log_screen(pstate, scn_fac, log_scor, dlog_scor_dT); + rate_eval.log_screen(k_He4_Ca42) = log_scor; + if constexpr (std::is_same_v) { + rate_eval.dlog_screen_dT(k_He4_Ca42) = dlog_scor_dT; + } + } + + { + constexpr auto scn_fac = scrn::calculate_screen_factor(2.0_rt, 4.0_rt, 12.0_rt, 24.0_rt); + static_assert(scn_fac.z1 == 2.0_rt); + actual_log_screen(pstate, scn_fac, log_scor, dlog_scor_dT); + rate_eval.log_screen(k_He4_Mg24) = log_scor; + if constexpr (std::is_same_v) { + rate_eval.dlog_screen_dT(k_He4_Mg24) = dlog_scor_dT; + } + } + + { + constexpr auto scn_fac = scrn::calculate_screen_factor(6.0_rt, 12.0_rt, 8.0_rt, 16.0_rt); + static_assert(scn_fac.z1 == 6.0_rt); + actual_log_screen(pstate, scn_fac, log_scor, dlog_scor_dT); + rate_eval.log_screen(k_C12_O16) = log_scor; + if constexpr (std::is_same_v) { + rate_eval.dlog_screen_dT(k_C12_O16) = dlog_scor_dT; + } + } + + { + constexpr auto scn_fac = scrn::calculate_screen_factor(2.0_rt, 4.0_rt, 18.0_rt, 38.0_rt); + static_assert(scn_fac.z1 == 2.0_rt); + actual_log_screen(pstate, scn_fac, log_scor, dlog_scor_dT); + rate_eval.log_screen(k_He4_Ar38) = log_scor; + if constexpr (std::is_same_v) { + rate_eval.dlog_screen_dT(k_He4_Ar38) = dlog_scor_dT; + } + } + + { + constexpr auto scn_fac = scrn::calculate_screen_factor(1.0_rt, 1.0_rt, 23.0_rt, 47.0_rt); + static_assert(scn_fac.z1 == 1.0_rt); + actual_log_screen(pstate, scn_fac, log_scor, dlog_scor_dT); + rate_eval.log_screen(k_p_V47) = log_scor; + if constexpr (std::is_same_v) { + rate_eval.dlog_screen_dT(k_p_V47) = dlog_scor_dT; + } + } + + { + constexpr auto scn_fac = scrn::calculate_screen_factor(2.0_rt, 4.0_rt, 27.0_rt, 53.0_rt); + static_assert(scn_fac.z1 == 2.0_rt); + actual_log_screen(pstate, scn_fac, log_scor, dlog_scor_dT); + rate_eval.log_screen(k_He4_Co53) = log_scor; + if constexpr (std::is_same_v) { + rate_eval.dlog_screen_dT(k_He4_Co53) = dlog_scor_dT; + } + } + + { + constexpr auto scn_fac = scrn::calculate_screen_factor(1.0_rt, 1.0_rt, 27.0_rt, 55.0_rt); + static_assert(scn_fac.z1 == 1.0_rt); + actual_log_screen(pstate, scn_fac, log_scor, dlog_scor_dT); + rate_eval.log_screen(k_p_Co55) = log_scor; + if constexpr (std::is_same_v) { + rate_eval.dlog_screen_dT(k_p_Co55) = dlog_scor_dT; + } + } + + { + constexpr auto scn_fac = scrn::calculate_screen_factor(6.0_rt, 12.0_rt, 6.0_rt, 12.0_rt); + static_assert(scn_fac.z1 == 6.0_rt); + actual_log_screen(pstate, scn_fac, log_scor, dlog_scor_dT); + rate_eval.log_screen(k_C12_C12) = log_scor; + if constexpr (std::is_same_v) { + rate_eval.dlog_screen_dT(k_C12_C12) = dlog_scor_dT; + } + } + + { + constexpr auto scn_fac = scrn::calculate_screen_factor(2.0_rt, 4.0_rt, 17.0_rt, 33.0_rt); + static_assert(scn_fac.z1 == 2.0_rt); + actual_log_screen(pstate, scn_fac, log_scor, dlog_scor_dT); + rate_eval.log_screen(k_He4_Cl33) = log_scor; + if constexpr (std::is_same_v) { + rate_eval.dlog_screen_dT(k_He4_Cl33) = dlog_scor_dT; + } + } + + { + constexpr auto scn_fac = scrn::calculate_screen_factor(1.0_rt, 1.0_rt, 13.0_rt, 27.0_rt); + static_assert(scn_fac.z1 == 1.0_rt); + actual_log_screen(pstate, scn_fac, log_scor, dlog_scor_dT); + rate_eval.log_screen(k_p_Al27) = log_scor; + if constexpr (std::is_same_v) { + rate_eval.dlog_screen_dT(k_p_Al27) = dlog_scor_dT; + } + } + + { + constexpr auto scn_fac = scrn::calculate_screen_factor(2.0_rt, 4.0_rt, 22.0_rt, 46.0_rt); + static_assert(scn_fac.z1 == 2.0_rt); + actual_log_screen(pstate, scn_fac, log_scor, dlog_scor_dT); + rate_eval.log_screen(k_He4_Ti46) = log_scor; + if constexpr (std::is_same_v) { + rate_eval.dlog_screen_dT(k_He4_Ti46) = dlog_scor_dT; + } + } + + { + constexpr auto scn_fac = scrn::calculate_screen_factor(2.0_rt, 4.0_rt, 23.0_rt, 47.0_rt); + static_assert(scn_fac.z1 == 2.0_rt); + actual_log_screen(pstate, scn_fac, log_scor, dlog_scor_dT); + rate_eval.log_screen(k_He4_V47) = log_scor; + if constexpr (std::is_same_v) { + rate_eval.dlog_screen_dT(k_He4_V47) = dlog_scor_dT; + } + } + + { + constexpr auto scn_fac = scrn::calculate_screen_factor(2.0_rt, 4.0_rt, 28.0_rt, 56.0_rt); + static_assert(scn_fac.z1 == 2.0_rt); + actual_log_screen(pstate, scn_fac, log_scor, dlog_scor_dT); + rate_eval.log_screen(k_He4_Ni56) = log_scor; + if constexpr (std::is_same_v) { + rate_eval.dlog_screen_dT(k_He4_Ni56) = dlog_scor_dT; + } + } + + { + constexpr auto scn_fac = scrn::calculate_screen_factor(1.0_rt, 1.0_rt, 15.0_rt, 31.0_rt); + static_assert(scn_fac.z1 == 1.0_rt); + actual_log_screen(pstate, scn_fac, log_scor, dlog_scor_dT); + rate_eval.log_screen(k_p_P31) = log_scor; + if constexpr (std::is_same_v) { + rate_eval.dlog_screen_dT(k_p_P31) = dlog_scor_dT; + } + } + + { + constexpr auto scn_fac = scrn::calculate_screen_factor(1.0_rt, 1.0_rt, 28.0_rt, 58.0_rt); + static_assert(scn_fac.z1 == 1.0_rt); + actual_log_screen(pstate, scn_fac, log_scor, dlog_scor_dT); + rate_eval.log_screen(k_p_Ni58) = log_scor; + if constexpr (std::is_same_v) { + rate_eval.dlog_screen_dT(k_p_Ni58) = dlog_scor_dT; + } + } + + { + constexpr auto scn_fac = scrn::calculate_screen_factor(2.0_rt, 4.0_rt, 23.0_rt, 49.0_rt); + static_assert(scn_fac.z1 == 2.0_rt); + actual_log_screen(pstate, scn_fac, log_scor, dlog_scor_dT); + rate_eval.log_screen(k_He4_V49) = log_scor; + if constexpr (std::is_same_v) { + rate_eval.dlog_screen_dT(k_He4_V49) = dlog_scor_dT; + } + } + + { + constexpr auto scn_fac = scrn::calculate_screen_factor(2.0_rt, 4.0_rt, 24.0_rt, 46.0_rt); + static_assert(scn_fac.z1 == 2.0_rt); + actual_log_screen(pstate, scn_fac, log_scor, dlog_scor_dT); + rate_eval.log_screen(k_He4_Cr46) = log_scor; + if constexpr (std::is_same_v) { + rate_eval.dlog_screen_dT(k_He4_Cr46) = dlog_scor_dT; + } + } + + { + constexpr auto scn_fac = scrn::calculate_screen_factor(8.0_rt, 16.0_rt, 8.0_rt, 16.0_rt); + static_assert(scn_fac.z1 == 8.0_rt); + actual_log_screen(pstate, scn_fac, log_scor, dlog_scor_dT); + rate_eval.log_screen(k_O16_O16) = log_scor; + if constexpr (std::is_same_v) { + rate_eval.dlog_screen_dT(k_O16_O16) = dlog_scor_dT; + } + } + + { + constexpr auto scn_fac = scrn::calculate_screen_factor(2.0_rt, 4.0_rt, 15.0_rt, 31.0_rt); + static_assert(scn_fac.z1 == 2.0_rt); + actual_log_screen(pstate, scn_fac, log_scor, dlog_scor_dT); + rate_eval.log_screen(k_He4_P31) = log_scor; + if constexpr (std::is_same_v) { + rate_eval.dlog_screen_dT(k_He4_P31) = dlog_scor_dT; + } + } + + { + constexpr auto scn_fac = scrn::calculate_screen_factor(1.0_rt, 1.0_rt, 25.0_rt, 49.0_rt); + static_assert(scn_fac.z1 == 1.0_rt); + actual_log_screen(pstate, scn_fac, log_scor, dlog_scor_dT); + rate_eval.log_screen(k_p_Mn49) = log_scor; + if constexpr (std::is_same_v) { + rate_eval.dlog_screen_dT(k_p_Mn49) = dlog_scor_dT; + } + } + + { + constexpr auto scn_fac = scrn::calculate_screen_factor(1.0_rt, 1.0_rt, 24.0_rt, 52.0_rt); + static_assert(scn_fac.z1 == 1.0_rt); + actual_log_screen(pstate, scn_fac, log_scor, dlog_scor_dT); + rate_eval.log_screen(k_p_Cr52) = log_scor; + if constexpr (std::is_same_v) { + rate_eval.dlog_screen_dT(k_p_Cr52) = dlog_scor_dT; + } + } + + { + constexpr auto scn_fac = scrn::calculate_screen_factor(1.0_rt, 1.0_rt, 16.0_rt, 34.0_rt); + static_assert(scn_fac.z1 == 1.0_rt); + actual_log_screen(pstate, scn_fac, log_scor, dlog_scor_dT); + rate_eval.log_screen(k_p_S34) = log_scor; + if constexpr (std::is_same_v) { + rate_eval.dlog_screen_dT(k_p_S34) = dlog_scor_dT; + } + } + + { + constexpr auto scn_fac = scrn::calculate_screen_factor(2.0_rt, 4.0_rt, 26.0_rt, 50.0_rt); + static_assert(scn_fac.z1 == 2.0_rt); + actual_log_screen(pstate, scn_fac, log_scor, dlog_scor_dT); + rate_eval.log_screen(k_He4_Fe50) = log_scor; + if constexpr (std::is_same_v) { + rate_eval.dlog_screen_dT(k_He4_Fe50) = dlog_scor_dT; + } + } + + { + constexpr auto scn_fac = scrn::calculate_screen_factor(2.0_rt, 4.0_rt, 20.0_rt, 40.0_rt); + static_assert(scn_fac.z1 == 2.0_rt); + actual_log_screen(pstate, scn_fac, log_scor, dlog_scor_dT); + rate_eval.log_screen(k_He4_Ca40) = log_scor; + if constexpr (std::is_same_v) { + rate_eval.dlog_screen_dT(k_He4_Ca40) = dlog_scor_dT; + } + } + + { + constexpr auto scn_fac = scrn::calculate_screen_factor(2.0_rt, 4.0_rt, 25.0_rt, 49.0_rt); + static_assert(scn_fac.z1 == 2.0_rt); + actual_log_screen(pstate, scn_fac, log_scor, dlog_scor_dT); + rate_eval.log_screen(k_He4_Mn49) = log_scor; + if constexpr (std::is_same_v) { + rate_eval.dlog_screen_dT(k_He4_Mn49) = dlog_scor_dT; + } + } + + { + constexpr auto scn_fac = scrn::calculate_screen_factor(2.0_rt, 4.0_rt, 18.0_rt, 36.0_rt); + static_assert(scn_fac.z1 == 2.0_rt); + actual_log_screen(pstate, scn_fac, log_scor, dlog_scor_dT); + rate_eval.log_screen(k_He4_Ar36) = log_scor; + if constexpr (std::is_same_v) { + rate_eval.dlog_screen_dT(k_He4_Ar36) = dlog_scor_dT; + } + } + + { + constexpr auto scn_fac = scrn::calculate_screen_factor(2.0_rt, 4.0_rt, 24.0_rt, 52.0_rt); + static_assert(scn_fac.z1 == 2.0_rt); + actual_log_screen(pstate, scn_fac, log_scor, dlog_scor_dT); + rate_eval.log_screen(k_He4_Cr52) = log_scor; + if constexpr (std::is_same_v) { + rate_eval.dlog_screen_dT(k_He4_Cr52) = dlog_scor_dT; + } + } + + { + constexpr auto scn_fac = scrn::calculate_screen_factor(2.0_rt, 4.0_rt, 16.0_rt, 34.0_rt); + static_assert(scn_fac.z1 == 2.0_rt); + actual_log_screen(pstate, scn_fac, log_scor, dlog_scor_dT); + rate_eval.log_screen(k_He4_S34) = log_scor; + if constexpr (std::is_same_v) { + rate_eval.dlog_screen_dT(k_He4_S34) = dlog_scor_dT; + } + } + + { + constexpr auto scn_fac = scrn::calculate_screen_factor(2.0_rt, 4.0_rt, 16.0_rt, 30.0_rt); + static_assert(scn_fac.z1 == 2.0_rt); + actual_log_screen(pstate, scn_fac, log_scor, dlog_scor_dT); + rate_eval.log_screen(k_He4_S30) = log_scor; + if constexpr (std::is_same_v) { + rate_eval.dlog_screen_dT(k_He4_S30) = dlog_scor_dT; + } + } + + { + constexpr auto scn_fac = scrn::calculate_screen_factor(2.0_rt, 4.0_rt, 21.0_rt, 43.0_rt); + static_assert(scn_fac.z1 == 2.0_rt); + actual_log_screen(pstate, scn_fac, log_scor, dlog_scor_dT); + rate_eval.log_screen(k_He4_Sc43) = log_scor; + if constexpr (std::is_same_v) { + rate_eval.dlog_screen_dT(k_He4_Sc43) = dlog_scor_dT; + } + } + + { + constexpr auto scn_fac = scrn::calculate_screen_factor(2.0_rt, 4.0_rt, 10.0_rt, 20.0_rt); + static_assert(scn_fac.z1 == 2.0_rt); + actual_log_screen(pstate, scn_fac, log_scor, dlog_scor_dT); + rate_eval.log_screen(k_He4_Ne20) = log_scor; + if constexpr (std::is_same_v) { + rate_eval.dlog_screen_dT(k_He4_Ne20) = dlog_scor_dT; + } + } + + { + constexpr auto scn_fac = scrn::calculate_screen_factor(1.0_rt, 1.0_rt, 27.0_rt, 56.0_rt); + static_assert(scn_fac.z1 == 1.0_rt); + actual_log_screen(pstate, scn_fac, log_scor, dlog_scor_dT); + rate_eval.log_screen(k_p_Co56) = log_scor; + if constexpr (std::is_same_v) { + rate_eval.dlog_screen_dT(k_p_Co56) = dlog_scor_dT; + } + } + + { + constexpr auto scn_fac = scrn::calculate_screen_factor(1.0_rt, 1.0_rt, 14.0_rt, 28.0_rt); + static_assert(scn_fac.z1 == 1.0_rt); + actual_log_screen(pstate, scn_fac, log_scor, dlog_scor_dT); + rate_eval.log_screen(k_p_Si28) = log_scor; + if constexpr (std::is_same_v) { + rate_eval.dlog_screen_dT(k_p_Si28) = dlog_scor_dT; + } + } + + { + constexpr auto scn_fac = scrn::calculate_screen_factor(1.0_rt, 1.0_rt, 26.0_rt, 54.0_rt); + static_assert(scn_fac.z1 == 1.0_rt); + actual_log_screen(pstate, scn_fac, log_scor, dlog_scor_dT); + rate_eval.log_screen(k_p_Fe54) = log_scor; + if constexpr (std::is_same_v) { + rate_eval.dlog_screen_dT(k_p_Fe54) = dlog_scor_dT; + } + } + + { + constexpr auto scn_fac = scrn::calculate_screen_factor(2.0_rt, 4.0_rt, 27.0_rt, 55.0_rt); + static_assert(scn_fac.z1 == 2.0_rt); + actual_log_screen(pstate, scn_fac, log_scor, dlog_scor_dT); + rate_eval.log_screen(k_He4_Co55) = log_scor; + if constexpr (std::is_same_v) { + rate_eval.dlog_screen_dT(k_He4_Co55) = dlog_scor_dT; + } + } + + { + constexpr auto scn_fac = scrn::calculate_screen_factor(2.0_rt, 4.0_rt, 13.0_rt, 27.0_rt); + static_assert(scn_fac.z1 == 2.0_rt); + actual_log_screen(pstate, scn_fac, log_scor, dlog_scor_dT); + rate_eval.log_screen(k_He4_Al27) = log_scor; + if constexpr (std::is_same_v) { + rate_eval.dlog_screen_dT(k_He4_Al27) = dlog_scor_dT; + } + } + + { + constexpr auto scn_fac = scrn::calculate_screen_factor(1.0_rt, 1.0_rt, 23.0_rt, 45.0_rt); + static_assert(scn_fac.z1 == 1.0_rt); + actual_log_screen(pstate, scn_fac, log_scor, dlog_scor_dT); + rate_eval.log_screen(k_p_V45) = log_scor; + if constexpr (std::is_same_v) { + rate_eval.dlog_screen_dT(k_p_V45) = dlog_scor_dT; + } + } + + { + constexpr auto scn_fac = scrn::calculate_screen_factor(1.0_rt, 1.0_rt, 17.0_rt, 35.0_rt); + static_assert(scn_fac.z1 == 1.0_rt); + actual_log_screen(pstate, scn_fac, log_scor, dlog_scor_dT); + rate_eval.log_screen(k_p_Cl35) = log_scor; + if constexpr (std::is_same_v) { + rate_eval.dlog_screen_dT(k_p_Cl35) = dlog_scor_dT; + } + } + + { + constexpr auto scn_fac = scrn::calculate_screen_factor(1.0_rt, 1.0_rt, 14.0_rt, 30.0_rt); + static_assert(scn_fac.z1 == 1.0_rt); + actual_log_screen(pstate, scn_fac, log_scor, dlog_scor_dT); + rate_eval.log_screen(k_p_Si30) = log_scor; + if constexpr (std::is_same_v) { + rate_eval.dlog_screen_dT(k_p_Si30) = dlog_scor_dT; + } + } + + { + constexpr auto scn_fac = scrn::calculate_screen_factor(2.0_rt, 4.0_rt, 8.0_rt, 16.0_rt); + static_assert(scn_fac.z1 == 2.0_rt); + actual_log_screen(pstate, scn_fac, log_scor, dlog_scor_dT); + rate_eval.log_screen(k_He4_O16) = log_scor; + if constexpr (std::is_same_v) { + rate_eval.dlog_screen_dT(k_He4_O16) = dlog_scor_dT; + } + } + + { + constexpr auto scn_fac = scrn::calculate_screen_factor(2.0_rt, 4.0_rt, 14.0_rt, 30.0_rt); + static_assert(scn_fac.z1 == 2.0_rt); + actual_log_screen(pstate, scn_fac, log_scor, dlog_scor_dT); + rate_eval.log_screen(k_He4_Si30) = log_scor; + if constexpr (std::is_same_v) { + rate_eval.dlog_screen_dT(k_He4_Si30) = dlog_scor_dT; + } + } + + { + constexpr auto scn_fac = scrn::calculate_screen_factor(1.0_rt, 1.0_rt, 15.0_rt, 29.0_rt); + static_assert(scn_fac.z1 == 1.0_rt); + actual_log_screen(pstate, scn_fac, log_scor, dlog_scor_dT); + rate_eval.log_screen(k_p_P29) = log_scor; + if constexpr (std::is_same_v) { + rate_eval.dlog_screen_dT(k_p_P29) = dlog_scor_dT; + } + } + + { + constexpr auto scn_fac = scrn::calculate_screen_factor(2.0_rt, 4.0_rt, 12.0_rt, 23.0_rt); + static_assert(scn_fac.z1 == 2.0_rt); + actual_log_screen(pstate, scn_fac, log_scor, dlog_scor_dT); + rate_eval.log_screen(k_He4_Mg23) = log_scor; + if constexpr (std::is_same_v) { + rate_eval.dlog_screen_dT(k_He4_Mg23) = dlog_scor_dT; + } + } + + { + constexpr auto scn_fac = scrn::calculate_screen_factor(2.0_rt, 4.0_rt, 15.0_rt, 29.0_rt); + static_assert(scn_fac.z1 == 2.0_rt); + actual_log_screen(pstate, scn_fac, log_scor, dlog_scor_dT); + rate_eval.log_screen(k_He4_P29) = log_scor; + if constexpr (std::is_same_v) { + rate_eval.dlog_screen_dT(k_He4_P29) = dlog_scor_dT; + } + } + + { + constexpr auto scn_fac = scrn::calculate_screen_factor(1.0_rt, 1.0_rt, 26.0_rt, 52.0_rt); + static_assert(scn_fac.z1 == 1.0_rt); + actual_log_screen(pstate, scn_fac, log_scor, dlog_scor_dT); + rate_eval.log_screen(k_p_Fe52) = log_scor; + if constexpr (std::is_same_v) { + rate_eval.dlog_screen_dT(k_p_Fe52) = dlog_scor_dT; + } + } + + { + constexpr auto scn_fac = scrn::calculate_screen_factor(1.0_rt, 1.0_rt, 24.0_rt, 50.0_rt); + static_assert(scn_fac.z1 == 1.0_rt); + actual_log_screen(pstate, scn_fac, log_scor, dlog_scor_dT); + rate_eval.log_screen(k_p_Cr50) = log_scor; + if constexpr (std::is_same_v) { + rate_eval.dlog_screen_dT(k_p_Cr50) = dlog_scor_dT; + } + } + + { + constexpr auto scn_fac = scrn::calculate_screen_factor(1.0_rt, 1.0_rt, 16.0_rt, 32.0_rt); + static_assert(scn_fac.z1 == 1.0_rt); + actual_log_screen(pstate, scn_fac, log_scor, dlog_scor_dT); + rate_eval.log_screen(k_p_S32) = log_scor; + if constexpr (std::is_same_v) { + rate_eval.dlog_screen_dT(k_p_S32) = dlog_scor_dT; + } + } + + { + constexpr auto scn_fac = scrn::calculate_screen_factor(2.0_rt, 4.0_rt, 20.0_rt, 38.0_rt); + static_assert(scn_fac.z1 == 2.0_rt); + actual_log_screen(pstate, scn_fac, log_scor, dlog_scor_dT); + rate_eval.log_screen(k_He4_Ca38) = log_scor; + if constexpr (std::is_same_v) { + rate_eval.dlog_screen_dT(k_He4_Ca38) = dlog_scor_dT; + } + } + + { + constexpr auto scn_fac = scrn::calculate_screen_factor(2.0_rt, 4.0_rt, 18.0_rt, 34.0_rt); + static_assert(scn_fac.z1 == 2.0_rt); + actual_log_screen(pstate, scn_fac, log_scor, dlog_scor_dT); + rate_eval.log_screen(k_He4_Ar34) = log_scor; + if constexpr (std::is_same_v) { + rate_eval.dlog_screen_dT(k_He4_Ar34) = dlog_scor_dT; + } + } + + { + constexpr auto scn_fac = scrn::calculate_screen_factor(1.0_rt, 1.0_rt, 29.0_rt, 59.0_rt); + static_assert(scn_fac.z1 == 1.0_rt); + actual_log_screen(pstate, scn_fac, log_scor, dlog_scor_dT); + rate_eval.log_screen(k_p_Cu59) = log_scor; + if constexpr (std::is_same_v) { + rate_eval.dlog_screen_dT(k_p_Cu59) = dlog_scor_dT; + } + } + + { + constexpr auto scn_fac = scrn::calculate_screen_factor(2.0_rt, 4.0_rt, 16.0_rt, 32.0_rt); + static_assert(scn_fac.z1 == 2.0_rt); + actual_log_screen(pstate, scn_fac, log_scor, dlog_scor_dT); + rate_eval.log_screen(k_He4_S32) = log_scor; + if constexpr (std::is_same_v) { + rate_eval.dlog_screen_dT(k_He4_S32) = dlog_scor_dT; + } + } + + { + constexpr auto scn_fac = scrn::calculate_screen_factor(1.0_rt, 1.0_rt, 21.0_rt, 41.0_rt); + static_assert(scn_fac.z1 == 1.0_rt); + actual_log_screen(pstate, scn_fac, log_scor, dlog_scor_dT); + rate_eval.log_screen(k_p_Sc41) = log_scor; + if constexpr (std::is_same_v) { + rate_eval.dlog_screen_dT(k_p_Sc41) = dlog_scor_dT; + } + } + + { + constexpr auto scn_fac = scrn::calculate_screen_factor(2.0_rt, 4.0_rt, 22.0_rt, 42.0_rt); + static_assert(scn_fac.z1 == 2.0_rt); + actual_log_screen(pstate, scn_fac, log_scor, dlog_scor_dT); + rate_eval.log_screen(k_He4_Ti42) = log_scor; + if constexpr (std::is_same_v) { + rate_eval.dlog_screen_dT(k_He4_Ti42) = dlog_scor_dT; + } + } + + { + constexpr auto scn_fac = scrn::calculate_screen_factor(1.0_rt, 1.0_rt, 25.0_rt, 53.0_rt); + static_assert(scn_fac.z1 == 1.0_rt); + actual_log_screen(pstate, scn_fac, log_scor, dlog_scor_dT); + rate_eval.log_screen(k_p_Mn53) = log_scor; + if constexpr (std::is_same_v) { + rate_eval.dlog_screen_dT(k_p_Mn53) = dlog_scor_dT; + } + } + + { + constexpr auto scn_fac = scrn::calculate_screen_factor(2.0_rt, 4.0_rt, 21.0_rt, 41.0_rt); + static_assert(scn_fac.z1 == 2.0_rt); + actual_log_screen(pstate, scn_fac, log_scor, dlog_scor_dT); + rate_eval.log_screen(k_He4_Sc41) = log_scor; + if constexpr (std::is_same_v) { + rate_eval.dlog_screen_dT(k_He4_Sc41) = dlog_scor_dT; + } + } + + { + constexpr auto scn_fac = scrn::calculate_screen_factor(2.0_rt, 4.0_rt, 27.0_rt, 56.0_rt); + static_assert(scn_fac.z1 == 2.0_rt); + actual_log_screen(pstate, scn_fac, log_scor, dlog_scor_dT); + rate_eval.log_screen(k_He4_Co56) = log_scor; + if constexpr (std::is_same_v) { + rate_eval.dlog_screen_dT(k_He4_Co56) = dlog_scor_dT; + } + } + + { + constexpr auto scn_fac = scrn::calculate_screen_factor(2.0_rt, 4.0_rt, 14.0_rt, 28.0_rt); + static_assert(scn_fac.z1 == 2.0_rt); + actual_log_screen(pstate, scn_fac, log_scor, dlog_scor_dT); + rate_eval.log_screen(k_He4_Si28) = log_scor; + if constexpr (std::is_same_v) { + rate_eval.dlog_screen_dT(k_He4_Si28) = dlog_scor_dT; + } + } + + { + constexpr auto scn_fac = scrn::calculate_screen_factor(2.0_rt, 4.0_rt, 26.0_rt, 54.0_rt); + static_assert(scn_fac.z1 == 2.0_rt); + actual_log_screen(pstate, scn_fac, log_scor, dlog_scor_dT); + rate_eval.log_screen(k_He4_Fe54) = log_scor; + if constexpr (std::is_same_v) { + rate_eval.dlog_screen_dT(k_He4_Fe54) = dlog_scor_dT; + } + } + + { + constexpr auto scn_fac = scrn::calculate_screen_factor(2.0_rt, 4.0_rt, 4.0_rt, 8.0_rt); + static_assert(scn_fac.z1 == 2.0_rt); + actual_log_screen(pstate, scn_fac, log_scor, dlog_scor_dT); + rate_eval.log_screen(k_He4_Be8) = log_scor; + if constexpr (std::is_same_v) { + rate_eval.dlog_screen_dT(k_He4_Be8) = dlog_scor_dT; + } + } + + { + constexpr auto scn_fac = scrn::calculate_screen_factor(2.0_rt, 4.0_rt, 23.0_rt, 45.0_rt); + static_assert(scn_fac.z1 == 2.0_rt); + actual_log_screen(pstate, scn_fac, log_scor, dlog_scor_dT); + rate_eval.log_screen(k_He4_V45) = log_scor; + if constexpr (std::is_same_v) { + rate_eval.dlog_screen_dT(k_He4_V45) = dlog_scor_dT; + } + } + + { + constexpr auto scn_fac = scrn::calculate_screen_factor(1.0_rt, 1.0_rt, 27.0_rt, 57.0_rt); + static_assert(scn_fac.z1 == 1.0_rt); + actual_log_screen(pstate, scn_fac, log_scor, dlog_scor_dT); + rate_eval.log_screen(k_p_Co57) = log_scor; + if constexpr (std::is_same_v) { + rate_eval.dlog_screen_dT(k_p_Co57) = dlog_scor_dT; + } + } + + { + constexpr auto scn_fac = scrn::calculate_screen_factor(1.0_rt, 1.0_rt, 19.0_rt, 39.0_rt); + static_assert(scn_fac.z1 == 1.0_rt); + actual_log_screen(pstate, scn_fac, log_scor, dlog_scor_dT); + rate_eval.log_screen(k_p_K39) = log_scor; + if constexpr (std::is_same_v) { + rate_eval.dlog_screen_dT(k_p_K39) = dlog_scor_dT; + } + } + + { + constexpr auto scn_fac = scrn::calculate_screen_factor(2.0_rt, 4.0_rt, 17.0_rt, 35.0_rt); + static_assert(scn_fac.z1 == 2.0_rt); + actual_log_screen(pstate, scn_fac, log_scor, dlog_scor_dT); + rate_eval.log_screen(k_He4_Cl35) = log_scor; + if constexpr (std::is_same_v) { + rate_eval.dlog_screen_dT(k_He4_Cl35) = dlog_scor_dT; + } + } + + { + constexpr auto scn_fac = scrn::calculate_screen_factor(1.0_rt, 1.0_rt, 27.0_rt, 53.0_rt); + static_assert(scn_fac.z1 == 1.0_rt); + actual_log_screen(pstate, scn_fac, log_scor, dlog_scor_dT); + rate_eval.log_screen(k_p_Co53) = log_scor; + if constexpr (std::is_same_v) { + rate_eval.dlog_screen_dT(k_p_Co53) = dlog_scor_dT; + } + } + + { + constexpr auto scn_fac = scrn::calculate_screen_factor(2.0_rt, 4.0_rt, 6.0_rt, 12.0_rt); + static_assert(scn_fac.z1 == 2.0_rt); + actual_log_screen(pstate, scn_fac, log_scor, dlog_scor_dT); + rate_eval.log_screen(k_He4_C12) = log_scor; + if constexpr (std::is_same_v) { + rate_eval.dlog_screen_dT(k_He4_C12) = dlog_scor_dT; + } + } + + { + constexpr auto scn_fac = scrn::calculate_screen_factor(2.0_rt, 4.0_rt, 19.0_rt, 39.0_rt); + static_assert(scn_fac.z1 == 2.0_rt); + actual_log_screen(pstate, scn_fac, log_scor, dlog_scor_dT); + rate_eval.log_screen(k_He4_K39) = log_scor; + if constexpr (std::is_same_v) { + rate_eval.dlog_screen_dT(k_He4_K39) = dlog_scor_dT; + } + } + + { + constexpr auto scn_fac = scrn::calculate_screen_factor(1.0_rt, 1.0_rt, 24.0_rt, 48.0_rt); + static_assert(scn_fac.z1 == 1.0_rt); + actual_log_screen(pstate, scn_fac, log_scor, dlog_scor_dT); + rate_eval.log_screen(k_p_Cr48) = log_scor; + if constexpr (std::is_same_v) { + rate_eval.dlog_screen_dT(k_p_Cr48) = dlog_scor_dT; + } + } + + { + constexpr auto scn_fac = scrn::calculate_screen_factor(1.0_rt, 1.0_rt, 17.0_rt, 33.0_rt); + static_assert(scn_fac.z1 == 1.0_rt); + actual_log_screen(pstate, scn_fac, log_scor, dlog_scor_dT); + rate_eval.log_screen(k_p_Cl33) = log_scor; + if constexpr (std::is_same_v) { + rate_eval.dlog_screen_dT(k_p_Cl33) = dlog_scor_dT; + } + } + + { + constexpr auto scn_fac = scrn::calculate_screen_factor(1.0_rt, 1.0_rt, 22.0_rt, 46.0_rt); + static_assert(scn_fac.z1 == 1.0_rt); + actual_log_screen(pstate, scn_fac, log_scor, dlog_scor_dT); + rate_eval.log_screen(k_p_Ti46) = log_scor; + if constexpr (std::is_same_v) { + rate_eval.dlog_screen_dT(k_p_Ti46) = dlog_scor_dT; + } + } + + { + constexpr auto scn_fac = scrn::calculate_screen_factor(2.0_rt, 4.0_rt, 24.0_rt, 48.0_rt); + static_assert(scn_fac.z1 == 2.0_rt); + actual_log_screen(pstate, scn_fac, log_scor, dlog_scor_dT); + rate_eval.log_screen(k_He4_Cr48) = log_scor; + if constexpr (std::is_same_v) { + rate_eval.dlog_screen_dT(k_He4_Cr48) = dlog_scor_dT; + } + } + + { + constexpr auto scn_fac = scrn::calculate_screen_factor(2.0_rt, 4.0_rt, 14.0_rt, 27.0_rt); + static_assert(scn_fac.z1 == 2.0_rt); + actual_log_screen(pstate, scn_fac, log_scor, dlog_scor_dT); + rate_eval.log_screen(k_He4_Si27) = log_scor; + if constexpr (std::is_same_v) { + rate_eval.dlog_screen_dT(k_He4_Si27) = dlog_scor_dT; + } + } + + { + constexpr auto scn_fac = scrn::calculate_screen_factor(1.0_rt, 1.0_rt, 19.0_rt, 37.0_rt); + static_assert(scn_fac.z1 == 1.0_rt); + actual_log_screen(pstate, scn_fac, log_scor, dlog_scor_dT); + rate_eval.log_screen(k_p_K37) = log_scor; + if constexpr (std::is_same_v) { + rate_eval.dlog_screen_dT(k_p_K37) = dlog_scor_dT; + } + } + + { + constexpr auto scn_fac = scrn::calculate_screen_factor(1.0_rt, 1.0_rt, 28.0_rt, 56.0_rt); + static_assert(scn_fac.z1 == 1.0_rt); + actual_log_screen(pstate, scn_fac, log_scor, dlog_scor_dT); + rate_eval.log_screen(k_p_Ni56) = log_scor; + if constexpr (std::is_same_v) { + rate_eval.dlog_screen_dT(k_p_Ni56) = dlog_scor_dT; + } + } + + { + constexpr auto scn_fac = scrn::calculate_screen_factor(1.0_rt, 1.0_rt, 25.0_rt, 51.0_rt); + static_assert(scn_fac.z1 == 1.0_rt); + actual_log_screen(pstate, scn_fac, log_scor, dlog_scor_dT); + rate_eval.log_screen(k_p_Mn51) = log_scor; + if constexpr (std::is_same_v) { + rate_eval.dlog_screen_dT(k_p_Mn51) = dlog_scor_dT; + } + } + + { + constexpr auto scn_fac = scrn::calculate_screen_factor(1.0_rt, 1.0_rt, 11.0_rt, 23.0_rt); + static_assert(scn_fac.z1 == 1.0_rt); + actual_log_screen(pstate, scn_fac, log_scor, dlog_scor_dT); + rate_eval.log_screen(k_p_Na23) = log_scor; + if constexpr (std::is_same_v) { + rate_eval.dlog_screen_dT(k_p_Na23) = dlog_scor_dT; + } + } + + { + constexpr auto scn_fac = scrn::calculate_screen_factor(1.0_rt, 1.0_rt, 23.0_rt, 49.0_rt); + static_assert(scn_fac.z1 == 1.0_rt); + actual_log_screen(pstate, scn_fac, log_scor, dlog_scor_dT); + rate_eval.log_screen(k_p_V49) = log_scor; + if constexpr (std::is_same_v) { + rate_eval.dlog_screen_dT(k_p_V49) = dlog_scor_dT; + } + } + + { + constexpr auto scn_fac = scrn::calculate_screen_factor(2.0_rt, 4.0_rt, 26.0_rt, 52.0_rt); + static_assert(scn_fac.z1 == 2.0_rt); + actual_log_screen(pstate, scn_fac, log_scor, dlog_scor_dT); + rate_eval.log_screen(k_He4_Fe52) = log_scor; + if constexpr (std::is_same_v) { + rate_eval.dlog_screen_dT(k_He4_Fe52) = dlog_scor_dT; + } + } + + { + constexpr auto scn_fac = scrn::calculate_screen_factor(2.0_rt, 4.0_rt, 19.0_rt, 37.0_rt); + static_assert(scn_fac.z1 == 2.0_rt); + actual_log_screen(pstate, scn_fac, log_scor, dlog_scor_dT); + rate_eval.log_screen(k_He4_K37) = log_scor; + if constexpr (std::is_same_v) { + rate_eval.dlog_screen_dT(k_He4_K37) = dlog_scor_dT; + } + } + + { + constexpr auto scn_fac = scrn::calculate_screen_factor(2.0_rt, 4.0_rt, 24.0_rt, 50.0_rt); + static_assert(scn_fac.z1 == 2.0_rt); + actual_log_screen(pstate, scn_fac, log_scor, dlog_scor_dT); + rate_eval.log_screen(k_He4_Cr50) = log_scor; + if constexpr (std::is_same_v) { + rate_eval.dlog_screen_dT(k_He4_Cr50) = dlog_scor_dT; + } + } + + { + constexpr auto scn_fac = scrn::calculate_screen_factor(2.0_rt, 4.0_rt, 25.0_rt, 51.0_rt); + static_assert(scn_fac.z1 == 2.0_rt); + actual_log_screen(pstate, scn_fac, log_scor, dlog_scor_dT); + rate_eval.log_screen(k_He4_Mn51) = log_scor; + if constexpr (std::is_same_v) { + rate_eval.dlog_screen_dT(k_He4_Mn51) = dlog_scor_dT; + } + } + + { + constexpr auto scn_fac = scrn::calculate_screen_factor(2.0_rt, 4.0_rt, 2.0_rt, 4.0_rt); + static_assert(scn_fac.z1 == 2.0_rt); + actual_log_screen(pstate, scn_fac, log_scor, dlog_scor_dT); + rate_eval.log_screen(k_He4_He4) = log_scor; + if constexpr (std::is_same_v) { + rate_eval.dlog_screen_dT(k_He4_He4) = dlog_scor_dT; + } + } + + { + constexpr auto scn_fac = scrn::calculate_screen_factor(6.0_rt, 12.0_rt, 10.0_rt, 20.0_rt); + static_assert(scn_fac.z1 == 6.0_rt); + actual_log_screen(pstate, scn_fac, log_scor, dlog_scor_dT); + rate_eval.log_screen(k_C12_Ne20) = log_scor; + if constexpr (std::is_same_v) { + rate_eval.dlog_screen_dT(k_C12_Ne20) = dlog_scor_dT; + } + } + + { + constexpr auto scn_fac = scrn::calculate_screen_factor(1.0_rt, 1.0_rt, 20.0_rt, 40.0_rt); + static_assert(scn_fac.z1 == 1.0_rt); + actual_log_screen(pstate, scn_fac, log_scor, dlog_scor_dT); + rate_eval.log_screen(k_p_Ca40) = log_scor; + if constexpr (std::is_same_v) { + rate_eval.dlog_screen_dT(k_p_Ca40) = dlog_scor_dT; + } + } + + { + constexpr auto scn_fac = scrn::calculate_screen_factor(1.0_rt, 1.0_rt, 18.0_rt, 36.0_rt); + static_assert(scn_fac.z1 == 1.0_rt); + actual_log_screen(pstate, scn_fac, log_scor, dlog_scor_dT); + rate_eval.log_screen(k_p_Ar36) = log_scor; + if constexpr (std::is_same_v) { + rate_eval.dlog_screen_dT(k_p_Ar36) = dlog_scor_dT; + } + } + +} +#endif + + +template +AMREX_GPU_DEVICE AMREX_INLINE +void evaluate_rates(const burn_t& state, + const amrex::Array1D& Y, + T& rate_eval) { + + using namespace Rates; + + // here Y is consistent with state.xn + + [[maybe_unused]] const amrex::Real rhoy = state.rho * state.y_e; + + const tf_t tfactors = evaluate_tfactors(state.T); + + // Precompute screening terms + +#ifdef SCREENING + evaluate_screening(state, Y, rate_eval); +#endif + + // Fill in different rates + + reaclib_rates::fill_rates(tfactors, rate_eval); + + tabular_weak_rates::fill_rates(state.T, state.rho, rhoy, Y, rate_eval); + + temp_tabular::fill_rates(tfactors, rate_eval); + + // fill modified rates next -- these can have ReacLib or + // TemperatureTabular/StarLib rates as the original rate + modified_rates::fill_rates(tfactors, rate_eval); + + // fill branched rates -- these can have ReacLib or + // TemperatureTabular/StarLib as the underlying rate or branches. + branched_rates::fill_rates(tfactors, rate_eval); + + // Calculate Derived Rates next. This should go last but before + // approx rates, since those may have ReacLibRate, + // TemperatureTabularRate / StarLibRate, or DerivedRate as the + // underlying rate. + derived_rates::fill_rates(tfactors, rate_eval); + + + + // Fill approximate rates + approximate_rates::fill_rates(tfactors, state.rho, Y, rate_eval); + +} + + +// backwards-compatible wrapper +template +AMREX_GPU_DEVICE AMREX_INLINE +void evaluate_rates(const burn_t& state, + T& rate_eval) { + + // create molar fractions + amrex::Array1D Y; + for (int n = 1; n <= NumSpec; ++n) { + Y(n) = state.xn[n-1] * aion_inv[n-1]; + } + + evaluate_rates(state, Y, rate_eval); +} + + +#ifdef NSE_NET +AMREX_GPU_DEVICE AMREX_INLINE +void get_ydot_weak(const burn_t& state, + amrex::Array1D& ydot_nuc, + amrex::Real& enuc_weak, + [[maybe_unused]] const amrex::Array1D& Y) { + /// + /// Calculate Ydots contribute only from weak reactions. + /// This is used to calculate dyedt and energy generation from + /// weak reactions for self-consistent NSE + /// + + using namespace modified_rates; + using namespace temp_tabular; + + // initialize ydot_nuc to 0 + + for (int i = 1; i <= neqs; ++i) { + ydot_nuc(i) = 0.0_rt; + } + + rate_t rate_eval; + + [[maybe_unused]] amrex::Real rate, drate_dT, edot_nu, edot_gamma; + [[maybe_unused]] const amrex::Real rhoy = state.rho * state.y_e; + + rate_eval.enuc_weak = 0.0_rt; + + // Compute all weak rates and get ydot_weak + + tabular_weak_rates::fill_rates(state.T, state.rho, rhoy, Y, rate_eval); + + const auto& screened_rates = rate_eval.screened_rates; + + ydot_nuc(N) = + (-screened_rates(k_n_to_p_beta_neg_weaktab)*Y(N) + screened_rates(k_p_to_n_electron_capture_weaktab)*Y(H1)); + + ydot_nuc(H1) = + (screened_rates(k_n_to_p_beta_neg_weaktab)*Y(N) + -screened_rates(k_p_to_n_electron_capture_weaktab)*Y(H1)); + + ydot_nuc(He4) = 0.0_rt; + + ydot_nuc(C12) = 0.0_rt; + + ydot_nuc(O16) = 0.0_rt; + + ydot_nuc(Ne20) = 0.0_rt; + + ydot_nuc(Mg23) = 0.0_rt; + + ydot_nuc(Mg24) = 0.0_rt; + + ydot_nuc(Al27) = + (screened_rates(k_Si27_to_Al27_electron_capture_weaktab)*Y(Si27) + -screened_rates(k_Al27_to_Si27_beta_neg_weaktab)*Y(Al27)); + + ydot_nuc(Si27) = + (-screened_rates(k_Si27_to_Al27_electron_capture_weaktab)*Y(Si27) + screened_rates(k_Al27_to_Si27_beta_neg_weaktab)*Y(Al27)); + + ydot_nuc(Si28) = 0.0_rt; + + ydot_nuc(Si30) = 0.0_rt; + + ydot_nuc(P29) = 0.0_rt; + + ydot_nuc(P31) = 0.0_rt; + + ydot_nuc(S30) = 0.0_rt; + + ydot_nuc(S32) = 0.0_rt; + + ydot_nuc(S34) = 0.0_rt; + + ydot_nuc(Cl33) = 0.0_rt; + + ydot_nuc(Cl35) = 0.0_rt; + + ydot_nuc(Ar34) = 0.0_rt; + + ydot_nuc(Ar36) = 0.0_rt; + + ydot_nuc(Ar38) = 0.0_rt; + + ydot_nuc(K37) = 0.0_rt; + + ydot_nuc(K39) = 0.0_rt; + + ydot_nuc(Ca38) = 0.0_rt; + + ydot_nuc(Ca40) = 0.0_rt; + + ydot_nuc(Ca42) = 0.0_rt; + + ydot_nuc(Sc41) = 0.0_rt; + + ydot_nuc(Sc43) = 0.0_rt; + + ydot_nuc(Ti42) = 0.0_rt; + + ydot_nuc(Ti44) = 0.0_rt; + + ydot_nuc(Ti46) = 0.0_rt; + + ydot_nuc(V45) = 0.0_rt; + + ydot_nuc(V47) = 0.0_rt; + + ydot_nuc(V49) = 0.0_rt; + + ydot_nuc(Cr46) = 0.0_rt; + + ydot_nuc(Cr48) = 0.0_rt; + + ydot_nuc(Cr50) = 0.0_rt; + + ydot_nuc(Cr52) = 0.0_rt; + + ydot_nuc(Mn49) = 0.0_rt; + + ydot_nuc(Mn51) = 0.0_rt; + + ydot_nuc(Mn53) = 0.0_rt; + + ydot_nuc(Fe50) = 0.0_rt; + + ydot_nuc(Fe52) = 0.0_rt; + + ydot_nuc(Fe54) = 0.0_rt; + + ydot_nuc(Fe56) = + (screened_rates(k_Co56_to_Fe56_electron_capture_weaktab)*Y(Co56) + -screened_rates(k_Fe56_to_Co56_beta_neg_weaktab)*Y(Fe56)); + + ydot_nuc(Co53) = 0.0_rt; + + ydot_nuc(Co55) = 0.0_rt; + + ydot_nuc(Co56) = + (-screened_rates(k_Co56_to_Fe56_electron_capture_weaktab)*Y(Co56) + screened_rates(k_Fe56_to_Co56_beta_neg_weaktab)*Y(Fe56)) + + (screened_rates(k_Ni56_to_Co56_electron_capture_weaktab)*Y(Ni56) + -screened_rates(k_Co56_to_Ni56_beta_neg_weaktab)*Y(Co56)); + + ydot_nuc(Co57) = 0.0_rt; + + ydot_nuc(Ni56) = + (-screened_rates(k_Ni56_to_Co56_electron_capture_weaktab)*Y(Ni56) + screened_rates(k_Co56_to_Ni56_beta_neg_weaktab)*Y(Co56)); + + ydot_nuc(Ni58) = 0.0_rt; + + ydot_nuc(Cu59) = 0.0_rt; + + enuc_weak = rate_eval.enuc_weak; +} +#endif + + +AMREX_GPU_DEVICE AMREX_INLINE +void rhs_nuc(const burn_t& state, + amrex::Array1D& ydot_nuc, + const amrex::Array1D& Y, + const amrex::Array1D& screened_rates) { + + using namespace Rates; + + ydot_nuc(N) = + (-screened_rates(k_Mg23_n_to_Mg24_reaclib)*Y(Mg23)*Y(N)*state.rho + screened_rates(k_Mg24_to_n_Mg23_derived)*Y(Mg24)) + + (-screened_rates(k_Si27_n_to_Si28_reaclib)*Y(Si27)*Y(N)*state.rho + screened_rates(k_Si28_to_n_Si27_derived)*Y(Si28)) + + (-screened_rates(k_Co55_n_to_Co56_reaclib)*Y(Co55)*Y(N)*state.rho + screened_rates(k_Co56_to_n_Co55_derived)*Y(Co56)) + + (-screened_rates(k_Co56_n_to_Co57_reaclib)*Y(Co56)*Y(N)*state.rho + screened_rates(k_Co57_to_n_Co56_derived)*Y(Co57)) + + (-screened_rates(k_Mg23_n_to_He4_Ne20_reaclib)*Y(Mg23)*Y(N)*state.rho + screened_rates(k_Ne20_He4_to_n_Mg23_derived)*Y(He4)*Y(Ne20)*state.rho) + + (-screened_rates(k_Mg23_n_to_C12_C12_reaclib)*Y(Mg23)*Y(N)*state.rho + 0.5*screened_rates(k_C12_C12_to_n_Mg23_derived)*amrex::Math::powi<2>(Y(C12))*state.rho) + + (-screened_rates(k_Si27_n_to_p_Al27_reaclib)*Y(Si27)*Y(N)*state.rho + screened_rates(k_Al27_p_to_n_Si27_derived)*Y(Al27)*Y(H1)*state.rho) + + (-screened_rates(k_Si27_n_to_He4_Mg24_reaclib)*Y(Si27)*Y(N)*state.rho + screened_rates(k_Mg24_He4_to_n_Si27_derived)*Y(He4)*Y(Mg24)*state.rho) + + (-screened_rates(k_Si27_n_to_C12_O16_reaclib)*Y(Si27)*Y(N)*state.rho + screened_rates(k_O16_C12_to_n_Si27_derived)*Y(C12)*Y(O16)*state.rho) + + (-screened_rates(k_S30_n_to_He4_Si27_reaclib)*Y(S30)*Y(N)*state.rho + screened_rates(k_Si27_He4_to_n_S30_derived)*Y(He4)*Y(Si27)*state.rho) + + (-screened_rates(k_Co56_n_to_p_Fe56_reaclib)*Y(Co56)*Y(N)*state.rho + screened_rates(k_Fe56_p_to_n_Co56_derived)*Y(Fe56)*Y(H1)*state.rho) + + (-screened_rates(k_Co56_n_to_He4_Mn53_reaclib)*Y(Co56)*Y(N)*state.rho + screened_rates(k_Mn53_He4_to_n_Co56_derived)*Y(He4)*Y(Mn53)*state.rho) + + (-screened_rates(k_Ni56_n_to_p_Co56_reaclib)*Y(Ni56)*Y(N)*state.rho + screened_rates(k_Co56_p_to_n_Ni56_derived)*Y(Co56)*Y(H1)*state.rho) + + (-screened_rates(k_Cu59_n_to_He4_Co56_reaclib)*Y(Cu59)*Y(N)*state.rho + screened_rates(k_Co56_He4_to_n_Cu59_derived)*Y(Co56)*Y(He4)*state.rho) + + (-screened_rates(k_Ni56_n_n_to_Ni58_approx)*Y(Ni56)*amrex::Math::powi<2>(Y(N))*amrex::Math::powi<2>(state.rho) + 2.0*screened_rates(k_Ni58_to_Ni56_n_n_approx)*Y(Ni58)) + + (-screened_rates(k_Co53_n_n_to_Co55_approx)*Y(Co53)*amrex::Math::powi<2>(Y(N))*amrex::Math::powi<2>(state.rho) + 2.0*screened_rates(k_Co55_to_Co53_n_n_approx)*Y(Co55)) + + (-screened_rates(k_Fe50_n_n_to_Fe52_approx)*Y(Fe50)*amrex::Math::powi<2>(Y(N))*amrex::Math::powi<2>(state.rho) + 2.0*screened_rates(k_Fe52_to_Fe50_n_n_approx)*Y(Fe52)) + + (-screened_rates(k_Fe52_n_n_to_Fe54_approx)*Y(Fe52)*amrex::Math::powi<2>(Y(N))*amrex::Math::powi<2>(state.rho) + 2.0*screened_rates(k_Fe54_to_Fe52_n_n_approx)*Y(Fe54)) + + (-screened_rates(k_Fe54_n_n_to_Fe56_approx)*Y(Fe54)*amrex::Math::powi<2>(Y(N))*amrex::Math::powi<2>(state.rho) + 2.0*screened_rates(k_Fe56_to_Fe54_n_n_approx)*Y(Fe56)) + + (-screened_rates(k_Mn49_n_n_to_Mn51_approx)*Y(Mn49)*amrex::Math::powi<2>(Y(N))*amrex::Math::powi<2>(state.rho) + 2.0*screened_rates(k_Mn51_to_Mn49_n_n_approx)*Y(Mn51)) + + (-screened_rates(k_Mn51_n_n_to_Mn53_approx)*Y(Mn51)*amrex::Math::powi<2>(Y(N))*amrex::Math::powi<2>(state.rho) + 2.0*screened_rates(k_Mn53_to_Mn51_n_n_approx)*Y(Mn53)) + + (-screened_rates(k_Cr46_n_n_to_Cr48_approx)*Y(Cr46)*amrex::Math::powi<2>(Y(N))*amrex::Math::powi<2>(state.rho) + 2.0*screened_rates(k_Cr48_to_Cr46_n_n_approx)*Y(Cr48)) + + (-screened_rates(k_Cr48_n_n_to_Cr50_approx)*Y(Cr48)*amrex::Math::powi<2>(Y(N))*amrex::Math::powi<2>(state.rho) + 2.0*screened_rates(k_Cr50_to_Cr48_n_n_approx)*Y(Cr50)) + + (-screened_rates(k_Cr50_n_n_to_Cr52_approx)*Y(Cr50)*amrex::Math::powi<2>(Y(N))*amrex::Math::powi<2>(state.rho) + 2.0*screened_rates(k_Cr52_to_Cr50_n_n_approx)*Y(Cr52)) + + (-screened_rates(k_V45_n_n_to_V47_approx)*Y(V45)*amrex::Math::powi<2>(Y(N))*amrex::Math::powi<2>(state.rho) + 2.0*screened_rates(k_V47_to_V45_n_n_approx)*Y(V47)) + + (-screened_rates(k_V47_n_n_to_V49_approx)*Y(V47)*amrex::Math::powi<2>(Y(N))*amrex::Math::powi<2>(state.rho) + 2.0*screened_rates(k_V49_to_V47_n_n_approx)*Y(V49)) + + (-screened_rates(k_Ti42_n_n_to_Ti44_approx)*Y(Ti42)*amrex::Math::powi<2>(Y(N))*amrex::Math::powi<2>(state.rho) + 2.0*screened_rates(k_Ti44_to_Ti42_n_n_approx)*Y(Ti44)) + + (-screened_rates(k_Ti44_n_n_to_Ti46_approx)*Y(Ti44)*amrex::Math::powi<2>(Y(N))*amrex::Math::powi<2>(state.rho) + 2.0*screened_rates(k_Ti46_to_Ti44_n_n_approx)*Y(Ti46)) + + (-screened_rates(k_Sc41_n_n_to_Sc43_approx)*Y(Sc41)*amrex::Math::powi<2>(Y(N))*amrex::Math::powi<2>(state.rho) + 2.0*screened_rates(k_Sc43_to_Sc41_n_n_approx)*Y(Sc43)) + + (-screened_rates(k_Ca38_n_n_to_Ca40_approx)*Y(Ca38)*amrex::Math::powi<2>(Y(N))*amrex::Math::powi<2>(state.rho) + 2.0*screened_rates(k_Ca40_to_Ca38_n_n_approx)*Y(Ca40)) + + (-screened_rates(k_Ca40_n_n_to_Ca42_approx)*Y(Ca40)*amrex::Math::powi<2>(Y(N))*amrex::Math::powi<2>(state.rho) + 2.0*screened_rates(k_Ca42_to_Ca40_n_n_approx)*Y(Ca42)) + + (-screened_rates(k_Ar34_n_n_to_Ar36_approx)*Y(Ar34)*amrex::Math::powi<2>(Y(N))*amrex::Math::powi<2>(state.rho) + 2.0*screened_rates(k_Ar36_to_Ar34_n_n_approx)*Y(Ar36)) + + (-screened_rates(k_Ar36_n_n_to_Ar38_approx)*Y(Ar36)*amrex::Math::powi<2>(Y(N))*amrex::Math::powi<2>(state.rho) + 2.0*screened_rates(k_Ar38_to_Ar36_n_n_approx)*Y(Ar38)) + + (-screened_rates(k_Si28_n_n_to_Si30_approx)*Y(Si28)*amrex::Math::powi<2>(Y(N))*amrex::Math::powi<2>(state.rho) + 2.0*screened_rates(k_Si30_to_Si28_n_n_approx)*Y(Si30)) + + (-screened_rates(k_S30_n_n_to_S32_approx)*Y(S30)*amrex::Math::powi<2>(Y(N))*amrex::Math::powi<2>(state.rho) + 2.0*screened_rates(k_S32_to_S30_n_n_approx)*Y(S32)) + + (-screened_rates(k_S32_n_n_to_S34_approx)*Y(S32)*amrex::Math::powi<2>(Y(N))*amrex::Math::powi<2>(state.rho) + 2.0*screened_rates(k_S34_to_S32_n_n_approx)*Y(S34)) + + (-screened_rates(k_n_to_p_beta_neg_weaktab)*Y(N) + screened_rates(k_p_to_n_electron_capture_weaktab)*Y(H1)); + + ydot_nuc(H1) = + (-screened_rates(k_Al27_p_to_Si28_reaclib)*Y(Al27)*Y(H1)*state.rho + screened_rates(k_Si28_to_p_Al27_derived)*Y(Si28)) + + (-screened_rates(k_Si28_p_to_P29_reaclib)*Y(Si28)*Y(H1)*state.rho + screened_rates(k_P29_to_p_Si28_derived)*Y(P29)) + + (-screened_rates(k_Si30_p_to_P31_reaclib)*Y(Si30)*Y(H1)*state.rho + screened_rates(k_P31_to_p_Si30_derived)*Y(P31)) + + (-screened_rates(k_P29_p_to_S30_reaclib)*Y(P29)*Y(H1)*state.rho + screened_rates(k_S30_to_p_P29_derived)*Y(S30)) + + (-screened_rates(k_P31_p_to_S32_reaclib)*Y(P31)*Y(H1)*state.rho + screened_rates(k_S32_to_p_P31_derived)*Y(S32)) + + (-screened_rates(k_S32_p_to_Cl33_reaclib)*Y(S32)*Y(H1)*state.rho + screened_rates(k_Cl33_to_p_S32_derived)*Y(Cl33)) + + (-screened_rates(k_S34_p_to_Cl35_reaclib)*Y(S34)*Y(H1)*state.rho + screened_rates(k_Cl35_to_p_S34_derived)*Y(Cl35)) + + (-screened_rates(k_Cl33_p_to_Ar34_reaclib)*Y(Cl33)*Y(H1)*state.rho + screened_rates(k_Ar34_to_p_Cl33_derived)*Y(Ar34)) + + (-screened_rates(k_Cl35_p_to_Ar36_reaclib)*Y(Cl35)*Y(H1)*state.rho + screened_rates(k_Ar36_to_p_Cl35_derived)*Y(Ar36)) + + (-screened_rates(k_Ar36_p_to_K37_reaclib)*Y(Ar36)*Y(H1)*state.rho + screened_rates(k_K37_to_p_Ar36_derived)*Y(K37)) + + (-screened_rates(k_Ar38_p_to_K39_reaclib)*Y(Ar38)*Y(H1)*state.rho + screened_rates(k_K39_to_p_Ar38_derived)*Y(K39)) + + (-screened_rates(k_K37_p_to_Ca38_reaclib)*Y(K37)*Y(H1)*state.rho + screened_rates(k_Ca38_to_p_K37_derived)*Y(Ca38)) + + (-screened_rates(k_K39_p_to_Ca40_reaclib)*Y(K39)*Y(H1)*state.rho + screened_rates(k_Ca40_to_p_K39_derived)*Y(Ca40)) + + (-screened_rates(k_Ca40_p_to_Sc41_reaclib)*Y(Ca40)*Y(H1)*state.rho + screened_rates(k_Sc41_to_p_Ca40_derived)*Y(Sc41)) + + (-screened_rates(k_Ca42_p_to_Sc43_reaclib)*Y(Ca42)*Y(H1)*state.rho + screened_rates(k_Sc43_to_p_Ca42_derived)*Y(Sc43)) + + (-screened_rates(k_Sc41_p_to_Ti42_reaclib)*Y(Sc41)*Y(H1)*state.rho + screened_rates(k_Ti42_to_p_Sc41_derived)*Y(Ti42)) + + (-screened_rates(k_Sc43_p_to_Ti44_reaclib)*Y(Sc43)*Y(H1)*state.rho + screened_rates(k_Ti44_to_p_Sc43_derived)*Y(Ti44)) + + (-screened_rates(k_Ti44_p_to_V45_reaclib)*Y(Ti44)*Y(H1)*state.rho + screened_rates(k_V45_to_p_Ti44_derived)*Y(V45)) + + (-screened_rates(k_Ti46_p_to_V47_reaclib)*Y(Ti46)*Y(H1)*state.rho + screened_rates(k_V47_to_p_Ti46_derived)*Y(V47)) + + (-screened_rates(k_V45_p_to_Cr46_reaclib)*Y(V45)*Y(H1)*state.rho + screened_rates(k_Cr46_to_p_V45_derived)*Y(Cr46)) + + (-screened_rates(k_V47_p_to_Cr48_reaclib)*Y(V47)*Y(H1)*state.rho + screened_rates(k_Cr48_to_p_V47_derived)*Y(Cr48)) + + (-screened_rates(k_V49_p_to_Cr50_reaclib)*Y(V49)*Y(H1)*state.rho + screened_rates(k_Cr50_to_p_V49_derived)*Y(Cr50)) + + (-screened_rates(k_Cr48_p_to_Mn49_reaclib)*Y(Cr48)*Y(H1)*state.rho + screened_rates(k_Mn49_to_p_Cr48_derived)*Y(Mn49)) + + (-screened_rates(k_Cr50_p_to_Mn51_reaclib)*Y(Cr50)*Y(H1)*state.rho + screened_rates(k_Mn51_to_p_Cr50_derived)*Y(Mn51)) + + (-screened_rates(k_Cr52_p_to_Mn53_reaclib)*Y(Cr52)*Y(H1)*state.rho + screened_rates(k_Mn53_to_p_Cr52_derived)*Y(Mn53)) + + (-screened_rates(k_Mn49_p_to_Fe50_reaclib)*Y(Mn49)*Y(H1)*state.rho + screened_rates(k_Fe50_to_p_Mn49_derived)*Y(Fe50)) + + (-screened_rates(k_Mn51_p_to_Fe52_reaclib)*Y(Mn51)*Y(H1)*state.rho + screened_rates(k_Fe52_to_p_Mn51_derived)*Y(Fe52)) + + (-screened_rates(k_Mn53_p_to_Fe54_reaclib)*Y(Mn53)*Y(H1)*state.rho + screened_rates(k_Fe54_to_p_Mn53_derived)*Y(Fe54)) + + (-screened_rates(k_Fe52_p_to_Co53_reaclib)*Y(Fe52)*Y(H1)*state.rho + screened_rates(k_Co53_to_p_Fe52_derived)*Y(Co53)) + + (-screened_rates(k_Fe54_p_to_Co55_reaclib)*Y(Fe54)*Y(H1)*state.rho + screened_rates(k_Co55_to_p_Fe54_derived)*Y(Co55)) + + (-screened_rates(k_Fe56_p_to_Co57_reaclib)*Y(Fe56)*Y(H1)*state.rho + screened_rates(k_Co57_to_p_Fe56_derived)*Y(Co57)) + + (-screened_rates(k_Co55_p_to_Ni56_reaclib)*Y(Co55)*Y(H1)*state.rho + screened_rates(k_Ni56_to_p_Co55_derived)*Y(Ni56)) + + (-screened_rates(k_Co57_p_to_Ni58_reaclib)*Y(Co57)*Y(H1)*state.rho + screened_rates(k_Ni58_to_p_Co57_derived)*Y(Ni58)) + + (-screened_rates(k_Ni58_p_to_Cu59_reaclib)*Y(Ni58)*Y(H1)*state.rho + screened_rates(k_Cu59_to_p_Ni58_derived)*Y(Cu59)) + + (screened_rates(k_O16_C12_to_p_Al27_reaclib)*Y(C12)*Y(O16)*state.rho + -screened_rates(k_Al27_p_to_C12_O16_derived)*Y(Al27)*Y(H1)*state.rho) + + (0.5*screened_rates(k_O16_O16_to_p_P31_reaclib)*amrex::Math::powi<2>(Y(O16))*state.rho + -screened_rates(k_P31_p_to_O16_O16_derived)*Y(P31)*Y(H1)*state.rho) + + (screened_rates(k_Ne20_C12_to_p_P31_reaclib)*Y(C12)*Y(Ne20)*state.rho + -screened_rates(k_P31_p_to_C12_Ne20_derived)*Y(P31)*Y(H1)*state.rho) + + (-screened_rates(k_Al27_p_to_He4_Mg24_reaclib)*Y(Al27)*Y(H1)*state.rho + screened_rates(k_Mg24_He4_to_p_Al27_derived)*Y(He4)*Y(Mg24)*state.rho) + + (screened_rates(k_Al27_He4_to_p_Si30_reaclib)*Y(Al27)*Y(He4)*state.rho + -screened_rates(k_Si30_p_to_He4_Al27_derived)*Y(Si30)*Y(H1)*state.rho) + + (screened_rates(k_Si27_n_to_p_Al27_reaclib)*Y(Si27)*Y(N)*state.rho + -screened_rates(k_Al27_p_to_n_Si27_derived)*Y(Al27)*Y(H1)*state.rho) + + (screened_rates(k_P29_He4_to_p_S32_reaclib)*Y(He4)*Y(P29)*state.rho + -screened_rates(k_S32_p_to_He4_P29_derived)*Y(S32)*Y(H1)*state.rho) + + (-screened_rates(k_P31_p_to_He4_Si28_reaclib)*Y(P31)*Y(H1)*state.rho + screened_rates(k_Si28_He4_to_p_P31_derived)*Y(He4)*Y(Si28)*state.rho) + + (screened_rates(k_P31_He4_to_p_S34_reaclib)*Y(He4)*Y(P31)*state.rho + -screened_rates(k_S34_p_to_He4_P31_derived)*Y(S34)*Y(H1)*state.rho) + + (screened_rates(k_S30_He4_to_p_Cl33_reaclib)*Y(He4)*Y(S30)*state.rho + -screened_rates(k_Cl33_p_to_He4_S30_derived)*Y(Cl33)*Y(H1)*state.rho) + + (screened_rates(k_Cl33_He4_to_p_Ar36_reaclib)*Y(Cl33)*Y(He4)*state.rho + -screened_rates(k_Ar36_p_to_He4_Cl33_derived)*Y(Ar36)*Y(H1)*state.rho) + + (-screened_rates(k_Cl35_p_to_He4_S32_reaclib)*Y(Cl35)*Y(H1)*state.rho + screened_rates(k_S32_He4_to_p_Cl35_derived)*Y(He4)*Y(S32)*state.rho) + + (screened_rates(k_Cl35_He4_to_p_Ar38_reaclib)*Y(Cl35)*Y(He4)*state.rho + -screened_rates(k_Ar38_p_to_He4_Cl35_derived)*Y(Ar38)*Y(H1)*state.rho) + + (screened_rates(k_Ar34_He4_to_p_K37_reaclib)*Y(Ar34)*Y(He4)*state.rho + -screened_rates(k_K37_p_to_He4_Ar34_derived)*Y(K37)*Y(H1)*state.rho) + + (screened_rates(k_K37_He4_to_p_Ca40_reaclib)*Y(He4)*Y(K37)*state.rho + -screened_rates(k_Ca40_p_to_He4_K37_derived)*Y(Ca40)*Y(H1)*state.rho) + + (-screened_rates(k_K39_p_to_He4_Ar36_reaclib)*Y(K39)*Y(H1)*state.rho + screened_rates(k_Ar36_He4_to_p_K39_derived)*Y(Ar36)*Y(He4)*state.rho) + + (screened_rates(k_Ca38_He4_to_p_Sc41_reaclib)*Y(Ca38)*Y(He4)*state.rho + -screened_rates(k_Sc41_p_to_He4_Ca38_derived)*Y(Sc41)*Y(H1)*state.rho) + + (-screened_rates(k_Ca42_p_to_He4_K39_reaclib)*Y(Ca42)*Y(H1)*state.rho + screened_rates(k_K39_He4_to_p_Ca42_derived)*Y(He4)*Y(K39)*state.rho) + + (screened_rates(k_Sc41_He4_to_p_Ti44_reaclib)*Y(He4)*Y(Sc41)*state.rho + -screened_rates(k_Ti44_p_to_He4_Sc41_derived)*Y(Ti44)*Y(H1)*state.rho) + + (-screened_rates(k_Sc43_p_to_He4_Ca40_reaclib)*Y(Sc43)*Y(H1)*state.rho + screened_rates(k_Ca40_He4_to_p_Sc43_derived)*Y(Ca40)*Y(He4)*state.rho) + + (screened_rates(k_Sc43_He4_to_p_Ti46_reaclib)*Y(He4)*Y(Sc43)*state.rho + -screened_rates(k_Ti46_p_to_He4_Sc43_derived)*Y(Ti46)*Y(H1)*state.rho) + + (screened_rates(k_Ti42_He4_to_p_V45_reaclib)*Y(He4)*Y(Ti42)*state.rho + -screened_rates(k_V45_p_to_He4_Ti42_derived)*Y(V45)*Y(H1)*state.rho) + + (screened_rates(k_V45_He4_to_p_Cr48_reaclib)*Y(He4)*Y(V45)*state.rho + -screened_rates(k_Cr48_p_to_He4_V45_derived)*Y(Cr48)*Y(H1)*state.rho) + + (screened_rates(k_V47_He4_to_p_Cr50_reaclib)*Y(He4)*Y(V47)*state.rho + -screened_rates(k_Cr50_p_to_He4_V47_derived)*Y(Cr50)*Y(H1)*state.rho) + + (-screened_rates(k_V49_p_to_He4_Ti46_reaclib)*Y(V49)*Y(H1)*state.rho + screened_rates(k_Ti46_He4_to_p_V49_derived)*Y(He4)*Y(Ti46)*state.rho) + + (screened_rates(k_V49_He4_to_p_Cr52_reaclib)*Y(He4)*Y(V49)*state.rho + -screened_rates(k_Cr52_p_to_He4_V49_derived)*Y(Cr52)*Y(H1)*state.rho) + + (screened_rates(k_Cr46_He4_to_p_Mn49_reaclib)*Y(Cr46)*Y(He4)*state.rho + -screened_rates(k_Mn49_p_to_He4_Cr46_derived)*Y(Mn49)*Y(H1)*state.rho) + + (screened_rates(k_Cr48_He4_to_p_Mn51_reaclib)*Y(Cr48)*Y(He4)*state.rho + -screened_rates(k_Mn51_p_to_He4_Cr48_derived)*Y(Mn51)*Y(H1)*state.rho) + + (screened_rates(k_Mn49_He4_to_p_Fe52_reaclib)*Y(He4)*Y(Mn49)*state.rho + -screened_rates(k_Fe52_p_to_He4_Mn49_derived)*Y(Fe52)*Y(H1)*state.rho) + + (screened_rates(k_Mn51_He4_to_p_Fe54_reaclib)*Y(He4)*Y(Mn51)*state.rho + -screened_rates(k_Fe54_p_to_He4_Mn51_derived)*Y(Fe54)*Y(H1)*state.rho) + + (-screened_rates(k_Mn53_p_to_He4_Cr50_reaclib)*Y(Mn53)*Y(H1)*state.rho + screened_rates(k_Cr50_He4_to_p_Mn53_derived)*Y(Cr50)*Y(He4)*state.rho) + + (screened_rates(k_Mn53_He4_to_p_Fe56_reaclib)*Y(He4)*Y(Mn53)*state.rho + -screened_rates(k_Fe56_p_to_He4_Mn53_derived)*Y(Fe56)*Y(H1)*state.rho) + + (screened_rates(k_Fe50_He4_to_p_Co53_reaclib)*Y(Fe50)*Y(He4)*state.rho + -screened_rates(k_Co53_p_to_He4_Fe50_derived)*Y(Co53)*Y(H1)*state.rho) + + (screened_rates(k_Fe52_He4_to_p_Co55_reaclib)*Y(Fe52)*Y(He4)*state.rho + -screened_rates(k_Co55_p_to_He4_Fe52_derived)*Y(Co55)*Y(H1)*state.rho) + + (screened_rates(k_Co53_He4_to_p_Ni56_reaclib)*Y(Co53)*Y(He4)*state.rho + -screened_rates(k_Ni56_p_to_He4_Co53_derived)*Y(Ni56)*Y(H1)*state.rho) + + (screened_rates(k_Co55_He4_to_p_Ni58_reaclib)*Y(Co55)*Y(He4)*state.rho + -screened_rates(k_Ni58_p_to_He4_Co55_derived)*Y(Ni58)*Y(H1)*state.rho) + + (screened_rates(k_Co56_n_to_p_Fe56_reaclib)*Y(Co56)*Y(N)*state.rho + -screened_rates(k_Fe56_p_to_n_Co56_derived)*Y(Fe56)*Y(H1)*state.rho) + + (-screened_rates(k_Co57_p_to_He4_Fe54_reaclib)*Y(Co57)*Y(H1)*state.rho + screened_rates(k_Fe54_He4_to_p_Co57_derived)*Y(Fe54)*Y(He4)*state.rho) + + (screened_rates(k_Ni56_n_to_p_Co56_reaclib)*Y(Ni56)*Y(N)*state.rho + -screened_rates(k_Co56_p_to_n_Ni56_derived)*Y(Co56)*Y(H1)*state.rho) + + (-screened_rates(k_Cu59_p_to_He4_Ni56_reaclib)*Y(Cu59)*Y(H1)*state.rho + screened_rates(k_Ni56_He4_to_p_Cu59_derived)*Y(He4)*Y(Ni56)*state.rho) + + (-screened_rates(k_V47_p_to_He4_Ti44_derived)*Y(V47)*Y(H1)*state.rho + screened_rates(k_Ti44_He4_to_p_V47_reaclib)*Y(He4)*Y(Ti44)*state.rho) + + (screened_rates(k_n_to_p_beta_neg_weaktab)*Y(N) + -screened_rates(k_p_to_n_electron_capture_weaktab)*Y(H1)); + + ydot_nuc(He4) = + (-screened_rates(k_C12_He4_to_O16_reaclib)*Y(C12)*Y(He4)*state.rho + screened_rates(k_O16_to_He4_C12_derived)*Y(O16)) + + (-screened_rates(k_O16_He4_to_Ne20_reaclib)*Y(He4)*Y(O16)*state.rho + screened_rates(k_Ne20_to_He4_O16_derived)*Y(Ne20)) + + (-screened_rates(k_Mg23_He4_to_Si27_reaclib)*Y(He4)*Y(Mg23)*state.rho + screened_rates(k_Si27_to_He4_Mg23_derived)*Y(Si27)) + + (-screened_rates(k_Mg24_He4_to_Si28_reaclib)*Y(He4)*Y(Mg24)*state.rho + screened_rates(k_Si28_to_He4_Mg24_derived)*Y(Si28)) + + (-screened_rates(k_Al27_He4_to_P31_reaclib)*Y(Al27)*Y(He4)*state.rho + screened_rates(k_P31_to_He4_Al27_derived)*Y(P31)) + + (-screened_rates(k_Si28_He4_to_S32_reaclib)*Y(He4)*Y(Si28)*state.rho + screened_rates(k_S32_to_He4_Si28_derived)*Y(S32)) + + (-screened_rates(k_Si30_He4_to_S34_reaclib)*Y(He4)*Y(Si30)*state.rho + screened_rates(k_S34_to_He4_Si30_derived)*Y(S34)) + + (-screened_rates(k_P29_He4_to_Cl33_reaclib)*Y(He4)*Y(P29)*state.rho + screened_rates(k_Cl33_to_He4_P29_derived)*Y(Cl33)) + + (-screened_rates(k_P31_He4_to_Cl35_reaclib)*Y(He4)*Y(P31)*state.rho + screened_rates(k_Cl35_to_He4_P31_derived)*Y(Cl35)) + + (-screened_rates(k_S30_He4_to_Ar34_reaclib)*Y(He4)*Y(S30)*state.rho + screened_rates(k_Ar34_to_He4_S30_derived)*Y(Ar34)) + + (-screened_rates(k_S32_He4_to_Ar36_reaclib)*Y(He4)*Y(S32)*state.rho + screened_rates(k_Ar36_to_He4_S32_derived)*Y(Ar36)) + + (-screened_rates(k_S34_He4_to_Ar38_reaclib)*Y(He4)*Y(S34)*state.rho + screened_rates(k_Ar38_to_He4_S34_derived)*Y(Ar38)) + + (-screened_rates(k_Cl33_He4_to_K37_reaclib)*Y(Cl33)*Y(He4)*state.rho + screened_rates(k_K37_to_He4_Cl33_derived)*Y(K37)) + + (-screened_rates(k_Cl35_He4_to_K39_reaclib)*Y(Cl35)*Y(He4)*state.rho + screened_rates(k_K39_to_He4_Cl35_derived)*Y(K39)) + + (-screened_rates(k_Ar34_He4_to_Ca38_reaclib)*Y(Ar34)*Y(He4)*state.rho + screened_rates(k_Ca38_to_He4_Ar34_derived)*Y(Ca38)) + + (-screened_rates(k_Ar36_He4_to_Ca40_reaclib)*Y(Ar36)*Y(He4)*state.rho + screened_rates(k_Ca40_to_He4_Ar36_derived)*Y(Ca40)) + + (-screened_rates(k_Ar38_He4_to_Ca42_reaclib)*Y(Ar38)*Y(He4)*state.rho + screened_rates(k_Ca42_to_He4_Ar38_derived)*Y(Ca42)) + + (-screened_rates(k_K37_He4_to_Sc41_reaclib)*Y(He4)*Y(K37)*state.rho + screened_rates(k_Sc41_to_He4_K37_derived)*Y(Sc41)) + + (-screened_rates(k_K39_He4_to_Sc43_reaclib)*Y(He4)*Y(K39)*state.rho + screened_rates(k_Sc43_to_He4_K39_derived)*Y(Sc43)) + + (-screened_rates(k_Ca38_He4_to_Ti42_reaclib)*Y(Ca38)*Y(He4)*state.rho + screened_rates(k_Ti42_to_He4_Ca38_derived)*Y(Ti42)) + + (-screened_rates(k_Ca40_He4_to_Ti44_reaclib)*Y(Ca40)*Y(He4)*state.rho + screened_rates(k_Ti44_to_He4_Ca40_derived)*Y(Ti44)) + + (-screened_rates(k_Ca42_He4_to_Ti46_reaclib)*Y(Ca42)*Y(He4)*state.rho + screened_rates(k_Ti46_to_He4_Ca42_derived)*Y(Ti46)) + + (-screened_rates(k_Sc41_He4_to_V45_reaclib)*Y(He4)*Y(Sc41)*state.rho + screened_rates(k_V45_to_He4_Sc41_derived)*Y(V45)) + + (-screened_rates(k_Sc43_He4_to_V47_reaclib)*Y(He4)*Y(Sc43)*state.rho + screened_rates(k_V47_to_He4_Sc43_derived)*Y(V47)) + + (-screened_rates(k_Ti42_He4_to_Cr46_reaclib)*Y(He4)*Y(Ti42)*state.rho + screened_rates(k_Cr46_to_He4_Ti42_derived)*Y(Cr46)) + + (-screened_rates(k_Ti44_He4_to_Cr48_reaclib)*Y(He4)*Y(Ti44)*state.rho + screened_rates(k_Cr48_to_He4_Ti44_derived)*Y(Cr48)) + + (-screened_rates(k_Ti46_He4_to_Cr50_reaclib)*Y(He4)*Y(Ti46)*state.rho + screened_rates(k_Cr50_to_He4_Ti46_derived)*Y(Cr50)) + + (-screened_rates(k_V45_He4_to_Mn49_reaclib)*Y(He4)*Y(V45)*state.rho + screened_rates(k_Mn49_to_He4_V45_derived)*Y(Mn49)) + + (-screened_rates(k_V47_He4_to_Mn51_reaclib)*Y(He4)*Y(V47)*state.rho + screened_rates(k_Mn51_to_He4_V47_derived)*Y(Mn51)) + + (-screened_rates(k_V49_He4_to_Mn53_reaclib)*Y(He4)*Y(V49)*state.rho + screened_rates(k_Mn53_to_He4_V49_derived)*Y(Mn53)) + + (-screened_rates(k_Cr46_He4_to_Fe50_reaclib)*Y(Cr46)*Y(He4)*state.rho + screened_rates(k_Fe50_to_He4_Cr46_derived)*Y(Fe50)) + + (-screened_rates(k_Cr48_He4_to_Fe52_reaclib)*Y(Cr48)*Y(He4)*state.rho + screened_rates(k_Fe52_to_He4_Cr48_derived)*Y(Fe52)) + + (-screened_rates(k_Cr50_He4_to_Fe54_reaclib)*Y(Cr50)*Y(He4)*state.rho + screened_rates(k_Fe54_to_He4_Cr50_derived)*Y(Fe54)) + + (-screened_rates(k_Cr52_He4_to_Fe56_reaclib)*Y(Cr52)*Y(He4)*state.rho + screened_rates(k_Fe56_to_He4_Cr52_derived)*Y(Fe56)) + + (-screened_rates(k_Mn49_He4_to_Co53_reaclib)*Y(He4)*Y(Mn49)*state.rho + screened_rates(k_Co53_to_He4_Mn49_derived)*Y(Co53)) + + (-screened_rates(k_Mn51_He4_to_Co55_reaclib)*Y(He4)*Y(Mn51)*state.rho + screened_rates(k_Co55_to_He4_Mn51_derived)*Y(Co55)) + + (-screened_rates(k_Mn53_He4_to_Co57_reaclib)*Y(He4)*Y(Mn53)*state.rho + screened_rates(k_Co57_to_He4_Mn53_derived)*Y(Co57)) + + (-screened_rates(k_Fe52_He4_to_Ni56_reaclib)*Y(Fe52)*Y(He4)*state.rho + screened_rates(k_Ni56_to_He4_Fe52_derived)*Y(Ni56)) + + (-screened_rates(k_Fe54_He4_to_Ni58_reaclib)*Y(Fe54)*Y(He4)*state.rho + screened_rates(k_Ni58_to_He4_Fe54_derived)*Y(Ni58)) + + (-screened_rates(k_Co55_He4_to_Cu59_reaclib)*Y(Co55)*Y(He4)*state.rho + screened_rates(k_Cu59_to_He4_Co55_derived)*Y(Cu59)) + + (screened_rates(k_O16_C12_to_He4_Mg24_reaclib)*Y(C12)*Y(O16)*state.rho + -screened_rates(k_Mg24_He4_to_C12_O16_derived)*Y(He4)*Y(Mg24)*state.rho) + + (0.5*screened_rates(k_O16_O16_to_He4_Si28_reaclib)*amrex::Math::powi<2>(Y(O16))*state.rho + -screened_rates(k_Si28_He4_to_O16_O16_derived)*Y(He4)*Y(Si28)*state.rho) + + (screened_rates(k_Ne20_C12_to_He4_Si28_reaclib)*Y(C12)*Y(Ne20)*state.rho + -screened_rates(k_Si28_He4_to_C12_Ne20_derived)*Y(He4)*Y(Si28)*state.rho) + + (screened_rates(k_Mg23_n_to_He4_Ne20_reaclib)*Y(Mg23)*Y(N)*state.rho + -screened_rates(k_Ne20_He4_to_n_Mg23_derived)*Y(He4)*Y(Ne20)*state.rho) + + (screened_rates(k_Al27_p_to_He4_Mg24_reaclib)*Y(Al27)*Y(H1)*state.rho + -screened_rates(k_Mg24_He4_to_p_Al27_derived)*Y(He4)*Y(Mg24)*state.rho) + + (-screened_rates(k_Al27_He4_to_p_Si30_reaclib)*Y(Al27)*Y(He4)*state.rho + screened_rates(k_Si30_p_to_He4_Al27_derived)*Y(Si30)*Y(H1)*state.rho) + + (screened_rates(k_Si27_n_to_He4_Mg24_reaclib)*Y(Si27)*Y(N)*state.rho + -screened_rates(k_Mg24_He4_to_n_Si27_derived)*Y(He4)*Y(Mg24)*state.rho) + + (-screened_rates(k_P29_He4_to_p_S32_reaclib)*Y(He4)*Y(P29)*state.rho + screened_rates(k_S32_p_to_He4_P29_derived)*Y(S32)*Y(H1)*state.rho) + + (screened_rates(k_P31_p_to_He4_Si28_reaclib)*Y(P31)*Y(H1)*state.rho + -screened_rates(k_Si28_He4_to_p_P31_derived)*Y(He4)*Y(Si28)*state.rho) + + (-screened_rates(k_P31_He4_to_p_S34_reaclib)*Y(He4)*Y(P31)*state.rho + screened_rates(k_S34_p_to_He4_P31_derived)*Y(S34)*Y(H1)*state.rho) + + (screened_rates(k_S30_n_to_He4_Si27_reaclib)*Y(S30)*Y(N)*state.rho + -screened_rates(k_Si27_He4_to_n_S30_derived)*Y(He4)*Y(Si27)*state.rho) + + (-screened_rates(k_S30_He4_to_p_Cl33_reaclib)*Y(He4)*Y(S30)*state.rho + screened_rates(k_Cl33_p_to_He4_S30_derived)*Y(Cl33)*Y(H1)*state.rho) + + (-screened_rates(k_Cl33_He4_to_p_Ar36_reaclib)*Y(Cl33)*Y(He4)*state.rho + screened_rates(k_Ar36_p_to_He4_Cl33_derived)*Y(Ar36)*Y(H1)*state.rho) + + (screened_rates(k_Cl35_p_to_He4_S32_reaclib)*Y(Cl35)*Y(H1)*state.rho + -screened_rates(k_S32_He4_to_p_Cl35_derived)*Y(He4)*Y(S32)*state.rho) + + (-screened_rates(k_Cl35_He4_to_p_Ar38_reaclib)*Y(Cl35)*Y(He4)*state.rho + screened_rates(k_Ar38_p_to_He4_Cl35_derived)*Y(Ar38)*Y(H1)*state.rho) + + (-screened_rates(k_Ar34_He4_to_p_K37_reaclib)*Y(Ar34)*Y(He4)*state.rho + screened_rates(k_K37_p_to_He4_Ar34_derived)*Y(K37)*Y(H1)*state.rho) + + (-screened_rates(k_K37_He4_to_p_Ca40_reaclib)*Y(He4)*Y(K37)*state.rho + screened_rates(k_Ca40_p_to_He4_K37_derived)*Y(Ca40)*Y(H1)*state.rho) + + (screened_rates(k_K39_p_to_He4_Ar36_reaclib)*Y(K39)*Y(H1)*state.rho + -screened_rates(k_Ar36_He4_to_p_K39_derived)*Y(Ar36)*Y(He4)*state.rho) + + (-screened_rates(k_Ca38_He4_to_p_Sc41_reaclib)*Y(Ca38)*Y(He4)*state.rho + screened_rates(k_Sc41_p_to_He4_Ca38_derived)*Y(Sc41)*Y(H1)*state.rho) + + (screened_rates(k_Ca42_p_to_He4_K39_reaclib)*Y(Ca42)*Y(H1)*state.rho + -screened_rates(k_K39_He4_to_p_Ca42_derived)*Y(He4)*Y(K39)*state.rho) + + (-screened_rates(k_Sc41_He4_to_p_Ti44_reaclib)*Y(He4)*Y(Sc41)*state.rho + screened_rates(k_Ti44_p_to_He4_Sc41_derived)*Y(Ti44)*Y(H1)*state.rho) + + (screened_rates(k_Sc43_p_to_He4_Ca40_reaclib)*Y(Sc43)*Y(H1)*state.rho + -screened_rates(k_Ca40_He4_to_p_Sc43_derived)*Y(Ca40)*Y(He4)*state.rho) + + (-screened_rates(k_Sc43_He4_to_p_Ti46_reaclib)*Y(He4)*Y(Sc43)*state.rho + screened_rates(k_Ti46_p_to_He4_Sc43_derived)*Y(Ti46)*Y(H1)*state.rho) + + (-screened_rates(k_Ti42_He4_to_p_V45_reaclib)*Y(He4)*Y(Ti42)*state.rho + screened_rates(k_V45_p_to_He4_Ti42_derived)*Y(V45)*Y(H1)*state.rho) + + (-screened_rates(k_V45_He4_to_p_Cr48_reaclib)*Y(He4)*Y(V45)*state.rho + screened_rates(k_Cr48_p_to_He4_V45_derived)*Y(Cr48)*Y(H1)*state.rho) + + (-screened_rates(k_V47_He4_to_p_Cr50_reaclib)*Y(He4)*Y(V47)*state.rho + screened_rates(k_Cr50_p_to_He4_V47_derived)*Y(Cr50)*Y(H1)*state.rho) + + (screened_rates(k_V49_p_to_He4_Ti46_reaclib)*Y(V49)*Y(H1)*state.rho + -screened_rates(k_Ti46_He4_to_p_V49_derived)*Y(He4)*Y(Ti46)*state.rho) + + (-screened_rates(k_V49_He4_to_p_Cr52_reaclib)*Y(He4)*Y(V49)*state.rho + screened_rates(k_Cr52_p_to_He4_V49_derived)*Y(Cr52)*Y(H1)*state.rho) + + (-screened_rates(k_Cr46_He4_to_p_Mn49_reaclib)*Y(Cr46)*Y(He4)*state.rho + screened_rates(k_Mn49_p_to_He4_Cr46_derived)*Y(Mn49)*Y(H1)*state.rho) + + (-screened_rates(k_Cr48_He4_to_p_Mn51_reaclib)*Y(Cr48)*Y(He4)*state.rho + screened_rates(k_Mn51_p_to_He4_Cr48_derived)*Y(Mn51)*Y(H1)*state.rho) + + (-screened_rates(k_Mn49_He4_to_p_Fe52_reaclib)*Y(He4)*Y(Mn49)*state.rho + screened_rates(k_Fe52_p_to_He4_Mn49_derived)*Y(Fe52)*Y(H1)*state.rho) + + (-screened_rates(k_Mn51_He4_to_p_Fe54_reaclib)*Y(He4)*Y(Mn51)*state.rho + screened_rates(k_Fe54_p_to_He4_Mn51_derived)*Y(Fe54)*Y(H1)*state.rho) + + (screened_rates(k_Mn53_p_to_He4_Cr50_reaclib)*Y(Mn53)*Y(H1)*state.rho + -screened_rates(k_Cr50_He4_to_p_Mn53_derived)*Y(Cr50)*Y(He4)*state.rho) + + (-screened_rates(k_Mn53_He4_to_p_Fe56_reaclib)*Y(He4)*Y(Mn53)*state.rho + screened_rates(k_Fe56_p_to_He4_Mn53_derived)*Y(Fe56)*Y(H1)*state.rho) + + (-screened_rates(k_Fe50_He4_to_p_Co53_reaclib)*Y(Fe50)*Y(He4)*state.rho + screened_rates(k_Co53_p_to_He4_Fe50_derived)*Y(Co53)*Y(H1)*state.rho) + + (-screened_rates(k_Fe52_He4_to_p_Co55_reaclib)*Y(Fe52)*Y(He4)*state.rho + screened_rates(k_Co55_p_to_He4_Fe52_derived)*Y(Co55)*Y(H1)*state.rho) + + (-screened_rates(k_Co53_He4_to_p_Ni56_reaclib)*Y(Co53)*Y(He4)*state.rho + screened_rates(k_Ni56_p_to_He4_Co53_derived)*Y(Ni56)*Y(H1)*state.rho) + + (-screened_rates(k_Co55_He4_to_p_Ni58_reaclib)*Y(Co55)*Y(He4)*state.rho + screened_rates(k_Ni58_p_to_He4_Co55_derived)*Y(Ni58)*Y(H1)*state.rho) + + (screened_rates(k_Co56_n_to_He4_Mn53_reaclib)*Y(Co56)*Y(N)*state.rho + -screened_rates(k_Mn53_He4_to_n_Co56_derived)*Y(He4)*Y(Mn53)*state.rho) + + (screened_rates(k_Co57_p_to_He4_Fe54_reaclib)*Y(Co57)*Y(H1)*state.rho + -screened_rates(k_Fe54_He4_to_p_Co57_derived)*Y(Fe54)*Y(He4)*state.rho) + + (screened_rates(k_Cu59_n_to_He4_Co56_reaclib)*Y(Cu59)*Y(N)*state.rho + -screened_rates(k_Co56_He4_to_n_Cu59_derived)*Y(Co56)*Y(He4)*state.rho) + + (screened_rates(k_Cu59_p_to_He4_Ni56_reaclib)*Y(Cu59)*Y(H1)*state.rho + -screened_rates(k_Ni56_He4_to_p_Cu59_derived)*Y(He4)*Y(Ni56)*state.rho) + + (-0.5*screened_rates(k_He4_He4_He4_to_C12_reaclib)*amrex::Math::powi<3>(Y(He4))*amrex::Math::powi<2>(state.rho) + 3.0*screened_rates(k_C12_to_3He4_derived)*Y(C12)) + + (screened_rates(k_V47_p_to_He4_Ti44_derived)*Y(V47)*Y(H1)*state.rho + -screened_rates(k_Ti44_He4_to_p_V47_reaclib)*Y(He4)*Y(Ti44)*state.rho) + + (0.5*screened_rates(k_C12_C12_to_Ne20_He4_approx)*amrex::Math::powi<2>(Y(C12))*state.rho + -screened_rates(k_Ne20_He4_to_C12_C12_approx)*Y(He4)*Y(Ne20)*state.rho) + + (-screened_rates(k_Ne20_He4_to_Mg24_approx)*Y(He4)*Y(Ne20)*state.rho + screened_rates(k_Mg24_to_Ne20_He4_approx)*Y(Mg24)); + + ydot_nuc(C12) = + (-screened_rates(k_C12_He4_to_O16_reaclib)*Y(C12)*Y(He4)*state.rho + screened_rates(k_O16_to_He4_C12_derived)*Y(O16)) + + (-screened_rates(k_O16_C12_to_p_Al27_reaclib)*Y(C12)*Y(O16)*state.rho + screened_rates(k_Al27_p_to_C12_O16_derived)*Y(Al27)*Y(H1)*state.rho) + + (-screened_rates(k_O16_C12_to_He4_Mg24_reaclib)*Y(C12)*Y(O16)*state.rho + screened_rates(k_Mg24_He4_to_C12_O16_derived)*Y(He4)*Y(Mg24)*state.rho) + + (-screened_rates(k_Ne20_C12_to_p_P31_reaclib)*Y(C12)*Y(Ne20)*state.rho + screened_rates(k_P31_p_to_C12_Ne20_derived)*Y(P31)*Y(H1)*state.rho) + + (-screened_rates(k_Ne20_C12_to_He4_Si28_reaclib)*Y(C12)*Y(Ne20)*state.rho + screened_rates(k_Si28_He4_to_C12_Ne20_derived)*Y(He4)*Y(Si28)*state.rho) + + (2.0*screened_rates(k_Mg23_n_to_C12_C12_reaclib)*Y(Mg23)*Y(N)*state.rho + -screened_rates(k_C12_C12_to_n_Mg23_derived)*amrex::Math::powi<2>(Y(C12))*state.rho) + + (screened_rates(k_Si27_n_to_C12_O16_reaclib)*Y(Si27)*Y(N)*state.rho + -screened_rates(k_O16_C12_to_n_Si27_derived)*Y(C12)*Y(O16)*state.rho) + + (0.16666666666666667*screened_rates(k_He4_He4_He4_to_C12_reaclib)*amrex::Math::powi<3>(Y(He4))*amrex::Math::powi<2>(state.rho) + -screened_rates(k_C12_to_3He4_derived)*Y(C12)) + + (-screened_rates(k_C12_C12_to_Mg24_approx)*amrex::Math::powi<2>(Y(C12))*state.rho + 2.0*screened_rates(k_Mg24_to_C12_C12_approx)*Y(Mg24)) + + (-screened_rates(k_C12_C12_to_Ne20_He4_approx)*amrex::Math::powi<2>(Y(C12))*state.rho + 2.0*screened_rates(k_Ne20_He4_to_C12_C12_approx)*Y(He4)*Y(Ne20)*state.rho); + + ydot_nuc(O16) = + (screened_rates(k_C12_He4_to_O16_reaclib)*Y(C12)*Y(He4)*state.rho + -screened_rates(k_O16_to_He4_C12_derived)*Y(O16)) + + (-screened_rates(k_O16_He4_to_Ne20_reaclib)*Y(He4)*Y(O16)*state.rho + screened_rates(k_Ne20_to_He4_O16_derived)*Y(Ne20)) + + (-screened_rates(k_O16_C12_to_p_Al27_reaclib)*Y(C12)*Y(O16)*state.rho + screened_rates(k_Al27_p_to_C12_O16_derived)*Y(Al27)*Y(H1)*state.rho) + + (-screened_rates(k_O16_C12_to_He4_Mg24_reaclib)*Y(C12)*Y(O16)*state.rho + screened_rates(k_Mg24_He4_to_C12_O16_derived)*Y(He4)*Y(Mg24)*state.rho) + + (-screened_rates(k_O16_O16_to_p_P31_reaclib)*amrex::Math::powi<2>(Y(O16))*state.rho + 2.0*screened_rates(k_P31_p_to_O16_O16_derived)*Y(P31)*Y(H1)*state.rho) + + (-screened_rates(k_O16_O16_to_He4_Si28_reaclib)*amrex::Math::powi<2>(Y(O16))*state.rho + 2.0*screened_rates(k_Si28_He4_to_O16_O16_derived)*Y(He4)*Y(Si28)*state.rho) + + (screened_rates(k_Si27_n_to_C12_O16_reaclib)*Y(Si27)*Y(N)*state.rho + -screened_rates(k_O16_C12_to_n_Si27_derived)*Y(C12)*Y(O16)*state.rho); + + ydot_nuc(Ne20) = + (screened_rates(k_O16_He4_to_Ne20_reaclib)*Y(He4)*Y(O16)*state.rho + -screened_rates(k_Ne20_to_He4_O16_derived)*Y(Ne20)) + + (-screened_rates(k_Ne20_C12_to_p_P31_reaclib)*Y(C12)*Y(Ne20)*state.rho + screened_rates(k_P31_p_to_C12_Ne20_derived)*Y(P31)*Y(H1)*state.rho) + + (-screened_rates(k_Ne20_C12_to_He4_Si28_reaclib)*Y(C12)*Y(Ne20)*state.rho + screened_rates(k_Si28_He4_to_C12_Ne20_derived)*Y(He4)*Y(Si28)*state.rho) + + (screened_rates(k_Mg23_n_to_He4_Ne20_reaclib)*Y(Mg23)*Y(N)*state.rho + -screened_rates(k_Ne20_He4_to_n_Mg23_derived)*Y(He4)*Y(Ne20)*state.rho) + + (0.5*screened_rates(k_C12_C12_to_Ne20_He4_approx)*amrex::Math::powi<2>(Y(C12))*state.rho + -screened_rates(k_Ne20_He4_to_C12_C12_approx)*Y(He4)*Y(Ne20)*state.rho) + + (-screened_rates(k_Ne20_He4_to_Mg24_approx)*Y(He4)*Y(Ne20)*state.rho + screened_rates(k_Mg24_to_Ne20_He4_approx)*Y(Mg24)); + + ydot_nuc(Mg23) = + (-screened_rates(k_Mg23_n_to_Mg24_reaclib)*Y(Mg23)*Y(N)*state.rho + screened_rates(k_Mg24_to_n_Mg23_derived)*Y(Mg24)) + + (-screened_rates(k_Mg23_He4_to_Si27_reaclib)*Y(He4)*Y(Mg23)*state.rho + screened_rates(k_Si27_to_He4_Mg23_derived)*Y(Si27)) + + (-screened_rates(k_Mg23_n_to_He4_Ne20_reaclib)*Y(Mg23)*Y(N)*state.rho + screened_rates(k_Ne20_He4_to_n_Mg23_derived)*Y(He4)*Y(Ne20)*state.rho) + + (-screened_rates(k_Mg23_n_to_C12_C12_reaclib)*Y(Mg23)*Y(N)*state.rho + 0.5*screened_rates(k_C12_C12_to_n_Mg23_derived)*amrex::Math::powi<2>(Y(C12))*state.rho); + + ydot_nuc(Mg24) = + (screened_rates(k_Mg23_n_to_Mg24_reaclib)*Y(Mg23)*Y(N)*state.rho + -screened_rates(k_Mg24_to_n_Mg23_derived)*Y(Mg24)) + + (-screened_rates(k_Mg24_He4_to_Si28_reaclib)*Y(He4)*Y(Mg24)*state.rho + screened_rates(k_Si28_to_He4_Mg24_derived)*Y(Si28)) + + (screened_rates(k_O16_C12_to_He4_Mg24_reaclib)*Y(C12)*Y(O16)*state.rho + -screened_rates(k_Mg24_He4_to_C12_O16_derived)*Y(He4)*Y(Mg24)*state.rho) + + (screened_rates(k_Al27_p_to_He4_Mg24_reaclib)*Y(Al27)*Y(H1)*state.rho + -screened_rates(k_Mg24_He4_to_p_Al27_derived)*Y(He4)*Y(Mg24)*state.rho) + + (screened_rates(k_Si27_n_to_He4_Mg24_reaclib)*Y(Si27)*Y(N)*state.rho + -screened_rates(k_Mg24_He4_to_n_Si27_derived)*Y(He4)*Y(Mg24)*state.rho) + + (0.5*screened_rates(k_C12_C12_to_Mg24_approx)*amrex::Math::powi<2>(Y(C12))*state.rho + -screened_rates(k_Mg24_to_C12_C12_approx)*Y(Mg24)) + + (screened_rates(k_Ne20_He4_to_Mg24_approx)*Y(He4)*Y(Ne20)*state.rho + -screened_rates(k_Mg24_to_Ne20_He4_approx)*Y(Mg24)); + + ydot_nuc(Al27) = + (-screened_rates(k_Al27_p_to_Si28_reaclib)*Y(Al27)*Y(H1)*state.rho + screened_rates(k_Si28_to_p_Al27_derived)*Y(Si28)) + + (-screened_rates(k_Al27_He4_to_P31_reaclib)*Y(Al27)*Y(He4)*state.rho + screened_rates(k_P31_to_He4_Al27_derived)*Y(P31)) + + (screened_rates(k_O16_C12_to_p_Al27_reaclib)*Y(C12)*Y(O16)*state.rho + -screened_rates(k_Al27_p_to_C12_O16_derived)*Y(Al27)*Y(H1)*state.rho) + + (-screened_rates(k_Al27_p_to_He4_Mg24_reaclib)*Y(Al27)*Y(H1)*state.rho + screened_rates(k_Mg24_He4_to_p_Al27_derived)*Y(He4)*Y(Mg24)*state.rho) + + (-screened_rates(k_Al27_He4_to_p_Si30_reaclib)*Y(Al27)*Y(He4)*state.rho + screened_rates(k_Si30_p_to_He4_Al27_derived)*Y(Si30)*Y(H1)*state.rho) + + (screened_rates(k_Si27_n_to_p_Al27_reaclib)*Y(Si27)*Y(N)*state.rho + -screened_rates(k_Al27_p_to_n_Si27_derived)*Y(Al27)*Y(H1)*state.rho) + + (screened_rates(k_Si27_to_Al27_electron_capture_weaktab)*Y(Si27) + -screened_rates(k_Al27_to_Si27_beta_neg_weaktab)*Y(Al27)); + + ydot_nuc(Si27) = + (screened_rates(k_Mg23_He4_to_Si27_reaclib)*Y(He4)*Y(Mg23)*state.rho + -screened_rates(k_Si27_to_He4_Mg23_derived)*Y(Si27)) + + (-screened_rates(k_Si27_n_to_Si28_reaclib)*Y(Si27)*Y(N)*state.rho + screened_rates(k_Si28_to_n_Si27_derived)*Y(Si28)) + + (-screened_rates(k_Si27_n_to_p_Al27_reaclib)*Y(Si27)*Y(N)*state.rho + screened_rates(k_Al27_p_to_n_Si27_derived)*Y(Al27)*Y(H1)*state.rho) + + (-screened_rates(k_Si27_n_to_He4_Mg24_reaclib)*Y(Si27)*Y(N)*state.rho + screened_rates(k_Mg24_He4_to_n_Si27_derived)*Y(He4)*Y(Mg24)*state.rho) + + (-screened_rates(k_Si27_n_to_C12_O16_reaclib)*Y(Si27)*Y(N)*state.rho + screened_rates(k_O16_C12_to_n_Si27_derived)*Y(C12)*Y(O16)*state.rho) + + (screened_rates(k_S30_n_to_He4_Si27_reaclib)*Y(S30)*Y(N)*state.rho + -screened_rates(k_Si27_He4_to_n_S30_derived)*Y(He4)*Y(Si27)*state.rho) + + (-screened_rates(k_Si27_to_Al27_electron_capture_weaktab)*Y(Si27) + screened_rates(k_Al27_to_Si27_beta_neg_weaktab)*Y(Al27)); + + ydot_nuc(Si28) = + (screened_rates(k_Mg24_He4_to_Si28_reaclib)*Y(He4)*Y(Mg24)*state.rho + -screened_rates(k_Si28_to_He4_Mg24_derived)*Y(Si28)) + + (screened_rates(k_Al27_p_to_Si28_reaclib)*Y(Al27)*Y(H1)*state.rho + -screened_rates(k_Si28_to_p_Al27_derived)*Y(Si28)) + + (screened_rates(k_Si27_n_to_Si28_reaclib)*Y(Si27)*Y(N)*state.rho + -screened_rates(k_Si28_to_n_Si27_derived)*Y(Si28)) + + (-screened_rates(k_Si28_p_to_P29_reaclib)*Y(Si28)*Y(H1)*state.rho + screened_rates(k_P29_to_p_Si28_derived)*Y(P29)) + + (-screened_rates(k_Si28_He4_to_S32_reaclib)*Y(He4)*Y(Si28)*state.rho + screened_rates(k_S32_to_He4_Si28_derived)*Y(S32)) + + (0.5*screened_rates(k_O16_O16_to_He4_Si28_reaclib)*amrex::Math::powi<2>(Y(O16))*state.rho + -screened_rates(k_Si28_He4_to_O16_O16_derived)*Y(He4)*Y(Si28)*state.rho) + + (screened_rates(k_Ne20_C12_to_He4_Si28_reaclib)*Y(C12)*Y(Ne20)*state.rho + -screened_rates(k_Si28_He4_to_C12_Ne20_derived)*Y(He4)*Y(Si28)*state.rho) + + (screened_rates(k_P31_p_to_He4_Si28_reaclib)*Y(P31)*Y(H1)*state.rho + -screened_rates(k_Si28_He4_to_p_P31_derived)*Y(He4)*Y(Si28)*state.rho) + + (-0.5*screened_rates(k_Si28_n_n_to_Si30_approx)*Y(Si28)*amrex::Math::powi<2>(Y(N))*amrex::Math::powi<2>(state.rho) + screened_rates(k_Si30_to_Si28_n_n_approx)*Y(Si30)); + + ydot_nuc(Si30) = + (-screened_rates(k_Si30_p_to_P31_reaclib)*Y(Si30)*Y(H1)*state.rho + screened_rates(k_P31_to_p_Si30_derived)*Y(P31)) + + (-screened_rates(k_Si30_He4_to_S34_reaclib)*Y(He4)*Y(Si30)*state.rho + screened_rates(k_S34_to_He4_Si30_derived)*Y(S34)) + + (screened_rates(k_Al27_He4_to_p_Si30_reaclib)*Y(Al27)*Y(He4)*state.rho + -screened_rates(k_Si30_p_to_He4_Al27_derived)*Y(Si30)*Y(H1)*state.rho) + + (0.5*screened_rates(k_Si28_n_n_to_Si30_approx)*Y(Si28)*amrex::Math::powi<2>(Y(N))*amrex::Math::powi<2>(state.rho) + -screened_rates(k_Si30_to_Si28_n_n_approx)*Y(Si30)); + + ydot_nuc(P29) = + (screened_rates(k_Si28_p_to_P29_reaclib)*Y(Si28)*Y(H1)*state.rho + -screened_rates(k_P29_to_p_Si28_derived)*Y(P29)) + + (-screened_rates(k_P29_p_to_S30_reaclib)*Y(P29)*Y(H1)*state.rho + screened_rates(k_S30_to_p_P29_derived)*Y(S30)) + + (-screened_rates(k_P29_He4_to_Cl33_reaclib)*Y(He4)*Y(P29)*state.rho + screened_rates(k_Cl33_to_He4_P29_derived)*Y(Cl33)) + + (-screened_rates(k_P29_He4_to_p_S32_reaclib)*Y(He4)*Y(P29)*state.rho + screened_rates(k_S32_p_to_He4_P29_derived)*Y(S32)*Y(H1)*state.rho); + + ydot_nuc(P31) = + (screened_rates(k_Al27_He4_to_P31_reaclib)*Y(Al27)*Y(He4)*state.rho + -screened_rates(k_P31_to_He4_Al27_derived)*Y(P31)) + + (screened_rates(k_Si30_p_to_P31_reaclib)*Y(Si30)*Y(H1)*state.rho + -screened_rates(k_P31_to_p_Si30_derived)*Y(P31)) + + (-screened_rates(k_P31_p_to_S32_reaclib)*Y(P31)*Y(H1)*state.rho + screened_rates(k_S32_to_p_P31_derived)*Y(S32)) + + (-screened_rates(k_P31_He4_to_Cl35_reaclib)*Y(He4)*Y(P31)*state.rho + screened_rates(k_Cl35_to_He4_P31_derived)*Y(Cl35)) + + (0.5*screened_rates(k_O16_O16_to_p_P31_reaclib)*amrex::Math::powi<2>(Y(O16))*state.rho + -screened_rates(k_P31_p_to_O16_O16_derived)*Y(P31)*Y(H1)*state.rho) + + (screened_rates(k_Ne20_C12_to_p_P31_reaclib)*Y(C12)*Y(Ne20)*state.rho + -screened_rates(k_P31_p_to_C12_Ne20_derived)*Y(P31)*Y(H1)*state.rho) + + (-screened_rates(k_P31_p_to_He4_Si28_reaclib)*Y(P31)*Y(H1)*state.rho + screened_rates(k_Si28_He4_to_p_P31_derived)*Y(He4)*Y(Si28)*state.rho) + + (-screened_rates(k_P31_He4_to_p_S34_reaclib)*Y(He4)*Y(P31)*state.rho + screened_rates(k_S34_p_to_He4_P31_derived)*Y(S34)*Y(H1)*state.rho); + + ydot_nuc(S30) = + (screened_rates(k_P29_p_to_S30_reaclib)*Y(P29)*Y(H1)*state.rho + -screened_rates(k_S30_to_p_P29_derived)*Y(S30)) + + (-screened_rates(k_S30_He4_to_Ar34_reaclib)*Y(He4)*Y(S30)*state.rho + screened_rates(k_Ar34_to_He4_S30_derived)*Y(Ar34)) + + (-screened_rates(k_S30_n_to_He4_Si27_reaclib)*Y(S30)*Y(N)*state.rho + screened_rates(k_Si27_He4_to_n_S30_derived)*Y(He4)*Y(Si27)*state.rho) + + (-screened_rates(k_S30_He4_to_p_Cl33_reaclib)*Y(He4)*Y(S30)*state.rho + screened_rates(k_Cl33_p_to_He4_S30_derived)*Y(Cl33)*Y(H1)*state.rho) + + (-0.5*screened_rates(k_S30_n_n_to_S32_approx)*Y(S30)*amrex::Math::powi<2>(Y(N))*amrex::Math::powi<2>(state.rho) + screened_rates(k_S32_to_S30_n_n_approx)*Y(S32)); + + ydot_nuc(S32) = + (screened_rates(k_Si28_He4_to_S32_reaclib)*Y(He4)*Y(Si28)*state.rho + -screened_rates(k_S32_to_He4_Si28_derived)*Y(S32)) + + (screened_rates(k_P31_p_to_S32_reaclib)*Y(P31)*Y(H1)*state.rho + -screened_rates(k_S32_to_p_P31_derived)*Y(S32)) + + (-screened_rates(k_S32_p_to_Cl33_reaclib)*Y(S32)*Y(H1)*state.rho + screened_rates(k_Cl33_to_p_S32_derived)*Y(Cl33)) + + (-screened_rates(k_S32_He4_to_Ar36_reaclib)*Y(He4)*Y(S32)*state.rho + screened_rates(k_Ar36_to_He4_S32_derived)*Y(Ar36)) + + (screened_rates(k_P29_He4_to_p_S32_reaclib)*Y(He4)*Y(P29)*state.rho + -screened_rates(k_S32_p_to_He4_P29_derived)*Y(S32)*Y(H1)*state.rho) + + (screened_rates(k_Cl35_p_to_He4_S32_reaclib)*Y(Cl35)*Y(H1)*state.rho + -screened_rates(k_S32_He4_to_p_Cl35_derived)*Y(He4)*Y(S32)*state.rho) + + (0.5*screened_rates(k_S30_n_n_to_S32_approx)*Y(S30)*amrex::Math::powi<2>(Y(N))*amrex::Math::powi<2>(state.rho) + -screened_rates(k_S32_to_S30_n_n_approx)*Y(S32)) + + (-0.5*screened_rates(k_S32_n_n_to_S34_approx)*Y(S32)*amrex::Math::powi<2>(Y(N))*amrex::Math::powi<2>(state.rho) + screened_rates(k_S34_to_S32_n_n_approx)*Y(S34)); + + ydot_nuc(S34) = + (screened_rates(k_Si30_He4_to_S34_reaclib)*Y(He4)*Y(Si30)*state.rho + -screened_rates(k_S34_to_He4_Si30_derived)*Y(S34)) + + (-screened_rates(k_S34_p_to_Cl35_reaclib)*Y(S34)*Y(H1)*state.rho + screened_rates(k_Cl35_to_p_S34_derived)*Y(Cl35)) + + (-screened_rates(k_S34_He4_to_Ar38_reaclib)*Y(He4)*Y(S34)*state.rho + screened_rates(k_Ar38_to_He4_S34_derived)*Y(Ar38)) + + (screened_rates(k_P31_He4_to_p_S34_reaclib)*Y(He4)*Y(P31)*state.rho + -screened_rates(k_S34_p_to_He4_P31_derived)*Y(S34)*Y(H1)*state.rho) + + (0.5*screened_rates(k_S32_n_n_to_S34_approx)*Y(S32)*amrex::Math::powi<2>(Y(N))*amrex::Math::powi<2>(state.rho) + -screened_rates(k_S34_to_S32_n_n_approx)*Y(S34)); + + ydot_nuc(Cl33) = + (screened_rates(k_P29_He4_to_Cl33_reaclib)*Y(He4)*Y(P29)*state.rho + -screened_rates(k_Cl33_to_He4_P29_derived)*Y(Cl33)) + + (screened_rates(k_S32_p_to_Cl33_reaclib)*Y(S32)*Y(H1)*state.rho + -screened_rates(k_Cl33_to_p_S32_derived)*Y(Cl33)) + + (-screened_rates(k_Cl33_p_to_Ar34_reaclib)*Y(Cl33)*Y(H1)*state.rho + screened_rates(k_Ar34_to_p_Cl33_derived)*Y(Ar34)) + + (-screened_rates(k_Cl33_He4_to_K37_reaclib)*Y(Cl33)*Y(He4)*state.rho + screened_rates(k_K37_to_He4_Cl33_derived)*Y(K37)) + + (screened_rates(k_S30_He4_to_p_Cl33_reaclib)*Y(He4)*Y(S30)*state.rho + -screened_rates(k_Cl33_p_to_He4_S30_derived)*Y(Cl33)*Y(H1)*state.rho) + + (-screened_rates(k_Cl33_He4_to_p_Ar36_reaclib)*Y(Cl33)*Y(He4)*state.rho + screened_rates(k_Ar36_p_to_He4_Cl33_derived)*Y(Ar36)*Y(H1)*state.rho); + + ydot_nuc(Cl35) = + (screened_rates(k_P31_He4_to_Cl35_reaclib)*Y(He4)*Y(P31)*state.rho + -screened_rates(k_Cl35_to_He4_P31_derived)*Y(Cl35)) + + (screened_rates(k_S34_p_to_Cl35_reaclib)*Y(S34)*Y(H1)*state.rho + -screened_rates(k_Cl35_to_p_S34_derived)*Y(Cl35)) + + (-screened_rates(k_Cl35_p_to_Ar36_reaclib)*Y(Cl35)*Y(H1)*state.rho + screened_rates(k_Ar36_to_p_Cl35_derived)*Y(Ar36)) + + (-screened_rates(k_Cl35_He4_to_K39_reaclib)*Y(Cl35)*Y(He4)*state.rho + screened_rates(k_K39_to_He4_Cl35_derived)*Y(K39)) + + (-screened_rates(k_Cl35_p_to_He4_S32_reaclib)*Y(Cl35)*Y(H1)*state.rho + screened_rates(k_S32_He4_to_p_Cl35_derived)*Y(He4)*Y(S32)*state.rho) + + (-screened_rates(k_Cl35_He4_to_p_Ar38_reaclib)*Y(Cl35)*Y(He4)*state.rho + screened_rates(k_Ar38_p_to_He4_Cl35_derived)*Y(Ar38)*Y(H1)*state.rho); + + ydot_nuc(Ar34) = + (screened_rates(k_S30_He4_to_Ar34_reaclib)*Y(He4)*Y(S30)*state.rho + -screened_rates(k_Ar34_to_He4_S30_derived)*Y(Ar34)) + + (screened_rates(k_Cl33_p_to_Ar34_reaclib)*Y(Cl33)*Y(H1)*state.rho + -screened_rates(k_Ar34_to_p_Cl33_derived)*Y(Ar34)) + + (-screened_rates(k_Ar34_He4_to_Ca38_reaclib)*Y(Ar34)*Y(He4)*state.rho + screened_rates(k_Ca38_to_He4_Ar34_derived)*Y(Ca38)) + + (-screened_rates(k_Ar34_He4_to_p_K37_reaclib)*Y(Ar34)*Y(He4)*state.rho + screened_rates(k_K37_p_to_He4_Ar34_derived)*Y(K37)*Y(H1)*state.rho) + + (-0.5*screened_rates(k_Ar34_n_n_to_Ar36_approx)*Y(Ar34)*amrex::Math::powi<2>(Y(N))*amrex::Math::powi<2>(state.rho) + screened_rates(k_Ar36_to_Ar34_n_n_approx)*Y(Ar36)); + + ydot_nuc(Ar36) = + (screened_rates(k_S32_He4_to_Ar36_reaclib)*Y(He4)*Y(S32)*state.rho + -screened_rates(k_Ar36_to_He4_S32_derived)*Y(Ar36)) + + (screened_rates(k_Cl35_p_to_Ar36_reaclib)*Y(Cl35)*Y(H1)*state.rho + -screened_rates(k_Ar36_to_p_Cl35_derived)*Y(Ar36)) + + (-screened_rates(k_Ar36_p_to_K37_reaclib)*Y(Ar36)*Y(H1)*state.rho + screened_rates(k_K37_to_p_Ar36_derived)*Y(K37)) + + (-screened_rates(k_Ar36_He4_to_Ca40_reaclib)*Y(Ar36)*Y(He4)*state.rho + screened_rates(k_Ca40_to_He4_Ar36_derived)*Y(Ca40)) + + (screened_rates(k_Cl33_He4_to_p_Ar36_reaclib)*Y(Cl33)*Y(He4)*state.rho + -screened_rates(k_Ar36_p_to_He4_Cl33_derived)*Y(Ar36)*Y(H1)*state.rho) + + (screened_rates(k_K39_p_to_He4_Ar36_reaclib)*Y(K39)*Y(H1)*state.rho + -screened_rates(k_Ar36_He4_to_p_K39_derived)*Y(Ar36)*Y(He4)*state.rho) + + (0.5*screened_rates(k_Ar34_n_n_to_Ar36_approx)*Y(Ar34)*amrex::Math::powi<2>(Y(N))*amrex::Math::powi<2>(state.rho) + -screened_rates(k_Ar36_to_Ar34_n_n_approx)*Y(Ar36)) + + (-0.5*screened_rates(k_Ar36_n_n_to_Ar38_approx)*Y(Ar36)*amrex::Math::powi<2>(Y(N))*amrex::Math::powi<2>(state.rho) + screened_rates(k_Ar38_to_Ar36_n_n_approx)*Y(Ar38)); + + ydot_nuc(Ar38) = + (screened_rates(k_S34_He4_to_Ar38_reaclib)*Y(He4)*Y(S34)*state.rho + -screened_rates(k_Ar38_to_He4_S34_derived)*Y(Ar38)) + + (-screened_rates(k_Ar38_p_to_K39_reaclib)*Y(Ar38)*Y(H1)*state.rho + screened_rates(k_K39_to_p_Ar38_derived)*Y(K39)) + + (-screened_rates(k_Ar38_He4_to_Ca42_reaclib)*Y(Ar38)*Y(He4)*state.rho + screened_rates(k_Ca42_to_He4_Ar38_derived)*Y(Ca42)) + + (screened_rates(k_Cl35_He4_to_p_Ar38_reaclib)*Y(Cl35)*Y(He4)*state.rho + -screened_rates(k_Ar38_p_to_He4_Cl35_derived)*Y(Ar38)*Y(H1)*state.rho) + + (0.5*screened_rates(k_Ar36_n_n_to_Ar38_approx)*Y(Ar36)*amrex::Math::powi<2>(Y(N))*amrex::Math::powi<2>(state.rho) + -screened_rates(k_Ar38_to_Ar36_n_n_approx)*Y(Ar38)); + + ydot_nuc(K37) = + (screened_rates(k_Cl33_He4_to_K37_reaclib)*Y(Cl33)*Y(He4)*state.rho + -screened_rates(k_K37_to_He4_Cl33_derived)*Y(K37)) + + (screened_rates(k_Ar36_p_to_K37_reaclib)*Y(Ar36)*Y(H1)*state.rho + -screened_rates(k_K37_to_p_Ar36_derived)*Y(K37)) + + (-screened_rates(k_K37_p_to_Ca38_reaclib)*Y(K37)*Y(H1)*state.rho + screened_rates(k_Ca38_to_p_K37_derived)*Y(Ca38)) + + (-screened_rates(k_K37_He4_to_Sc41_reaclib)*Y(He4)*Y(K37)*state.rho + screened_rates(k_Sc41_to_He4_K37_derived)*Y(Sc41)) + + (screened_rates(k_Ar34_He4_to_p_K37_reaclib)*Y(Ar34)*Y(He4)*state.rho + -screened_rates(k_K37_p_to_He4_Ar34_derived)*Y(K37)*Y(H1)*state.rho) + + (-screened_rates(k_K37_He4_to_p_Ca40_reaclib)*Y(He4)*Y(K37)*state.rho + screened_rates(k_Ca40_p_to_He4_K37_derived)*Y(Ca40)*Y(H1)*state.rho); + + ydot_nuc(K39) = + (screened_rates(k_Cl35_He4_to_K39_reaclib)*Y(Cl35)*Y(He4)*state.rho + -screened_rates(k_K39_to_He4_Cl35_derived)*Y(K39)) + + (screened_rates(k_Ar38_p_to_K39_reaclib)*Y(Ar38)*Y(H1)*state.rho + -screened_rates(k_K39_to_p_Ar38_derived)*Y(K39)) + + (-screened_rates(k_K39_p_to_Ca40_reaclib)*Y(K39)*Y(H1)*state.rho + screened_rates(k_Ca40_to_p_K39_derived)*Y(Ca40)) + + (-screened_rates(k_K39_He4_to_Sc43_reaclib)*Y(He4)*Y(K39)*state.rho + screened_rates(k_Sc43_to_He4_K39_derived)*Y(Sc43)) + + (-screened_rates(k_K39_p_to_He4_Ar36_reaclib)*Y(K39)*Y(H1)*state.rho + screened_rates(k_Ar36_He4_to_p_K39_derived)*Y(Ar36)*Y(He4)*state.rho) + + (screened_rates(k_Ca42_p_to_He4_K39_reaclib)*Y(Ca42)*Y(H1)*state.rho + -screened_rates(k_K39_He4_to_p_Ca42_derived)*Y(He4)*Y(K39)*state.rho); + + ydot_nuc(Ca38) = + (screened_rates(k_Ar34_He4_to_Ca38_reaclib)*Y(Ar34)*Y(He4)*state.rho + -screened_rates(k_Ca38_to_He4_Ar34_derived)*Y(Ca38)) + + (screened_rates(k_K37_p_to_Ca38_reaclib)*Y(K37)*Y(H1)*state.rho + -screened_rates(k_Ca38_to_p_K37_derived)*Y(Ca38)) + + (-screened_rates(k_Ca38_He4_to_Ti42_reaclib)*Y(Ca38)*Y(He4)*state.rho + screened_rates(k_Ti42_to_He4_Ca38_derived)*Y(Ti42)) + + (-screened_rates(k_Ca38_He4_to_p_Sc41_reaclib)*Y(Ca38)*Y(He4)*state.rho + screened_rates(k_Sc41_p_to_He4_Ca38_derived)*Y(Sc41)*Y(H1)*state.rho) + + (-0.5*screened_rates(k_Ca38_n_n_to_Ca40_approx)*Y(Ca38)*amrex::Math::powi<2>(Y(N))*amrex::Math::powi<2>(state.rho) + screened_rates(k_Ca40_to_Ca38_n_n_approx)*Y(Ca40)); + + ydot_nuc(Ca40) = + (screened_rates(k_Ar36_He4_to_Ca40_reaclib)*Y(Ar36)*Y(He4)*state.rho + -screened_rates(k_Ca40_to_He4_Ar36_derived)*Y(Ca40)) + + (screened_rates(k_K39_p_to_Ca40_reaclib)*Y(K39)*Y(H1)*state.rho + -screened_rates(k_Ca40_to_p_K39_derived)*Y(Ca40)) + + (-screened_rates(k_Ca40_p_to_Sc41_reaclib)*Y(Ca40)*Y(H1)*state.rho + screened_rates(k_Sc41_to_p_Ca40_derived)*Y(Sc41)) + + (-screened_rates(k_Ca40_He4_to_Ti44_reaclib)*Y(Ca40)*Y(He4)*state.rho + screened_rates(k_Ti44_to_He4_Ca40_derived)*Y(Ti44)) + + (screened_rates(k_K37_He4_to_p_Ca40_reaclib)*Y(He4)*Y(K37)*state.rho + -screened_rates(k_Ca40_p_to_He4_K37_derived)*Y(Ca40)*Y(H1)*state.rho) + + (screened_rates(k_Sc43_p_to_He4_Ca40_reaclib)*Y(Sc43)*Y(H1)*state.rho + -screened_rates(k_Ca40_He4_to_p_Sc43_derived)*Y(Ca40)*Y(He4)*state.rho) + + (0.5*screened_rates(k_Ca38_n_n_to_Ca40_approx)*Y(Ca38)*amrex::Math::powi<2>(Y(N))*amrex::Math::powi<2>(state.rho) + -screened_rates(k_Ca40_to_Ca38_n_n_approx)*Y(Ca40)) + + (-0.5*screened_rates(k_Ca40_n_n_to_Ca42_approx)*Y(Ca40)*amrex::Math::powi<2>(Y(N))*amrex::Math::powi<2>(state.rho) + screened_rates(k_Ca42_to_Ca40_n_n_approx)*Y(Ca42)); + + ydot_nuc(Ca42) = + (screened_rates(k_Ar38_He4_to_Ca42_reaclib)*Y(Ar38)*Y(He4)*state.rho + -screened_rates(k_Ca42_to_He4_Ar38_derived)*Y(Ca42)) + + (-screened_rates(k_Ca42_p_to_Sc43_reaclib)*Y(Ca42)*Y(H1)*state.rho + screened_rates(k_Sc43_to_p_Ca42_derived)*Y(Sc43)) + + (-screened_rates(k_Ca42_He4_to_Ti46_reaclib)*Y(Ca42)*Y(He4)*state.rho + screened_rates(k_Ti46_to_He4_Ca42_derived)*Y(Ti46)) + + (-screened_rates(k_Ca42_p_to_He4_K39_reaclib)*Y(Ca42)*Y(H1)*state.rho + screened_rates(k_K39_He4_to_p_Ca42_derived)*Y(He4)*Y(K39)*state.rho) + + (0.5*screened_rates(k_Ca40_n_n_to_Ca42_approx)*Y(Ca40)*amrex::Math::powi<2>(Y(N))*amrex::Math::powi<2>(state.rho) + -screened_rates(k_Ca42_to_Ca40_n_n_approx)*Y(Ca42)); + + ydot_nuc(Sc41) = + (screened_rates(k_K37_He4_to_Sc41_reaclib)*Y(He4)*Y(K37)*state.rho + -screened_rates(k_Sc41_to_He4_K37_derived)*Y(Sc41)) + + (screened_rates(k_Ca40_p_to_Sc41_reaclib)*Y(Ca40)*Y(H1)*state.rho + -screened_rates(k_Sc41_to_p_Ca40_derived)*Y(Sc41)) + + (-screened_rates(k_Sc41_p_to_Ti42_reaclib)*Y(Sc41)*Y(H1)*state.rho + screened_rates(k_Ti42_to_p_Sc41_derived)*Y(Ti42)) + + (-screened_rates(k_Sc41_He4_to_V45_reaclib)*Y(He4)*Y(Sc41)*state.rho + screened_rates(k_V45_to_He4_Sc41_derived)*Y(V45)) + + (screened_rates(k_Ca38_He4_to_p_Sc41_reaclib)*Y(Ca38)*Y(He4)*state.rho + -screened_rates(k_Sc41_p_to_He4_Ca38_derived)*Y(Sc41)*Y(H1)*state.rho) + + (-screened_rates(k_Sc41_He4_to_p_Ti44_reaclib)*Y(He4)*Y(Sc41)*state.rho + screened_rates(k_Ti44_p_to_He4_Sc41_derived)*Y(Ti44)*Y(H1)*state.rho) + + (-0.5*screened_rates(k_Sc41_n_n_to_Sc43_approx)*Y(Sc41)*amrex::Math::powi<2>(Y(N))*amrex::Math::powi<2>(state.rho) + screened_rates(k_Sc43_to_Sc41_n_n_approx)*Y(Sc43)); + + ydot_nuc(Sc43) = + (screened_rates(k_K39_He4_to_Sc43_reaclib)*Y(He4)*Y(K39)*state.rho + -screened_rates(k_Sc43_to_He4_K39_derived)*Y(Sc43)) + + (screened_rates(k_Ca42_p_to_Sc43_reaclib)*Y(Ca42)*Y(H1)*state.rho + -screened_rates(k_Sc43_to_p_Ca42_derived)*Y(Sc43)) + + (-screened_rates(k_Sc43_p_to_Ti44_reaclib)*Y(Sc43)*Y(H1)*state.rho + screened_rates(k_Ti44_to_p_Sc43_derived)*Y(Ti44)) + + (-screened_rates(k_Sc43_He4_to_V47_reaclib)*Y(He4)*Y(Sc43)*state.rho + screened_rates(k_V47_to_He4_Sc43_derived)*Y(V47)) + + (-screened_rates(k_Sc43_p_to_He4_Ca40_reaclib)*Y(Sc43)*Y(H1)*state.rho + screened_rates(k_Ca40_He4_to_p_Sc43_derived)*Y(Ca40)*Y(He4)*state.rho) + + (-screened_rates(k_Sc43_He4_to_p_Ti46_reaclib)*Y(He4)*Y(Sc43)*state.rho + screened_rates(k_Ti46_p_to_He4_Sc43_derived)*Y(Ti46)*Y(H1)*state.rho) + + (0.5*screened_rates(k_Sc41_n_n_to_Sc43_approx)*Y(Sc41)*amrex::Math::powi<2>(Y(N))*amrex::Math::powi<2>(state.rho) + -screened_rates(k_Sc43_to_Sc41_n_n_approx)*Y(Sc43)); + + ydot_nuc(Ti42) = + (screened_rates(k_Ca38_He4_to_Ti42_reaclib)*Y(Ca38)*Y(He4)*state.rho + -screened_rates(k_Ti42_to_He4_Ca38_derived)*Y(Ti42)) + + (screened_rates(k_Sc41_p_to_Ti42_reaclib)*Y(Sc41)*Y(H1)*state.rho + -screened_rates(k_Ti42_to_p_Sc41_derived)*Y(Ti42)) + + (-screened_rates(k_Ti42_He4_to_Cr46_reaclib)*Y(He4)*Y(Ti42)*state.rho + screened_rates(k_Cr46_to_He4_Ti42_derived)*Y(Cr46)) + + (-screened_rates(k_Ti42_He4_to_p_V45_reaclib)*Y(He4)*Y(Ti42)*state.rho + screened_rates(k_V45_p_to_He4_Ti42_derived)*Y(V45)*Y(H1)*state.rho) + + (-0.5*screened_rates(k_Ti42_n_n_to_Ti44_approx)*Y(Ti42)*amrex::Math::powi<2>(Y(N))*amrex::Math::powi<2>(state.rho) + screened_rates(k_Ti44_to_Ti42_n_n_approx)*Y(Ti44)); + + ydot_nuc(Ti44) = + (screened_rates(k_Ca40_He4_to_Ti44_reaclib)*Y(Ca40)*Y(He4)*state.rho + -screened_rates(k_Ti44_to_He4_Ca40_derived)*Y(Ti44)) + + (screened_rates(k_Sc43_p_to_Ti44_reaclib)*Y(Sc43)*Y(H1)*state.rho + -screened_rates(k_Ti44_to_p_Sc43_derived)*Y(Ti44)) + + (-screened_rates(k_Ti44_p_to_V45_reaclib)*Y(Ti44)*Y(H1)*state.rho + screened_rates(k_V45_to_p_Ti44_derived)*Y(V45)) + + (-screened_rates(k_Ti44_He4_to_Cr48_reaclib)*Y(He4)*Y(Ti44)*state.rho + screened_rates(k_Cr48_to_He4_Ti44_derived)*Y(Cr48)) + + (screened_rates(k_Sc41_He4_to_p_Ti44_reaclib)*Y(He4)*Y(Sc41)*state.rho + -screened_rates(k_Ti44_p_to_He4_Sc41_derived)*Y(Ti44)*Y(H1)*state.rho) + + (screened_rates(k_V47_p_to_He4_Ti44_derived)*Y(V47)*Y(H1)*state.rho + -screened_rates(k_Ti44_He4_to_p_V47_reaclib)*Y(He4)*Y(Ti44)*state.rho) + + (0.5*screened_rates(k_Ti42_n_n_to_Ti44_approx)*Y(Ti42)*amrex::Math::powi<2>(Y(N))*amrex::Math::powi<2>(state.rho) + -screened_rates(k_Ti44_to_Ti42_n_n_approx)*Y(Ti44)) + + (-0.5*screened_rates(k_Ti44_n_n_to_Ti46_approx)*Y(Ti44)*amrex::Math::powi<2>(Y(N))*amrex::Math::powi<2>(state.rho) + screened_rates(k_Ti46_to_Ti44_n_n_approx)*Y(Ti46)); + + ydot_nuc(Ti46) = + (screened_rates(k_Ca42_He4_to_Ti46_reaclib)*Y(Ca42)*Y(He4)*state.rho + -screened_rates(k_Ti46_to_He4_Ca42_derived)*Y(Ti46)) + + (-screened_rates(k_Ti46_p_to_V47_reaclib)*Y(Ti46)*Y(H1)*state.rho + screened_rates(k_V47_to_p_Ti46_derived)*Y(V47)) + + (-screened_rates(k_Ti46_He4_to_Cr50_reaclib)*Y(He4)*Y(Ti46)*state.rho + screened_rates(k_Cr50_to_He4_Ti46_derived)*Y(Cr50)) + + (screened_rates(k_Sc43_He4_to_p_Ti46_reaclib)*Y(He4)*Y(Sc43)*state.rho + -screened_rates(k_Ti46_p_to_He4_Sc43_derived)*Y(Ti46)*Y(H1)*state.rho) + + (screened_rates(k_V49_p_to_He4_Ti46_reaclib)*Y(V49)*Y(H1)*state.rho + -screened_rates(k_Ti46_He4_to_p_V49_derived)*Y(He4)*Y(Ti46)*state.rho) + + (0.5*screened_rates(k_Ti44_n_n_to_Ti46_approx)*Y(Ti44)*amrex::Math::powi<2>(Y(N))*amrex::Math::powi<2>(state.rho) + -screened_rates(k_Ti46_to_Ti44_n_n_approx)*Y(Ti46)); + + ydot_nuc(V45) = + (screened_rates(k_Sc41_He4_to_V45_reaclib)*Y(He4)*Y(Sc41)*state.rho + -screened_rates(k_V45_to_He4_Sc41_derived)*Y(V45)) + + (screened_rates(k_Ti44_p_to_V45_reaclib)*Y(Ti44)*Y(H1)*state.rho + -screened_rates(k_V45_to_p_Ti44_derived)*Y(V45)) + + (-screened_rates(k_V45_p_to_Cr46_reaclib)*Y(V45)*Y(H1)*state.rho + screened_rates(k_Cr46_to_p_V45_derived)*Y(Cr46)) + + (-screened_rates(k_V45_He4_to_Mn49_reaclib)*Y(He4)*Y(V45)*state.rho + screened_rates(k_Mn49_to_He4_V45_derived)*Y(Mn49)) + + (screened_rates(k_Ti42_He4_to_p_V45_reaclib)*Y(He4)*Y(Ti42)*state.rho + -screened_rates(k_V45_p_to_He4_Ti42_derived)*Y(V45)*Y(H1)*state.rho) + + (-screened_rates(k_V45_He4_to_p_Cr48_reaclib)*Y(He4)*Y(V45)*state.rho + screened_rates(k_Cr48_p_to_He4_V45_derived)*Y(Cr48)*Y(H1)*state.rho) + + (-0.5*screened_rates(k_V45_n_n_to_V47_approx)*Y(V45)*amrex::Math::powi<2>(Y(N))*amrex::Math::powi<2>(state.rho) + screened_rates(k_V47_to_V45_n_n_approx)*Y(V47)); + + ydot_nuc(V47) = + (screened_rates(k_Sc43_He4_to_V47_reaclib)*Y(He4)*Y(Sc43)*state.rho + -screened_rates(k_V47_to_He4_Sc43_derived)*Y(V47)) + + (screened_rates(k_Ti46_p_to_V47_reaclib)*Y(Ti46)*Y(H1)*state.rho + -screened_rates(k_V47_to_p_Ti46_derived)*Y(V47)) + + (-screened_rates(k_V47_p_to_Cr48_reaclib)*Y(V47)*Y(H1)*state.rho + screened_rates(k_Cr48_to_p_V47_derived)*Y(Cr48)) + + (-screened_rates(k_V47_He4_to_Mn51_reaclib)*Y(He4)*Y(V47)*state.rho + screened_rates(k_Mn51_to_He4_V47_derived)*Y(Mn51)) + + (-screened_rates(k_V47_He4_to_p_Cr50_reaclib)*Y(He4)*Y(V47)*state.rho + screened_rates(k_Cr50_p_to_He4_V47_derived)*Y(Cr50)*Y(H1)*state.rho) + + (-screened_rates(k_V47_p_to_He4_Ti44_derived)*Y(V47)*Y(H1)*state.rho + screened_rates(k_Ti44_He4_to_p_V47_reaclib)*Y(He4)*Y(Ti44)*state.rho) + + (0.5*screened_rates(k_V45_n_n_to_V47_approx)*Y(V45)*amrex::Math::powi<2>(Y(N))*amrex::Math::powi<2>(state.rho) + -screened_rates(k_V47_to_V45_n_n_approx)*Y(V47)) + + (-0.5*screened_rates(k_V47_n_n_to_V49_approx)*Y(V47)*amrex::Math::powi<2>(Y(N))*amrex::Math::powi<2>(state.rho) + screened_rates(k_V49_to_V47_n_n_approx)*Y(V49)); + + ydot_nuc(V49) = + (-screened_rates(k_V49_p_to_Cr50_reaclib)*Y(V49)*Y(H1)*state.rho + screened_rates(k_Cr50_to_p_V49_derived)*Y(Cr50)) + + (-screened_rates(k_V49_He4_to_Mn53_reaclib)*Y(He4)*Y(V49)*state.rho + screened_rates(k_Mn53_to_He4_V49_derived)*Y(Mn53)) + + (-screened_rates(k_V49_p_to_He4_Ti46_reaclib)*Y(V49)*Y(H1)*state.rho + screened_rates(k_Ti46_He4_to_p_V49_derived)*Y(He4)*Y(Ti46)*state.rho) + + (-screened_rates(k_V49_He4_to_p_Cr52_reaclib)*Y(He4)*Y(V49)*state.rho + screened_rates(k_Cr52_p_to_He4_V49_derived)*Y(Cr52)*Y(H1)*state.rho) + + (0.5*screened_rates(k_V47_n_n_to_V49_approx)*Y(V47)*amrex::Math::powi<2>(Y(N))*amrex::Math::powi<2>(state.rho) + -screened_rates(k_V49_to_V47_n_n_approx)*Y(V49)); + + ydot_nuc(Cr46) = + (screened_rates(k_Ti42_He4_to_Cr46_reaclib)*Y(He4)*Y(Ti42)*state.rho + -screened_rates(k_Cr46_to_He4_Ti42_derived)*Y(Cr46)) + + (screened_rates(k_V45_p_to_Cr46_reaclib)*Y(V45)*Y(H1)*state.rho + -screened_rates(k_Cr46_to_p_V45_derived)*Y(Cr46)) + + (-screened_rates(k_Cr46_He4_to_Fe50_reaclib)*Y(Cr46)*Y(He4)*state.rho + screened_rates(k_Fe50_to_He4_Cr46_derived)*Y(Fe50)) + + (-screened_rates(k_Cr46_He4_to_p_Mn49_reaclib)*Y(Cr46)*Y(He4)*state.rho + screened_rates(k_Mn49_p_to_He4_Cr46_derived)*Y(Mn49)*Y(H1)*state.rho) + + (-0.5*screened_rates(k_Cr46_n_n_to_Cr48_approx)*Y(Cr46)*amrex::Math::powi<2>(Y(N))*amrex::Math::powi<2>(state.rho) + screened_rates(k_Cr48_to_Cr46_n_n_approx)*Y(Cr48)); + + ydot_nuc(Cr48) = + (screened_rates(k_Ti44_He4_to_Cr48_reaclib)*Y(He4)*Y(Ti44)*state.rho + -screened_rates(k_Cr48_to_He4_Ti44_derived)*Y(Cr48)) + + (screened_rates(k_V47_p_to_Cr48_reaclib)*Y(V47)*Y(H1)*state.rho + -screened_rates(k_Cr48_to_p_V47_derived)*Y(Cr48)) + + (-screened_rates(k_Cr48_p_to_Mn49_reaclib)*Y(Cr48)*Y(H1)*state.rho + screened_rates(k_Mn49_to_p_Cr48_derived)*Y(Mn49)) + + (-screened_rates(k_Cr48_He4_to_Fe52_reaclib)*Y(Cr48)*Y(He4)*state.rho + screened_rates(k_Fe52_to_He4_Cr48_derived)*Y(Fe52)) + + (screened_rates(k_V45_He4_to_p_Cr48_reaclib)*Y(He4)*Y(V45)*state.rho + -screened_rates(k_Cr48_p_to_He4_V45_derived)*Y(Cr48)*Y(H1)*state.rho) + + (-screened_rates(k_Cr48_He4_to_p_Mn51_reaclib)*Y(Cr48)*Y(He4)*state.rho + screened_rates(k_Mn51_p_to_He4_Cr48_derived)*Y(Mn51)*Y(H1)*state.rho) + + (0.5*screened_rates(k_Cr46_n_n_to_Cr48_approx)*Y(Cr46)*amrex::Math::powi<2>(Y(N))*amrex::Math::powi<2>(state.rho) + -screened_rates(k_Cr48_to_Cr46_n_n_approx)*Y(Cr48)) + + (-0.5*screened_rates(k_Cr48_n_n_to_Cr50_approx)*Y(Cr48)*amrex::Math::powi<2>(Y(N))*amrex::Math::powi<2>(state.rho) + screened_rates(k_Cr50_to_Cr48_n_n_approx)*Y(Cr50)); + + ydot_nuc(Cr50) = + (screened_rates(k_Ti46_He4_to_Cr50_reaclib)*Y(He4)*Y(Ti46)*state.rho + -screened_rates(k_Cr50_to_He4_Ti46_derived)*Y(Cr50)) + + (screened_rates(k_V49_p_to_Cr50_reaclib)*Y(V49)*Y(H1)*state.rho + -screened_rates(k_Cr50_to_p_V49_derived)*Y(Cr50)) + + (-screened_rates(k_Cr50_p_to_Mn51_reaclib)*Y(Cr50)*Y(H1)*state.rho + screened_rates(k_Mn51_to_p_Cr50_derived)*Y(Mn51)) + + (-screened_rates(k_Cr50_He4_to_Fe54_reaclib)*Y(Cr50)*Y(He4)*state.rho + screened_rates(k_Fe54_to_He4_Cr50_derived)*Y(Fe54)) + + (screened_rates(k_V47_He4_to_p_Cr50_reaclib)*Y(He4)*Y(V47)*state.rho + -screened_rates(k_Cr50_p_to_He4_V47_derived)*Y(Cr50)*Y(H1)*state.rho) + + (screened_rates(k_Mn53_p_to_He4_Cr50_reaclib)*Y(Mn53)*Y(H1)*state.rho + -screened_rates(k_Cr50_He4_to_p_Mn53_derived)*Y(Cr50)*Y(He4)*state.rho) + + (0.5*screened_rates(k_Cr48_n_n_to_Cr50_approx)*Y(Cr48)*amrex::Math::powi<2>(Y(N))*amrex::Math::powi<2>(state.rho) + -screened_rates(k_Cr50_to_Cr48_n_n_approx)*Y(Cr50)) + + (-0.5*screened_rates(k_Cr50_n_n_to_Cr52_approx)*Y(Cr50)*amrex::Math::powi<2>(Y(N))*amrex::Math::powi<2>(state.rho) + screened_rates(k_Cr52_to_Cr50_n_n_approx)*Y(Cr52)); + + ydot_nuc(Cr52) = + (-screened_rates(k_Cr52_p_to_Mn53_reaclib)*Y(Cr52)*Y(H1)*state.rho + screened_rates(k_Mn53_to_p_Cr52_derived)*Y(Mn53)) + + (-screened_rates(k_Cr52_He4_to_Fe56_reaclib)*Y(Cr52)*Y(He4)*state.rho + screened_rates(k_Fe56_to_He4_Cr52_derived)*Y(Fe56)) + + (screened_rates(k_V49_He4_to_p_Cr52_reaclib)*Y(He4)*Y(V49)*state.rho + -screened_rates(k_Cr52_p_to_He4_V49_derived)*Y(Cr52)*Y(H1)*state.rho) + + (0.5*screened_rates(k_Cr50_n_n_to_Cr52_approx)*Y(Cr50)*amrex::Math::powi<2>(Y(N))*amrex::Math::powi<2>(state.rho) + -screened_rates(k_Cr52_to_Cr50_n_n_approx)*Y(Cr52)); + + ydot_nuc(Mn49) = + (screened_rates(k_V45_He4_to_Mn49_reaclib)*Y(He4)*Y(V45)*state.rho + -screened_rates(k_Mn49_to_He4_V45_derived)*Y(Mn49)) + + (screened_rates(k_Cr48_p_to_Mn49_reaclib)*Y(Cr48)*Y(H1)*state.rho + -screened_rates(k_Mn49_to_p_Cr48_derived)*Y(Mn49)) + + (-screened_rates(k_Mn49_p_to_Fe50_reaclib)*Y(Mn49)*Y(H1)*state.rho + screened_rates(k_Fe50_to_p_Mn49_derived)*Y(Fe50)) + + (-screened_rates(k_Mn49_He4_to_Co53_reaclib)*Y(He4)*Y(Mn49)*state.rho + screened_rates(k_Co53_to_He4_Mn49_derived)*Y(Co53)) + + (screened_rates(k_Cr46_He4_to_p_Mn49_reaclib)*Y(Cr46)*Y(He4)*state.rho + -screened_rates(k_Mn49_p_to_He4_Cr46_derived)*Y(Mn49)*Y(H1)*state.rho) + + (-screened_rates(k_Mn49_He4_to_p_Fe52_reaclib)*Y(He4)*Y(Mn49)*state.rho + screened_rates(k_Fe52_p_to_He4_Mn49_derived)*Y(Fe52)*Y(H1)*state.rho) + + (-0.5*screened_rates(k_Mn49_n_n_to_Mn51_approx)*Y(Mn49)*amrex::Math::powi<2>(Y(N))*amrex::Math::powi<2>(state.rho) + screened_rates(k_Mn51_to_Mn49_n_n_approx)*Y(Mn51)); + + ydot_nuc(Mn51) = + (screened_rates(k_V47_He4_to_Mn51_reaclib)*Y(He4)*Y(V47)*state.rho + -screened_rates(k_Mn51_to_He4_V47_derived)*Y(Mn51)) + + (screened_rates(k_Cr50_p_to_Mn51_reaclib)*Y(Cr50)*Y(H1)*state.rho + -screened_rates(k_Mn51_to_p_Cr50_derived)*Y(Mn51)) + + (-screened_rates(k_Mn51_p_to_Fe52_reaclib)*Y(Mn51)*Y(H1)*state.rho + screened_rates(k_Fe52_to_p_Mn51_derived)*Y(Fe52)) + + (-screened_rates(k_Mn51_He4_to_Co55_reaclib)*Y(He4)*Y(Mn51)*state.rho + screened_rates(k_Co55_to_He4_Mn51_derived)*Y(Co55)) + + (screened_rates(k_Cr48_He4_to_p_Mn51_reaclib)*Y(Cr48)*Y(He4)*state.rho + -screened_rates(k_Mn51_p_to_He4_Cr48_derived)*Y(Mn51)*Y(H1)*state.rho) + + (-screened_rates(k_Mn51_He4_to_p_Fe54_reaclib)*Y(He4)*Y(Mn51)*state.rho + screened_rates(k_Fe54_p_to_He4_Mn51_derived)*Y(Fe54)*Y(H1)*state.rho) + + (0.5*screened_rates(k_Mn49_n_n_to_Mn51_approx)*Y(Mn49)*amrex::Math::powi<2>(Y(N))*amrex::Math::powi<2>(state.rho) + -screened_rates(k_Mn51_to_Mn49_n_n_approx)*Y(Mn51)) + + (-0.5*screened_rates(k_Mn51_n_n_to_Mn53_approx)*Y(Mn51)*amrex::Math::powi<2>(Y(N))*amrex::Math::powi<2>(state.rho) + screened_rates(k_Mn53_to_Mn51_n_n_approx)*Y(Mn53)); + + ydot_nuc(Mn53) = + (screened_rates(k_V49_He4_to_Mn53_reaclib)*Y(He4)*Y(V49)*state.rho + -screened_rates(k_Mn53_to_He4_V49_derived)*Y(Mn53)) + + (screened_rates(k_Cr52_p_to_Mn53_reaclib)*Y(Cr52)*Y(H1)*state.rho + -screened_rates(k_Mn53_to_p_Cr52_derived)*Y(Mn53)) + + (-screened_rates(k_Mn53_p_to_Fe54_reaclib)*Y(Mn53)*Y(H1)*state.rho + screened_rates(k_Fe54_to_p_Mn53_derived)*Y(Fe54)) + + (-screened_rates(k_Mn53_He4_to_Co57_reaclib)*Y(He4)*Y(Mn53)*state.rho + screened_rates(k_Co57_to_He4_Mn53_derived)*Y(Co57)) + + (-screened_rates(k_Mn53_p_to_He4_Cr50_reaclib)*Y(Mn53)*Y(H1)*state.rho + screened_rates(k_Cr50_He4_to_p_Mn53_derived)*Y(Cr50)*Y(He4)*state.rho) + + (-screened_rates(k_Mn53_He4_to_p_Fe56_reaclib)*Y(He4)*Y(Mn53)*state.rho + screened_rates(k_Fe56_p_to_He4_Mn53_derived)*Y(Fe56)*Y(H1)*state.rho) + + (screened_rates(k_Co56_n_to_He4_Mn53_reaclib)*Y(Co56)*Y(N)*state.rho + -screened_rates(k_Mn53_He4_to_n_Co56_derived)*Y(He4)*Y(Mn53)*state.rho) + + (0.5*screened_rates(k_Mn51_n_n_to_Mn53_approx)*Y(Mn51)*amrex::Math::powi<2>(Y(N))*amrex::Math::powi<2>(state.rho) + -screened_rates(k_Mn53_to_Mn51_n_n_approx)*Y(Mn53)); + + ydot_nuc(Fe50) = + (screened_rates(k_Cr46_He4_to_Fe50_reaclib)*Y(Cr46)*Y(He4)*state.rho + -screened_rates(k_Fe50_to_He4_Cr46_derived)*Y(Fe50)) + + (screened_rates(k_Mn49_p_to_Fe50_reaclib)*Y(Mn49)*Y(H1)*state.rho + -screened_rates(k_Fe50_to_p_Mn49_derived)*Y(Fe50)) + + (-screened_rates(k_Fe50_He4_to_p_Co53_reaclib)*Y(Fe50)*Y(He4)*state.rho + screened_rates(k_Co53_p_to_He4_Fe50_derived)*Y(Co53)*Y(H1)*state.rho) + + (-0.5*screened_rates(k_Fe50_n_n_to_Fe52_approx)*Y(Fe50)*amrex::Math::powi<2>(Y(N))*amrex::Math::powi<2>(state.rho) + screened_rates(k_Fe52_to_Fe50_n_n_approx)*Y(Fe52)); + + ydot_nuc(Fe52) = + (screened_rates(k_Cr48_He4_to_Fe52_reaclib)*Y(Cr48)*Y(He4)*state.rho + -screened_rates(k_Fe52_to_He4_Cr48_derived)*Y(Fe52)) + + (screened_rates(k_Mn51_p_to_Fe52_reaclib)*Y(Mn51)*Y(H1)*state.rho + -screened_rates(k_Fe52_to_p_Mn51_derived)*Y(Fe52)) + + (-screened_rates(k_Fe52_p_to_Co53_reaclib)*Y(Fe52)*Y(H1)*state.rho + screened_rates(k_Co53_to_p_Fe52_derived)*Y(Co53)) + + (-screened_rates(k_Fe52_He4_to_Ni56_reaclib)*Y(Fe52)*Y(He4)*state.rho + screened_rates(k_Ni56_to_He4_Fe52_derived)*Y(Ni56)) + + (screened_rates(k_Mn49_He4_to_p_Fe52_reaclib)*Y(He4)*Y(Mn49)*state.rho + -screened_rates(k_Fe52_p_to_He4_Mn49_derived)*Y(Fe52)*Y(H1)*state.rho) + + (-screened_rates(k_Fe52_He4_to_p_Co55_reaclib)*Y(Fe52)*Y(He4)*state.rho + screened_rates(k_Co55_p_to_He4_Fe52_derived)*Y(Co55)*Y(H1)*state.rho) + + (0.5*screened_rates(k_Fe50_n_n_to_Fe52_approx)*Y(Fe50)*amrex::Math::powi<2>(Y(N))*amrex::Math::powi<2>(state.rho) + -screened_rates(k_Fe52_to_Fe50_n_n_approx)*Y(Fe52)) + + (-0.5*screened_rates(k_Fe52_n_n_to_Fe54_approx)*Y(Fe52)*amrex::Math::powi<2>(Y(N))*amrex::Math::powi<2>(state.rho) + screened_rates(k_Fe54_to_Fe52_n_n_approx)*Y(Fe54)); + + ydot_nuc(Fe54) = + (screened_rates(k_Cr50_He4_to_Fe54_reaclib)*Y(Cr50)*Y(He4)*state.rho + -screened_rates(k_Fe54_to_He4_Cr50_derived)*Y(Fe54)) + + (screened_rates(k_Mn53_p_to_Fe54_reaclib)*Y(Mn53)*Y(H1)*state.rho + -screened_rates(k_Fe54_to_p_Mn53_derived)*Y(Fe54)) + + (-screened_rates(k_Fe54_p_to_Co55_reaclib)*Y(Fe54)*Y(H1)*state.rho + screened_rates(k_Co55_to_p_Fe54_derived)*Y(Co55)) + + (-screened_rates(k_Fe54_He4_to_Ni58_reaclib)*Y(Fe54)*Y(He4)*state.rho + screened_rates(k_Ni58_to_He4_Fe54_derived)*Y(Ni58)) + + (screened_rates(k_Mn51_He4_to_p_Fe54_reaclib)*Y(He4)*Y(Mn51)*state.rho + -screened_rates(k_Fe54_p_to_He4_Mn51_derived)*Y(Fe54)*Y(H1)*state.rho) + + (screened_rates(k_Co57_p_to_He4_Fe54_reaclib)*Y(Co57)*Y(H1)*state.rho + -screened_rates(k_Fe54_He4_to_p_Co57_derived)*Y(Fe54)*Y(He4)*state.rho) + + (0.5*screened_rates(k_Fe52_n_n_to_Fe54_approx)*Y(Fe52)*amrex::Math::powi<2>(Y(N))*amrex::Math::powi<2>(state.rho) + -screened_rates(k_Fe54_to_Fe52_n_n_approx)*Y(Fe54)) + + (-0.5*screened_rates(k_Fe54_n_n_to_Fe56_approx)*Y(Fe54)*amrex::Math::powi<2>(Y(N))*amrex::Math::powi<2>(state.rho) + screened_rates(k_Fe56_to_Fe54_n_n_approx)*Y(Fe56)); + + ydot_nuc(Fe56) = + (screened_rates(k_Cr52_He4_to_Fe56_reaclib)*Y(Cr52)*Y(He4)*state.rho + -screened_rates(k_Fe56_to_He4_Cr52_derived)*Y(Fe56)) + + (-screened_rates(k_Fe56_p_to_Co57_reaclib)*Y(Fe56)*Y(H1)*state.rho + screened_rates(k_Co57_to_p_Fe56_derived)*Y(Co57)) + + (screened_rates(k_Mn53_He4_to_p_Fe56_reaclib)*Y(He4)*Y(Mn53)*state.rho + -screened_rates(k_Fe56_p_to_He4_Mn53_derived)*Y(Fe56)*Y(H1)*state.rho) + + (screened_rates(k_Co56_n_to_p_Fe56_reaclib)*Y(Co56)*Y(N)*state.rho + -screened_rates(k_Fe56_p_to_n_Co56_derived)*Y(Fe56)*Y(H1)*state.rho) + + (0.5*screened_rates(k_Fe54_n_n_to_Fe56_approx)*Y(Fe54)*amrex::Math::powi<2>(Y(N))*amrex::Math::powi<2>(state.rho) + -screened_rates(k_Fe56_to_Fe54_n_n_approx)*Y(Fe56)) + + (screened_rates(k_Co56_to_Fe56_electron_capture_weaktab)*Y(Co56) + -screened_rates(k_Fe56_to_Co56_beta_neg_weaktab)*Y(Fe56)); + + ydot_nuc(Co53) = + (screened_rates(k_Mn49_He4_to_Co53_reaclib)*Y(He4)*Y(Mn49)*state.rho + -screened_rates(k_Co53_to_He4_Mn49_derived)*Y(Co53)) + + (screened_rates(k_Fe52_p_to_Co53_reaclib)*Y(Fe52)*Y(H1)*state.rho + -screened_rates(k_Co53_to_p_Fe52_derived)*Y(Co53)) + + (screened_rates(k_Fe50_He4_to_p_Co53_reaclib)*Y(Fe50)*Y(He4)*state.rho + -screened_rates(k_Co53_p_to_He4_Fe50_derived)*Y(Co53)*Y(H1)*state.rho) + + (-screened_rates(k_Co53_He4_to_p_Ni56_reaclib)*Y(Co53)*Y(He4)*state.rho + screened_rates(k_Ni56_p_to_He4_Co53_derived)*Y(Ni56)*Y(H1)*state.rho) + + (-0.5*screened_rates(k_Co53_n_n_to_Co55_approx)*Y(Co53)*amrex::Math::powi<2>(Y(N))*amrex::Math::powi<2>(state.rho) + screened_rates(k_Co55_to_Co53_n_n_approx)*Y(Co55)); + + ydot_nuc(Co55) = + (screened_rates(k_Mn51_He4_to_Co55_reaclib)*Y(He4)*Y(Mn51)*state.rho + -screened_rates(k_Co55_to_He4_Mn51_derived)*Y(Co55)) + + (screened_rates(k_Fe54_p_to_Co55_reaclib)*Y(Fe54)*Y(H1)*state.rho + -screened_rates(k_Co55_to_p_Fe54_derived)*Y(Co55)) + + (-screened_rates(k_Co55_n_to_Co56_reaclib)*Y(Co55)*Y(N)*state.rho + screened_rates(k_Co56_to_n_Co55_derived)*Y(Co56)) + + (-screened_rates(k_Co55_p_to_Ni56_reaclib)*Y(Co55)*Y(H1)*state.rho + screened_rates(k_Ni56_to_p_Co55_derived)*Y(Ni56)) + + (-screened_rates(k_Co55_He4_to_Cu59_reaclib)*Y(Co55)*Y(He4)*state.rho + screened_rates(k_Cu59_to_He4_Co55_derived)*Y(Cu59)) + + (screened_rates(k_Fe52_He4_to_p_Co55_reaclib)*Y(Fe52)*Y(He4)*state.rho + -screened_rates(k_Co55_p_to_He4_Fe52_derived)*Y(Co55)*Y(H1)*state.rho) + + (-screened_rates(k_Co55_He4_to_p_Ni58_reaclib)*Y(Co55)*Y(He4)*state.rho + screened_rates(k_Ni58_p_to_He4_Co55_derived)*Y(Ni58)*Y(H1)*state.rho) + + (0.5*screened_rates(k_Co53_n_n_to_Co55_approx)*Y(Co53)*amrex::Math::powi<2>(Y(N))*amrex::Math::powi<2>(state.rho) + -screened_rates(k_Co55_to_Co53_n_n_approx)*Y(Co55)); + + ydot_nuc(Co56) = + (screened_rates(k_Co55_n_to_Co56_reaclib)*Y(Co55)*Y(N)*state.rho + -screened_rates(k_Co56_to_n_Co55_derived)*Y(Co56)) + + (-screened_rates(k_Co56_n_to_Co57_reaclib)*Y(Co56)*Y(N)*state.rho + screened_rates(k_Co57_to_n_Co56_derived)*Y(Co57)) + + (-screened_rates(k_Co56_n_to_p_Fe56_reaclib)*Y(Co56)*Y(N)*state.rho + screened_rates(k_Fe56_p_to_n_Co56_derived)*Y(Fe56)*Y(H1)*state.rho) + + (-screened_rates(k_Co56_n_to_He4_Mn53_reaclib)*Y(Co56)*Y(N)*state.rho + screened_rates(k_Mn53_He4_to_n_Co56_derived)*Y(He4)*Y(Mn53)*state.rho) + + (screened_rates(k_Ni56_n_to_p_Co56_reaclib)*Y(Ni56)*Y(N)*state.rho + -screened_rates(k_Co56_p_to_n_Ni56_derived)*Y(Co56)*Y(H1)*state.rho) + + (screened_rates(k_Cu59_n_to_He4_Co56_reaclib)*Y(Cu59)*Y(N)*state.rho + -screened_rates(k_Co56_He4_to_n_Cu59_derived)*Y(Co56)*Y(He4)*state.rho) + + (-screened_rates(k_Co56_to_Fe56_electron_capture_weaktab)*Y(Co56) + screened_rates(k_Fe56_to_Co56_beta_neg_weaktab)*Y(Fe56)) + + (screened_rates(k_Ni56_to_Co56_electron_capture_weaktab)*Y(Ni56) + -screened_rates(k_Co56_to_Ni56_beta_neg_weaktab)*Y(Co56)); + + ydot_nuc(Co57) = + (screened_rates(k_Mn53_He4_to_Co57_reaclib)*Y(He4)*Y(Mn53)*state.rho + -screened_rates(k_Co57_to_He4_Mn53_derived)*Y(Co57)) + + (screened_rates(k_Fe56_p_to_Co57_reaclib)*Y(Fe56)*Y(H1)*state.rho + -screened_rates(k_Co57_to_p_Fe56_derived)*Y(Co57)) + + (screened_rates(k_Co56_n_to_Co57_reaclib)*Y(Co56)*Y(N)*state.rho + -screened_rates(k_Co57_to_n_Co56_derived)*Y(Co57)) + + (-screened_rates(k_Co57_p_to_Ni58_reaclib)*Y(Co57)*Y(H1)*state.rho + screened_rates(k_Ni58_to_p_Co57_derived)*Y(Ni58)) + + (-screened_rates(k_Co57_p_to_He4_Fe54_reaclib)*Y(Co57)*Y(H1)*state.rho + screened_rates(k_Fe54_He4_to_p_Co57_derived)*Y(Fe54)*Y(He4)*state.rho); + + ydot_nuc(Ni56) = + (screened_rates(k_Fe52_He4_to_Ni56_reaclib)*Y(Fe52)*Y(He4)*state.rho + -screened_rates(k_Ni56_to_He4_Fe52_derived)*Y(Ni56)) + + (screened_rates(k_Co55_p_to_Ni56_reaclib)*Y(Co55)*Y(H1)*state.rho + -screened_rates(k_Ni56_to_p_Co55_derived)*Y(Ni56)) + + (screened_rates(k_Co53_He4_to_p_Ni56_reaclib)*Y(Co53)*Y(He4)*state.rho + -screened_rates(k_Ni56_p_to_He4_Co53_derived)*Y(Ni56)*Y(H1)*state.rho) + + (-screened_rates(k_Ni56_n_to_p_Co56_reaclib)*Y(Ni56)*Y(N)*state.rho + screened_rates(k_Co56_p_to_n_Ni56_derived)*Y(Co56)*Y(H1)*state.rho) + + (screened_rates(k_Cu59_p_to_He4_Ni56_reaclib)*Y(Cu59)*Y(H1)*state.rho + -screened_rates(k_Ni56_He4_to_p_Cu59_derived)*Y(He4)*Y(Ni56)*state.rho) + + (-0.5*screened_rates(k_Ni56_n_n_to_Ni58_approx)*Y(Ni56)*amrex::Math::powi<2>(Y(N))*amrex::Math::powi<2>(state.rho) + screened_rates(k_Ni58_to_Ni56_n_n_approx)*Y(Ni58)) + + (-screened_rates(k_Ni56_to_Co56_electron_capture_weaktab)*Y(Ni56) + screened_rates(k_Co56_to_Ni56_beta_neg_weaktab)*Y(Co56)); + + ydot_nuc(Ni58) = + (screened_rates(k_Fe54_He4_to_Ni58_reaclib)*Y(Fe54)*Y(He4)*state.rho + -screened_rates(k_Ni58_to_He4_Fe54_derived)*Y(Ni58)) + + (screened_rates(k_Co57_p_to_Ni58_reaclib)*Y(Co57)*Y(H1)*state.rho + -screened_rates(k_Ni58_to_p_Co57_derived)*Y(Ni58)) + + (-screened_rates(k_Ni58_p_to_Cu59_reaclib)*Y(Ni58)*Y(H1)*state.rho + screened_rates(k_Cu59_to_p_Ni58_derived)*Y(Cu59)) + + (screened_rates(k_Co55_He4_to_p_Ni58_reaclib)*Y(Co55)*Y(He4)*state.rho + -screened_rates(k_Ni58_p_to_He4_Co55_derived)*Y(Ni58)*Y(H1)*state.rho) + + (0.5*screened_rates(k_Ni56_n_n_to_Ni58_approx)*Y(Ni56)*amrex::Math::powi<2>(Y(N))*amrex::Math::powi<2>(state.rho) + -screened_rates(k_Ni58_to_Ni56_n_n_approx)*Y(Ni58)); + + ydot_nuc(Cu59) = + (screened_rates(k_Co55_He4_to_Cu59_reaclib)*Y(Co55)*Y(He4)*state.rho + -screened_rates(k_Cu59_to_He4_Co55_derived)*Y(Cu59)) + + (screened_rates(k_Ni58_p_to_Cu59_reaclib)*Y(Ni58)*Y(H1)*state.rho + -screened_rates(k_Cu59_to_p_Ni58_derived)*Y(Cu59)) + + (-screened_rates(k_Cu59_n_to_He4_Co56_reaclib)*Y(Cu59)*Y(N)*state.rho + screened_rates(k_Co56_He4_to_n_Cu59_derived)*Y(Co56)*Y(He4)*state.rho) + + (-screened_rates(k_Cu59_p_to_He4_Ni56_reaclib)*Y(Cu59)*Y(H1)*state.rho + screened_rates(k_Ni56_He4_to_p_Cu59_derived)*Y(He4)*Y(Ni56)*state.rho); + +} + + +AMREX_GPU_DEVICE AMREX_INLINE +void actual_rhs (const burn_t& state, amrex::Array1D& ydot) +{ + + // Set molar abundances + amrex::Array1D Y; + for (int i = 1; i <= NumSpec; ++i) { + Y(i) = state.xn[i-1] * aion_inv[i-1]; + } + + // build the rates + + rate_t rate_eval; + + constexpr int do_T_derivatives = 0; + + evaluate_rates(state, Y, rate_eval); + + rhs_nuc(state, ydot, Y, rate_eval.screened_rates); + + // ion binding energy contributions + + amrex::Real enuc; + ener_gener_rate(ydot, enuc); + + // include any weak rate neutrino losses + enuc += rate_eval.enuc_weak; + + // Get the thermal neutrino losses + + amrex::Real sneut{}; +#ifdef NEUTRINOS + constexpr int do_derivatives{0}; + amrex::Real dsneutdt{}, dsneutdd{}, dsnuda{}, dsnudz{}; + + neutrino_cooling(state.T, state.rho, state.abar, state.zbar, + sneut, dsneutdt, dsneutdd, dsnuda, dsnudz); +#endif + + // Append the energy equation (this is erg/g/s) + + ydot(net_ienuc) = enuc - sneut; + +} + + +template +AMREX_GPU_DEVICE AMREX_INLINE +void jac_nuc(const burn_t& state, + MatrixType& jac, + const amrex::Array1D& Y, + const rate_derivs_t& rate_eval) +{ + + using namespace Rates; + + const auto& screened_rates = rate_eval.screened_rates; + + amrex::Real scratch; + + // n row + + scratch = -2.0*screened_rates(k_Ar34_n_n_to_Ar36_approx)*Y(Ar34)*Y(N)*amrex::Math::powi<2>(state.rho) + - 2.0*screened_rates(k_Ar36_n_n_to_Ar38_approx)*Y(Ar36)*Y(N)*amrex::Math::powi<2>(state.rho) + - 2.0*screened_rates(k_Ca38_n_n_to_Ca40_approx)*Y(Ca38)*Y(N)*amrex::Math::powi<2>(state.rho) + - 2.0*screened_rates(k_Ca40_n_n_to_Ca42_approx)*Y(Ca40)*Y(N)*amrex::Math::powi<2>(state.rho) + - 2.0*screened_rates(k_Co53_n_n_to_Co55_approx)*Y(Co53)*Y(N)*amrex::Math::powi<2>(state.rho) + - screened_rates(k_Co55_n_to_Co56_reaclib)*Y(Co55)*state.rho + - screened_rates(k_Co56_n_to_Co57_reaclib)*Y(Co56)*state.rho + - screened_rates(k_Co56_n_to_He4_Mn53_reaclib)*Y(Co56)*state.rho + - screened_rates(k_Co56_n_to_p_Fe56_reaclib)*Y(Co56)*state.rho + - 2.0*screened_rates(k_Cr46_n_n_to_Cr48_approx)*Y(Cr46)*Y(N)*amrex::Math::powi<2>(state.rho) + - 2.0*screened_rates(k_Cr48_n_n_to_Cr50_approx)*Y(Cr48)*Y(N)*amrex::Math::powi<2>(state.rho) + - 2.0*screened_rates(k_Cr50_n_n_to_Cr52_approx)*Y(Cr50)*Y(N)*amrex::Math::powi<2>(state.rho) + - screened_rates(k_Cu59_n_to_He4_Co56_reaclib)*Y(Cu59)*state.rho + - 2.0*screened_rates(k_Fe50_n_n_to_Fe52_approx)*Y(Fe50)*Y(N)*amrex::Math::powi<2>(state.rho) + - 2.0*screened_rates(k_Fe52_n_n_to_Fe54_approx)*Y(Fe52)*Y(N)*amrex::Math::powi<2>(state.rho) + - 2.0*screened_rates(k_Fe54_n_n_to_Fe56_approx)*Y(Fe54)*Y(N)*amrex::Math::powi<2>(state.rho) + - screened_rates(k_Mg23_n_to_C12_C12_reaclib)*Y(Mg23)*state.rho + - screened_rates(k_Mg23_n_to_He4_Ne20_reaclib)*Y(Mg23)*state.rho + - screened_rates(k_Mg23_n_to_Mg24_reaclib)*Y(Mg23)*state.rho + - 2.0*screened_rates(k_Mn49_n_n_to_Mn51_approx)*Y(Mn49)*Y(N)*amrex::Math::powi<2>(state.rho) + - 2.0*screened_rates(k_Mn51_n_n_to_Mn53_approx)*Y(Mn51)*Y(N)*amrex::Math::powi<2>(state.rho) + - 2.0*screened_rates(k_Ni56_n_n_to_Ni58_approx)*Y(Ni56)*Y(N)*amrex::Math::powi<2>(state.rho) + - screened_rates(k_Ni56_n_to_p_Co56_reaclib)*Y(Ni56)*state.rho + - 2.0*screened_rates(k_S30_n_n_to_S32_approx)*Y(S30)*Y(N)*amrex::Math::powi<2>(state.rho) + - screened_rates(k_S30_n_to_He4_Si27_reaclib)*Y(S30)*state.rho + - 2.0*screened_rates(k_S32_n_n_to_S34_approx)*Y(S32)*Y(N)*amrex::Math::powi<2>(state.rho) + - 2.0*screened_rates(k_Sc41_n_n_to_Sc43_approx)*Y(Sc41)*Y(N)*amrex::Math::powi<2>(state.rho) + - screened_rates(k_Si27_n_to_C12_O16_reaclib)*Y(Si27)*state.rho + - screened_rates(k_Si27_n_to_He4_Mg24_reaclib)*Y(Si27)*state.rho + - screened_rates(k_Si27_n_to_Si28_reaclib)*Y(Si27)*state.rho + - screened_rates(k_Si27_n_to_p_Al27_reaclib)*Y(Si27)*state.rho + - 2.0*screened_rates(k_Si28_n_n_to_Si30_approx)*Y(Si28)*Y(N)*amrex::Math::powi<2>(state.rho) + - 2.0*screened_rates(k_Ti42_n_n_to_Ti44_approx)*Y(Ti42)*Y(N)*amrex::Math::powi<2>(state.rho) + - 2.0*screened_rates(k_Ti44_n_n_to_Ti46_approx)*Y(Ti44)*Y(N)*amrex::Math::powi<2>(state.rho) + - 2.0*screened_rates(k_V45_n_n_to_V47_approx)*Y(V45)*Y(N)*amrex::Math::powi<2>(state.rho) + - 2.0*screened_rates(k_V47_n_n_to_V49_approx)*Y(V47)*Y(N)*amrex::Math::powi<2>(state.rho) + - screened_rates(k_n_to_p_beta_neg_weaktab) + - Y(Ar34)*amrex::Math::powi<2>(Y(N))*amrex::Math::powi<2>(state.rho)*rate_eval.drate_Ar34_n_n_to_Ar36_approx_dYN + - Y(Ar36)*amrex::Math::powi<2>(Y(N))*amrex::Math::powi<2>(state.rho)*rate_eval.drate_Ar36_n_n_to_Ar38_approx_dYN + + 2.0*Y(Ar36)*rate_eval.drate_Ar36_to_Ar34_n_n_approx_dYN + + 2.0*Y(Ar38)*rate_eval.drate_Ar38_to_Ar36_n_n_approx_dYN + - Y(Ca38)*amrex::Math::powi<2>(Y(N))*amrex::Math::powi<2>(state.rho)*rate_eval.drate_Ca38_n_n_to_Ca40_approx_dYN + - Y(Ca40)*amrex::Math::powi<2>(Y(N))*amrex::Math::powi<2>(state.rho)*rate_eval.drate_Ca40_n_n_to_Ca42_approx_dYN + + 2.0*Y(Ca40)*rate_eval.drate_Ca40_to_Ca38_n_n_approx_dYN + + 2.0*Y(Ca42)*rate_eval.drate_Ca42_to_Ca40_n_n_approx_dYN + - Y(Co53)*amrex::Math::powi<2>(Y(N))*amrex::Math::powi<2>(state.rho)*rate_eval.drate_Co53_n_n_to_Co55_approx_dYN + + 2.0*Y(Co55)*rate_eval.drate_Co55_to_Co53_n_n_approx_dYN + - Y(Cr46)*amrex::Math::powi<2>(Y(N))*amrex::Math::powi<2>(state.rho)*rate_eval.drate_Cr46_n_n_to_Cr48_approx_dYN + - Y(Cr48)*amrex::Math::powi<2>(Y(N))*amrex::Math::powi<2>(state.rho)*rate_eval.drate_Cr48_n_n_to_Cr50_approx_dYN + + 2.0*Y(Cr48)*rate_eval.drate_Cr48_to_Cr46_n_n_approx_dYN + - Y(Cr50)*amrex::Math::powi<2>(Y(N))*amrex::Math::powi<2>(state.rho)*rate_eval.drate_Cr50_n_n_to_Cr52_approx_dYN + + 2.0*Y(Cr50)*rate_eval.drate_Cr50_to_Cr48_n_n_approx_dYN + + 2.0*Y(Cr52)*rate_eval.drate_Cr52_to_Cr50_n_n_approx_dYN + - Y(Fe50)*amrex::Math::powi<2>(Y(N))*amrex::Math::powi<2>(state.rho)*rate_eval.drate_Fe50_n_n_to_Fe52_approx_dYN + - Y(Fe52)*amrex::Math::powi<2>(Y(N))*amrex::Math::powi<2>(state.rho)*rate_eval.drate_Fe52_n_n_to_Fe54_approx_dYN + + 2.0*Y(Fe52)*rate_eval.drate_Fe52_to_Fe50_n_n_approx_dYN + - Y(Fe54)*amrex::Math::powi<2>(Y(N))*amrex::Math::powi<2>(state.rho)*rate_eval.drate_Fe54_n_n_to_Fe56_approx_dYN + + 2.0*Y(Fe54)*rate_eval.drate_Fe54_to_Fe52_n_n_approx_dYN + + 2.0*Y(Fe56)*rate_eval.drate_Fe56_to_Fe54_n_n_approx_dYN + - Y(Mn49)*amrex::Math::powi<2>(Y(N))*amrex::Math::powi<2>(state.rho)*rate_eval.drate_Mn49_n_n_to_Mn51_approx_dYN + - Y(Mn51)*amrex::Math::powi<2>(Y(N))*amrex::Math::powi<2>(state.rho)*rate_eval.drate_Mn51_n_n_to_Mn53_approx_dYN + + 2.0*Y(Mn51)*rate_eval.drate_Mn51_to_Mn49_n_n_approx_dYN + + 2.0*Y(Mn53)*rate_eval.drate_Mn53_to_Mn51_n_n_approx_dYN + - Y(Ni56)*amrex::Math::powi<2>(Y(N))*amrex::Math::powi<2>(state.rho)*rate_eval.drate_Ni56_n_n_to_Ni58_approx_dYN + + 2.0*Y(Ni58)*rate_eval.drate_Ni58_to_Ni56_n_n_approx_dYN + - Y(S30)*amrex::Math::powi<2>(Y(N))*amrex::Math::powi<2>(state.rho)*rate_eval.drate_S30_n_n_to_S32_approx_dYN + - Y(S32)*amrex::Math::powi<2>(Y(N))*amrex::Math::powi<2>(state.rho)*rate_eval.drate_S32_n_n_to_S34_approx_dYN + + 2.0*Y(S32)*rate_eval.drate_S32_to_S30_n_n_approx_dYN + + 2.0*Y(S34)*rate_eval.drate_S34_to_S32_n_n_approx_dYN + - Y(Sc41)*amrex::Math::powi<2>(Y(N))*amrex::Math::powi<2>(state.rho)*rate_eval.drate_Sc41_n_n_to_Sc43_approx_dYN + + 2.0*Y(Sc43)*rate_eval.drate_Sc43_to_Sc41_n_n_approx_dYN + - Y(Si28)*amrex::Math::powi<2>(Y(N))*amrex::Math::powi<2>(state.rho)*rate_eval.drate_Si28_n_n_to_Si30_approx_dYN + + 2.0*Y(Si30)*rate_eval.drate_Si30_to_Si28_n_n_approx_dYN + - Y(Ti42)*amrex::Math::powi<2>(Y(N))*amrex::Math::powi<2>(state.rho)*rate_eval.drate_Ti42_n_n_to_Ti44_approx_dYN + - Y(Ti44)*amrex::Math::powi<2>(Y(N))*amrex::Math::powi<2>(state.rho)*rate_eval.drate_Ti44_n_n_to_Ti46_approx_dYN + + 2.0*Y(Ti44)*rate_eval.drate_Ti44_to_Ti42_n_n_approx_dYN + + 2.0*Y(Ti46)*rate_eval.drate_Ti46_to_Ti44_n_n_approx_dYN + - Y(V45)*amrex::Math::powi<2>(Y(N))*amrex::Math::powi<2>(state.rho)*rate_eval.drate_V45_n_n_to_V47_approx_dYN + - Y(V47)*amrex::Math::powi<2>(Y(N))*amrex::Math::powi<2>(state.rho)*rate_eval.drate_V47_n_n_to_V49_approx_dYN + + 2.0*Y(V47)*rate_eval.drate_V47_to_V45_n_n_approx_dYN + + 2.0*Y(V49)*rate_eval.drate_V49_to_V47_n_n_approx_dYN; + jac.set(N, N, scratch); + + scratch = screened_rates(k_Al27_p_to_n_Si27_derived)*Y(Al27)*state.rho + + screened_rates(k_Co56_p_to_n_Ni56_derived)*Y(Co56)*state.rho + + screened_rates(k_Fe56_p_to_n_Co56_derived)*Y(Fe56)*state.rho + + screened_rates(k_p_to_n_electron_capture_weaktab); + jac.set(N, H1, scratch); + + scratch = screened_rates(k_Co56_He4_to_n_Cu59_derived)*Y(Co56)*state.rho + + screened_rates(k_Mg24_He4_to_n_Si27_derived)*Y(Mg24)*state.rho + + screened_rates(k_Mn53_He4_to_n_Co56_derived)*Y(Mn53)*state.rho + + screened_rates(k_Ne20_He4_to_n_Mg23_derived)*Y(Ne20)*state.rho + + screened_rates(k_Si27_He4_to_n_S30_derived)*Y(Si27)*state.rho; + jac.set(N, He4, scratch); + + scratch = 1.0*screened_rates(k_C12_C12_to_n_Mg23_derived)*Y(C12)*state.rho + + screened_rates(k_O16_C12_to_n_Si27_derived)*Y(O16)*state.rho; + jac.set(N, C12, scratch); + + scratch = screened_rates(k_O16_C12_to_n_Si27_derived)*Y(C12)*state.rho; + jac.set(N, O16, scratch); + + scratch = screened_rates(k_Ne20_He4_to_n_Mg23_derived)*Y(He4)*state.rho; + jac.set(N, Ne20, scratch); + + scratch = -screened_rates(k_Mg23_n_to_C12_C12_reaclib)*Y(N)*state.rho + - screened_rates(k_Mg23_n_to_He4_Ne20_reaclib)*Y(N)*state.rho + - screened_rates(k_Mg23_n_to_Mg24_reaclib)*Y(N)*state.rho; + jac.set(N, Mg23, scratch); + + scratch = screened_rates(k_Mg24_He4_to_n_Si27_derived)*Y(He4)*state.rho + + screened_rates(k_Mg24_to_n_Mg23_derived); + jac.set(N, Mg24, scratch); + + scratch = screened_rates(k_Al27_p_to_n_Si27_derived)*Y(H1)*state.rho; + jac.set(N, Al27, scratch); + + scratch = screened_rates(k_Si27_He4_to_n_S30_derived)*Y(He4)*state.rho + - screened_rates(k_Si27_n_to_C12_O16_reaclib)*Y(N)*state.rho + - screened_rates(k_Si27_n_to_He4_Mg24_reaclib)*Y(N)*state.rho + - screened_rates(k_Si27_n_to_Si28_reaclib)*Y(N)*state.rho + - screened_rates(k_Si27_n_to_p_Al27_reaclib)*Y(N)*state.rho; + jac.set(N, Si27, scratch); + + scratch = -screened_rates(k_Si28_n_n_to_Si30_approx)*amrex::Math::powi<2>(Y(N))*amrex::Math::powi<2>(state.rho) + + screened_rates(k_Si28_to_n_Si27_derived); + jac.set(N, Si28, scratch); + + scratch = 2.0*screened_rates(k_Si30_to_Si28_n_n_approx); + jac.set(N, Si30, scratch); + + jac.set(N, P29, 0.0); + + jac.set(N, P31, 0.0); + + scratch = -screened_rates(k_S30_n_n_to_S32_approx)*amrex::Math::powi<2>(Y(N))*amrex::Math::powi<2>(state.rho) + - screened_rates(k_S30_n_to_He4_Si27_reaclib)*Y(N)*state.rho; + jac.set(N, S30, scratch); + + scratch = -screened_rates(k_S32_n_n_to_S34_approx)*amrex::Math::powi<2>(Y(N))*amrex::Math::powi<2>(state.rho) + + 2.0*screened_rates(k_S32_to_S30_n_n_approx); + jac.set(N, S32, scratch); + + scratch = 2.0*screened_rates(k_S34_to_S32_n_n_approx); + jac.set(N, S34, scratch); + + jac.set(N, Cl33, 0.0); + + jac.set(N, Cl35, 0.0); + + scratch = -screened_rates(k_Ar34_n_n_to_Ar36_approx)*amrex::Math::powi<2>(Y(N))*amrex::Math::powi<2>(state.rho); + jac.set(N, Ar34, scratch); + + scratch = -screened_rates(k_Ar36_n_n_to_Ar38_approx)*amrex::Math::powi<2>(Y(N))*amrex::Math::powi<2>(state.rho) + + 2.0*screened_rates(k_Ar36_to_Ar34_n_n_approx); + jac.set(N, Ar36, scratch); + + scratch = 2.0*screened_rates(k_Ar38_to_Ar36_n_n_approx); + jac.set(N, Ar38, scratch); + + jac.set(N, K37, 0.0); + + jac.set(N, K39, 0.0); + + scratch = -screened_rates(k_Ca38_n_n_to_Ca40_approx)*amrex::Math::powi<2>(Y(N))*amrex::Math::powi<2>(state.rho); + jac.set(N, Ca38, scratch); + + scratch = -screened_rates(k_Ca40_n_n_to_Ca42_approx)*amrex::Math::powi<2>(Y(N))*amrex::Math::powi<2>(state.rho) + + 2.0*screened_rates(k_Ca40_to_Ca38_n_n_approx); + jac.set(N, Ca40, scratch); + + scratch = 2.0*screened_rates(k_Ca42_to_Ca40_n_n_approx); + jac.set(N, Ca42, scratch); + + scratch = -screened_rates(k_Sc41_n_n_to_Sc43_approx)*amrex::Math::powi<2>(Y(N))*amrex::Math::powi<2>(state.rho); + jac.set(N, Sc41, scratch); + + scratch = 2.0*screened_rates(k_Sc43_to_Sc41_n_n_approx); + jac.set(N, Sc43, scratch); + + scratch = -screened_rates(k_Ti42_n_n_to_Ti44_approx)*amrex::Math::powi<2>(Y(N))*amrex::Math::powi<2>(state.rho); + jac.set(N, Ti42, scratch); + + scratch = -screened_rates(k_Ti44_n_n_to_Ti46_approx)*amrex::Math::powi<2>(Y(N))*amrex::Math::powi<2>(state.rho) + + 2.0*screened_rates(k_Ti44_to_Ti42_n_n_approx); + jac.set(N, Ti44, scratch); + + scratch = 2.0*screened_rates(k_Ti46_to_Ti44_n_n_approx); + jac.set(N, Ti46, scratch); + + scratch = -screened_rates(k_V45_n_n_to_V47_approx)*amrex::Math::powi<2>(Y(N))*amrex::Math::powi<2>(state.rho); + jac.set(N, V45, scratch); + + scratch = -screened_rates(k_V47_n_n_to_V49_approx)*amrex::Math::powi<2>(Y(N))*amrex::Math::powi<2>(state.rho) + + 2.0*screened_rates(k_V47_to_V45_n_n_approx); + jac.set(N, V47, scratch); + + scratch = 2.0*screened_rates(k_V49_to_V47_n_n_approx); + jac.set(N, V49, scratch); + + scratch = -screened_rates(k_Cr46_n_n_to_Cr48_approx)*amrex::Math::powi<2>(Y(N))*amrex::Math::powi<2>(state.rho); + jac.set(N, Cr46, scratch); + + scratch = -screened_rates(k_Cr48_n_n_to_Cr50_approx)*amrex::Math::powi<2>(Y(N))*amrex::Math::powi<2>(state.rho) + + 2.0*screened_rates(k_Cr48_to_Cr46_n_n_approx); + jac.set(N, Cr48, scratch); + + scratch = -screened_rates(k_Cr50_n_n_to_Cr52_approx)*amrex::Math::powi<2>(Y(N))*amrex::Math::powi<2>(state.rho) + + 2.0*screened_rates(k_Cr50_to_Cr48_n_n_approx); + jac.set(N, Cr50, scratch); + + scratch = 2.0*screened_rates(k_Cr52_to_Cr50_n_n_approx); + jac.set(N, Cr52, scratch); + + scratch = -screened_rates(k_Mn49_n_n_to_Mn51_approx)*amrex::Math::powi<2>(Y(N))*amrex::Math::powi<2>(state.rho); + jac.set(N, Mn49, scratch); + + scratch = -screened_rates(k_Mn51_n_n_to_Mn53_approx)*amrex::Math::powi<2>(Y(N))*amrex::Math::powi<2>(state.rho) + + 2.0*screened_rates(k_Mn51_to_Mn49_n_n_approx); + jac.set(N, Mn51, scratch); + + scratch = screened_rates(k_Mn53_He4_to_n_Co56_derived)*Y(He4)*state.rho + + 2.0*screened_rates(k_Mn53_to_Mn51_n_n_approx); + jac.set(N, Mn53, scratch); + + scratch = -screened_rates(k_Fe50_n_n_to_Fe52_approx)*amrex::Math::powi<2>(Y(N))*amrex::Math::powi<2>(state.rho); + jac.set(N, Fe50, scratch); + + scratch = -screened_rates(k_Fe52_n_n_to_Fe54_approx)*amrex::Math::powi<2>(Y(N))*amrex::Math::powi<2>(state.rho) + + 2.0*screened_rates(k_Fe52_to_Fe50_n_n_approx); + jac.set(N, Fe52, scratch); + + scratch = -screened_rates(k_Fe54_n_n_to_Fe56_approx)*amrex::Math::powi<2>(Y(N))*amrex::Math::powi<2>(state.rho) + + 2.0*screened_rates(k_Fe54_to_Fe52_n_n_approx); + jac.set(N, Fe54, scratch); + + scratch = screened_rates(k_Fe56_p_to_n_Co56_derived)*Y(H1)*state.rho + + 2.0*screened_rates(k_Fe56_to_Fe54_n_n_approx); + jac.set(N, Fe56, scratch); + + scratch = -screened_rates(k_Co53_n_n_to_Co55_approx)*amrex::Math::powi<2>(Y(N))*amrex::Math::powi<2>(state.rho); + jac.set(N, Co53, scratch); + + scratch = -screened_rates(k_Co55_n_to_Co56_reaclib)*Y(N)*state.rho + + 2.0*screened_rates(k_Co55_to_Co53_n_n_approx); + jac.set(N, Co55, scratch); + + scratch = screened_rates(k_Co56_He4_to_n_Cu59_derived)*Y(He4)*state.rho + - screened_rates(k_Co56_n_to_Co57_reaclib)*Y(N)*state.rho + - screened_rates(k_Co56_n_to_He4_Mn53_reaclib)*Y(N)*state.rho + - screened_rates(k_Co56_n_to_p_Fe56_reaclib)*Y(N)*state.rho + + screened_rates(k_Co56_p_to_n_Ni56_derived)*Y(H1)*state.rho + + screened_rates(k_Co56_to_n_Co55_derived); + jac.set(N, Co56, scratch); + + scratch = screened_rates(k_Co57_to_n_Co56_derived); + jac.set(N, Co57, scratch); + + scratch = -screened_rates(k_Ni56_n_n_to_Ni58_approx)*amrex::Math::powi<2>(Y(N))*amrex::Math::powi<2>(state.rho) + - screened_rates(k_Ni56_n_to_p_Co56_reaclib)*Y(N)*state.rho; + jac.set(N, Ni56, scratch); + + scratch = 2.0*screened_rates(k_Ni58_to_Ni56_n_n_approx); + jac.set(N, Ni58, scratch); + + scratch = -screened_rates(k_Cu59_n_to_He4_Co56_reaclib)*Y(N)*state.rho; + jac.set(N, Cu59, scratch); + + + // p row + + scratch = screened_rates(k_Co56_n_to_p_Fe56_reaclib)*Y(Co56)*state.rho + + screened_rates(k_Ni56_n_to_p_Co56_reaclib)*Y(Ni56)*state.rho + + screened_rates(k_Si27_n_to_p_Al27_reaclib)*Y(Si27)*state.rho + + screened_rates(k_n_to_p_beta_neg_weaktab); + jac.set(H1, N, scratch); + + scratch = -screened_rates(k_Al27_p_to_C12_O16_derived)*Y(Al27)*state.rho + - screened_rates(k_Al27_p_to_He4_Mg24_reaclib)*Y(Al27)*state.rho + - screened_rates(k_Al27_p_to_Si28_reaclib)*Y(Al27)*state.rho + - screened_rates(k_Al27_p_to_n_Si27_derived)*Y(Al27)*state.rho + - screened_rates(k_Ar36_p_to_He4_Cl33_derived)*Y(Ar36)*state.rho + - screened_rates(k_Ar36_p_to_K37_reaclib)*Y(Ar36)*state.rho + - screened_rates(k_Ar38_p_to_He4_Cl35_derived)*Y(Ar38)*state.rho + - screened_rates(k_Ar38_p_to_K39_reaclib)*Y(Ar38)*state.rho + - screened_rates(k_Ca40_p_to_He4_K37_derived)*Y(Ca40)*state.rho + - screened_rates(k_Ca40_p_to_Sc41_reaclib)*Y(Ca40)*state.rho + - screened_rates(k_Ca42_p_to_He4_K39_reaclib)*Y(Ca42)*state.rho + - screened_rates(k_Ca42_p_to_Sc43_reaclib)*Y(Ca42)*state.rho + - screened_rates(k_Cl33_p_to_Ar34_reaclib)*Y(Cl33)*state.rho + - screened_rates(k_Cl33_p_to_He4_S30_derived)*Y(Cl33)*state.rho + - screened_rates(k_Cl35_p_to_Ar36_reaclib)*Y(Cl35)*state.rho + - screened_rates(k_Cl35_p_to_He4_S32_reaclib)*Y(Cl35)*state.rho + - screened_rates(k_Co53_p_to_He4_Fe50_derived)*Y(Co53)*state.rho + - screened_rates(k_Co55_p_to_He4_Fe52_derived)*Y(Co55)*state.rho + - screened_rates(k_Co55_p_to_Ni56_reaclib)*Y(Co55)*state.rho + - screened_rates(k_Co56_p_to_n_Ni56_derived)*Y(Co56)*state.rho + - screened_rates(k_Co57_p_to_He4_Fe54_reaclib)*Y(Co57)*state.rho + - screened_rates(k_Co57_p_to_Ni58_reaclib)*Y(Co57)*state.rho + - screened_rates(k_Cr48_p_to_He4_V45_derived)*Y(Cr48)*state.rho + - screened_rates(k_Cr48_p_to_Mn49_reaclib)*Y(Cr48)*state.rho + - screened_rates(k_Cr50_p_to_He4_V47_derived)*Y(Cr50)*state.rho + - screened_rates(k_Cr50_p_to_Mn51_reaclib)*Y(Cr50)*state.rho + - screened_rates(k_Cr52_p_to_He4_V49_derived)*Y(Cr52)*state.rho + - screened_rates(k_Cr52_p_to_Mn53_reaclib)*Y(Cr52)*state.rho + - screened_rates(k_Cu59_p_to_He4_Ni56_reaclib)*Y(Cu59)*state.rho + - screened_rates(k_Fe52_p_to_Co53_reaclib)*Y(Fe52)*state.rho + - screened_rates(k_Fe52_p_to_He4_Mn49_derived)*Y(Fe52)*state.rho + - screened_rates(k_Fe54_p_to_Co55_reaclib)*Y(Fe54)*state.rho + - screened_rates(k_Fe54_p_to_He4_Mn51_derived)*Y(Fe54)*state.rho + - screened_rates(k_Fe56_p_to_Co57_reaclib)*Y(Fe56)*state.rho + - screened_rates(k_Fe56_p_to_He4_Mn53_derived)*Y(Fe56)*state.rho + - screened_rates(k_Fe56_p_to_n_Co56_derived)*Y(Fe56)*state.rho + - screened_rates(k_K37_p_to_Ca38_reaclib)*Y(K37)*state.rho + - screened_rates(k_K37_p_to_He4_Ar34_derived)*Y(K37)*state.rho + - screened_rates(k_K39_p_to_Ca40_reaclib)*Y(K39)*state.rho + - screened_rates(k_K39_p_to_He4_Ar36_reaclib)*Y(K39)*state.rho + - screened_rates(k_Mn49_p_to_Fe50_reaclib)*Y(Mn49)*state.rho + - screened_rates(k_Mn49_p_to_He4_Cr46_derived)*Y(Mn49)*state.rho + - screened_rates(k_Mn51_p_to_Fe52_reaclib)*Y(Mn51)*state.rho + - screened_rates(k_Mn51_p_to_He4_Cr48_derived)*Y(Mn51)*state.rho + - screened_rates(k_Mn53_p_to_Fe54_reaclib)*Y(Mn53)*state.rho + - screened_rates(k_Mn53_p_to_He4_Cr50_reaclib)*Y(Mn53)*state.rho + - screened_rates(k_Ni56_p_to_He4_Co53_derived)*Y(Ni56)*state.rho + - screened_rates(k_Ni58_p_to_Cu59_reaclib)*Y(Ni58)*state.rho + - screened_rates(k_Ni58_p_to_He4_Co55_derived)*Y(Ni58)*state.rho + - screened_rates(k_P29_p_to_S30_reaclib)*Y(P29)*state.rho + - screened_rates(k_P31_p_to_C12_Ne20_derived)*Y(P31)*state.rho + - screened_rates(k_P31_p_to_He4_Si28_reaclib)*Y(P31)*state.rho + - screened_rates(k_P31_p_to_O16_O16_derived)*Y(P31)*state.rho + - screened_rates(k_P31_p_to_S32_reaclib)*Y(P31)*state.rho + - screened_rates(k_S32_p_to_Cl33_reaclib)*Y(S32)*state.rho + - screened_rates(k_S32_p_to_He4_P29_derived)*Y(S32)*state.rho + - screened_rates(k_S34_p_to_Cl35_reaclib)*Y(S34)*state.rho + - screened_rates(k_S34_p_to_He4_P31_derived)*Y(S34)*state.rho + - screened_rates(k_Sc41_p_to_He4_Ca38_derived)*Y(Sc41)*state.rho + - screened_rates(k_Sc41_p_to_Ti42_reaclib)*Y(Sc41)*state.rho + - screened_rates(k_Sc43_p_to_He4_Ca40_reaclib)*Y(Sc43)*state.rho + - screened_rates(k_Sc43_p_to_Ti44_reaclib)*Y(Sc43)*state.rho + - screened_rates(k_Si28_p_to_P29_reaclib)*Y(Si28)*state.rho + - screened_rates(k_Si30_p_to_He4_Al27_derived)*Y(Si30)*state.rho + - screened_rates(k_Si30_p_to_P31_reaclib)*Y(Si30)*state.rho + - screened_rates(k_Ti44_p_to_He4_Sc41_derived)*Y(Ti44)*state.rho + - screened_rates(k_Ti44_p_to_V45_reaclib)*Y(Ti44)*state.rho + - screened_rates(k_Ti46_p_to_He4_Sc43_derived)*Y(Ti46)*state.rho + - screened_rates(k_Ti46_p_to_V47_reaclib)*Y(Ti46)*state.rho + - screened_rates(k_V45_p_to_Cr46_reaclib)*Y(V45)*state.rho + - screened_rates(k_V45_p_to_He4_Ti42_derived)*Y(V45)*state.rho + - screened_rates(k_V47_p_to_Cr48_reaclib)*Y(V47)*state.rho + - screened_rates(k_V47_p_to_He4_Ti44_derived)*Y(V47)*state.rho + - screened_rates(k_V49_p_to_Cr50_reaclib)*Y(V49)*state.rho + - screened_rates(k_V49_p_to_He4_Ti46_reaclib)*Y(V49)*state.rho + - screened_rates(k_p_to_n_electron_capture_weaktab); + jac.set(H1, H1, scratch); + + scratch = screened_rates(k_Al27_He4_to_p_Si30_reaclib)*Y(Al27)*state.rho + + screened_rates(k_Ar34_He4_to_p_K37_reaclib)*Y(Ar34)*state.rho + + screened_rates(k_Ar36_He4_to_p_K39_derived)*Y(Ar36)*state.rho + + screened_rates(k_Ca38_He4_to_p_Sc41_reaclib)*Y(Ca38)*state.rho + + screened_rates(k_Ca40_He4_to_p_Sc43_derived)*Y(Ca40)*state.rho + + screened_rates(k_Cl33_He4_to_p_Ar36_reaclib)*Y(Cl33)*state.rho + + screened_rates(k_Cl35_He4_to_p_Ar38_reaclib)*Y(Cl35)*state.rho + + screened_rates(k_Co53_He4_to_p_Ni56_reaclib)*Y(Co53)*state.rho + + screened_rates(k_Co55_He4_to_p_Ni58_reaclib)*Y(Co55)*state.rho + + screened_rates(k_Cr46_He4_to_p_Mn49_reaclib)*Y(Cr46)*state.rho + + screened_rates(k_Cr48_He4_to_p_Mn51_reaclib)*Y(Cr48)*state.rho + + screened_rates(k_Cr50_He4_to_p_Mn53_derived)*Y(Cr50)*state.rho + + screened_rates(k_Fe50_He4_to_p_Co53_reaclib)*Y(Fe50)*state.rho + + screened_rates(k_Fe52_He4_to_p_Co55_reaclib)*Y(Fe52)*state.rho + + screened_rates(k_Fe54_He4_to_p_Co57_derived)*Y(Fe54)*state.rho + + screened_rates(k_K37_He4_to_p_Ca40_reaclib)*Y(K37)*state.rho + + screened_rates(k_K39_He4_to_p_Ca42_derived)*Y(K39)*state.rho + + screened_rates(k_Mg24_He4_to_p_Al27_derived)*Y(Mg24)*state.rho + + screened_rates(k_Mn49_He4_to_p_Fe52_reaclib)*Y(Mn49)*state.rho + + screened_rates(k_Mn51_He4_to_p_Fe54_reaclib)*Y(Mn51)*state.rho + + screened_rates(k_Mn53_He4_to_p_Fe56_reaclib)*Y(Mn53)*state.rho + + screened_rates(k_Ni56_He4_to_p_Cu59_derived)*Y(Ni56)*state.rho + + screened_rates(k_P29_He4_to_p_S32_reaclib)*Y(P29)*state.rho + + screened_rates(k_P31_He4_to_p_S34_reaclib)*Y(P31)*state.rho + + screened_rates(k_S30_He4_to_p_Cl33_reaclib)*Y(S30)*state.rho + + screened_rates(k_S32_He4_to_p_Cl35_derived)*Y(S32)*state.rho + + screened_rates(k_Sc41_He4_to_p_Ti44_reaclib)*Y(Sc41)*state.rho + + screened_rates(k_Sc43_He4_to_p_Ti46_reaclib)*Y(Sc43)*state.rho + + screened_rates(k_Si28_He4_to_p_P31_derived)*Y(Si28)*state.rho + + screened_rates(k_Ti42_He4_to_p_V45_reaclib)*Y(Ti42)*state.rho + + screened_rates(k_Ti44_He4_to_p_V47_reaclib)*Y(Ti44)*state.rho + + screened_rates(k_Ti46_He4_to_p_V49_derived)*Y(Ti46)*state.rho + + screened_rates(k_V45_He4_to_p_Cr48_reaclib)*Y(V45)*state.rho + + screened_rates(k_V47_He4_to_p_Cr50_reaclib)*Y(V47)*state.rho + + screened_rates(k_V49_He4_to_p_Cr52_reaclib)*Y(V49)*state.rho; + jac.set(H1, He4, scratch); + + scratch = screened_rates(k_Ne20_C12_to_p_P31_reaclib)*Y(Ne20)*state.rho + + screened_rates(k_O16_C12_to_p_Al27_reaclib)*Y(O16)*state.rho; + jac.set(H1, C12, scratch); + + scratch = screened_rates(k_O16_C12_to_p_Al27_reaclib)*Y(C12)*state.rho + + 1.0*screened_rates(k_O16_O16_to_p_P31_reaclib)*Y(O16)*state.rho; + jac.set(H1, O16, scratch); + + scratch = screened_rates(k_Ne20_C12_to_p_P31_reaclib)*Y(C12)*state.rho; + jac.set(H1, Ne20, scratch); + + jac.set(H1, Mg23, 0.0); + + scratch = screened_rates(k_Mg24_He4_to_p_Al27_derived)*Y(He4)*state.rho; + jac.set(H1, Mg24, scratch); + + scratch = screened_rates(k_Al27_He4_to_p_Si30_reaclib)*Y(He4)*state.rho + - screened_rates(k_Al27_p_to_C12_O16_derived)*Y(H1)*state.rho + - screened_rates(k_Al27_p_to_He4_Mg24_reaclib)*Y(H1)*state.rho + - screened_rates(k_Al27_p_to_Si28_reaclib)*Y(H1)*state.rho + - screened_rates(k_Al27_p_to_n_Si27_derived)*Y(H1)*state.rho; + jac.set(H1, Al27, scratch); + + scratch = screened_rates(k_Si27_n_to_p_Al27_reaclib)*Y(N)*state.rho; + jac.set(H1, Si27, scratch); + + scratch = screened_rates(k_Si28_He4_to_p_P31_derived)*Y(He4)*state.rho + - screened_rates(k_Si28_p_to_P29_reaclib)*Y(H1)*state.rho + + screened_rates(k_Si28_to_p_Al27_derived); + jac.set(H1, Si28, scratch); + + scratch = -screened_rates(k_Si30_p_to_He4_Al27_derived)*Y(H1)*state.rho + - screened_rates(k_Si30_p_to_P31_reaclib)*Y(H1)*state.rho; + jac.set(H1, Si30, scratch); + + scratch = screened_rates(k_P29_He4_to_p_S32_reaclib)*Y(He4)*state.rho + - screened_rates(k_P29_p_to_S30_reaclib)*Y(H1)*state.rho + + screened_rates(k_P29_to_p_Si28_derived); + jac.set(H1, P29, scratch); + + scratch = screened_rates(k_P31_He4_to_p_S34_reaclib)*Y(He4)*state.rho + - screened_rates(k_P31_p_to_C12_Ne20_derived)*Y(H1)*state.rho + - screened_rates(k_P31_p_to_He4_Si28_reaclib)*Y(H1)*state.rho + - screened_rates(k_P31_p_to_O16_O16_derived)*Y(H1)*state.rho + - screened_rates(k_P31_p_to_S32_reaclib)*Y(H1)*state.rho + + screened_rates(k_P31_to_p_Si30_derived); + jac.set(H1, P31, scratch); + + scratch = screened_rates(k_S30_He4_to_p_Cl33_reaclib)*Y(He4)*state.rho + + screened_rates(k_S30_to_p_P29_derived); + jac.set(H1, S30, scratch); + + scratch = screened_rates(k_S32_He4_to_p_Cl35_derived)*Y(He4)*state.rho + - screened_rates(k_S32_p_to_Cl33_reaclib)*Y(H1)*state.rho + - screened_rates(k_S32_p_to_He4_P29_derived)*Y(H1)*state.rho + + screened_rates(k_S32_to_p_P31_derived); + jac.set(H1, S32, scratch); + + scratch = -screened_rates(k_S34_p_to_Cl35_reaclib)*Y(H1)*state.rho + - screened_rates(k_S34_p_to_He4_P31_derived)*Y(H1)*state.rho; + jac.set(H1, S34, scratch); + + scratch = screened_rates(k_Cl33_He4_to_p_Ar36_reaclib)*Y(He4)*state.rho + - screened_rates(k_Cl33_p_to_Ar34_reaclib)*Y(H1)*state.rho + - screened_rates(k_Cl33_p_to_He4_S30_derived)*Y(H1)*state.rho + + screened_rates(k_Cl33_to_p_S32_derived); + jac.set(H1, Cl33, scratch); + + scratch = screened_rates(k_Cl35_He4_to_p_Ar38_reaclib)*Y(He4)*state.rho + - screened_rates(k_Cl35_p_to_Ar36_reaclib)*Y(H1)*state.rho + - screened_rates(k_Cl35_p_to_He4_S32_reaclib)*Y(H1)*state.rho + + screened_rates(k_Cl35_to_p_S34_derived); + jac.set(H1, Cl35, scratch); + + scratch = screened_rates(k_Ar34_He4_to_p_K37_reaclib)*Y(He4)*state.rho + + screened_rates(k_Ar34_to_p_Cl33_derived); + jac.set(H1, Ar34, scratch); + + scratch = screened_rates(k_Ar36_He4_to_p_K39_derived)*Y(He4)*state.rho + - screened_rates(k_Ar36_p_to_He4_Cl33_derived)*Y(H1)*state.rho + - screened_rates(k_Ar36_p_to_K37_reaclib)*Y(H1)*state.rho + + screened_rates(k_Ar36_to_p_Cl35_derived); + jac.set(H1, Ar36, scratch); + + scratch = -screened_rates(k_Ar38_p_to_He4_Cl35_derived)*Y(H1)*state.rho + - screened_rates(k_Ar38_p_to_K39_reaclib)*Y(H1)*state.rho; + jac.set(H1, Ar38, scratch); + + scratch = screened_rates(k_K37_He4_to_p_Ca40_reaclib)*Y(He4)*state.rho + - screened_rates(k_K37_p_to_Ca38_reaclib)*Y(H1)*state.rho + - screened_rates(k_K37_p_to_He4_Ar34_derived)*Y(H1)*state.rho + + screened_rates(k_K37_to_p_Ar36_derived); + jac.set(H1, K37, scratch); + + scratch = screened_rates(k_K39_He4_to_p_Ca42_derived)*Y(He4)*state.rho + - screened_rates(k_K39_p_to_Ca40_reaclib)*Y(H1)*state.rho + - screened_rates(k_K39_p_to_He4_Ar36_reaclib)*Y(H1)*state.rho + + screened_rates(k_K39_to_p_Ar38_derived); + jac.set(H1, K39, scratch); + + scratch = screened_rates(k_Ca38_He4_to_p_Sc41_reaclib)*Y(He4)*state.rho + + screened_rates(k_Ca38_to_p_K37_derived); + jac.set(H1, Ca38, scratch); + + scratch = screened_rates(k_Ca40_He4_to_p_Sc43_derived)*Y(He4)*state.rho + - screened_rates(k_Ca40_p_to_He4_K37_derived)*Y(H1)*state.rho + - screened_rates(k_Ca40_p_to_Sc41_reaclib)*Y(H1)*state.rho + + screened_rates(k_Ca40_to_p_K39_derived); + jac.set(H1, Ca40, scratch); + + scratch = -screened_rates(k_Ca42_p_to_He4_K39_reaclib)*Y(H1)*state.rho + - screened_rates(k_Ca42_p_to_Sc43_reaclib)*Y(H1)*state.rho; + jac.set(H1, Ca42, scratch); + + scratch = screened_rates(k_Sc41_He4_to_p_Ti44_reaclib)*Y(He4)*state.rho + - screened_rates(k_Sc41_p_to_He4_Ca38_derived)*Y(H1)*state.rho + - screened_rates(k_Sc41_p_to_Ti42_reaclib)*Y(H1)*state.rho + + screened_rates(k_Sc41_to_p_Ca40_derived); + jac.set(H1, Sc41, scratch); + + scratch = screened_rates(k_Sc43_He4_to_p_Ti46_reaclib)*Y(He4)*state.rho + - screened_rates(k_Sc43_p_to_He4_Ca40_reaclib)*Y(H1)*state.rho + - screened_rates(k_Sc43_p_to_Ti44_reaclib)*Y(H1)*state.rho + + screened_rates(k_Sc43_to_p_Ca42_derived); + jac.set(H1, Sc43, scratch); + + scratch = screened_rates(k_Ti42_He4_to_p_V45_reaclib)*Y(He4)*state.rho + + screened_rates(k_Ti42_to_p_Sc41_derived); + jac.set(H1, Ti42, scratch); + + scratch = screened_rates(k_Ti44_He4_to_p_V47_reaclib)*Y(He4)*state.rho + - screened_rates(k_Ti44_p_to_He4_Sc41_derived)*Y(H1)*state.rho + - screened_rates(k_Ti44_p_to_V45_reaclib)*Y(H1)*state.rho + + screened_rates(k_Ti44_to_p_Sc43_derived); + jac.set(H1, Ti44, scratch); + + scratch = screened_rates(k_Ti46_He4_to_p_V49_derived)*Y(He4)*state.rho + - screened_rates(k_Ti46_p_to_He4_Sc43_derived)*Y(H1)*state.rho + - screened_rates(k_Ti46_p_to_V47_reaclib)*Y(H1)*state.rho; + jac.set(H1, Ti46, scratch); + + scratch = screened_rates(k_V45_He4_to_p_Cr48_reaclib)*Y(He4)*state.rho + - screened_rates(k_V45_p_to_Cr46_reaclib)*Y(H1)*state.rho + - screened_rates(k_V45_p_to_He4_Ti42_derived)*Y(H1)*state.rho + + screened_rates(k_V45_to_p_Ti44_derived); + jac.set(H1, V45, scratch); + + scratch = screened_rates(k_V47_He4_to_p_Cr50_reaclib)*Y(He4)*state.rho + - screened_rates(k_V47_p_to_Cr48_reaclib)*Y(H1)*state.rho + - screened_rates(k_V47_p_to_He4_Ti44_derived)*Y(H1)*state.rho + + screened_rates(k_V47_to_p_Ti46_derived); + jac.set(H1, V47, scratch); + + scratch = screened_rates(k_V49_He4_to_p_Cr52_reaclib)*Y(He4)*state.rho + - screened_rates(k_V49_p_to_Cr50_reaclib)*Y(H1)*state.rho + - screened_rates(k_V49_p_to_He4_Ti46_reaclib)*Y(H1)*state.rho; + jac.set(H1, V49, scratch); + + scratch = screened_rates(k_Cr46_He4_to_p_Mn49_reaclib)*Y(He4)*state.rho + + screened_rates(k_Cr46_to_p_V45_derived); + jac.set(H1, Cr46, scratch); + + scratch = screened_rates(k_Cr48_He4_to_p_Mn51_reaclib)*Y(He4)*state.rho + - screened_rates(k_Cr48_p_to_He4_V45_derived)*Y(H1)*state.rho + - screened_rates(k_Cr48_p_to_Mn49_reaclib)*Y(H1)*state.rho + + screened_rates(k_Cr48_to_p_V47_derived); + jac.set(H1, Cr48, scratch); + + scratch = screened_rates(k_Cr50_He4_to_p_Mn53_derived)*Y(He4)*state.rho + - screened_rates(k_Cr50_p_to_He4_V47_derived)*Y(H1)*state.rho + - screened_rates(k_Cr50_p_to_Mn51_reaclib)*Y(H1)*state.rho + + screened_rates(k_Cr50_to_p_V49_derived); + jac.set(H1, Cr50, scratch); + + scratch = -screened_rates(k_Cr52_p_to_He4_V49_derived)*Y(H1)*state.rho + - screened_rates(k_Cr52_p_to_Mn53_reaclib)*Y(H1)*state.rho; + jac.set(H1, Cr52, scratch); + + scratch = screened_rates(k_Mn49_He4_to_p_Fe52_reaclib)*Y(He4)*state.rho + - screened_rates(k_Mn49_p_to_Fe50_reaclib)*Y(H1)*state.rho + - screened_rates(k_Mn49_p_to_He4_Cr46_derived)*Y(H1)*state.rho + + screened_rates(k_Mn49_to_p_Cr48_derived); + jac.set(H1, Mn49, scratch); + + scratch = screened_rates(k_Mn51_He4_to_p_Fe54_reaclib)*Y(He4)*state.rho + - screened_rates(k_Mn51_p_to_Fe52_reaclib)*Y(H1)*state.rho + - screened_rates(k_Mn51_p_to_He4_Cr48_derived)*Y(H1)*state.rho + + screened_rates(k_Mn51_to_p_Cr50_derived); + jac.set(H1, Mn51, scratch); + + scratch = screened_rates(k_Mn53_He4_to_p_Fe56_reaclib)*Y(He4)*state.rho + - screened_rates(k_Mn53_p_to_Fe54_reaclib)*Y(H1)*state.rho + - screened_rates(k_Mn53_p_to_He4_Cr50_reaclib)*Y(H1)*state.rho + + screened_rates(k_Mn53_to_p_Cr52_derived); + jac.set(H1, Mn53, scratch); + + scratch = screened_rates(k_Fe50_He4_to_p_Co53_reaclib)*Y(He4)*state.rho + + screened_rates(k_Fe50_to_p_Mn49_derived); + jac.set(H1, Fe50, scratch); + + scratch = screened_rates(k_Fe52_He4_to_p_Co55_reaclib)*Y(He4)*state.rho + - screened_rates(k_Fe52_p_to_Co53_reaclib)*Y(H1)*state.rho + - screened_rates(k_Fe52_p_to_He4_Mn49_derived)*Y(H1)*state.rho + + screened_rates(k_Fe52_to_p_Mn51_derived); + jac.set(H1, Fe52, scratch); + + scratch = screened_rates(k_Fe54_He4_to_p_Co57_derived)*Y(He4)*state.rho + - screened_rates(k_Fe54_p_to_Co55_reaclib)*Y(H1)*state.rho + - screened_rates(k_Fe54_p_to_He4_Mn51_derived)*Y(H1)*state.rho + + screened_rates(k_Fe54_to_p_Mn53_derived); + jac.set(H1, Fe54, scratch); + + scratch = -screened_rates(k_Fe56_p_to_Co57_reaclib)*Y(H1)*state.rho + - screened_rates(k_Fe56_p_to_He4_Mn53_derived)*Y(H1)*state.rho + - screened_rates(k_Fe56_p_to_n_Co56_derived)*Y(H1)*state.rho; + jac.set(H1, Fe56, scratch); + + scratch = screened_rates(k_Co53_He4_to_p_Ni56_reaclib)*Y(He4)*state.rho + - screened_rates(k_Co53_p_to_He4_Fe50_derived)*Y(H1)*state.rho + + screened_rates(k_Co53_to_p_Fe52_derived); + jac.set(H1, Co53, scratch); + + scratch = screened_rates(k_Co55_He4_to_p_Ni58_reaclib)*Y(He4)*state.rho + - screened_rates(k_Co55_p_to_He4_Fe52_derived)*Y(H1)*state.rho + - screened_rates(k_Co55_p_to_Ni56_reaclib)*Y(H1)*state.rho + + screened_rates(k_Co55_to_p_Fe54_derived); + jac.set(H1, Co55, scratch); + + scratch = screened_rates(k_Co56_n_to_p_Fe56_reaclib)*Y(N)*state.rho + - screened_rates(k_Co56_p_to_n_Ni56_derived)*Y(H1)*state.rho; + jac.set(H1, Co56, scratch); + + scratch = -screened_rates(k_Co57_p_to_He4_Fe54_reaclib)*Y(H1)*state.rho + - screened_rates(k_Co57_p_to_Ni58_reaclib)*Y(H1)*state.rho + + screened_rates(k_Co57_to_p_Fe56_derived); + jac.set(H1, Co57, scratch); + + scratch = screened_rates(k_Ni56_He4_to_p_Cu59_derived)*Y(He4)*state.rho + + screened_rates(k_Ni56_n_to_p_Co56_reaclib)*Y(N)*state.rho + - screened_rates(k_Ni56_p_to_He4_Co53_derived)*Y(H1)*state.rho + + screened_rates(k_Ni56_to_p_Co55_derived); + jac.set(H1, Ni56, scratch); + + scratch = -screened_rates(k_Ni58_p_to_Cu59_reaclib)*Y(H1)*state.rho + - screened_rates(k_Ni58_p_to_He4_Co55_derived)*Y(H1)*state.rho + + screened_rates(k_Ni58_to_p_Co57_derived); + jac.set(H1, Ni58, scratch); + + scratch = -screened_rates(k_Cu59_p_to_He4_Ni56_reaclib)*Y(H1)*state.rho + + screened_rates(k_Cu59_to_p_Ni58_derived); + jac.set(H1, Cu59, scratch); + + + // He4 row + + scratch = screened_rates(k_Co56_n_to_He4_Mn53_reaclib)*Y(Co56)*state.rho + + screened_rates(k_Cu59_n_to_He4_Co56_reaclib)*Y(Cu59)*state.rho + + screened_rates(k_Mg23_n_to_He4_Ne20_reaclib)*Y(Mg23)*state.rho + + screened_rates(k_S30_n_to_He4_Si27_reaclib)*Y(S30)*state.rho + + screened_rates(k_Si27_n_to_He4_Mg24_reaclib)*Y(Si27)*state.rho; + jac.set(He4, N, scratch); + + scratch = screened_rates(k_Al27_p_to_He4_Mg24_reaclib)*Y(Al27)*state.rho + + screened_rates(k_Ar36_p_to_He4_Cl33_derived)*Y(Ar36)*state.rho + + screened_rates(k_Ar38_p_to_He4_Cl35_derived)*Y(Ar38)*state.rho + + screened_rates(k_Ca40_p_to_He4_K37_derived)*Y(Ca40)*state.rho + + screened_rates(k_Ca42_p_to_He4_K39_reaclib)*Y(Ca42)*state.rho + + screened_rates(k_Cl33_p_to_He4_S30_derived)*Y(Cl33)*state.rho + + screened_rates(k_Cl35_p_to_He4_S32_reaclib)*Y(Cl35)*state.rho + + screened_rates(k_Co53_p_to_He4_Fe50_derived)*Y(Co53)*state.rho + + screened_rates(k_Co55_p_to_He4_Fe52_derived)*Y(Co55)*state.rho + + screened_rates(k_Co57_p_to_He4_Fe54_reaclib)*Y(Co57)*state.rho + + screened_rates(k_Cr48_p_to_He4_V45_derived)*Y(Cr48)*state.rho + + screened_rates(k_Cr50_p_to_He4_V47_derived)*Y(Cr50)*state.rho + + screened_rates(k_Cr52_p_to_He4_V49_derived)*Y(Cr52)*state.rho + + screened_rates(k_Cu59_p_to_He4_Ni56_reaclib)*Y(Cu59)*state.rho + + screened_rates(k_Fe52_p_to_He4_Mn49_derived)*Y(Fe52)*state.rho + + screened_rates(k_Fe54_p_to_He4_Mn51_derived)*Y(Fe54)*state.rho + + screened_rates(k_Fe56_p_to_He4_Mn53_derived)*Y(Fe56)*state.rho + + screened_rates(k_K37_p_to_He4_Ar34_derived)*Y(K37)*state.rho + + screened_rates(k_K39_p_to_He4_Ar36_reaclib)*Y(K39)*state.rho + + screened_rates(k_Mn49_p_to_He4_Cr46_derived)*Y(Mn49)*state.rho + + screened_rates(k_Mn51_p_to_He4_Cr48_derived)*Y(Mn51)*state.rho + + screened_rates(k_Mn53_p_to_He4_Cr50_reaclib)*Y(Mn53)*state.rho + + screened_rates(k_Ni56_p_to_He4_Co53_derived)*Y(Ni56)*state.rho + + screened_rates(k_Ni58_p_to_He4_Co55_derived)*Y(Ni58)*state.rho + + screened_rates(k_P31_p_to_He4_Si28_reaclib)*Y(P31)*state.rho + + screened_rates(k_S32_p_to_He4_P29_derived)*Y(S32)*state.rho + + screened_rates(k_S34_p_to_He4_P31_derived)*Y(S34)*state.rho + + screened_rates(k_Sc41_p_to_He4_Ca38_derived)*Y(Sc41)*state.rho + + screened_rates(k_Sc43_p_to_He4_Ca40_reaclib)*Y(Sc43)*state.rho + + screened_rates(k_Si30_p_to_He4_Al27_derived)*Y(Si30)*state.rho + + screened_rates(k_Ti44_p_to_He4_Sc41_derived)*Y(Ti44)*state.rho + + screened_rates(k_Ti46_p_to_He4_Sc43_derived)*Y(Ti46)*state.rho + + screened_rates(k_V45_p_to_He4_Ti42_derived)*Y(V45)*state.rho + + screened_rates(k_V47_p_to_He4_Ti44_derived)*Y(V47)*state.rho + + screened_rates(k_V49_p_to_He4_Ti46_reaclib)*Y(V49)*state.rho; + jac.set(He4, H1, scratch); + + scratch = -screened_rates(k_Al27_He4_to_P31_reaclib)*Y(Al27)*state.rho + - screened_rates(k_Al27_He4_to_p_Si30_reaclib)*Y(Al27)*state.rho + - screened_rates(k_Ar34_He4_to_Ca38_reaclib)*Y(Ar34)*state.rho + - screened_rates(k_Ar34_He4_to_p_K37_reaclib)*Y(Ar34)*state.rho + - screened_rates(k_Ar36_He4_to_Ca40_reaclib)*Y(Ar36)*state.rho + - screened_rates(k_Ar36_He4_to_p_K39_derived)*Y(Ar36)*state.rho + - screened_rates(k_Ar38_He4_to_Ca42_reaclib)*Y(Ar38)*state.rho + - screened_rates(k_C12_He4_to_O16_reaclib)*Y(C12)*state.rho + - screened_rates(k_Ca38_He4_to_Ti42_reaclib)*Y(Ca38)*state.rho + - screened_rates(k_Ca38_He4_to_p_Sc41_reaclib)*Y(Ca38)*state.rho + - screened_rates(k_Ca40_He4_to_Ti44_reaclib)*Y(Ca40)*state.rho + - screened_rates(k_Ca40_He4_to_p_Sc43_derived)*Y(Ca40)*state.rho + - screened_rates(k_Ca42_He4_to_Ti46_reaclib)*Y(Ca42)*state.rho + - screened_rates(k_Cl33_He4_to_K37_reaclib)*Y(Cl33)*state.rho + - screened_rates(k_Cl33_He4_to_p_Ar36_reaclib)*Y(Cl33)*state.rho + - screened_rates(k_Cl35_He4_to_K39_reaclib)*Y(Cl35)*state.rho + - screened_rates(k_Cl35_He4_to_p_Ar38_reaclib)*Y(Cl35)*state.rho + - screened_rates(k_Co53_He4_to_p_Ni56_reaclib)*Y(Co53)*state.rho + - screened_rates(k_Co55_He4_to_Cu59_reaclib)*Y(Co55)*state.rho + - screened_rates(k_Co55_He4_to_p_Ni58_reaclib)*Y(Co55)*state.rho + - screened_rates(k_Co56_He4_to_n_Cu59_derived)*Y(Co56)*state.rho + - screened_rates(k_Cr46_He4_to_Fe50_reaclib)*Y(Cr46)*state.rho + - screened_rates(k_Cr46_He4_to_p_Mn49_reaclib)*Y(Cr46)*state.rho + - screened_rates(k_Cr48_He4_to_Fe52_reaclib)*Y(Cr48)*state.rho + - screened_rates(k_Cr48_He4_to_p_Mn51_reaclib)*Y(Cr48)*state.rho + - screened_rates(k_Cr50_He4_to_Fe54_reaclib)*Y(Cr50)*state.rho + - screened_rates(k_Cr50_He4_to_p_Mn53_derived)*Y(Cr50)*state.rho + - screened_rates(k_Cr52_He4_to_Fe56_reaclib)*Y(Cr52)*state.rho + - screened_rates(k_Fe50_He4_to_p_Co53_reaclib)*Y(Fe50)*state.rho + - screened_rates(k_Fe52_He4_to_Ni56_reaclib)*Y(Fe52)*state.rho + - screened_rates(k_Fe52_He4_to_p_Co55_reaclib)*Y(Fe52)*state.rho + - screened_rates(k_Fe54_He4_to_Ni58_reaclib)*Y(Fe54)*state.rho + - screened_rates(k_Fe54_He4_to_p_Co57_derived)*Y(Fe54)*state.rho + - 1.5*screened_rates(k_He4_He4_He4_to_C12_reaclib)*amrex::Math::powi<2>(Y(He4))*amrex::Math::powi<2>(state.rho) + - screened_rates(k_K37_He4_to_Sc41_reaclib)*Y(K37)*state.rho + - screened_rates(k_K37_He4_to_p_Ca40_reaclib)*Y(K37)*state.rho + - screened_rates(k_K39_He4_to_Sc43_reaclib)*Y(K39)*state.rho + - screened_rates(k_K39_He4_to_p_Ca42_derived)*Y(K39)*state.rho + - screened_rates(k_Mg23_He4_to_Si27_reaclib)*Y(Mg23)*state.rho + - screened_rates(k_Mg24_He4_to_C12_O16_derived)*Y(Mg24)*state.rho + - screened_rates(k_Mg24_He4_to_Si28_reaclib)*Y(Mg24)*state.rho + - screened_rates(k_Mg24_He4_to_n_Si27_derived)*Y(Mg24)*state.rho + - screened_rates(k_Mg24_He4_to_p_Al27_derived)*Y(Mg24)*state.rho + - screened_rates(k_Mn49_He4_to_Co53_reaclib)*Y(Mn49)*state.rho + - screened_rates(k_Mn49_He4_to_p_Fe52_reaclib)*Y(Mn49)*state.rho + - screened_rates(k_Mn51_He4_to_Co55_reaclib)*Y(Mn51)*state.rho + - screened_rates(k_Mn51_He4_to_p_Fe54_reaclib)*Y(Mn51)*state.rho + - screened_rates(k_Mn53_He4_to_Co57_reaclib)*Y(Mn53)*state.rho + - screened_rates(k_Mn53_He4_to_n_Co56_derived)*Y(Mn53)*state.rho + - screened_rates(k_Mn53_He4_to_p_Fe56_reaclib)*Y(Mn53)*state.rho + - screened_rates(k_Ne20_He4_to_C12_C12_approx)*Y(Ne20)*state.rho + - screened_rates(k_Ne20_He4_to_Mg24_approx)*Y(Ne20)*state.rho + - screened_rates(k_Ne20_He4_to_n_Mg23_derived)*Y(Ne20)*state.rho + - screened_rates(k_Ni56_He4_to_p_Cu59_derived)*Y(Ni56)*state.rho + - screened_rates(k_O16_He4_to_Ne20_reaclib)*Y(O16)*state.rho + - screened_rates(k_P29_He4_to_Cl33_reaclib)*Y(P29)*state.rho + - screened_rates(k_P29_He4_to_p_S32_reaclib)*Y(P29)*state.rho + - screened_rates(k_P31_He4_to_Cl35_reaclib)*Y(P31)*state.rho + - screened_rates(k_P31_He4_to_p_S34_reaclib)*Y(P31)*state.rho + - screened_rates(k_S30_He4_to_Ar34_reaclib)*Y(S30)*state.rho + - screened_rates(k_S30_He4_to_p_Cl33_reaclib)*Y(S30)*state.rho + - screened_rates(k_S32_He4_to_Ar36_reaclib)*Y(S32)*state.rho + - screened_rates(k_S32_He4_to_p_Cl35_derived)*Y(S32)*state.rho + - screened_rates(k_S34_He4_to_Ar38_reaclib)*Y(S34)*state.rho + - screened_rates(k_Sc41_He4_to_V45_reaclib)*Y(Sc41)*state.rho + - screened_rates(k_Sc41_He4_to_p_Ti44_reaclib)*Y(Sc41)*state.rho + - screened_rates(k_Sc43_He4_to_V47_reaclib)*Y(Sc43)*state.rho + - screened_rates(k_Sc43_He4_to_p_Ti46_reaclib)*Y(Sc43)*state.rho + - screened_rates(k_Si27_He4_to_n_S30_derived)*Y(Si27)*state.rho + - screened_rates(k_Si28_He4_to_C12_Ne20_derived)*Y(Si28)*state.rho + - screened_rates(k_Si28_He4_to_O16_O16_derived)*Y(Si28)*state.rho + - screened_rates(k_Si28_He4_to_S32_reaclib)*Y(Si28)*state.rho + - screened_rates(k_Si28_He4_to_p_P31_derived)*Y(Si28)*state.rho + - screened_rates(k_Si30_He4_to_S34_reaclib)*Y(Si30)*state.rho + - screened_rates(k_Ti42_He4_to_Cr46_reaclib)*Y(Ti42)*state.rho + - screened_rates(k_Ti42_He4_to_p_V45_reaclib)*Y(Ti42)*state.rho + - screened_rates(k_Ti44_He4_to_Cr48_reaclib)*Y(Ti44)*state.rho + - screened_rates(k_Ti44_He4_to_p_V47_reaclib)*Y(Ti44)*state.rho + - screened_rates(k_Ti46_He4_to_Cr50_reaclib)*Y(Ti46)*state.rho + - screened_rates(k_Ti46_He4_to_p_V49_derived)*Y(Ti46)*state.rho + - screened_rates(k_V45_He4_to_Mn49_reaclib)*Y(V45)*state.rho + - screened_rates(k_V45_He4_to_p_Cr48_reaclib)*Y(V45)*state.rho + - screened_rates(k_V47_He4_to_Mn51_reaclib)*Y(V47)*state.rho + - screened_rates(k_V47_He4_to_p_Cr50_reaclib)*Y(V47)*state.rho + - screened_rates(k_V49_He4_to_Mn53_reaclib)*Y(V49)*state.rho + - screened_rates(k_V49_He4_to_p_Cr52_reaclib)*Y(V49)*state.rho; + jac.set(He4, He4, scratch); + + scratch = 1.0*screened_rates(k_C12_C12_to_Ne20_He4_approx)*Y(C12)*state.rho + - screened_rates(k_C12_He4_to_O16_reaclib)*Y(He4)*state.rho + + 3.0*screened_rates(k_C12_to_3He4_derived) + + screened_rates(k_Ne20_C12_to_He4_Si28_reaclib)*Y(Ne20)*state.rho + + screened_rates(k_O16_C12_to_He4_Mg24_reaclib)*Y(O16)*state.rho; + jac.set(He4, C12, scratch); + + scratch = screened_rates(k_O16_C12_to_He4_Mg24_reaclib)*Y(C12)*state.rho + - screened_rates(k_O16_He4_to_Ne20_reaclib)*Y(He4)*state.rho + + 1.0*screened_rates(k_O16_O16_to_He4_Si28_reaclib)*Y(O16)*state.rho + + screened_rates(k_O16_to_He4_C12_derived); + jac.set(He4, O16, scratch); + + scratch = screened_rates(k_Ne20_C12_to_He4_Si28_reaclib)*Y(C12)*state.rho + - screened_rates(k_Ne20_He4_to_C12_C12_approx)*Y(He4)*state.rho + - screened_rates(k_Ne20_He4_to_Mg24_approx)*Y(He4)*state.rho + - screened_rates(k_Ne20_He4_to_n_Mg23_derived)*Y(He4)*state.rho + + screened_rates(k_Ne20_to_He4_O16_derived); + jac.set(He4, Ne20, scratch); + + scratch = -screened_rates(k_Mg23_He4_to_Si27_reaclib)*Y(He4)*state.rho + + screened_rates(k_Mg23_n_to_He4_Ne20_reaclib)*Y(N)*state.rho; + jac.set(He4, Mg23, scratch); + + scratch = -screened_rates(k_Mg24_He4_to_C12_O16_derived)*Y(He4)*state.rho + - screened_rates(k_Mg24_He4_to_Si28_reaclib)*Y(He4)*state.rho + - screened_rates(k_Mg24_He4_to_n_Si27_derived)*Y(He4)*state.rho + - screened_rates(k_Mg24_He4_to_p_Al27_derived)*Y(He4)*state.rho + + screened_rates(k_Mg24_to_Ne20_He4_approx); + jac.set(He4, Mg24, scratch); + + scratch = -screened_rates(k_Al27_He4_to_P31_reaclib)*Y(He4)*state.rho + - screened_rates(k_Al27_He4_to_p_Si30_reaclib)*Y(He4)*state.rho + + screened_rates(k_Al27_p_to_He4_Mg24_reaclib)*Y(H1)*state.rho; + jac.set(He4, Al27, scratch); + + scratch = -screened_rates(k_Si27_He4_to_n_S30_derived)*Y(He4)*state.rho + + screened_rates(k_Si27_n_to_He4_Mg24_reaclib)*Y(N)*state.rho + + screened_rates(k_Si27_to_He4_Mg23_derived); + jac.set(He4, Si27, scratch); + + scratch = -screened_rates(k_Si28_He4_to_C12_Ne20_derived)*Y(He4)*state.rho + - screened_rates(k_Si28_He4_to_O16_O16_derived)*Y(He4)*state.rho + - screened_rates(k_Si28_He4_to_S32_reaclib)*Y(He4)*state.rho + - screened_rates(k_Si28_He4_to_p_P31_derived)*Y(He4)*state.rho + + screened_rates(k_Si28_to_He4_Mg24_derived); + jac.set(He4, Si28, scratch); + + scratch = -screened_rates(k_Si30_He4_to_S34_reaclib)*Y(He4)*state.rho + + screened_rates(k_Si30_p_to_He4_Al27_derived)*Y(H1)*state.rho; + jac.set(He4, Si30, scratch); + + scratch = -screened_rates(k_P29_He4_to_Cl33_reaclib)*Y(He4)*state.rho + - screened_rates(k_P29_He4_to_p_S32_reaclib)*Y(He4)*state.rho; + jac.set(He4, P29, scratch); + + scratch = -screened_rates(k_P31_He4_to_Cl35_reaclib)*Y(He4)*state.rho + - screened_rates(k_P31_He4_to_p_S34_reaclib)*Y(He4)*state.rho + + screened_rates(k_P31_p_to_He4_Si28_reaclib)*Y(H1)*state.rho + + screened_rates(k_P31_to_He4_Al27_derived); + jac.set(He4, P31, scratch); + + scratch = -screened_rates(k_S30_He4_to_Ar34_reaclib)*Y(He4)*state.rho + - screened_rates(k_S30_He4_to_p_Cl33_reaclib)*Y(He4)*state.rho + + screened_rates(k_S30_n_to_He4_Si27_reaclib)*Y(N)*state.rho; + jac.set(He4, S30, scratch); + + scratch = -screened_rates(k_S32_He4_to_Ar36_reaclib)*Y(He4)*state.rho + - screened_rates(k_S32_He4_to_p_Cl35_derived)*Y(He4)*state.rho + + screened_rates(k_S32_p_to_He4_P29_derived)*Y(H1)*state.rho + + screened_rates(k_S32_to_He4_Si28_derived); + jac.set(He4, S32, scratch); + + scratch = -screened_rates(k_S34_He4_to_Ar38_reaclib)*Y(He4)*state.rho + + screened_rates(k_S34_p_to_He4_P31_derived)*Y(H1)*state.rho + + screened_rates(k_S34_to_He4_Si30_derived); + jac.set(He4, S34, scratch); + + scratch = -screened_rates(k_Cl33_He4_to_K37_reaclib)*Y(He4)*state.rho + - screened_rates(k_Cl33_He4_to_p_Ar36_reaclib)*Y(He4)*state.rho + + screened_rates(k_Cl33_p_to_He4_S30_derived)*Y(H1)*state.rho + + screened_rates(k_Cl33_to_He4_P29_derived); + jac.set(He4, Cl33, scratch); + + scratch = -screened_rates(k_Cl35_He4_to_K39_reaclib)*Y(He4)*state.rho + - screened_rates(k_Cl35_He4_to_p_Ar38_reaclib)*Y(He4)*state.rho + + screened_rates(k_Cl35_p_to_He4_S32_reaclib)*Y(H1)*state.rho + + screened_rates(k_Cl35_to_He4_P31_derived); + jac.set(He4, Cl35, scratch); + + scratch = -screened_rates(k_Ar34_He4_to_Ca38_reaclib)*Y(He4)*state.rho + - screened_rates(k_Ar34_He4_to_p_K37_reaclib)*Y(He4)*state.rho + + screened_rates(k_Ar34_to_He4_S30_derived); + jac.set(He4, Ar34, scratch); + + scratch = -screened_rates(k_Ar36_He4_to_Ca40_reaclib)*Y(He4)*state.rho + - screened_rates(k_Ar36_He4_to_p_K39_derived)*Y(He4)*state.rho + + screened_rates(k_Ar36_p_to_He4_Cl33_derived)*Y(H1)*state.rho + + screened_rates(k_Ar36_to_He4_S32_derived); + jac.set(He4, Ar36, scratch); + + scratch = -screened_rates(k_Ar38_He4_to_Ca42_reaclib)*Y(He4)*state.rho + + screened_rates(k_Ar38_p_to_He4_Cl35_derived)*Y(H1)*state.rho + + screened_rates(k_Ar38_to_He4_S34_derived); + jac.set(He4, Ar38, scratch); + + scratch = -screened_rates(k_K37_He4_to_Sc41_reaclib)*Y(He4)*state.rho + - screened_rates(k_K37_He4_to_p_Ca40_reaclib)*Y(He4)*state.rho + + screened_rates(k_K37_p_to_He4_Ar34_derived)*Y(H1)*state.rho + + screened_rates(k_K37_to_He4_Cl33_derived); + jac.set(He4, K37, scratch); + + scratch = -screened_rates(k_K39_He4_to_Sc43_reaclib)*Y(He4)*state.rho + - screened_rates(k_K39_He4_to_p_Ca42_derived)*Y(He4)*state.rho + + screened_rates(k_K39_p_to_He4_Ar36_reaclib)*Y(H1)*state.rho + + screened_rates(k_K39_to_He4_Cl35_derived); + jac.set(He4, K39, scratch); + + scratch = -screened_rates(k_Ca38_He4_to_Ti42_reaclib)*Y(He4)*state.rho + - screened_rates(k_Ca38_He4_to_p_Sc41_reaclib)*Y(He4)*state.rho + + screened_rates(k_Ca38_to_He4_Ar34_derived); + jac.set(He4, Ca38, scratch); + + scratch = -screened_rates(k_Ca40_He4_to_Ti44_reaclib)*Y(He4)*state.rho + - screened_rates(k_Ca40_He4_to_p_Sc43_derived)*Y(He4)*state.rho + + screened_rates(k_Ca40_p_to_He4_K37_derived)*Y(H1)*state.rho + + screened_rates(k_Ca40_to_He4_Ar36_derived); + jac.set(He4, Ca40, scratch); + + scratch = -screened_rates(k_Ca42_He4_to_Ti46_reaclib)*Y(He4)*state.rho + + screened_rates(k_Ca42_p_to_He4_K39_reaclib)*Y(H1)*state.rho + + screened_rates(k_Ca42_to_He4_Ar38_derived); + jac.set(He4, Ca42, scratch); + + scratch = -screened_rates(k_Sc41_He4_to_V45_reaclib)*Y(He4)*state.rho + - screened_rates(k_Sc41_He4_to_p_Ti44_reaclib)*Y(He4)*state.rho + + screened_rates(k_Sc41_p_to_He4_Ca38_derived)*Y(H1)*state.rho + + screened_rates(k_Sc41_to_He4_K37_derived); + jac.set(He4, Sc41, scratch); + + scratch = -screened_rates(k_Sc43_He4_to_V47_reaclib)*Y(He4)*state.rho + - screened_rates(k_Sc43_He4_to_p_Ti46_reaclib)*Y(He4)*state.rho + + screened_rates(k_Sc43_p_to_He4_Ca40_reaclib)*Y(H1)*state.rho + + screened_rates(k_Sc43_to_He4_K39_derived); + jac.set(He4, Sc43, scratch); + + scratch = -screened_rates(k_Ti42_He4_to_Cr46_reaclib)*Y(He4)*state.rho + - screened_rates(k_Ti42_He4_to_p_V45_reaclib)*Y(He4)*state.rho + + screened_rates(k_Ti42_to_He4_Ca38_derived); + jac.set(He4, Ti42, scratch); + + scratch = -screened_rates(k_Ti44_He4_to_Cr48_reaclib)*Y(He4)*state.rho + - screened_rates(k_Ti44_He4_to_p_V47_reaclib)*Y(He4)*state.rho + + screened_rates(k_Ti44_p_to_He4_Sc41_derived)*Y(H1)*state.rho + + screened_rates(k_Ti44_to_He4_Ca40_derived); + jac.set(He4, Ti44, scratch); + + scratch = -screened_rates(k_Ti46_He4_to_Cr50_reaclib)*Y(He4)*state.rho + - screened_rates(k_Ti46_He4_to_p_V49_derived)*Y(He4)*state.rho + + screened_rates(k_Ti46_p_to_He4_Sc43_derived)*Y(H1)*state.rho + + screened_rates(k_Ti46_to_He4_Ca42_derived); + jac.set(He4, Ti46, scratch); + + scratch = -screened_rates(k_V45_He4_to_Mn49_reaclib)*Y(He4)*state.rho + - screened_rates(k_V45_He4_to_p_Cr48_reaclib)*Y(He4)*state.rho + + screened_rates(k_V45_p_to_He4_Ti42_derived)*Y(H1)*state.rho + + screened_rates(k_V45_to_He4_Sc41_derived); + jac.set(He4, V45, scratch); + + scratch = -screened_rates(k_V47_He4_to_Mn51_reaclib)*Y(He4)*state.rho + - screened_rates(k_V47_He4_to_p_Cr50_reaclib)*Y(He4)*state.rho + + screened_rates(k_V47_p_to_He4_Ti44_derived)*Y(H1)*state.rho + + screened_rates(k_V47_to_He4_Sc43_derived); + jac.set(He4, V47, scratch); + + scratch = -screened_rates(k_V49_He4_to_Mn53_reaclib)*Y(He4)*state.rho + - screened_rates(k_V49_He4_to_p_Cr52_reaclib)*Y(He4)*state.rho + + screened_rates(k_V49_p_to_He4_Ti46_reaclib)*Y(H1)*state.rho; + jac.set(He4, V49, scratch); + + scratch = -screened_rates(k_Cr46_He4_to_Fe50_reaclib)*Y(He4)*state.rho + - screened_rates(k_Cr46_He4_to_p_Mn49_reaclib)*Y(He4)*state.rho + + screened_rates(k_Cr46_to_He4_Ti42_derived); + jac.set(He4, Cr46, scratch); + + scratch = -screened_rates(k_Cr48_He4_to_Fe52_reaclib)*Y(He4)*state.rho + - screened_rates(k_Cr48_He4_to_p_Mn51_reaclib)*Y(He4)*state.rho + + screened_rates(k_Cr48_p_to_He4_V45_derived)*Y(H1)*state.rho + + screened_rates(k_Cr48_to_He4_Ti44_derived); + jac.set(He4, Cr48, scratch); + + scratch = -screened_rates(k_Cr50_He4_to_Fe54_reaclib)*Y(He4)*state.rho + - screened_rates(k_Cr50_He4_to_p_Mn53_derived)*Y(He4)*state.rho + + screened_rates(k_Cr50_p_to_He4_V47_derived)*Y(H1)*state.rho + + screened_rates(k_Cr50_to_He4_Ti46_derived); + jac.set(He4, Cr50, scratch); + + scratch = -screened_rates(k_Cr52_He4_to_Fe56_reaclib)*Y(He4)*state.rho + + screened_rates(k_Cr52_p_to_He4_V49_derived)*Y(H1)*state.rho; + jac.set(He4, Cr52, scratch); + + scratch = -screened_rates(k_Mn49_He4_to_Co53_reaclib)*Y(He4)*state.rho + - screened_rates(k_Mn49_He4_to_p_Fe52_reaclib)*Y(He4)*state.rho + + screened_rates(k_Mn49_p_to_He4_Cr46_derived)*Y(H1)*state.rho + + screened_rates(k_Mn49_to_He4_V45_derived); + jac.set(He4, Mn49, scratch); + + scratch = -screened_rates(k_Mn51_He4_to_Co55_reaclib)*Y(He4)*state.rho + - screened_rates(k_Mn51_He4_to_p_Fe54_reaclib)*Y(He4)*state.rho + + screened_rates(k_Mn51_p_to_He4_Cr48_derived)*Y(H1)*state.rho + + screened_rates(k_Mn51_to_He4_V47_derived); + jac.set(He4, Mn51, scratch); + + scratch = -screened_rates(k_Mn53_He4_to_Co57_reaclib)*Y(He4)*state.rho + - screened_rates(k_Mn53_He4_to_n_Co56_derived)*Y(He4)*state.rho + - screened_rates(k_Mn53_He4_to_p_Fe56_reaclib)*Y(He4)*state.rho + + screened_rates(k_Mn53_p_to_He4_Cr50_reaclib)*Y(H1)*state.rho + + screened_rates(k_Mn53_to_He4_V49_derived); + jac.set(He4, Mn53, scratch); + + scratch = -screened_rates(k_Fe50_He4_to_p_Co53_reaclib)*Y(He4)*state.rho + + screened_rates(k_Fe50_to_He4_Cr46_derived); + jac.set(He4, Fe50, scratch); + + scratch = -screened_rates(k_Fe52_He4_to_Ni56_reaclib)*Y(He4)*state.rho + - screened_rates(k_Fe52_He4_to_p_Co55_reaclib)*Y(He4)*state.rho + + screened_rates(k_Fe52_p_to_He4_Mn49_derived)*Y(H1)*state.rho + + screened_rates(k_Fe52_to_He4_Cr48_derived); + jac.set(He4, Fe52, scratch); + + scratch = -screened_rates(k_Fe54_He4_to_Ni58_reaclib)*Y(He4)*state.rho + - screened_rates(k_Fe54_He4_to_p_Co57_derived)*Y(He4)*state.rho + + screened_rates(k_Fe54_p_to_He4_Mn51_derived)*Y(H1)*state.rho + + screened_rates(k_Fe54_to_He4_Cr50_derived); + jac.set(He4, Fe54, scratch); + + scratch = screened_rates(k_Fe56_p_to_He4_Mn53_derived)*Y(H1)*state.rho + + screened_rates(k_Fe56_to_He4_Cr52_derived); + jac.set(He4, Fe56, scratch); + + scratch = -screened_rates(k_Co53_He4_to_p_Ni56_reaclib)*Y(He4)*state.rho + + screened_rates(k_Co53_p_to_He4_Fe50_derived)*Y(H1)*state.rho + + screened_rates(k_Co53_to_He4_Mn49_derived); + jac.set(He4, Co53, scratch); + + scratch = -screened_rates(k_Co55_He4_to_Cu59_reaclib)*Y(He4)*state.rho + - screened_rates(k_Co55_He4_to_p_Ni58_reaclib)*Y(He4)*state.rho + + screened_rates(k_Co55_p_to_He4_Fe52_derived)*Y(H1)*state.rho + + screened_rates(k_Co55_to_He4_Mn51_derived); + jac.set(He4, Co55, scratch); + + scratch = -screened_rates(k_Co56_He4_to_n_Cu59_derived)*Y(He4)*state.rho + + screened_rates(k_Co56_n_to_He4_Mn53_reaclib)*Y(N)*state.rho; + jac.set(He4, Co56, scratch); + + scratch = screened_rates(k_Co57_p_to_He4_Fe54_reaclib)*Y(H1)*state.rho + + screened_rates(k_Co57_to_He4_Mn53_derived); + jac.set(He4, Co57, scratch); + + scratch = -screened_rates(k_Ni56_He4_to_p_Cu59_derived)*Y(He4)*state.rho + + screened_rates(k_Ni56_p_to_He4_Co53_derived)*Y(H1)*state.rho + + screened_rates(k_Ni56_to_He4_Fe52_derived); + jac.set(He4, Ni56, scratch); + + scratch = screened_rates(k_Ni58_p_to_He4_Co55_derived)*Y(H1)*state.rho + + screened_rates(k_Ni58_to_He4_Fe54_derived); + jac.set(He4, Ni58, scratch); + + scratch = screened_rates(k_Cu59_n_to_He4_Co56_reaclib)*Y(N)*state.rho + + screened_rates(k_Cu59_p_to_He4_Ni56_reaclib)*Y(H1)*state.rho + + screened_rates(k_Cu59_to_He4_Co55_derived); + jac.set(He4, Cu59, scratch); + + + // C12 row + + scratch = 2.0*screened_rates(k_Mg23_n_to_C12_C12_reaclib)*Y(Mg23)*state.rho + + screened_rates(k_Si27_n_to_C12_O16_reaclib)*Y(Si27)*state.rho; + jac.set(C12, N, scratch); + + scratch = screened_rates(k_Al27_p_to_C12_O16_derived)*Y(Al27)*state.rho + + screened_rates(k_P31_p_to_C12_Ne20_derived)*Y(P31)*state.rho; + jac.set(C12, H1, scratch); + + scratch = -screened_rates(k_C12_He4_to_O16_reaclib)*Y(C12)*state.rho + + 0.5*screened_rates(k_He4_He4_He4_to_C12_reaclib)*amrex::Math::powi<2>(Y(He4))*amrex::Math::powi<2>(state.rho) + + screened_rates(k_Mg24_He4_to_C12_O16_derived)*Y(Mg24)*state.rho + + 2.0*screened_rates(k_Ne20_He4_to_C12_C12_approx)*Y(Ne20)*state.rho + + screened_rates(k_Si28_He4_to_C12_Ne20_derived)*Y(Si28)*state.rho; + jac.set(C12, He4, scratch); + + scratch = -2.0*screened_rates(k_C12_C12_to_Mg24_approx)*Y(C12)*state.rho + - 2.0*screened_rates(k_C12_C12_to_Ne20_He4_approx)*Y(C12)*state.rho + - 2.0*screened_rates(k_C12_C12_to_n_Mg23_derived)*Y(C12)*state.rho + - screened_rates(k_C12_He4_to_O16_reaclib)*Y(He4)*state.rho + - screened_rates(k_C12_to_3He4_derived) + - screened_rates(k_Ne20_C12_to_He4_Si28_reaclib)*Y(Ne20)*state.rho + - screened_rates(k_Ne20_C12_to_p_P31_reaclib)*Y(Ne20)*state.rho + - screened_rates(k_O16_C12_to_He4_Mg24_reaclib)*Y(O16)*state.rho + - screened_rates(k_O16_C12_to_n_Si27_derived)*Y(O16)*state.rho + - screened_rates(k_O16_C12_to_p_Al27_reaclib)*Y(O16)*state.rho; + jac.set(C12, C12, scratch); + + scratch = -screened_rates(k_O16_C12_to_He4_Mg24_reaclib)*Y(C12)*state.rho + - screened_rates(k_O16_C12_to_n_Si27_derived)*Y(C12)*state.rho + - screened_rates(k_O16_C12_to_p_Al27_reaclib)*Y(C12)*state.rho + + screened_rates(k_O16_to_He4_C12_derived); + jac.set(C12, O16, scratch); + + scratch = -screened_rates(k_Ne20_C12_to_He4_Si28_reaclib)*Y(C12)*state.rho + - screened_rates(k_Ne20_C12_to_p_P31_reaclib)*Y(C12)*state.rho + + 2.0*screened_rates(k_Ne20_He4_to_C12_C12_approx)*Y(He4)*state.rho; + jac.set(C12, Ne20, scratch); + + scratch = 2.0*screened_rates(k_Mg23_n_to_C12_C12_reaclib)*Y(N)*state.rho; + jac.set(C12, Mg23, scratch); + + scratch = screened_rates(k_Mg24_He4_to_C12_O16_derived)*Y(He4)*state.rho + + 2.0*screened_rates(k_Mg24_to_C12_C12_approx); + jac.set(C12, Mg24, scratch); + + scratch = screened_rates(k_Al27_p_to_C12_O16_derived)*Y(H1)*state.rho; + jac.set(C12, Al27, scratch); + + scratch = screened_rates(k_Si27_n_to_C12_O16_reaclib)*Y(N)*state.rho; + jac.set(C12, Si27, scratch); + + scratch = screened_rates(k_Si28_He4_to_C12_Ne20_derived)*Y(He4)*state.rho; + jac.set(C12, Si28, scratch); + + jac.set(C12, Si30, 0.0); + + jac.set(C12, P29, 0.0); + + scratch = screened_rates(k_P31_p_to_C12_Ne20_derived)*Y(H1)*state.rho; + jac.set(C12, P31, scratch); + + jac.set(C12, S30, 0.0); + + jac.set(C12, S32, 0.0); + + jac.set(C12, S34, 0.0); + + jac.set(C12, Cl33, 0.0); + + jac.set(C12, Cl35, 0.0); + + jac.set(C12, Ar34, 0.0); + + jac.set(C12, Ar36, 0.0); + + jac.set(C12, Ar38, 0.0); + + jac.set(C12, K37, 0.0); + + jac.set(C12, K39, 0.0); + + jac.set(C12, Ca38, 0.0); + + jac.set(C12, Ca40, 0.0); + + jac.set(C12, Ca42, 0.0); + + jac.set(C12, Sc41, 0.0); + + jac.set(C12, Sc43, 0.0); + + jac.set(C12, Ti42, 0.0); + + jac.set(C12, Ti44, 0.0); + + jac.set(C12, Ti46, 0.0); + + jac.set(C12, V45, 0.0); + + jac.set(C12, V47, 0.0); + + jac.set(C12, V49, 0.0); + + jac.set(C12, Cr46, 0.0); + + jac.set(C12, Cr48, 0.0); + + jac.set(C12, Cr50, 0.0); + + jac.set(C12, Cr52, 0.0); + + jac.set(C12, Mn49, 0.0); + + jac.set(C12, Mn51, 0.0); + + jac.set(C12, Mn53, 0.0); + + jac.set(C12, Fe50, 0.0); + + jac.set(C12, Fe52, 0.0); + + jac.set(C12, Fe54, 0.0); + + jac.set(C12, Fe56, 0.0); + + jac.set(C12, Co53, 0.0); + + jac.set(C12, Co55, 0.0); + + jac.set(C12, Co56, 0.0); + + jac.set(C12, Co57, 0.0); + + jac.set(C12, Ni56, 0.0); + + jac.set(C12, Ni58, 0.0); + + jac.set(C12, Cu59, 0.0); + + + // O16 row + + scratch = screened_rates(k_Si27_n_to_C12_O16_reaclib)*Y(Si27)*state.rho; + jac.set(O16, N, scratch); + + scratch = screened_rates(k_Al27_p_to_C12_O16_derived)*Y(Al27)*state.rho + + 2.0*screened_rates(k_P31_p_to_O16_O16_derived)*Y(P31)*state.rho; + jac.set(O16, H1, scratch); + + scratch = screened_rates(k_C12_He4_to_O16_reaclib)*Y(C12)*state.rho + + screened_rates(k_Mg24_He4_to_C12_O16_derived)*Y(Mg24)*state.rho + - screened_rates(k_O16_He4_to_Ne20_reaclib)*Y(O16)*state.rho + + 2.0*screened_rates(k_Si28_He4_to_O16_O16_derived)*Y(Si28)*state.rho; + jac.set(O16, He4, scratch); + + scratch = screened_rates(k_C12_He4_to_O16_reaclib)*Y(He4)*state.rho + - screened_rates(k_O16_C12_to_He4_Mg24_reaclib)*Y(O16)*state.rho + - screened_rates(k_O16_C12_to_n_Si27_derived)*Y(O16)*state.rho + - screened_rates(k_O16_C12_to_p_Al27_reaclib)*Y(O16)*state.rho; + jac.set(O16, C12, scratch); + + scratch = -screened_rates(k_O16_C12_to_He4_Mg24_reaclib)*Y(C12)*state.rho + - screened_rates(k_O16_C12_to_n_Si27_derived)*Y(C12)*state.rho + - screened_rates(k_O16_C12_to_p_Al27_reaclib)*Y(C12)*state.rho + - screened_rates(k_O16_He4_to_Ne20_reaclib)*Y(He4)*state.rho + - 2.0*screened_rates(k_O16_O16_to_He4_Si28_reaclib)*Y(O16)*state.rho + - 2.0*screened_rates(k_O16_O16_to_p_P31_reaclib)*Y(O16)*state.rho + - screened_rates(k_O16_to_He4_C12_derived); + jac.set(O16, O16, scratch); + + scratch = screened_rates(k_Ne20_to_He4_O16_derived); + jac.set(O16, Ne20, scratch); + + jac.set(O16, Mg23, 0.0); + + scratch = screened_rates(k_Mg24_He4_to_C12_O16_derived)*Y(He4)*state.rho; + jac.set(O16, Mg24, scratch); + + scratch = screened_rates(k_Al27_p_to_C12_O16_derived)*Y(H1)*state.rho; + jac.set(O16, Al27, scratch); + + scratch = screened_rates(k_Si27_n_to_C12_O16_reaclib)*Y(N)*state.rho; + jac.set(O16, Si27, scratch); + + scratch = 2.0*screened_rates(k_Si28_He4_to_O16_O16_derived)*Y(He4)*state.rho; + jac.set(O16, Si28, scratch); + + jac.set(O16, Si30, 0.0); + + jac.set(O16, P29, 0.0); + + scratch = 2.0*screened_rates(k_P31_p_to_O16_O16_derived)*Y(H1)*state.rho; + jac.set(O16, P31, scratch); + + jac.set(O16, S30, 0.0); + + jac.set(O16, S32, 0.0); + + jac.set(O16, S34, 0.0); + + jac.set(O16, Cl33, 0.0); + + jac.set(O16, Cl35, 0.0); + + jac.set(O16, Ar34, 0.0); + + jac.set(O16, Ar36, 0.0); + + jac.set(O16, Ar38, 0.0); + + jac.set(O16, K37, 0.0); + + jac.set(O16, K39, 0.0); + + jac.set(O16, Ca38, 0.0); + + jac.set(O16, Ca40, 0.0); + + jac.set(O16, Ca42, 0.0); + + jac.set(O16, Sc41, 0.0); + + jac.set(O16, Sc43, 0.0); + + jac.set(O16, Ti42, 0.0); + + jac.set(O16, Ti44, 0.0); + + jac.set(O16, Ti46, 0.0); + + jac.set(O16, V45, 0.0); + + jac.set(O16, V47, 0.0); + + jac.set(O16, V49, 0.0); + + jac.set(O16, Cr46, 0.0); + + jac.set(O16, Cr48, 0.0); + + jac.set(O16, Cr50, 0.0); + + jac.set(O16, Cr52, 0.0); + + jac.set(O16, Mn49, 0.0); + + jac.set(O16, Mn51, 0.0); + + jac.set(O16, Mn53, 0.0); + + jac.set(O16, Fe50, 0.0); + + jac.set(O16, Fe52, 0.0); + + jac.set(O16, Fe54, 0.0); + + jac.set(O16, Fe56, 0.0); + + jac.set(O16, Co53, 0.0); + + jac.set(O16, Co55, 0.0); + + jac.set(O16, Co56, 0.0); + + jac.set(O16, Co57, 0.0); + + jac.set(O16, Ni56, 0.0); + + jac.set(O16, Ni58, 0.0); + + jac.set(O16, Cu59, 0.0); + + + // Ne20 row + + scratch = screened_rates(k_Mg23_n_to_He4_Ne20_reaclib)*Y(Mg23)*state.rho; + jac.set(Ne20, N, scratch); + + scratch = screened_rates(k_P31_p_to_C12_Ne20_derived)*Y(P31)*state.rho; + jac.set(Ne20, H1, scratch); + + scratch = -screened_rates(k_Ne20_He4_to_C12_C12_approx)*Y(Ne20)*state.rho + - screened_rates(k_Ne20_He4_to_Mg24_approx)*Y(Ne20)*state.rho + - screened_rates(k_Ne20_He4_to_n_Mg23_derived)*Y(Ne20)*state.rho + + screened_rates(k_O16_He4_to_Ne20_reaclib)*Y(O16)*state.rho + + screened_rates(k_Si28_He4_to_C12_Ne20_derived)*Y(Si28)*state.rho; + jac.set(Ne20, He4, scratch); + + scratch = 1.0*screened_rates(k_C12_C12_to_Ne20_He4_approx)*Y(C12)*state.rho + - screened_rates(k_Ne20_C12_to_He4_Si28_reaclib)*Y(Ne20)*state.rho + - screened_rates(k_Ne20_C12_to_p_P31_reaclib)*Y(Ne20)*state.rho; + jac.set(Ne20, C12, scratch); + + scratch = screened_rates(k_O16_He4_to_Ne20_reaclib)*Y(He4)*state.rho; + jac.set(Ne20, O16, scratch); + + scratch = -screened_rates(k_Ne20_C12_to_He4_Si28_reaclib)*Y(C12)*state.rho + - screened_rates(k_Ne20_C12_to_p_P31_reaclib)*Y(C12)*state.rho + - screened_rates(k_Ne20_He4_to_C12_C12_approx)*Y(He4)*state.rho + - screened_rates(k_Ne20_He4_to_Mg24_approx)*Y(He4)*state.rho + - screened_rates(k_Ne20_He4_to_n_Mg23_derived)*Y(He4)*state.rho + - screened_rates(k_Ne20_to_He4_O16_derived); + jac.set(Ne20, Ne20, scratch); + + scratch = screened_rates(k_Mg23_n_to_He4_Ne20_reaclib)*Y(N)*state.rho; + jac.set(Ne20, Mg23, scratch); + + scratch = screened_rates(k_Mg24_to_Ne20_He4_approx); + jac.set(Ne20, Mg24, scratch); + + jac.set(Ne20, Al27, 0.0); + + jac.set(Ne20, Si27, 0.0); + + scratch = screened_rates(k_Si28_He4_to_C12_Ne20_derived)*Y(He4)*state.rho; + jac.set(Ne20, Si28, scratch); + + jac.set(Ne20, Si30, 0.0); + + jac.set(Ne20, P29, 0.0); + + scratch = screened_rates(k_P31_p_to_C12_Ne20_derived)*Y(H1)*state.rho; + jac.set(Ne20, P31, scratch); + + jac.set(Ne20, S30, 0.0); + + jac.set(Ne20, S32, 0.0); + + jac.set(Ne20, S34, 0.0); + + jac.set(Ne20, Cl33, 0.0); + + jac.set(Ne20, Cl35, 0.0); + + jac.set(Ne20, Ar34, 0.0); + + jac.set(Ne20, Ar36, 0.0); + + jac.set(Ne20, Ar38, 0.0); + + jac.set(Ne20, K37, 0.0); + + jac.set(Ne20, K39, 0.0); + + jac.set(Ne20, Ca38, 0.0); + + jac.set(Ne20, Ca40, 0.0); + + jac.set(Ne20, Ca42, 0.0); + + jac.set(Ne20, Sc41, 0.0); + + jac.set(Ne20, Sc43, 0.0); + + jac.set(Ne20, Ti42, 0.0); + + jac.set(Ne20, Ti44, 0.0); + + jac.set(Ne20, Ti46, 0.0); + + jac.set(Ne20, V45, 0.0); + + jac.set(Ne20, V47, 0.0); + + jac.set(Ne20, V49, 0.0); + + jac.set(Ne20, Cr46, 0.0); + + jac.set(Ne20, Cr48, 0.0); + + jac.set(Ne20, Cr50, 0.0); + + jac.set(Ne20, Cr52, 0.0); + + jac.set(Ne20, Mn49, 0.0); + + jac.set(Ne20, Mn51, 0.0); + + jac.set(Ne20, Mn53, 0.0); + + jac.set(Ne20, Fe50, 0.0); + + jac.set(Ne20, Fe52, 0.0); + + jac.set(Ne20, Fe54, 0.0); + + jac.set(Ne20, Fe56, 0.0); + + jac.set(Ne20, Co53, 0.0); + + jac.set(Ne20, Co55, 0.0); + + jac.set(Ne20, Co56, 0.0); + + jac.set(Ne20, Co57, 0.0); + + jac.set(Ne20, Ni56, 0.0); + + jac.set(Ne20, Ni58, 0.0); + + jac.set(Ne20, Cu59, 0.0); + + + // Mg23 row + + scratch = -screened_rates(k_Mg23_n_to_C12_C12_reaclib)*Y(Mg23)*state.rho + - screened_rates(k_Mg23_n_to_He4_Ne20_reaclib)*Y(Mg23)*state.rho + - screened_rates(k_Mg23_n_to_Mg24_reaclib)*Y(Mg23)*state.rho; + jac.set(Mg23, N, scratch); + + jac.set(Mg23, H1, 0.0); + + scratch = -screened_rates(k_Mg23_He4_to_Si27_reaclib)*Y(Mg23)*state.rho + + screened_rates(k_Ne20_He4_to_n_Mg23_derived)*Y(Ne20)*state.rho; + jac.set(Mg23, He4, scratch); + + scratch = 1.0*screened_rates(k_C12_C12_to_n_Mg23_derived)*Y(C12)*state.rho; + jac.set(Mg23, C12, scratch); + + jac.set(Mg23, O16, 0.0); + + scratch = screened_rates(k_Ne20_He4_to_n_Mg23_derived)*Y(He4)*state.rho; + jac.set(Mg23, Ne20, scratch); + + scratch = -screened_rates(k_Mg23_He4_to_Si27_reaclib)*Y(He4)*state.rho + - screened_rates(k_Mg23_n_to_C12_C12_reaclib)*Y(N)*state.rho + - screened_rates(k_Mg23_n_to_He4_Ne20_reaclib)*Y(N)*state.rho + - screened_rates(k_Mg23_n_to_Mg24_reaclib)*Y(N)*state.rho; + jac.set(Mg23, Mg23, scratch); + + scratch = screened_rates(k_Mg24_to_n_Mg23_derived); + jac.set(Mg23, Mg24, scratch); + + jac.set(Mg23, Al27, 0.0); + + scratch = screened_rates(k_Si27_to_He4_Mg23_derived); + jac.set(Mg23, Si27, scratch); + + jac.set(Mg23, Si28, 0.0); + + jac.set(Mg23, Si30, 0.0); + + jac.set(Mg23, P29, 0.0); + + jac.set(Mg23, P31, 0.0); + + jac.set(Mg23, S30, 0.0); + + jac.set(Mg23, S32, 0.0); + + jac.set(Mg23, S34, 0.0); + + jac.set(Mg23, Cl33, 0.0); + + jac.set(Mg23, Cl35, 0.0); + + jac.set(Mg23, Ar34, 0.0); + + jac.set(Mg23, Ar36, 0.0); + + jac.set(Mg23, Ar38, 0.0); + + jac.set(Mg23, K37, 0.0); + + jac.set(Mg23, K39, 0.0); + + jac.set(Mg23, Ca38, 0.0); + + jac.set(Mg23, Ca40, 0.0); + + jac.set(Mg23, Ca42, 0.0); + + jac.set(Mg23, Sc41, 0.0); + + jac.set(Mg23, Sc43, 0.0); + + jac.set(Mg23, Ti42, 0.0); + + jac.set(Mg23, Ti44, 0.0); + + jac.set(Mg23, Ti46, 0.0); + + jac.set(Mg23, V45, 0.0); + + jac.set(Mg23, V47, 0.0); + + jac.set(Mg23, V49, 0.0); + + jac.set(Mg23, Cr46, 0.0); + + jac.set(Mg23, Cr48, 0.0); + + jac.set(Mg23, Cr50, 0.0); + + jac.set(Mg23, Cr52, 0.0); + + jac.set(Mg23, Mn49, 0.0); + + jac.set(Mg23, Mn51, 0.0); + + jac.set(Mg23, Mn53, 0.0); + + jac.set(Mg23, Fe50, 0.0); + + jac.set(Mg23, Fe52, 0.0); + + jac.set(Mg23, Fe54, 0.0); + + jac.set(Mg23, Fe56, 0.0); + + jac.set(Mg23, Co53, 0.0); + + jac.set(Mg23, Co55, 0.0); + + jac.set(Mg23, Co56, 0.0); + + jac.set(Mg23, Co57, 0.0); + + jac.set(Mg23, Ni56, 0.0); + + jac.set(Mg23, Ni58, 0.0); + + jac.set(Mg23, Cu59, 0.0); + + + // Mg24 row + + scratch = screened_rates(k_Mg23_n_to_Mg24_reaclib)*Y(Mg23)*state.rho + + screened_rates(k_Si27_n_to_He4_Mg24_reaclib)*Y(Si27)*state.rho; + jac.set(Mg24, N, scratch); + + scratch = screened_rates(k_Al27_p_to_He4_Mg24_reaclib)*Y(Al27)*state.rho; + jac.set(Mg24, H1, scratch); + + scratch = -screened_rates(k_Mg24_He4_to_C12_O16_derived)*Y(Mg24)*state.rho + - screened_rates(k_Mg24_He4_to_Si28_reaclib)*Y(Mg24)*state.rho + - screened_rates(k_Mg24_He4_to_n_Si27_derived)*Y(Mg24)*state.rho + - screened_rates(k_Mg24_He4_to_p_Al27_derived)*Y(Mg24)*state.rho + + screened_rates(k_Ne20_He4_to_Mg24_approx)*Y(Ne20)*state.rho; + jac.set(Mg24, He4, scratch); + + scratch = 1.0*screened_rates(k_C12_C12_to_Mg24_approx)*Y(C12)*state.rho + + screened_rates(k_O16_C12_to_He4_Mg24_reaclib)*Y(O16)*state.rho; + jac.set(Mg24, C12, scratch); + + scratch = screened_rates(k_O16_C12_to_He4_Mg24_reaclib)*Y(C12)*state.rho; + jac.set(Mg24, O16, scratch); + + scratch = screened_rates(k_Ne20_He4_to_Mg24_approx)*Y(He4)*state.rho; + jac.set(Mg24, Ne20, scratch); + + scratch = screened_rates(k_Mg23_n_to_Mg24_reaclib)*Y(N)*state.rho; + jac.set(Mg24, Mg23, scratch); + + scratch = -screened_rates(k_Mg24_He4_to_C12_O16_derived)*Y(He4)*state.rho + - screened_rates(k_Mg24_He4_to_Si28_reaclib)*Y(He4)*state.rho + - screened_rates(k_Mg24_He4_to_n_Si27_derived)*Y(He4)*state.rho + - screened_rates(k_Mg24_He4_to_p_Al27_derived)*Y(He4)*state.rho + - screened_rates(k_Mg24_to_C12_C12_approx) + - screened_rates(k_Mg24_to_Ne20_He4_approx) + - screened_rates(k_Mg24_to_n_Mg23_derived); + jac.set(Mg24, Mg24, scratch); + + scratch = screened_rates(k_Al27_p_to_He4_Mg24_reaclib)*Y(H1)*state.rho; + jac.set(Mg24, Al27, scratch); + + scratch = screened_rates(k_Si27_n_to_He4_Mg24_reaclib)*Y(N)*state.rho; + jac.set(Mg24, Si27, scratch); + + scratch = screened_rates(k_Si28_to_He4_Mg24_derived); + jac.set(Mg24, Si28, scratch); + + jac.set(Mg24, Si30, 0.0); + + jac.set(Mg24, P29, 0.0); + + jac.set(Mg24, P31, 0.0); + + jac.set(Mg24, S30, 0.0); + + jac.set(Mg24, S32, 0.0); + + jac.set(Mg24, S34, 0.0); + + jac.set(Mg24, Cl33, 0.0); + + jac.set(Mg24, Cl35, 0.0); + + jac.set(Mg24, Ar34, 0.0); + + jac.set(Mg24, Ar36, 0.0); + + jac.set(Mg24, Ar38, 0.0); + + jac.set(Mg24, K37, 0.0); + + jac.set(Mg24, K39, 0.0); + + jac.set(Mg24, Ca38, 0.0); + + jac.set(Mg24, Ca40, 0.0); + + jac.set(Mg24, Ca42, 0.0); + + jac.set(Mg24, Sc41, 0.0); + + jac.set(Mg24, Sc43, 0.0); + + jac.set(Mg24, Ti42, 0.0); + + jac.set(Mg24, Ti44, 0.0); + + jac.set(Mg24, Ti46, 0.0); + + jac.set(Mg24, V45, 0.0); + + jac.set(Mg24, V47, 0.0); + + jac.set(Mg24, V49, 0.0); + + jac.set(Mg24, Cr46, 0.0); + + jac.set(Mg24, Cr48, 0.0); + + jac.set(Mg24, Cr50, 0.0); + + jac.set(Mg24, Cr52, 0.0); + + jac.set(Mg24, Mn49, 0.0); + + jac.set(Mg24, Mn51, 0.0); + + jac.set(Mg24, Mn53, 0.0); + + jac.set(Mg24, Fe50, 0.0); + + jac.set(Mg24, Fe52, 0.0); + + jac.set(Mg24, Fe54, 0.0); + + jac.set(Mg24, Fe56, 0.0); + + jac.set(Mg24, Co53, 0.0); + + jac.set(Mg24, Co55, 0.0); + + jac.set(Mg24, Co56, 0.0); + + jac.set(Mg24, Co57, 0.0); + + jac.set(Mg24, Ni56, 0.0); + + jac.set(Mg24, Ni58, 0.0); + + jac.set(Mg24, Cu59, 0.0); + + + // Al27 row + + scratch = screened_rates(k_Si27_n_to_p_Al27_reaclib)*Y(Si27)*state.rho; + jac.set(Al27, N, scratch); + + scratch = -screened_rates(k_Al27_p_to_C12_O16_derived)*Y(Al27)*state.rho + - screened_rates(k_Al27_p_to_He4_Mg24_reaclib)*Y(Al27)*state.rho + - screened_rates(k_Al27_p_to_Si28_reaclib)*Y(Al27)*state.rho + - screened_rates(k_Al27_p_to_n_Si27_derived)*Y(Al27)*state.rho + + screened_rates(k_Si30_p_to_He4_Al27_derived)*Y(Si30)*state.rho; + jac.set(Al27, H1, scratch); + + scratch = -screened_rates(k_Al27_He4_to_P31_reaclib)*Y(Al27)*state.rho + - screened_rates(k_Al27_He4_to_p_Si30_reaclib)*Y(Al27)*state.rho + + screened_rates(k_Mg24_He4_to_p_Al27_derived)*Y(Mg24)*state.rho; + jac.set(Al27, He4, scratch); + + scratch = screened_rates(k_O16_C12_to_p_Al27_reaclib)*Y(O16)*state.rho; + jac.set(Al27, C12, scratch); + + scratch = screened_rates(k_O16_C12_to_p_Al27_reaclib)*Y(C12)*state.rho; + jac.set(Al27, O16, scratch); + + jac.set(Al27, Ne20, 0.0); + + jac.set(Al27, Mg23, 0.0); + + scratch = screened_rates(k_Mg24_He4_to_p_Al27_derived)*Y(He4)*state.rho; + jac.set(Al27, Mg24, scratch); + + scratch = -screened_rates(k_Al27_He4_to_P31_reaclib)*Y(He4)*state.rho + - screened_rates(k_Al27_He4_to_p_Si30_reaclib)*Y(He4)*state.rho + - screened_rates(k_Al27_p_to_C12_O16_derived)*Y(H1)*state.rho + - screened_rates(k_Al27_p_to_He4_Mg24_reaclib)*Y(H1)*state.rho + - screened_rates(k_Al27_p_to_Si28_reaclib)*Y(H1)*state.rho + - screened_rates(k_Al27_p_to_n_Si27_derived)*Y(H1)*state.rho + - screened_rates(k_Al27_to_Si27_beta_neg_weaktab); + jac.set(Al27, Al27, scratch); + + scratch = screened_rates(k_Si27_n_to_p_Al27_reaclib)*Y(N)*state.rho + + screened_rates(k_Si27_to_Al27_electron_capture_weaktab); + jac.set(Al27, Si27, scratch); + + scratch = screened_rates(k_Si28_to_p_Al27_derived); + jac.set(Al27, Si28, scratch); + + scratch = screened_rates(k_Si30_p_to_He4_Al27_derived)*Y(H1)*state.rho; + jac.set(Al27, Si30, scratch); + + jac.set(Al27, P29, 0.0); + + scratch = screened_rates(k_P31_to_He4_Al27_derived); + jac.set(Al27, P31, scratch); + + jac.set(Al27, S30, 0.0); + + jac.set(Al27, S32, 0.0); + + jac.set(Al27, S34, 0.0); + + jac.set(Al27, Cl33, 0.0); + + jac.set(Al27, Cl35, 0.0); + + jac.set(Al27, Ar34, 0.0); + + jac.set(Al27, Ar36, 0.0); + + jac.set(Al27, Ar38, 0.0); + + jac.set(Al27, K37, 0.0); + + jac.set(Al27, K39, 0.0); + + jac.set(Al27, Ca38, 0.0); + + jac.set(Al27, Ca40, 0.0); + + jac.set(Al27, Ca42, 0.0); + + jac.set(Al27, Sc41, 0.0); + + jac.set(Al27, Sc43, 0.0); + + jac.set(Al27, Ti42, 0.0); + + jac.set(Al27, Ti44, 0.0); + + jac.set(Al27, Ti46, 0.0); + + jac.set(Al27, V45, 0.0); + + jac.set(Al27, V47, 0.0); + + jac.set(Al27, V49, 0.0); + + jac.set(Al27, Cr46, 0.0); + + jac.set(Al27, Cr48, 0.0); + + jac.set(Al27, Cr50, 0.0); + + jac.set(Al27, Cr52, 0.0); + + jac.set(Al27, Mn49, 0.0); + + jac.set(Al27, Mn51, 0.0); + + jac.set(Al27, Mn53, 0.0); + + jac.set(Al27, Fe50, 0.0); + + jac.set(Al27, Fe52, 0.0); + + jac.set(Al27, Fe54, 0.0); + + jac.set(Al27, Fe56, 0.0); + + jac.set(Al27, Co53, 0.0); + + jac.set(Al27, Co55, 0.0); + + jac.set(Al27, Co56, 0.0); + + jac.set(Al27, Co57, 0.0); + + jac.set(Al27, Ni56, 0.0); + + jac.set(Al27, Ni58, 0.0); + + jac.set(Al27, Cu59, 0.0); + + + // Si27 row + + scratch = screened_rates(k_S30_n_to_He4_Si27_reaclib)*Y(S30)*state.rho + - screened_rates(k_Si27_n_to_C12_O16_reaclib)*Y(Si27)*state.rho + - screened_rates(k_Si27_n_to_He4_Mg24_reaclib)*Y(Si27)*state.rho + - screened_rates(k_Si27_n_to_Si28_reaclib)*Y(Si27)*state.rho + - screened_rates(k_Si27_n_to_p_Al27_reaclib)*Y(Si27)*state.rho; + jac.set(Si27, N, scratch); + + scratch = screened_rates(k_Al27_p_to_n_Si27_derived)*Y(Al27)*state.rho; + jac.set(Si27, H1, scratch); + + scratch = screened_rates(k_Mg23_He4_to_Si27_reaclib)*Y(Mg23)*state.rho + + screened_rates(k_Mg24_He4_to_n_Si27_derived)*Y(Mg24)*state.rho + - screened_rates(k_Si27_He4_to_n_S30_derived)*Y(Si27)*state.rho; + jac.set(Si27, He4, scratch); + + scratch = screened_rates(k_O16_C12_to_n_Si27_derived)*Y(O16)*state.rho; + jac.set(Si27, C12, scratch); + + scratch = screened_rates(k_O16_C12_to_n_Si27_derived)*Y(C12)*state.rho; + jac.set(Si27, O16, scratch); + + jac.set(Si27, Ne20, 0.0); + + scratch = screened_rates(k_Mg23_He4_to_Si27_reaclib)*Y(He4)*state.rho; + jac.set(Si27, Mg23, scratch); + + scratch = screened_rates(k_Mg24_He4_to_n_Si27_derived)*Y(He4)*state.rho; + jac.set(Si27, Mg24, scratch); + + scratch = screened_rates(k_Al27_p_to_n_Si27_derived)*Y(H1)*state.rho + + screened_rates(k_Al27_to_Si27_beta_neg_weaktab); + jac.set(Si27, Al27, scratch); + + scratch = -screened_rates(k_Si27_He4_to_n_S30_derived)*Y(He4)*state.rho + - screened_rates(k_Si27_n_to_C12_O16_reaclib)*Y(N)*state.rho + - screened_rates(k_Si27_n_to_He4_Mg24_reaclib)*Y(N)*state.rho + - screened_rates(k_Si27_n_to_Si28_reaclib)*Y(N)*state.rho + - screened_rates(k_Si27_n_to_p_Al27_reaclib)*Y(N)*state.rho + - screened_rates(k_Si27_to_Al27_electron_capture_weaktab) + - screened_rates(k_Si27_to_He4_Mg23_derived); + jac.set(Si27, Si27, scratch); + + scratch = screened_rates(k_Si28_to_n_Si27_derived); + jac.set(Si27, Si28, scratch); + + jac.set(Si27, Si30, 0.0); + + jac.set(Si27, P29, 0.0); + + jac.set(Si27, P31, 0.0); + + scratch = screened_rates(k_S30_n_to_He4_Si27_reaclib)*Y(N)*state.rho; + jac.set(Si27, S30, scratch); + + jac.set(Si27, S32, 0.0); + + jac.set(Si27, S34, 0.0); + + jac.set(Si27, Cl33, 0.0); + + jac.set(Si27, Cl35, 0.0); + + jac.set(Si27, Ar34, 0.0); + + jac.set(Si27, Ar36, 0.0); + + jac.set(Si27, Ar38, 0.0); + + jac.set(Si27, K37, 0.0); + + jac.set(Si27, K39, 0.0); + + jac.set(Si27, Ca38, 0.0); + + jac.set(Si27, Ca40, 0.0); + + jac.set(Si27, Ca42, 0.0); + + jac.set(Si27, Sc41, 0.0); + + jac.set(Si27, Sc43, 0.0); + + jac.set(Si27, Ti42, 0.0); + + jac.set(Si27, Ti44, 0.0); + + jac.set(Si27, Ti46, 0.0); + + jac.set(Si27, V45, 0.0); + + jac.set(Si27, V47, 0.0); + + jac.set(Si27, V49, 0.0); + + jac.set(Si27, Cr46, 0.0); + + jac.set(Si27, Cr48, 0.0); + + jac.set(Si27, Cr50, 0.0); + + jac.set(Si27, Cr52, 0.0); + + jac.set(Si27, Mn49, 0.0); + + jac.set(Si27, Mn51, 0.0); + + jac.set(Si27, Mn53, 0.0); + + jac.set(Si27, Fe50, 0.0); + + jac.set(Si27, Fe52, 0.0); + + jac.set(Si27, Fe54, 0.0); + + jac.set(Si27, Fe56, 0.0); + + jac.set(Si27, Co53, 0.0); + + jac.set(Si27, Co55, 0.0); + + jac.set(Si27, Co56, 0.0); + + jac.set(Si27, Co57, 0.0); + + jac.set(Si27, Ni56, 0.0); + + jac.set(Si27, Ni58, 0.0); + + jac.set(Si27, Cu59, 0.0); + + + // Si28 row + + scratch = screened_rates(k_Si27_n_to_Si28_reaclib)*Y(Si27)*state.rho + - 1.0*screened_rates(k_Si28_n_n_to_Si30_approx)*Y(Si28)*Y(N)*amrex::Math::powi<2>(state.rho) + - 0.5*Y(Si28)*amrex::Math::powi<2>(Y(N))*amrex::Math::powi<2>(state.rho)*rate_eval.drate_Si28_n_n_to_Si30_approx_dYN + + Y(Si30)*rate_eval.drate_Si30_to_Si28_n_n_approx_dYN; + jac.set(Si28, N, scratch); + + scratch = screened_rates(k_Al27_p_to_Si28_reaclib)*Y(Al27)*state.rho + + screened_rates(k_P31_p_to_He4_Si28_reaclib)*Y(P31)*state.rho + - screened_rates(k_Si28_p_to_P29_reaclib)*Y(Si28)*state.rho; + jac.set(Si28, H1, scratch); + + scratch = screened_rates(k_Mg24_He4_to_Si28_reaclib)*Y(Mg24)*state.rho + - screened_rates(k_Si28_He4_to_C12_Ne20_derived)*Y(Si28)*state.rho + - screened_rates(k_Si28_He4_to_O16_O16_derived)*Y(Si28)*state.rho + - screened_rates(k_Si28_He4_to_S32_reaclib)*Y(Si28)*state.rho + - screened_rates(k_Si28_He4_to_p_P31_derived)*Y(Si28)*state.rho; + jac.set(Si28, He4, scratch); + + scratch = screened_rates(k_Ne20_C12_to_He4_Si28_reaclib)*Y(Ne20)*state.rho; + jac.set(Si28, C12, scratch); + + scratch = 1.0*screened_rates(k_O16_O16_to_He4_Si28_reaclib)*Y(O16)*state.rho; + jac.set(Si28, O16, scratch); + + scratch = screened_rates(k_Ne20_C12_to_He4_Si28_reaclib)*Y(C12)*state.rho; + jac.set(Si28, Ne20, scratch); + + jac.set(Si28, Mg23, 0.0); + + scratch = screened_rates(k_Mg24_He4_to_Si28_reaclib)*Y(He4)*state.rho; + jac.set(Si28, Mg24, scratch); + + scratch = screened_rates(k_Al27_p_to_Si28_reaclib)*Y(H1)*state.rho; + jac.set(Si28, Al27, scratch); + + scratch = screened_rates(k_Si27_n_to_Si28_reaclib)*Y(N)*state.rho; + jac.set(Si28, Si27, scratch); + + scratch = -screened_rates(k_Si28_He4_to_C12_Ne20_derived)*Y(He4)*state.rho + - screened_rates(k_Si28_He4_to_O16_O16_derived)*Y(He4)*state.rho + - screened_rates(k_Si28_He4_to_S32_reaclib)*Y(He4)*state.rho + - screened_rates(k_Si28_He4_to_p_P31_derived)*Y(He4)*state.rho + - 0.5*screened_rates(k_Si28_n_n_to_Si30_approx)*amrex::Math::powi<2>(Y(N))*amrex::Math::powi<2>(state.rho) + - screened_rates(k_Si28_p_to_P29_reaclib)*Y(H1)*state.rho + - screened_rates(k_Si28_to_He4_Mg24_derived) + - screened_rates(k_Si28_to_n_Si27_derived) + - screened_rates(k_Si28_to_p_Al27_derived); + jac.set(Si28, Si28, scratch); + + scratch = screened_rates(k_Si30_to_Si28_n_n_approx); + jac.set(Si28, Si30, scratch); + + scratch = screened_rates(k_P29_to_p_Si28_derived); + jac.set(Si28, P29, scratch); + + scratch = screened_rates(k_P31_p_to_He4_Si28_reaclib)*Y(H1)*state.rho; + jac.set(Si28, P31, scratch); + + jac.set(Si28, S30, 0.0); + + scratch = screened_rates(k_S32_to_He4_Si28_derived); + jac.set(Si28, S32, scratch); + + jac.set(Si28, S34, 0.0); + + jac.set(Si28, Cl33, 0.0); + + jac.set(Si28, Cl35, 0.0); + + jac.set(Si28, Ar34, 0.0); + + jac.set(Si28, Ar36, 0.0); + + jac.set(Si28, Ar38, 0.0); + + jac.set(Si28, K37, 0.0); + + jac.set(Si28, K39, 0.0); + + jac.set(Si28, Ca38, 0.0); + + jac.set(Si28, Ca40, 0.0); + + jac.set(Si28, Ca42, 0.0); + + jac.set(Si28, Sc41, 0.0); + + jac.set(Si28, Sc43, 0.0); + + jac.set(Si28, Ti42, 0.0); + + jac.set(Si28, Ti44, 0.0); + + jac.set(Si28, Ti46, 0.0); + + jac.set(Si28, V45, 0.0); + + jac.set(Si28, V47, 0.0); + + jac.set(Si28, V49, 0.0); + + jac.set(Si28, Cr46, 0.0); + + jac.set(Si28, Cr48, 0.0); + + jac.set(Si28, Cr50, 0.0); + + jac.set(Si28, Cr52, 0.0); + + jac.set(Si28, Mn49, 0.0); + + jac.set(Si28, Mn51, 0.0); + + jac.set(Si28, Mn53, 0.0); + + jac.set(Si28, Fe50, 0.0); + + jac.set(Si28, Fe52, 0.0); + + jac.set(Si28, Fe54, 0.0); + + jac.set(Si28, Fe56, 0.0); + + jac.set(Si28, Co53, 0.0); + + jac.set(Si28, Co55, 0.0); + + jac.set(Si28, Co56, 0.0); + + jac.set(Si28, Co57, 0.0); + + jac.set(Si28, Ni56, 0.0); + + jac.set(Si28, Ni58, 0.0); + + jac.set(Si28, Cu59, 0.0); + + + // Si30 row + + scratch = 1.0*screened_rates(k_Si28_n_n_to_Si30_approx)*Y(Si28)*Y(N)*amrex::Math::powi<2>(state.rho) + + 0.5*Y(Si28)*amrex::Math::powi<2>(Y(N))*amrex::Math::powi<2>(state.rho)*rate_eval.drate_Si28_n_n_to_Si30_approx_dYN + - Y(Si30)*rate_eval.drate_Si30_to_Si28_n_n_approx_dYN; + jac.set(Si30, N, scratch); + + scratch = -screened_rates(k_Si30_p_to_He4_Al27_derived)*Y(Si30)*state.rho + - screened_rates(k_Si30_p_to_P31_reaclib)*Y(Si30)*state.rho; + jac.set(Si30, H1, scratch); + + scratch = screened_rates(k_Al27_He4_to_p_Si30_reaclib)*Y(Al27)*state.rho + - screened_rates(k_Si30_He4_to_S34_reaclib)*Y(Si30)*state.rho; + jac.set(Si30, He4, scratch); + + jac.set(Si30, C12, 0.0); + + jac.set(Si30, O16, 0.0); + + jac.set(Si30, Ne20, 0.0); + + jac.set(Si30, Mg23, 0.0); + + jac.set(Si30, Mg24, 0.0); + + scratch = screened_rates(k_Al27_He4_to_p_Si30_reaclib)*Y(He4)*state.rho; + jac.set(Si30, Al27, scratch); + + jac.set(Si30, Si27, 0.0); + + scratch = 0.5*screened_rates(k_Si28_n_n_to_Si30_approx)*amrex::Math::powi<2>(Y(N))*amrex::Math::powi<2>(state.rho); + jac.set(Si30, Si28, scratch); + + scratch = -screened_rates(k_Si30_He4_to_S34_reaclib)*Y(He4)*state.rho + - screened_rates(k_Si30_p_to_He4_Al27_derived)*Y(H1)*state.rho + - screened_rates(k_Si30_p_to_P31_reaclib)*Y(H1)*state.rho + - screened_rates(k_Si30_to_Si28_n_n_approx); + jac.set(Si30, Si30, scratch); + + jac.set(Si30, P29, 0.0); + + scratch = screened_rates(k_P31_to_p_Si30_derived); + jac.set(Si30, P31, scratch); + + jac.set(Si30, S30, 0.0); + + jac.set(Si30, S32, 0.0); + + scratch = screened_rates(k_S34_to_He4_Si30_derived); + jac.set(Si30, S34, scratch); + + jac.set(Si30, Cl33, 0.0); + + jac.set(Si30, Cl35, 0.0); + + jac.set(Si30, Ar34, 0.0); + + jac.set(Si30, Ar36, 0.0); + + jac.set(Si30, Ar38, 0.0); + + jac.set(Si30, K37, 0.0); + + jac.set(Si30, K39, 0.0); + + jac.set(Si30, Ca38, 0.0); + + jac.set(Si30, Ca40, 0.0); + + jac.set(Si30, Ca42, 0.0); + + jac.set(Si30, Sc41, 0.0); + + jac.set(Si30, Sc43, 0.0); + + jac.set(Si30, Ti42, 0.0); + + jac.set(Si30, Ti44, 0.0); + + jac.set(Si30, Ti46, 0.0); + + jac.set(Si30, V45, 0.0); + + jac.set(Si30, V47, 0.0); + + jac.set(Si30, V49, 0.0); + + jac.set(Si30, Cr46, 0.0); + + jac.set(Si30, Cr48, 0.0); + + jac.set(Si30, Cr50, 0.0); + + jac.set(Si30, Cr52, 0.0); + + jac.set(Si30, Mn49, 0.0); + + jac.set(Si30, Mn51, 0.0); + + jac.set(Si30, Mn53, 0.0); + + jac.set(Si30, Fe50, 0.0); + + jac.set(Si30, Fe52, 0.0); + + jac.set(Si30, Fe54, 0.0); + + jac.set(Si30, Fe56, 0.0); + + jac.set(Si30, Co53, 0.0); + + jac.set(Si30, Co55, 0.0); + + jac.set(Si30, Co56, 0.0); + + jac.set(Si30, Co57, 0.0); + + jac.set(Si30, Ni56, 0.0); + + jac.set(Si30, Ni58, 0.0); + + jac.set(Si30, Cu59, 0.0); + + + // P29 row + + jac.set(P29, N, 0.0); + + scratch = -screened_rates(k_P29_p_to_S30_reaclib)*Y(P29)*state.rho + + screened_rates(k_S32_p_to_He4_P29_derived)*Y(S32)*state.rho + + screened_rates(k_Si28_p_to_P29_reaclib)*Y(Si28)*state.rho; + jac.set(P29, H1, scratch); + + scratch = -screened_rates(k_P29_He4_to_Cl33_reaclib)*Y(P29)*state.rho + - screened_rates(k_P29_He4_to_p_S32_reaclib)*Y(P29)*state.rho; + jac.set(P29, He4, scratch); + + jac.set(P29, C12, 0.0); + + jac.set(P29, O16, 0.0); + + jac.set(P29, Ne20, 0.0); + + jac.set(P29, Mg23, 0.0); + + jac.set(P29, Mg24, 0.0); + + jac.set(P29, Al27, 0.0); + + jac.set(P29, Si27, 0.0); + + scratch = screened_rates(k_Si28_p_to_P29_reaclib)*Y(H1)*state.rho; + jac.set(P29, Si28, scratch); + + jac.set(P29, Si30, 0.0); + + scratch = -screened_rates(k_P29_He4_to_Cl33_reaclib)*Y(He4)*state.rho + - screened_rates(k_P29_He4_to_p_S32_reaclib)*Y(He4)*state.rho + - screened_rates(k_P29_p_to_S30_reaclib)*Y(H1)*state.rho + - screened_rates(k_P29_to_p_Si28_derived); + jac.set(P29, P29, scratch); + + jac.set(P29, P31, 0.0); + + scratch = screened_rates(k_S30_to_p_P29_derived); + jac.set(P29, S30, scratch); + + scratch = screened_rates(k_S32_p_to_He4_P29_derived)*Y(H1)*state.rho; + jac.set(P29, S32, scratch); + + jac.set(P29, S34, 0.0); + + scratch = screened_rates(k_Cl33_to_He4_P29_derived); + jac.set(P29, Cl33, scratch); + + jac.set(P29, Cl35, 0.0); + + jac.set(P29, Ar34, 0.0); + + jac.set(P29, Ar36, 0.0); + + jac.set(P29, Ar38, 0.0); + + jac.set(P29, K37, 0.0); + + jac.set(P29, K39, 0.0); + + jac.set(P29, Ca38, 0.0); + + jac.set(P29, Ca40, 0.0); + + jac.set(P29, Ca42, 0.0); + + jac.set(P29, Sc41, 0.0); + + jac.set(P29, Sc43, 0.0); + + jac.set(P29, Ti42, 0.0); + + jac.set(P29, Ti44, 0.0); + + jac.set(P29, Ti46, 0.0); + + jac.set(P29, V45, 0.0); + + jac.set(P29, V47, 0.0); + + jac.set(P29, V49, 0.0); + + jac.set(P29, Cr46, 0.0); + + jac.set(P29, Cr48, 0.0); + + jac.set(P29, Cr50, 0.0); + + jac.set(P29, Cr52, 0.0); + + jac.set(P29, Mn49, 0.0); + + jac.set(P29, Mn51, 0.0); + + jac.set(P29, Mn53, 0.0); + + jac.set(P29, Fe50, 0.0); + + jac.set(P29, Fe52, 0.0); + + jac.set(P29, Fe54, 0.0); + + jac.set(P29, Fe56, 0.0); + + jac.set(P29, Co53, 0.0); + + jac.set(P29, Co55, 0.0); + + jac.set(P29, Co56, 0.0); + + jac.set(P29, Co57, 0.0); + + jac.set(P29, Ni56, 0.0); + + jac.set(P29, Ni58, 0.0); + + jac.set(P29, Cu59, 0.0); + + + // P31 row + + jac.set(P31, N, 0.0); + + scratch = -screened_rates(k_P31_p_to_C12_Ne20_derived)*Y(P31)*state.rho + - screened_rates(k_P31_p_to_He4_Si28_reaclib)*Y(P31)*state.rho + - screened_rates(k_P31_p_to_O16_O16_derived)*Y(P31)*state.rho + - screened_rates(k_P31_p_to_S32_reaclib)*Y(P31)*state.rho + + screened_rates(k_S34_p_to_He4_P31_derived)*Y(S34)*state.rho + + screened_rates(k_Si30_p_to_P31_reaclib)*Y(Si30)*state.rho; + jac.set(P31, H1, scratch); + + scratch = screened_rates(k_Al27_He4_to_P31_reaclib)*Y(Al27)*state.rho + - screened_rates(k_P31_He4_to_Cl35_reaclib)*Y(P31)*state.rho + - screened_rates(k_P31_He4_to_p_S34_reaclib)*Y(P31)*state.rho + + screened_rates(k_Si28_He4_to_p_P31_derived)*Y(Si28)*state.rho; + jac.set(P31, He4, scratch); + + scratch = screened_rates(k_Ne20_C12_to_p_P31_reaclib)*Y(Ne20)*state.rho; + jac.set(P31, C12, scratch); + + scratch = 1.0*screened_rates(k_O16_O16_to_p_P31_reaclib)*Y(O16)*state.rho; + jac.set(P31, O16, scratch); + + scratch = screened_rates(k_Ne20_C12_to_p_P31_reaclib)*Y(C12)*state.rho; + jac.set(P31, Ne20, scratch); + + jac.set(P31, Mg23, 0.0); + + jac.set(P31, Mg24, 0.0); + + scratch = screened_rates(k_Al27_He4_to_P31_reaclib)*Y(He4)*state.rho; + jac.set(P31, Al27, scratch); + + jac.set(P31, Si27, 0.0); + + scratch = screened_rates(k_Si28_He4_to_p_P31_derived)*Y(He4)*state.rho; + jac.set(P31, Si28, scratch); + + scratch = screened_rates(k_Si30_p_to_P31_reaclib)*Y(H1)*state.rho; + jac.set(P31, Si30, scratch); + + jac.set(P31, P29, 0.0); + + scratch = -screened_rates(k_P31_He4_to_Cl35_reaclib)*Y(He4)*state.rho + - screened_rates(k_P31_He4_to_p_S34_reaclib)*Y(He4)*state.rho + - screened_rates(k_P31_p_to_C12_Ne20_derived)*Y(H1)*state.rho + - screened_rates(k_P31_p_to_He4_Si28_reaclib)*Y(H1)*state.rho + - screened_rates(k_P31_p_to_O16_O16_derived)*Y(H1)*state.rho + - screened_rates(k_P31_p_to_S32_reaclib)*Y(H1)*state.rho + - screened_rates(k_P31_to_He4_Al27_derived) + - screened_rates(k_P31_to_p_Si30_derived); + jac.set(P31, P31, scratch); + + jac.set(P31, S30, 0.0); + + scratch = screened_rates(k_S32_to_p_P31_derived); + jac.set(P31, S32, scratch); + + scratch = screened_rates(k_S34_p_to_He4_P31_derived)*Y(H1)*state.rho; + jac.set(P31, S34, scratch); + + jac.set(P31, Cl33, 0.0); + + scratch = screened_rates(k_Cl35_to_He4_P31_derived); + jac.set(P31, Cl35, scratch); + + jac.set(P31, Ar34, 0.0); + + jac.set(P31, Ar36, 0.0); + + jac.set(P31, Ar38, 0.0); + + jac.set(P31, K37, 0.0); + + jac.set(P31, K39, 0.0); + + jac.set(P31, Ca38, 0.0); + + jac.set(P31, Ca40, 0.0); + + jac.set(P31, Ca42, 0.0); + + jac.set(P31, Sc41, 0.0); + + jac.set(P31, Sc43, 0.0); + + jac.set(P31, Ti42, 0.0); + + jac.set(P31, Ti44, 0.0); + + jac.set(P31, Ti46, 0.0); + + jac.set(P31, V45, 0.0); + + jac.set(P31, V47, 0.0); + + jac.set(P31, V49, 0.0); + + jac.set(P31, Cr46, 0.0); + + jac.set(P31, Cr48, 0.0); + + jac.set(P31, Cr50, 0.0); + + jac.set(P31, Cr52, 0.0); + + jac.set(P31, Mn49, 0.0); + + jac.set(P31, Mn51, 0.0); + + jac.set(P31, Mn53, 0.0); + + jac.set(P31, Fe50, 0.0); + + jac.set(P31, Fe52, 0.0); + + jac.set(P31, Fe54, 0.0); + + jac.set(P31, Fe56, 0.0); + + jac.set(P31, Co53, 0.0); + + jac.set(P31, Co55, 0.0); + + jac.set(P31, Co56, 0.0); + + jac.set(P31, Co57, 0.0); + + jac.set(P31, Ni56, 0.0); + + jac.set(P31, Ni58, 0.0); + + jac.set(P31, Cu59, 0.0); + + + // S30 row + + scratch = -1.0*screened_rates(k_S30_n_n_to_S32_approx)*Y(S30)*Y(N)*amrex::Math::powi<2>(state.rho) + - screened_rates(k_S30_n_to_He4_Si27_reaclib)*Y(S30)*state.rho + - 0.5*Y(S30)*amrex::Math::powi<2>(Y(N))*amrex::Math::powi<2>(state.rho)*rate_eval.drate_S30_n_n_to_S32_approx_dYN + + Y(S32)*rate_eval.drate_S32_to_S30_n_n_approx_dYN; + jac.set(S30, N, scratch); + + scratch = screened_rates(k_Cl33_p_to_He4_S30_derived)*Y(Cl33)*state.rho + + screened_rates(k_P29_p_to_S30_reaclib)*Y(P29)*state.rho; + jac.set(S30, H1, scratch); + + scratch = -screened_rates(k_S30_He4_to_Ar34_reaclib)*Y(S30)*state.rho + - screened_rates(k_S30_He4_to_p_Cl33_reaclib)*Y(S30)*state.rho + + screened_rates(k_Si27_He4_to_n_S30_derived)*Y(Si27)*state.rho; + jac.set(S30, He4, scratch); + + jac.set(S30, C12, 0.0); + + jac.set(S30, O16, 0.0); + + jac.set(S30, Ne20, 0.0); + + jac.set(S30, Mg23, 0.0); + + jac.set(S30, Mg24, 0.0); + + jac.set(S30, Al27, 0.0); + + scratch = screened_rates(k_Si27_He4_to_n_S30_derived)*Y(He4)*state.rho; + jac.set(S30, Si27, scratch); + + jac.set(S30, Si28, 0.0); + + jac.set(S30, Si30, 0.0); + + scratch = screened_rates(k_P29_p_to_S30_reaclib)*Y(H1)*state.rho; + jac.set(S30, P29, scratch); + + jac.set(S30, P31, 0.0); + + scratch = -screened_rates(k_S30_He4_to_Ar34_reaclib)*Y(He4)*state.rho + - screened_rates(k_S30_He4_to_p_Cl33_reaclib)*Y(He4)*state.rho + - 0.5*screened_rates(k_S30_n_n_to_S32_approx)*amrex::Math::powi<2>(Y(N))*amrex::Math::powi<2>(state.rho) + - screened_rates(k_S30_n_to_He4_Si27_reaclib)*Y(N)*state.rho + - screened_rates(k_S30_to_p_P29_derived); + jac.set(S30, S30, scratch); + + scratch = screened_rates(k_S32_to_S30_n_n_approx); + jac.set(S30, S32, scratch); + + jac.set(S30, S34, 0.0); + + scratch = screened_rates(k_Cl33_p_to_He4_S30_derived)*Y(H1)*state.rho; + jac.set(S30, Cl33, scratch); + + jac.set(S30, Cl35, 0.0); + + scratch = screened_rates(k_Ar34_to_He4_S30_derived); + jac.set(S30, Ar34, scratch); + + jac.set(S30, Ar36, 0.0); + + jac.set(S30, Ar38, 0.0); + + jac.set(S30, K37, 0.0); + + jac.set(S30, K39, 0.0); + + jac.set(S30, Ca38, 0.0); + + jac.set(S30, Ca40, 0.0); + + jac.set(S30, Ca42, 0.0); + + jac.set(S30, Sc41, 0.0); + + jac.set(S30, Sc43, 0.0); + + jac.set(S30, Ti42, 0.0); + + jac.set(S30, Ti44, 0.0); + + jac.set(S30, Ti46, 0.0); + + jac.set(S30, V45, 0.0); + + jac.set(S30, V47, 0.0); + + jac.set(S30, V49, 0.0); + + jac.set(S30, Cr46, 0.0); + + jac.set(S30, Cr48, 0.0); + + jac.set(S30, Cr50, 0.0); + + jac.set(S30, Cr52, 0.0); + + jac.set(S30, Mn49, 0.0); + + jac.set(S30, Mn51, 0.0); + + jac.set(S30, Mn53, 0.0); + + jac.set(S30, Fe50, 0.0); + + jac.set(S30, Fe52, 0.0); + + jac.set(S30, Fe54, 0.0); + + jac.set(S30, Fe56, 0.0); + + jac.set(S30, Co53, 0.0); + + jac.set(S30, Co55, 0.0); + + jac.set(S30, Co56, 0.0); + + jac.set(S30, Co57, 0.0); + + jac.set(S30, Ni56, 0.0); + + jac.set(S30, Ni58, 0.0); + + jac.set(S30, Cu59, 0.0); + + + // S32 row + + scratch = 1.0*screened_rates(k_S30_n_n_to_S32_approx)*Y(S30)*Y(N)*amrex::Math::powi<2>(state.rho) + - 1.0*screened_rates(k_S32_n_n_to_S34_approx)*Y(S32)*Y(N)*amrex::Math::powi<2>(state.rho) + + 0.5*Y(S30)*amrex::Math::powi<2>(Y(N))*amrex::Math::powi<2>(state.rho)*rate_eval.drate_S30_n_n_to_S32_approx_dYN + - 0.5*Y(S32)*amrex::Math::powi<2>(Y(N))*amrex::Math::powi<2>(state.rho)*rate_eval.drate_S32_n_n_to_S34_approx_dYN + - Y(S32)*rate_eval.drate_S32_to_S30_n_n_approx_dYN + + Y(S34)*rate_eval.drate_S34_to_S32_n_n_approx_dYN; + jac.set(S32, N, scratch); + + scratch = screened_rates(k_Cl35_p_to_He4_S32_reaclib)*Y(Cl35)*state.rho + + screened_rates(k_P31_p_to_S32_reaclib)*Y(P31)*state.rho + - screened_rates(k_S32_p_to_Cl33_reaclib)*Y(S32)*state.rho + - screened_rates(k_S32_p_to_He4_P29_derived)*Y(S32)*state.rho; + jac.set(S32, H1, scratch); + + scratch = screened_rates(k_P29_He4_to_p_S32_reaclib)*Y(P29)*state.rho + - screened_rates(k_S32_He4_to_Ar36_reaclib)*Y(S32)*state.rho + - screened_rates(k_S32_He4_to_p_Cl35_derived)*Y(S32)*state.rho + + screened_rates(k_Si28_He4_to_S32_reaclib)*Y(Si28)*state.rho; + jac.set(S32, He4, scratch); + + jac.set(S32, C12, 0.0); + + jac.set(S32, O16, 0.0); + + jac.set(S32, Ne20, 0.0); + + jac.set(S32, Mg23, 0.0); + + jac.set(S32, Mg24, 0.0); + + jac.set(S32, Al27, 0.0); + + jac.set(S32, Si27, 0.0); + + scratch = screened_rates(k_Si28_He4_to_S32_reaclib)*Y(He4)*state.rho; + jac.set(S32, Si28, scratch); + + jac.set(S32, Si30, 0.0); + + scratch = screened_rates(k_P29_He4_to_p_S32_reaclib)*Y(He4)*state.rho; + jac.set(S32, P29, scratch); + + scratch = screened_rates(k_P31_p_to_S32_reaclib)*Y(H1)*state.rho; + jac.set(S32, P31, scratch); + + scratch = 0.5*screened_rates(k_S30_n_n_to_S32_approx)*amrex::Math::powi<2>(Y(N))*amrex::Math::powi<2>(state.rho); + jac.set(S32, S30, scratch); + + scratch = -screened_rates(k_S32_He4_to_Ar36_reaclib)*Y(He4)*state.rho + - screened_rates(k_S32_He4_to_p_Cl35_derived)*Y(He4)*state.rho + - 0.5*screened_rates(k_S32_n_n_to_S34_approx)*amrex::Math::powi<2>(Y(N))*amrex::Math::powi<2>(state.rho) + - screened_rates(k_S32_p_to_Cl33_reaclib)*Y(H1)*state.rho + - screened_rates(k_S32_p_to_He4_P29_derived)*Y(H1)*state.rho + - screened_rates(k_S32_to_He4_Si28_derived) + - screened_rates(k_S32_to_S30_n_n_approx) + - screened_rates(k_S32_to_p_P31_derived); + jac.set(S32, S32, scratch); + + scratch = screened_rates(k_S34_to_S32_n_n_approx); + jac.set(S32, S34, scratch); + + scratch = screened_rates(k_Cl33_to_p_S32_derived); + jac.set(S32, Cl33, scratch); + + scratch = screened_rates(k_Cl35_p_to_He4_S32_reaclib)*Y(H1)*state.rho; + jac.set(S32, Cl35, scratch); + + jac.set(S32, Ar34, 0.0); + + scratch = screened_rates(k_Ar36_to_He4_S32_derived); + jac.set(S32, Ar36, scratch); + + jac.set(S32, Ar38, 0.0); + + jac.set(S32, K37, 0.0); + + jac.set(S32, K39, 0.0); + + jac.set(S32, Ca38, 0.0); + + jac.set(S32, Ca40, 0.0); + + jac.set(S32, Ca42, 0.0); + + jac.set(S32, Sc41, 0.0); + + jac.set(S32, Sc43, 0.0); + + jac.set(S32, Ti42, 0.0); + + jac.set(S32, Ti44, 0.0); + + jac.set(S32, Ti46, 0.0); + + jac.set(S32, V45, 0.0); + + jac.set(S32, V47, 0.0); + + jac.set(S32, V49, 0.0); + + jac.set(S32, Cr46, 0.0); + + jac.set(S32, Cr48, 0.0); + + jac.set(S32, Cr50, 0.0); + + jac.set(S32, Cr52, 0.0); + + jac.set(S32, Mn49, 0.0); + + jac.set(S32, Mn51, 0.0); + + jac.set(S32, Mn53, 0.0); + + jac.set(S32, Fe50, 0.0); + + jac.set(S32, Fe52, 0.0); + + jac.set(S32, Fe54, 0.0); + + jac.set(S32, Fe56, 0.0); + + jac.set(S32, Co53, 0.0); + + jac.set(S32, Co55, 0.0); + + jac.set(S32, Co56, 0.0); + + jac.set(S32, Co57, 0.0); + + jac.set(S32, Ni56, 0.0); + + jac.set(S32, Ni58, 0.0); + + jac.set(S32, Cu59, 0.0); + + + // S34 row + + scratch = 1.0*screened_rates(k_S32_n_n_to_S34_approx)*Y(S32)*Y(N)*amrex::Math::powi<2>(state.rho) + + 0.5*Y(S32)*amrex::Math::powi<2>(Y(N))*amrex::Math::powi<2>(state.rho)*rate_eval.drate_S32_n_n_to_S34_approx_dYN + - Y(S34)*rate_eval.drate_S34_to_S32_n_n_approx_dYN; + jac.set(S34, N, scratch); + + scratch = -screened_rates(k_S34_p_to_Cl35_reaclib)*Y(S34)*state.rho + - screened_rates(k_S34_p_to_He4_P31_derived)*Y(S34)*state.rho; + jac.set(S34, H1, scratch); + + scratch = screened_rates(k_P31_He4_to_p_S34_reaclib)*Y(P31)*state.rho + - screened_rates(k_S34_He4_to_Ar38_reaclib)*Y(S34)*state.rho + + screened_rates(k_Si30_He4_to_S34_reaclib)*Y(Si30)*state.rho; + jac.set(S34, He4, scratch); + + jac.set(S34, C12, 0.0); + + jac.set(S34, O16, 0.0); + + jac.set(S34, Ne20, 0.0); + + jac.set(S34, Mg23, 0.0); + + jac.set(S34, Mg24, 0.0); + + jac.set(S34, Al27, 0.0); + + jac.set(S34, Si27, 0.0); + + jac.set(S34, Si28, 0.0); + + scratch = screened_rates(k_Si30_He4_to_S34_reaclib)*Y(He4)*state.rho; + jac.set(S34, Si30, scratch); + + jac.set(S34, P29, 0.0); + + scratch = screened_rates(k_P31_He4_to_p_S34_reaclib)*Y(He4)*state.rho; + jac.set(S34, P31, scratch); + + jac.set(S34, S30, 0.0); + + scratch = 0.5*screened_rates(k_S32_n_n_to_S34_approx)*amrex::Math::powi<2>(Y(N))*amrex::Math::powi<2>(state.rho); + jac.set(S34, S32, scratch); + + scratch = -screened_rates(k_S34_He4_to_Ar38_reaclib)*Y(He4)*state.rho + - screened_rates(k_S34_p_to_Cl35_reaclib)*Y(H1)*state.rho + - screened_rates(k_S34_p_to_He4_P31_derived)*Y(H1)*state.rho + - screened_rates(k_S34_to_He4_Si30_derived) + - screened_rates(k_S34_to_S32_n_n_approx); + jac.set(S34, S34, scratch); + + jac.set(S34, Cl33, 0.0); + + scratch = screened_rates(k_Cl35_to_p_S34_derived); + jac.set(S34, Cl35, scratch); + + jac.set(S34, Ar34, 0.0); + + jac.set(S34, Ar36, 0.0); + + scratch = screened_rates(k_Ar38_to_He4_S34_derived); + jac.set(S34, Ar38, scratch); + + jac.set(S34, K37, 0.0); + + jac.set(S34, K39, 0.0); + + jac.set(S34, Ca38, 0.0); + + jac.set(S34, Ca40, 0.0); + + jac.set(S34, Ca42, 0.0); + + jac.set(S34, Sc41, 0.0); + + jac.set(S34, Sc43, 0.0); + + jac.set(S34, Ti42, 0.0); + + jac.set(S34, Ti44, 0.0); + + jac.set(S34, Ti46, 0.0); + + jac.set(S34, V45, 0.0); + + jac.set(S34, V47, 0.0); + + jac.set(S34, V49, 0.0); + + jac.set(S34, Cr46, 0.0); + + jac.set(S34, Cr48, 0.0); + + jac.set(S34, Cr50, 0.0); + + jac.set(S34, Cr52, 0.0); + + jac.set(S34, Mn49, 0.0); + + jac.set(S34, Mn51, 0.0); + + jac.set(S34, Mn53, 0.0); + + jac.set(S34, Fe50, 0.0); + + jac.set(S34, Fe52, 0.0); + + jac.set(S34, Fe54, 0.0); + + jac.set(S34, Fe56, 0.0); + + jac.set(S34, Co53, 0.0); + + jac.set(S34, Co55, 0.0); + + jac.set(S34, Co56, 0.0); + + jac.set(S34, Co57, 0.0); + + jac.set(S34, Ni56, 0.0); + + jac.set(S34, Ni58, 0.0); + + jac.set(S34, Cu59, 0.0); + + + // Cl33 row + + jac.set(Cl33, N, 0.0); + + scratch = screened_rates(k_Ar36_p_to_He4_Cl33_derived)*Y(Ar36)*state.rho + - screened_rates(k_Cl33_p_to_Ar34_reaclib)*Y(Cl33)*state.rho + - screened_rates(k_Cl33_p_to_He4_S30_derived)*Y(Cl33)*state.rho + + screened_rates(k_S32_p_to_Cl33_reaclib)*Y(S32)*state.rho; + jac.set(Cl33, H1, scratch); + + scratch = -screened_rates(k_Cl33_He4_to_K37_reaclib)*Y(Cl33)*state.rho + - screened_rates(k_Cl33_He4_to_p_Ar36_reaclib)*Y(Cl33)*state.rho + + screened_rates(k_P29_He4_to_Cl33_reaclib)*Y(P29)*state.rho + + screened_rates(k_S30_He4_to_p_Cl33_reaclib)*Y(S30)*state.rho; + jac.set(Cl33, He4, scratch); + + jac.set(Cl33, C12, 0.0); + + jac.set(Cl33, O16, 0.0); + + jac.set(Cl33, Ne20, 0.0); + + jac.set(Cl33, Mg23, 0.0); + + jac.set(Cl33, Mg24, 0.0); + + jac.set(Cl33, Al27, 0.0); + + jac.set(Cl33, Si27, 0.0); + + jac.set(Cl33, Si28, 0.0); + + jac.set(Cl33, Si30, 0.0); + + scratch = screened_rates(k_P29_He4_to_Cl33_reaclib)*Y(He4)*state.rho; + jac.set(Cl33, P29, scratch); + + jac.set(Cl33, P31, 0.0); + + scratch = screened_rates(k_S30_He4_to_p_Cl33_reaclib)*Y(He4)*state.rho; + jac.set(Cl33, S30, scratch); + + scratch = screened_rates(k_S32_p_to_Cl33_reaclib)*Y(H1)*state.rho; + jac.set(Cl33, S32, scratch); + + jac.set(Cl33, S34, 0.0); + + scratch = -screened_rates(k_Cl33_He4_to_K37_reaclib)*Y(He4)*state.rho + - screened_rates(k_Cl33_He4_to_p_Ar36_reaclib)*Y(He4)*state.rho + - screened_rates(k_Cl33_p_to_Ar34_reaclib)*Y(H1)*state.rho + - screened_rates(k_Cl33_p_to_He4_S30_derived)*Y(H1)*state.rho + - screened_rates(k_Cl33_to_He4_P29_derived) + - screened_rates(k_Cl33_to_p_S32_derived); + jac.set(Cl33, Cl33, scratch); + + jac.set(Cl33, Cl35, 0.0); + + scratch = screened_rates(k_Ar34_to_p_Cl33_derived); + jac.set(Cl33, Ar34, scratch); + + scratch = screened_rates(k_Ar36_p_to_He4_Cl33_derived)*Y(H1)*state.rho; + jac.set(Cl33, Ar36, scratch); + + jac.set(Cl33, Ar38, 0.0); + + scratch = screened_rates(k_K37_to_He4_Cl33_derived); + jac.set(Cl33, K37, scratch); + + jac.set(Cl33, K39, 0.0); + + jac.set(Cl33, Ca38, 0.0); + + jac.set(Cl33, Ca40, 0.0); + + jac.set(Cl33, Ca42, 0.0); + + jac.set(Cl33, Sc41, 0.0); + + jac.set(Cl33, Sc43, 0.0); + + jac.set(Cl33, Ti42, 0.0); + + jac.set(Cl33, Ti44, 0.0); + + jac.set(Cl33, Ti46, 0.0); + + jac.set(Cl33, V45, 0.0); + + jac.set(Cl33, V47, 0.0); + + jac.set(Cl33, V49, 0.0); + + jac.set(Cl33, Cr46, 0.0); + + jac.set(Cl33, Cr48, 0.0); + + jac.set(Cl33, Cr50, 0.0); + + jac.set(Cl33, Cr52, 0.0); + + jac.set(Cl33, Mn49, 0.0); + + jac.set(Cl33, Mn51, 0.0); + + jac.set(Cl33, Mn53, 0.0); + + jac.set(Cl33, Fe50, 0.0); + + jac.set(Cl33, Fe52, 0.0); + + jac.set(Cl33, Fe54, 0.0); + + jac.set(Cl33, Fe56, 0.0); + + jac.set(Cl33, Co53, 0.0); + + jac.set(Cl33, Co55, 0.0); + + jac.set(Cl33, Co56, 0.0); + + jac.set(Cl33, Co57, 0.0); + + jac.set(Cl33, Ni56, 0.0); + + jac.set(Cl33, Ni58, 0.0); + + jac.set(Cl33, Cu59, 0.0); + + + // Cl35 row + + jac.set(Cl35, N, 0.0); + + scratch = screened_rates(k_Ar38_p_to_He4_Cl35_derived)*Y(Ar38)*state.rho + - screened_rates(k_Cl35_p_to_Ar36_reaclib)*Y(Cl35)*state.rho + - screened_rates(k_Cl35_p_to_He4_S32_reaclib)*Y(Cl35)*state.rho + + screened_rates(k_S34_p_to_Cl35_reaclib)*Y(S34)*state.rho; + jac.set(Cl35, H1, scratch); + + scratch = -screened_rates(k_Cl35_He4_to_K39_reaclib)*Y(Cl35)*state.rho + - screened_rates(k_Cl35_He4_to_p_Ar38_reaclib)*Y(Cl35)*state.rho + + screened_rates(k_P31_He4_to_Cl35_reaclib)*Y(P31)*state.rho + + screened_rates(k_S32_He4_to_p_Cl35_derived)*Y(S32)*state.rho; + jac.set(Cl35, He4, scratch); + + jac.set(Cl35, C12, 0.0); + + jac.set(Cl35, O16, 0.0); + + jac.set(Cl35, Ne20, 0.0); + + jac.set(Cl35, Mg23, 0.0); + + jac.set(Cl35, Mg24, 0.0); + + jac.set(Cl35, Al27, 0.0); + + jac.set(Cl35, Si27, 0.0); + + jac.set(Cl35, Si28, 0.0); + + jac.set(Cl35, Si30, 0.0); + + jac.set(Cl35, P29, 0.0); + + scratch = screened_rates(k_P31_He4_to_Cl35_reaclib)*Y(He4)*state.rho; + jac.set(Cl35, P31, scratch); + + jac.set(Cl35, S30, 0.0); + + scratch = screened_rates(k_S32_He4_to_p_Cl35_derived)*Y(He4)*state.rho; + jac.set(Cl35, S32, scratch); + + scratch = screened_rates(k_S34_p_to_Cl35_reaclib)*Y(H1)*state.rho; + jac.set(Cl35, S34, scratch); + + jac.set(Cl35, Cl33, 0.0); + + scratch = -screened_rates(k_Cl35_He4_to_K39_reaclib)*Y(He4)*state.rho + - screened_rates(k_Cl35_He4_to_p_Ar38_reaclib)*Y(He4)*state.rho + - screened_rates(k_Cl35_p_to_Ar36_reaclib)*Y(H1)*state.rho + - screened_rates(k_Cl35_p_to_He4_S32_reaclib)*Y(H1)*state.rho + - screened_rates(k_Cl35_to_He4_P31_derived) + - screened_rates(k_Cl35_to_p_S34_derived); + jac.set(Cl35, Cl35, scratch); + + jac.set(Cl35, Ar34, 0.0); + + scratch = screened_rates(k_Ar36_to_p_Cl35_derived); + jac.set(Cl35, Ar36, scratch); + + scratch = screened_rates(k_Ar38_p_to_He4_Cl35_derived)*Y(H1)*state.rho; + jac.set(Cl35, Ar38, scratch); + + jac.set(Cl35, K37, 0.0); + + scratch = screened_rates(k_K39_to_He4_Cl35_derived); + jac.set(Cl35, K39, scratch); + + jac.set(Cl35, Ca38, 0.0); + + jac.set(Cl35, Ca40, 0.0); + + jac.set(Cl35, Ca42, 0.0); + + jac.set(Cl35, Sc41, 0.0); + + jac.set(Cl35, Sc43, 0.0); + + jac.set(Cl35, Ti42, 0.0); + + jac.set(Cl35, Ti44, 0.0); + + jac.set(Cl35, Ti46, 0.0); + + jac.set(Cl35, V45, 0.0); + + jac.set(Cl35, V47, 0.0); + + jac.set(Cl35, V49, 0.0); + + jac.set(Cl35, Cr46, 0.0); + + jac.set(Cl35, Cr48, 0.0); + + jac.set(Cl35, Cr50, 0.0); + + jac.set(Cl35, Cr52, 0.0); + + jac.set(Cl35, Mn49, 0.0); + + jac.set(Cl35, Mn51, 0.0); + + jac.set(Cl35, Mn53, 0.0); + + jac.set(Cl35, Fe50, 0.0); + + jac.set(Cl35, Fe52, 0.0); + + jac.set(Cl35, Fe54, 0.0); + + jac.set(Cl35, Fe56, 0.0); + + jac.set(Cl35, Co53, 0.0); + + jac.set(Cl35, Co55, 0.0); + + jac.set(Cl35, Co56, 0.0); + + jac.set(Cl35, Co57, 0.0); + + jac.set(Cl35, Ni56, 0.0); + + jac.set(Cl35, Ni58, 0.0); + + jac.set(Cl35, Cu59, 0.0); + + + // Ar34 row + + scratch = -1.0*screened_rates(k_Ar34_n_n_to_Ar36_approx)*Y(Ar34)*Y(N)*amrex::Math::powi<2>(state.rho) + - 0.5*Y(Ar34)*amrex::Math::powi<2>(Y(N))*amrex::Math::powi<2>(state.rho)*rate_eval.drate_Ar34_n_n_to_Ar36_approx_dYN + + Y(Ar36)*rate_eval.drate_Ar36_to_Ar34_n_n_approx_dYN; + jac.set(Ar34, N, scratch); + + scratch = screened_rates(k_Cl33_p_to_Ar34_reaclib)*Y(Cl33)*state.rho + + screened_rates(k_K37_p_to_He4_Ar34_derived)*Y(K37)*state.rho; + jac.set(Ar34, H1, scratch); + + scratch = -screened_rates(k_Ar34_He4_to_Ca38_reaclib)*Y(Ar34)*state.rho + - screened_rates(k_Ar34_He4_to_p_K37_reaclib)*Y(Ar34)*state.rho + + screened_rates(k_S30_He4_to_Ar34_reaclib)*Y(S30)*state.rho; + jac.set(Ar34, He4, scratch); + + jac.set(Ar34, C12, 0.0); + + jac.set(Ar34, O16, 0.0); + + jac.set(Ar34, Ne20, 0.0); + + jac.set(Ar34, Mg23, 0.0); + + jac.set(Ar34, Mg24, 0.0); + + jac.set(Ar34, Al27, 0.0); + + jac.set(Ar34, Si27, 0.0); + + jac.set(Ar34, Si28, 0.0); + + jac.set(Ar34, Si30, 0.0); + + jac.set(Ar34, P29, 0.0); + + jac.set(Ar34, P31, 0.0); + + scratch = screened_rates(k_S30_He4_to_Ar34_reaclib)*Y(He4)*state.rho; + jac.set(Ar34, S30, scratch); + + jac.set(Ar34, S32, 0.0); + + jac.set(Ar34, S34, 0.0); + + scratch = screened_rates(k_Cl33_p_to_Ar34_reaclib)*Y(H1)*state.rho; + jac.set(Ar34, Cl33, scratch); + + jac.set(Ar34, Cl35, 0.0); + + scratch = -screened_rates(k_Ar34_He4_to_Ca38_reaclib)*Y(He4)*state.rho + - screened_rates(k_Ar34_He4_to_p_K37_reaclib)*Y(He4)*state.rho + - 0.5*screened_rates(k_Ar34_n_n_to_Ar36_approx)*amrex::Math::powi<2>(Y(N))*amrex::Math::powi<2>(state.rho) + - screened_rates(k_Ar34_to_He4_S30_derived) + - screened_rates(k_Ar34_to_p_Cl33_derived); + jac.set(Ar34, Ar34, scratch); + + scratch = screened_rates(k_Ar36_to_Ar34_n_n_approx); + jac.set(Ar34, Ar36, scratch); + + jac.set(Ar34, Ar38, 0.0); + + scratch = screened_rates(k_K37_p_to_He4_Ar34_derived)*Y(H1)*state.rho; + jac.set(Ar34, K37, scratch); + + jac.set(Ar34, K39, 0.0); + + scratch = screened_rates(k_Ca38_to_He4_Ar34_derived); + jac.set(Ar34, Ca38, scratch); + + jac.set(Ar34, Ca40, 0.0); + + jac.set(Ar34, Ca42, 0.0); + + jac.set(Ar34, Sc41, 0.0); + + jac.set(Ar34, Sc43, 0.0); + + jac.set(Ar34, Ti42, 0.0); + + jac.set(Ar34, Ti44, 0.0); + + jac.set(Ar34, Ti46, 0.0); + + jac.set(Ar34, V45, 0.0); + + jac.set(Ar34, V47, 0.0); + + jac.set(Ar34, V49, 0.0); + + jac.set(Ar34, Cr46, 0.0); + + jac.set(Ar34, Cr48, 0.0); + + jac.set(Ar34, Cr50, 0.0); + + jac.set(Ar34, Cr52, 0.0); + + jac.set(Ar34, Mn49, 0.0); + + jac.set(Ar34, Mn51, 0.0); + + jac.set(Ar34, Mn53, 0.0); + + jac.set(Ar34, Fe50, 0.0); + + jac.set(Ar34, Fe52, 0.0); + + jac.set(Ar34, Fe54, 0.0); + + jac.set(Ar34, Fe56, 0.0); + + jac.set(Ar34, Co53, 0.0); + + jac.set(Ar34, Co55, 0.0); + + jac.set(Ar34, Co56, 0.0); + + jac.set(Ar34, Co57, 0.0); + + jac.set(Ar34, Ni56, 0.0); + + jac.set(Ar34, Ni58, 0.0); + + jac.set(Ar34, Cu59, 0.0); + + + // Ar36 row + + scratch = 1.0*screened_rates(k_Ar34_n_n_to_Ar36_approx)*Y(Ar34)*Y(N)*amrex::Math::powi<2>(state.rho) + - 1.0*screened_rates(k_Ar36_n_n_to_Ar38_approx)*Y(Ar36)*Y(N)*amrex::Math::powi<2>(state.rho) + + 0.5*Y(Ar34)*amrex::Math::powi<2>(Y(N))*amrex::Math::powi<2>(state.rho)*rate_eval.drate_Ar34_n_n_to_Ar36_approx_dYN + - 0.5*Y(Ar36)*amrex::Math::powi<2>(Y(N))*amrex::Math::powi<2>(state.rho)*rate_eval.drate_Ar36_n_n_to_Ar38_approx_dYN + - Y(Ar36)*rate_eval.drate_Ar36_to_Ar34_n_n_approx_dYN + + Y(Ar38)*rate_eval.drate_Ar38_to_Ar36_n_n_approx_dYN; + jac.set(Ar36, N, scratch); + + scratch = -screened_rates(k_Ar36_p_to_He4_Cl33_derived)*Y(Ar36)*state.rho + - screened_rates(k_Ar36_p_to_K37_reaclib)*Y(Ar36)*state.rho + + screened_rates(k_Cl35_p_to_Ar36_reaclib)*Y(Cl35)*state.rho + + screened_rates(k_K39_p_to_He4_Ar36_reaclib)*Y(K39)*state.rho; + jac.set(Ar36, H1, scratch); + + scratch = -screened_rates(k_Ar36_He4_to_Ca40_reaclib)*Y(Ar36)*state.rho + - screened_rates(k_Ar36_He4_to_p_K39_derived)*Y(Ar36)*state.rho + + screened_rates(k_Cl33_He4_to_p_Ar36_reaclib)*Y(Cl33)*state.rho + + screened_rates(k_S32_He4_to_Ar36_reaclib)*Y(S32)*state.rho; + jac.set(Ar36, He4, scratch); + + jac.set(Ar36, C12, 0.0); + + jac.set(Ar36, O16, 0.0); + + jac.set(Ar36, Ne20, 0.0); + + jac.set(Ar36, Mg23, 0.0); + + jac.set(Ar36, Mg24, 0.0); + + jac.set(Ar36, Al27, 0.0); + + jac.set(Ar36, Si27, 0.0); + + jac.set(Ar36, Si28, 0.0); + + jac.set(Ar36, Si30, 0.0); + + jac.set(Ar36, P29, 0.0); + + jac.set(Ar36, P31, 0.0); + + jac.set(Ar36, S30, 0.0); + + scratch = screened_rates(k_S32_He4_to_Ar36_reaclib)*Y(He4)*state.rho; + jac.set(Ar36, S32, scratch); + + jac.set(Ar36, S34, 0.0); + + scratch = screened_rates(k_Cl33_He4_to_p_Ar36_reaclib)*Y(He4)*state.rho; + jac.set(Ar36, Cl33, scratch); + + scratch = screened_rates(k_Cl35_p_to_Ar36_reaclib)*Y(H1)*state.rho; + jac.set(Ar36, Cl35, scratch); + + scratch = 0.5*screened_rates(k_Ar34_n_n_to_Ar36_approx)*amrex::Math::powi<2>(Y(N))*amrex::Math::powi<2>(state.rho); + jac.set(Ar36, Ar34, scratch); + + scratch = -screened_rates(k_Ar36_He4_to_Ca40_reaclib)*Y(He4)*state.rho + - screened_rates(k_Ar36_He4_to_p_K39_derived)*Y(He4)*state.rho + - 0.5*screened_rates(k_Ar36_n_n_to_Ar38_approx)*amrex::Math::powi<2>(Y(N))*amrex::Math::powi<2>(state.rho) + - screened_rates(k_Ar36_p_to_He4_Cl33_derived)*Y(H1)*state.rho + - screened_rates(k_Ar36_p_to_K37_reaclib)*Y(H1)*state.rho + - screened_rates(k_Ar36_to_Ar34_n_n_approx) + - screened_rates(k_Ar36_to_He4_S32_derived) + - screened_rates(k_Ar36_to_p_Cl35_derived); + jac.set(Ar36, Ar36, scratch); + + scratch = screened_rates(k_Ar38_to_Ar36_n_n_approx); + jac.set(Ar36, Ar38, scratch); + + scratch = screened_rates(k_K37_to_p_Ar36_derived); + jac.set(Ar36, K37, scratch); + + scratch = screened_rates(k_K39_p_to_He4_Ar36_reaclib)*Y(H1)*state.rho; + jac.set(Ar36, K39, scratch); + + jac.set(Ar36, Ca38, 0.0); + + scratch = screened_rates(k_Ca40_to_He4_Ar36_derived); + jac.set(Ar36, Ca40, scratch); + + jac.set(Ar36, Ca42, 0.0); + + jac.set(Ar36, Sc41, 0.0); + + jac.set(Ar36, Sc43, 0.0); + + jac.set(Ar36, Ti42, 0.0); + + jac.set(Ar36, Ti44, 0.0); + + jac.set(Ar36, Ti46, 0.0); + + jac.set(Ar36, V45, 0.0); + + jac.set(Ar36, V47, 0.0); + + jac.set(Ar36, V49, 0.0); + + jac.set(Ar36, Cr46, 0.0); + + jac.set(Ar36, Cr48, 0.0); + + jac.set(Ar36, Cr50, 0.0); + + jac.set(Ar36, Cr52, 0.0); + + jac.set(Ar36, Mn49, 0.0); + + jac.set(Ar36, Mn51, 0.0); + + jac.set(Ar36, Mn53, 0.0); + + jac.set(Ar36, Fe50, 0.0); + + jac.set(Ar36, Fe52, 0.0); + + jac.set(Ar36, Fe54, 0.0); + + jac.set(Ar36, Fe56, 0.0); + + jac.set(Ar36, Co53, 0.0); + + jac.set(Ar36, Co55, 0.0); + + jac.set(Ar36, Co56, 0.0); + + jac.set(Ar36, Co57, 0.0); + + jac.set(Ar36, Ni56, 0.0); + + jac.set(Ar36, Ni58, 0.0); + + jac.set(Ar36, Cu59, 0.0); + + + // Ar38 row + + scratch = 1.0*screened_rates(k_Ar36_n_n_to_Ar38_approx)*Y(Ar36)*Y(N)*amrex::Math::powi<2>(state.rho) + + 0.5*Y(Ar36)*amrex::Math::powi<2>(Y(N))*amrex::Math::powi<2>(state.rho)*rate_eval.drate_Ar36_n_n_to_Ar38_approx_dYN + - Y(Ar38)*rate_eval.drate_Ar38_to_Ar36_n_n_approx_dYN; + jac.set(Ar38, N, scratch); + + scratch = -screened_rates(k_Ar38_p_to_He4_Cl35_derived)*Y(Ar38)*state.rho + - screened_rates(k_Ar38_p_to_K39_reaclib)*Y(Ar38)*state.rho; + jac.set(Ar38, H1, scratch); + + scratch = -screened_rates(k_Ar38_He4_to_Ca42_reaclib)*Y(Ar38)*state.rho + + screened_rates(k_Cl35_He4_to_p_Ar38_reaclib)*Y(Cl35)*state.rho + + screened_rates(k_S34_He4_to_Ar38_reaclib)*Y(S34)*state.rho; + jac.set(Ar38, He4, scratch); + + jac.set(Ar38, C12, 0.0); + + jac.set(Ar38, O16, 0.0); + + jac.set(Ar38, Ne20, 0.0); + + jac.set(Ar38, Mg23, 0.0); + + jac.set(Ar38, Mg24, 0.0); + + jac.set(Ar38, Al27, 0.0); + + jac.set(Ar38, Si27, 0.0); + + jac.set(Ar38, Si28, 0.0); + + jac.set(Ar38, Si30, 0.0); + + jac.set(Ar38, P29, 0.0); + + jac.set(Ar38, P31, 0.0); + + jac.set(Ar38, S30, 0.0); + + jac.set(Ar38, S32, 0.0); + + scratch = screened_rates(k_S34_He4_to_Ar38_reaclib)*Y(He4)*state.rho; + jac.set(Ar38, S34, scratch); + + jac.set(Ar38, Cl33, 0.0); + + scratch = screened_rates(k_Cl35_He4_to_p_Ar38_reaclib)*Y(He4)*state.rho; + jac.set(Ar38, Cl35, scratch); + + jac.set(Ar38, Ar34, 0.0); + + scratch = 0.5*screened_rates(k_Ar36_n_n_to_Ar38_approx)*amrex::Math::powi<2>(Y(N))*amrex::Math::powi<2>(state.rho); + jac.set(Ar38, Ar36, scratch); + + scratch = -screened_rates(k_Ar38_He4_to_Ca42_reaclib)*Y(He4)*state.rho + - screened_rates(k_Ar38_p_to_He4_Cl35_derived)*Y(H1)*state.rho + - screened_rates(k_Ar38_p_to_K39_reaclib)*Y(H1)*state.rho + - screened_rates(k_Ar38_to_Ar36_n_n_approx) + - screened_rates(k_Ar38_to_He4_S34_derived); + jac.set(Ar38, Ar38, scratch); + + jac.set(Ar38, K37, 0.0); + + scratch = screened_rates(k_K39_to_p_Ar38_derived); + jac.set(Ar38, K39, scratch); + + jac.set(Ar38, Ca38, 0.0); + + jac.set(Ar38, Ca40, 0.0); + + scratch = screened_rates(k_Ca42_to_He4_Ar38_derived); + jac.set(Ar38, Ca42, scratch); + + jac.set(Ar38, Sc41, 0.0); + + jac.set(Ar38, Sc43, 0.0); + + jac.set(Ar38, Ti42, 0.0); + + jac.set(Ar38, Ti44, 0.0); + + jac.set(Ar38, Ti46, 0.0); + + jac.set(Ar38, V45, 0.0); + + jac.set(Ar38, V47, 0.0); + + jac.set(Ar38, V49, 0.0); + + jac.set(Ar38, Cr46, 0.0); + + jac.set(Ar38, Cr48, 0.0); + + jac.set(Ar38, Cr50, 0.0); + + jac.set(Ar38, Cr52, 0.0); + + jac.set(Ar38, Mn49, 0.0); + + jac.set(Ar38, Mn51, 0.0); + + jac.set(Ar38, Mn53, 0.0); + + jac.set(Ar38, Fe50, 0.0); + + jac.set(Ar38, Fe52, 0.0); + + jac.set(Ar38, Fe54, 0.0); + + jac.set(Ar38, Fe56, 0.0); + + jac.set(Ar38, Co53, 0.0); + + jac.set(Ar38, Co55, 0.0); + + jac.set(Ar38, Co56, 0.0); + + jac.set(Ar38, Co57, 0.0); + + jac.set(Ar38, Ni56, 0.0); + + jac.set(Ar38, Ni58, 0.0); + + jac.set(Ar38, Cu59, 0.0); + + + // K37 row + + jac.set(K37, N, 0.0); + + scratch = screened_rates(k_Ar36_p_to_K37_reaclib)*Y(Ar36)*state.rho + + screened_rates(k_Ca40_p_to_He4_K37_derived)*Y(Ca40)*state.rho + - screened_rates(k_K37_p_to_Ca38_reaclib)*Y(K37)*state.rho + - screened_rates(k_K37_p_to_He4_Ar34_derived)*Y(K37)*state.rho; + jac.set(K37, H1, scratch); + + scratch = screened_rates(k_Ar34_He4_to_p_K37_reaclib)*Y(Ar34)*state.rho + + screened_rates(k_Cl33_He4_to_K37_reaclib)*Y(Cl33)*state.rho + - screened_rates(k_K37_He4_to_Sc41_reaclib)*Y(K37)*state.rho + - screened_rates(k_K37_He4_to_p_Ca40_reaclib)*Y(K37)*state.rho; + jac.set(K37, He4, scratch); + + jac.set(K37, C12, 0.0); + + jac.set(K37, O16, 0.0); + + jac.set(K37, Ne20, 0.0); + + jac.set(K37, Mg23, 0.0); + + jac.set(K37, Mg24, 0.0); + + jac.set(K37, Al27, 0.0); + + jac.set(K37, Si27, 0.0); + + jac.set(K37, Si28, 0.0); + + jac.set(K37, Si30, 0.0); + + jac.set(K37, P29, 0.0); + + jac.set(K37, P31, 0.0); + + jac.set(K37, S30, 0.0); + + jac.set(K37, S32, 0.0); + + jac.set(K37, S34, 0.0); + + scratch = screened_rates(k_Cl33_He4_to_K37_reaclib)*Y(He4)*state.rho; + jac.set(K37, Cl33, scratch); + + jac.set(K37, Cl35, 0.0); + + scratch = screened_rates(k_Ar34_He4_to_p_K37_reaclib)*Y(He4)*state.rho; + jac.set(K37, Ar34, scratch); + + scratch = screened_rates(k_Ar36_p_to_K37_reaclib)*Y(H1)*state.rho; + jac.set(K37, Ar36, scratch); + + jac.set(K37, Ar38, 0.0); + + scratch = -screened_rates(k_K37_He4_to_Sc41_reaclib)*Y(He4)*state.rho + - screened_rates(k_K37_He4_to_p_Ca40_reaclib)*Y(He4)*state.rho + - screened_rates(k_K37_p_to_Ca38_reaclib)*Y(H1)*state.rho + - screened_rates(k_K37_p_to_He4_Ar34_derived)*Y(H1)*state.rho + - screened_rates(k_K37_to_He4_Cl33_derived) + - screened_rates(k_K37_to_p_Ar36_derived); + jac.set(K37, K37, scratch); + + jac.set(K37, K39, 0.0); + + scratch = screened_rates(k_Ca38_to_p_K37_derived); + jac.set(K37, Ca38, scratch); + + scratch = screened_rates(k_Ca40_p_to_He4_K37_derived)*Y(H1)*state.rho; + jac.set(K37, Ca40, scratch); + + jac.set(K37, Ca42, 0.0); + + scratch = screened_rates(k_Sc41_to_He4_K37_derived); + jac.set(K37, Sc41, scratch); + + jac.set(K37, Sc43, 0.0); + + jac.set(K37, Ti42, 0.0); + + jac.set(K37, Ti44, 0.0); + + jac.set(K37, Ti46, 0.0); + + jac.set(K37, V45, 0.0); + + jac.set(K37, V47, 0.0); + + jac.set(K37, V49, 0.0); + + jac.set(K37, Cr46, 0.0); + + jac.set(K37, Cr48, 0.0); + + jac.set(K37, Cr50, 0.0); + + jac.set(K37, Cr52, 0.0); + + jac.set(K37, Mn49, 0.0); + + jac.set(K37, Mn51, 0.0); + + jac.set(K37, Mn53, 0.0); + + jac.set(K37, Fe50, 0.0); + + jac.set(K37, Fe52, 0.0); + + jac.set(K37, Fe54, 0.0); + + jac.set(K37, Fe56, 0.0); + + jac.set(K37, Co53, 0.0); + + jac.set(K37, Co55, 0.0); + + jac.set(K37, Co56, 0.0); + + jac.set(K37, Co57, 0.0); + + jac.set(K37, Ni56, 0.0); + + jac.set(K37, Ni58, 0.0); + + jac.set(K37, Cu59, 0.0); + + + // K39 row + + jac.set(K39, N, 0.0); + + scratch = screened_rates(k_Ar38_p_to_K39_reaclib)*Y(Ar38)*state.rho + + screened_rates(k_Ca42_p_to_He4_K39_reaclib)*Y(Ca42)*state.rho + - screened_rates(k_K39_p_to_Ca40_reaclib)*Y(K39)*state.rho + - screened_rates(k_K39_p_to_He4_Ar36_reaclib)*Y(K39)*state.rho; + jac.set(K39, H1, scratch); + + scratch = screened_rates(k_Ar36_He4_to_p_K39_derived)*Y(Ar36)*state.rho + + screened_rates(k_Cl35_He4_to_K39_reaclib)*Y(Cl35)*state.rho + - screened_rates(k_K39_He4_to_Sc43_reaclib)*Y(K39)*state.rho + - screened_rates(k_K39_He4_to_p_Ca42_derived)*Y(K39)*state.rho; + jac.set(K39, He4, scratch); + + jac.set(K39, C12, 0.0); + + jac.set(K39, O16, 0.0); + + jac.set(K39, Ne20, 0.0); + + jac.set(K39, Mg23, 0.0); + + jac.set(K39, Mg24, 0.0); + + jac.set(K39, Al27, 0.0); + + jac.set(K39, Si27, 0.0); + + jac.set(K39, Si28, 0.0); + + jac.set(K39, Si30, 0.0); + + jac.set(K39, P29, 0.0); + + jac.set(K39, P31, 0.0); + + jac.set(K39, S30, 0.0); + + jac.set(K39, S32, 0.0); + + jac.set(K39, S34, 0.0); + + jac.set(K39, Cl33, 0.0); + + scratch = screened_rates(k_Cl35_He4_to_K39_reaclib)*Y(He4)*state.rho; + jac.set(K39, Cl35, scratch); + + jac.set(K39, Ar34, 0.0); + + scratch = screened_rates(k_Ar36_He4_to_p_K39_derived)*Y(He4)*state.rho; + jac.set(K39, Ar36, scratch); + + scratch = screened_rates(k_Ar38_p_to_K39_reaclib)*Y(H1)*state.rho; + jac.set(K39, Ar38, scratch); + + jac.set(K39, K37, 0.0); + + scratch = -screened_rates(k_K39_He4_to_Sc43_reaclib)*Y(He4)*state.rho + - screened_rates(k_K39_He4_to_p_Ca42_derived)*Y(He4)*state.rho + - screened_rates(k_K39_p_to_Ca40_reaclib)*Y(H1)*state.rho + - screened_rates(k_K39_p_to_He4_Ar36_reaclib)*Y(H1)*state.rho + - screened_rates(k_K39_to_He4_Cl35_derived) + - screened_rates(k_K39_to_p_Ar38_derived); + jac.set(K39, K39, scratch); + + jac.set(K39, Ca38, 0.0); + + scratch = screened_rates(k_Ca40_to_p_K39_derived); + jac.set(K39, Ca40, scratch); + + scratch = screened_rates(k_Ca42_p_to_He4_K39_reaclib)*Y(H1)*state.rho; + jac.set(K39, Ca42, scratch); + + jac.set(K39, Sc41, 0.0); + + scratch = screened_rates(k_Sc43_to_He4_K39_derived); + jac.set(K39, Sc43, scratch); + + jac.set(K39, Ti42, 0.0); + + jac.set(K39, Ti44, 0.0); + + jac.set(K39, Ti46, 0.0); + + jac.set(K39, V45, 0.0); + + jac.set(K39, V47, 0.0); + + jac.set(K39, V49, 0.0); + + jac.set(K39, Cr46, 0.0); + + jac.set(K39, Cr48, 0.0); + + jac.set(K39, Cr50, 0.0); + + jac.set(K39, Cr52, 0.0); + + jac.set(K39, Mn49, 0.0); + + jac.set(K39, Mn51, 0.0); + + jac.set(K39, Mn53, 0.0); + + jac.set(K39, Fe50, 0.0); + + jac.set(K39, Fe52, 0.0); + + jac.set(K39, Fe54, 0.0); + + jac.set(K39, Fe56, 0.0); + + jac.set(K39, Co53, 0.0); + + jac.set(K39, Co55, 0.0); + + jac.set(K39, Co56, 0.0); + + jac.set(K39, Co57, 0.0); + + jac.set(K39, Ni56, 0.0); + + jac.set(K39, Ni58, 0.0); + + jac.set(K39, Cu59, 0.0); + + + // Ca38 row + + scratch = -1.0*screened_rates(k_Ca38_n_n_to_Ca40_approx)*Y(Ca38)*Y(N)*amrex::Math::powi<2>(state.rho) + - 0.5*Y(Ca38)*amrex::Math::powi<2>(Y(N))*amrex::Math::powi<2>(state.rho)*rate_eval.drate_Ca38_n_n_to_Ca40_approx_dYN + + Y(Ca40)*rate_eval.drate_Ca40_to_Ca38_n_n_approx_dYN; + jac.set(Ca38, N, scratch); + + scratch = screened_rates(k_K37_p_to_Ca38_reaclib)*Y(K37)*state.rho + + screened_rates(k_Sc41_p_to_He4_Ca38_derived)*Y(Sc41)*state.rho; + jac.set(Ca38, H1, scratch); + + scratch = screened_rates(k_Ar34_He4_to_Ca38_reaclib)*Y(Ar34)*state.rho + - screened_rates(k_Ca38_He4_to_Ti42_reaclib)*Y(Ca38)*state.rho + - screened_rates(k_Ca38_He4_to_p_Sc41_reaclib)*Y(Ca38)*state.rho; + jac.set(Ca38, He4, scratch); + + jac.set(Ca38, C12, 0.0); + + jac.set(Ca38, O16, 0.0); + + jac.set(Ca38, Ne20, 0.0); + + jac.set(Ca38, Mg23, 0.0); + + jac.set(Ca38, Mg24, 0.0); + + jac.set(Ca38, Al27, 0.0); + + jac.set(Ca38, Si27, 0.0); + + jac.set(Ca38, Si28, 0.0); + + jac.set(Ca38, Si30, 0.0); + + jac.set(Ca38, P29, 0.0); + + jac.set(Ca38, P31, 0.0); + + jac.set(Ca38, S30, 0.0); + + jac.set(Ca38, S32, 0.0); + + jac.set(Ca38, S34, 0.0); + + jac.set(Ca38, Cl33, 0.0); + + jac.set(Ca38, Cl35, 0.0); + + scratch = screened_rates(k_Ar34_He4_to_Ca38_reaclib)*Y(He4)*state.rho; + jac.set(Ca38, Ar34, scratch); + + jac.set(Ca38, Ar36, 0.0); + + jac.set(Ca38, Ar38, 0.0); + + scratch = screened_rates(k_K37_p_to_Ca38_reaclib)*Y(H1)*state.rho; + jac.set(Ca38, K37, scratch); + + jac.set(Ca38, K39, 0.0); + + scratch = -screened_rates(k_Ca38_He4_to_Ti42_reaclib)*Y(He4)*state.rho + - screened_rates(k_Ca38_He4_to_p_Sc41_reaclib)*Y(He4)*state.rho + - 0.5*screened_rates(k_Ca38_n_n_to_Ca40_approx)*amrex::Math::powi<2>(Y(N))*amrex::Math::powi<2>(state.rho) + - screened_rates(k_Ca38_to_He4_Ar34_derived) + - screened_rates(k_Ca38_to_p_K37_derived); + jac.set(Ca38, Ca38, scratch); + + scratch = screened_rates(k_Ca40_to_Ca38_n_n_approx); + jac.set(Ca38, Ca40, scratch); + + jac.set(Ca38, Ca42, 0.0); + + scratch = screened_rates(k_Sc41_p_to_He4_Ca38_derived)*Y(H1)*state.rho; + jac.set(Ca38, Sc41, scratch); + + jac.set(Ca38, Sc43, 0.0); + + scratch = screened_rates(k_Ti42_to_He4_Ca38_derived); + jac.set(Ca38, Ti42, scratch); + + jac.set(Ca38, Ti44, 0.0); + + jac.set(Ca38, Ti46, 0.0); + + jac.set(Ca38, V45, 0.0); + + jac.set(Ca38, V47, 0.0); + + jac.set(Ca38, V49, 0.0); + + jac.set(Ca38, Cr46, 0.0); + + jac.set(Ca38, Cr48, 0.0); + + jac.set(Ca38, Cr50, 0.0); + + jac.set(Ca38, Cr52, 0.0); + + jac.set(Ca38, Mn49, 0.0); + + jac.set(Ca38, Mn51, 0.0); + + jac.set(Ca38, Mn53, 0.0); + + jac.set(Ca38, Fe50, 0.0); + + jac.set(Ca38, Fe52, 0.0); + + jac.set(Ca38, Fe54, 0.0); + + jac.set(Ca38, Fe56, 0.0); + + jac.set(Ca38, Co53, 0.0); + + jac.set(Ca38, Co55, 0.0); + + jac.set(Ca38, Co56, 0.0); + + jac.set(Ca38, Co57, 0.0); + + jac.set(Ca38, Ni56, 0.0); + + jac.set(Ca38, Ni58, 0.0); + + jac.set(Ca38, Cu59, 0.0); + + + // Ca40 row + + scratch = 1.0*screened_rates(k_Ca38_n_n_to_Ca40_approx)*Y(Ca38)*Y(N)*amrex::Math::powi<2>(state.rho) + - 1.0*screened_rates(k_Ca40_n_n_to_Ca42_approx)*Y(Ca40)*Y(N)*amrex::Math::powi<2>(state.rho) + + 0.5*Y(Ca38)*amrex::Math::powi<2>(Y(N))*amrex::Math::powi<2>(state.rho)*rate_eval.drate_Ca38_n_n_to_Ca40_approx_dYN + - 0.5*Y(Ca40)*amrex::Math::powi<2>(Y(N))*amrex::Math::powi<2>(state.rho)*rate_eval.drate_Ca40_n_n_to_Ca42_approx_dYN + - Y(Ca40)*rate_eval.drate_Ca40_to_Ca38_n_n_approx_dYN + + Y(Ca42)*rate_eval.drate_Ca42_to_Ca40_n_n_approx_dYN; + jac.set(Ca40, N, scratch); + + scratch = -screened_rates(k_Ca40_p_to_He4_K37_derived)*Y(Ca40)*state.rho + - screened_rates(k_Ca40_p_to_Sc41_reaclib)*Y(Ca40)*state.rho + + screened_rates(k_K39_p_to_Ca40_reaclib)*Y(K39)*state.rho + + screened_rates(k_Sc43_p_to_He4_Ca40_reaclib)*Y(Sc43)*state.rho; + jac.set(Ca40, H1, scratch); + + scratch = screened_rates(k_Ar36_He4_to_Ca40_reaclib)*Y(Ar36)*state.rho + - screened_rates(k_Ca40_He4_to_Ti44_reaclib)*Y(Ca40)*state.rho + - screened_rates(k_Ca40_He4_to_p_Sc43_derived)*Y(Ca40)*state.rho + + screened_rates(k_K37_He4_to_p_Ca40_reaclib)*Y(K37)*state.rho; + jac.set(Ca40, He4, scratch); + + jac.set(Ca40, C12, 0.0); + + jac.set(Ca40, O16, 0.0); + + jac.set(Ca40, Ne20, 0.0); + + jac.set(Ca40, Mg23, 0.0); + + jac.set(Ca40, Mg24, 0.0); + + jac.set(Ca40, Al27, 0.0); + + jac.set(Ca40, Si27, 0.0); + + jac.set(Ca40, Si28, 0.0); + + jac.set(Ca40, Si30, 0.0); + + jac.set(Ca40, P29, 0.0); + + jac.set(Ca40, P31, 0.0); + + jac.set(Ca40, S30, 0.0); + + jac.set(Ca40, S32, 0.0); + + jac.set(Ca40, S34, 0.0); + + jac.set(Ca40, Cl33, 0.0); + + jac.set(Ca40, Cl35, 0.0); + + jac.set(Ca40, Ar34, 0.0); + + scratch = screened_rates(k_Ar36_He4_to_Ca40_reaclib)*Y(He4)*state.rho; + jac.set(Ca40, Ar36, scratch); + + jac.set(Ca40, Ar38, 0.0); + + scratch = screened_rates(k_K37_He4_to_p_Ca40_reaclib)*Y(He4)*state.rho; + jac.set(Ca40, K37, scratch); + + scratch = screened_rates(k_K39_p_to_Ca40_reaclib)*Y(H1)*state.rho; + jac.set(Ca40, K39, scratch); + + scratch = 0.5*screened_rates(k_Ca38_n_n_to_Ca40_approx)*amrex::Math::powi<2>(Y(N))*amrex::Math::powi<2>(state.rho); + jac.set(Ca40, Ca38, scratch); + + scratch = -screened_rates(k_Ca40_He4_to_Ti44_reaclib)*Y(He4)*state.rho + - screened_rates(k_Ca40_He4_to_p_Sc43_derived)*Y(He4)*state.rho + - 0.5*screened_rates(k_Ca40_n_n_to_Ca42_approx)*amrex::Math::powi<2>(Y(N))*amrex::Math::powi<2>(state.rho) + - screened_rates(k_Ca40_p_to_He4_K37_derived)*Y(H1)*state.rho + - screened_rates(k_Ca40_p_to_Sc41_reaclib)*Y(H1)*state.rho + - screened_rates(k_Ca40_to_Ca38_n_n_approx) + - screened_rates(k_Ca40_to_He4_Ar36_derived) + - screened_rates(k_Ca40_to_p_K39_derived); + jac.set(Ca40, Ca40, scratch); + + scratch = screened_rates(k_Ca42_to_Ca40_n_n_approx); + jac.set(Ca40, Ca42, scratch); + + scratch = screened_rates(k_Sc41_to_p_Ca40_derived); + jac.set(Ca40, Sc41, scratch); + + scratch = screened_rates(k_Sc43_p_to_He4_Ca40_reaclib)*Y(H1)*state.rho; + jac.set(Ca40, Sc43, scratch); + + jac.set(Ca40, Ti42, 0.0); + + scratch = screened_rates(k_Ti44_to_He4_Ca40_derived); + jac.set(Ca40, Ti44, scratch); + + jac.set(Ca40, Ti46, 0.0); + + jac.set(Ca40, V45, 0.0); + + jac.set(Ca40, V47, 0.0); + + jac.set(Ca40, V49, 0.0); + + jac.set(Ca40, Cr46, 0.0); + + jac.set(Ca40, Cr48, 0.0); + + jac.set(Ca40, Cr50, 0.0); + + jac.set(Ca40, Cr52, 0.0); + + jac.set(Ca40, Mn49, 0.0); + + jac.set(Ca40, Mn51, 0.0); + + jac.set(Ca40, Mn53, 0.0); + + jac.set(Ca40, Fe50, 0.0); + + jac.set(Ca40, Fe52, 0.0); + + jac.set(Ca40, Fe54, 0.0); + + jac.set(Ca40, Fe56, 0.0); + + jac.set(Ca40, Co53, 0.0); + + jac.set(Ca40, Co55, 0.0); + + jac.set(Ca40, Co56, 0.0); + + jac.set(Ca40, Co57, 0.0); + + jac.set(Ca40, Ni56, 0.0); + + jac.set(Ca40, Ni58, 0.0); + + jac.set(Ca40, Cu59, 0.0); + + + // Ca42 row + + scratch = 1.0*screened_rates(k_Ca40_n_n_to_Ca42_approx)*Y(Ca40)*Y(N)*amrex::Math::powi<2>(state.rho) + + 0.5*Y(Ca40)*amrex::Math::powi<2>(Y(N))*amrex::Math::powi<2>(state.rho)*rate_eval.drate_Ca40_n_n_to_Ca42_approx_dYN + - Y(Ca42)*rate_eval.drate_Ca42_to_Ca40_n_n_approx_dYN; + jac.set(Ca42, N, scratch); + + scratch = -screened_rates(k_Ca42_p_to_He4_K39_reaclib)*Y(Ca42)*state.rho + - screened_rates(k_Ca42_p_to_Sc43_reaclib)*Y(Ca42)*state.rho; + jac.set(Ca42, H1, scratch); + + scratch = screened_rates(k_Ar38_He4_to_Ca42_reaclib)*Y(Ar38)*state.rho + - screened_rates(k_Ca42_He4_to_Ti46_reaclib)*Y(Ca42)*state.rho + + screened_rates(k_K39_He4_to_p_Ca42_derived)*Y(K39)*state.rho; + jac.set(Ca42, He4, scratch); + + jac.set(Ca42, C12, 0.0); + + jac.set(Ca42, O16, 0.0); + + jac.set(Ca42, Ne20, 0.0); + + jac.set(Ca42, Mg23, 0.0); + + jac.set(Ca42, Mg24, 0.0); + + jac.set(Ca42, Al27, 0.0); + + jac.set(Ca42, Si27, 0.0); + + jac.set(Ca42, Si28, 0.0); + + jac.set(Ca42, Si30, 0.0); + + jac.set(Ca42, P29, 0.0); + + jac.set(Ca42, P31, 0.0); + + jac.set(Ca42, S30, 0.0); + + jac.set(Ca42, S32, 0.0); + + jac.set(Ca42, S34, 0.0); + + jac.set(Ca42, Cl33, 0.0); + + jac.set(Ca42, Cl35, 0.0); + + jac.set(Ca42, Ar34, 0.0); + + jac.set(Ca42, Ar36, 0.0); + + scratch = screened_rates(k_Ar38_He4_to_Ca42_reaclib)*Y(He4)*state.rho; + jac.set(Ca42, Ar38, scratch); + + jac.set(Ca42, K37, 0.0); + + scratch = screened_rates(k_K39_He4_to_p_Ca42_derived)*Y(He4)*state.rho; + jac.set(Ca42, K39, scratch); + + jac.set(Ca42, Ca38, 0.0); + + scratch = 0.5*screened_rates(k_Ca40_n_n_to_Ca42_approx)*amrex::Math::powi<2>(Y(N))*amrex::Math::powi<2>(state.rho); + jac.set(Ca42, Ca40, scratch); + + scratch = -screened_rates(k_Ca42_He4_to_Ti46_reaclib)*Y(He4)*state.rho + - screened_rates(k_Ca42_p_to_He4_K39_reaclib)*Y(H1)*state.rho + - screened_rates(k_Ca42_p_to_Sc43_reaclib)*Y(H1)*state.rho + - screened_rates(k_Ca42_to_Ca40_n_n_approx) + - screened_rates(k_Ca42_to_He4_Ar38_derived); + jac.set(Ca42, Ca42, scratch); + + jac.set(Ca42, Sc41, 0.0); + + scratch = screened_rates(k_Sc43_to_p_Ca42_derived); + jac.set(Ca42, Sc43, scratch); + + jac.set(Ca42, Ti42, 0.0); + + jac.set(Ca42, Ti44, 0.0); + + scratch = screened_rates(k_Ti46_to_He4_Ca42_derived); + jac.set(Ca42, Ti46, scratch); + + jac.set(Ca42, V45, 0.0); + + jac.set(Ca42, V47, 0.0); + + jac.set(Ca42, V49, 0.0); + + jac.set(Ca42, Cr46, 0.0); + + jac.set(Ca42, Cr48, 0.0); + + jac.set(Ca42, Cr50, 0.0); + + jac.set(Ca42, Cr52, 0.0); + + jac.set(Ca42, Mn49, 0.0); + + jac.set(Ca42, Mn51, 0.0); + + jac.set(Ca42, Mn53, 0.0); + + jac.set(Ca42, Fe50, 0.0); + + jac.set(Ca42, Fe52, 0.0); + + jac.set(Ca42, Fe54, 0.0); + + jac.set(Ca42, Fe56, 0.0); + + jac.set(Ca42, Co53, 0.0); + + jac.set(Ca42, Co55, 0.0); + + jac.set(Ca42, Co56, 0.0); + + jac.set(Ca42, Co57, 0.0); + + jac.set(Ca42, Ni56, 0.0); + + jac.set(Ca42, Ni58, 0.0); + + jac.set(Ca42, Cu59, 0.0); + + + // Sc41 row + + scratch = -1.0*screened_rates(k_Sc41_n_n_to_Sc43_approx)*Y(Sc41)*Y(N)*amrex::Math::powi<2>(state.rho) + - 0.5*Y(Sc41)*amrex::Math::powi<2>(Y(N))*amrex::Math::powi<2>(state.rho)*rate_eval.drate_Sc41_n_n_to_Sc43_approx_dYN + + Y(Sc43)*rate_eval.drate_Sc43_to_Sc41_n_n_approx_dYN; + jac.set(Sc41, N, scratch); + + scratch = screened_rates(k_Ca40_p_to_Sc41_reaclib)*Y(Ca40)*state.rho + - screened_rates(k_Sc41_p_to_He4_Ca38_derived)*Y(Sc41)*state.rho + - screened_rates(k_Sc41_p_to_Ti42_reaclib)*Y(Sc41)*state.rho + + screened_rates(k_Ti44_p_to_He4_Sc41_derived)*Y(Ti44)*state.rho; + jac.set(Sc41, H1, scratch); + + scratch = screened_rates(k_Ca38_He4_to_p_Sc41_reaclib)*Y(Ca38)*state.rho + + screened_rates(k_K37_He4_to_Sc41_reaclib)*Y(K37)*state.rho + - screened_rates(k_Sc41_He4_to_V45_reaclib)*Y(Sc41)*state.rho + - screened_rates(k_Sc41_He4_to_p_Ti44_reaclib)*Y(Sc41)*state.rho; + jac.set(Sc41, He4, scratch); + + jac.set(Sc41, C12, 0.0); + + jac.set(Sc41, O16, 0.0); + + jac.set(Sc41, Ne20, 0.0); + + jac.set(Sc41, Mg23, 0.0); + + jac.set(Sc41, Mg24, 0.0); + + jac.set(Sc41, Al27, 0.0); + + jac.set(Sc41, Si27, 0.0); + + jac.set(Sc41, Si28, 0.0); + + jac.set(Sc41, Si30, 0.0); + + jac.set(Sc41, P29, 0.0); + + jac.set(Sc41, P31, 0.0); + + jac.set(Sc41, S30, 0.0); + + jac.set(Sc41, S32, 0.0); + + jac.set(Sc41, S34, 0.0); + + jac.set(Sc41, Cl33, 0.0); + + jac.set(Sc41, Cl35, 0.0); + + jac.set(Sc41, Ar34, 0.0); + + jac.set(Sc41, Ar36, 0.0); + + jac.set(Sc41, Ar38, 0.0); + + scratch = screened_rates(k_K37_He4_to_Sc41_reaclib)*Y(He4)*state.rho; + jac.set(Sc41, K37, scratch); + + jac.set(Sc41, K39, 0.0); + + scratch = screened_rates(k_Ca38_He4_to_p_Sc41_reaclib)*Y(He4)*state.rho; + jac.set(Sc41, Ca38, scratch); + + scratch = screened_rates(k_Ca40_p_to_Sc41_reaclib)*Y(H1)*state.rho; + jac.set(Sc41, Ca40, scratch); + + jac.set(Sc41, Ca42, 0.0); + + scratch = -screened_rates(k_Sc41_He4_to_V45_reaclib)*Y(He4)*state.rho + - screened_rates(k_Sc41_He4_to_p_Ti44_reaclib)*Y(He4)*state.rho + - 0.5*screened_rates(k_Sc41_n_n_to_Sc43_approx)*amrex::Math::powi<2>(Y(N))*amrex::Math::powi<2>(state.rho) + - screened_rates(k_Sc41_p_to_He4_Ca38_derived)*Y(H1)*state.rho + - screened_rates(k_Sc41_p_to_Ti42_reaclib)*Y(H1)*state.rho + - screened_rates(k_Sc41_to_He4_K37_derived) + - screened_rates(k_Sc41_to_p_Ca40_derived); + jac.set(Sc41, Sc41, scratch); + + scratch = screened_rates(k_Sc43_to_Sc41_n_n_approx); + jac.set(Sc41, Sc43, scratch); + + scratch = screened_rates(k_Ti42_to_p_Sc41_derived); + jac.set(Sc41, Ti42, scratch); + + scratch = screened_rates(k_Ti44_p_to_He4_Sc41_derived)*Y(H1)*state.rho; + jac.set(Sc41, Ti44, scratch); + + jac.set(Sc41, Ti46, 0.0); + + scratch = screened_rates(k_V45_to_He4_Sc41_derived); + jac.set(Sc41, V45, scratch); + + jac.set(Sc41, V47, 0.0); + + jac.set(Sc41, V49, 0.0); + + jac.set(Sc41, Cr46, 0.0); + + jac.set(Sc41, Cr48, 0.0); + + jac.set(Sc41, Cr50, 0.0); + + jac.set(Sc41, Cr52, 0.0); + + jac.set(Sc41, Mn49, 0.0); + + jac.set(Sc41, Mn51, 0.0); + + jac.set(Sc41, Mn53, 0.0); + + jac.set(Sc41, Fe50, 0.0); + + jac.set(Sc41, Fe52, 0.0); + + jac.set(Sc41, Fe54, 0.0); + + jac.set(Sc41, Fe56, 0.0); + + jac.set(Sc41, Co53, 0.0); + + jac.set(Sc41, Co55, 0.0); + + jac.set(Sc41, Co56, 0.0); + + jac.set(Sc41, Co57, 0.0); + + jac.set(Sc41, Ni56, 0.0); + + jac.set(Sc41, Ni58, 0.0); + + jac.set(Sc41, Cu59, 0.0); + + + // Sc43 row + + scratch = 1.0*screened_rates(k_Sc41_n_n_to_Sc43_approx)*Y(Sc41)*Y(N)*amrex::Math::powi<2>(state.rho) + + 0.5*Y(Sc41)*amrex::Math::powi<2>(Y(N))*amrex::Math::powi<2>(state.rho)*rate_eval.drate_Sc41_n_n_to_Sc43_approx_dYN + - Y(Sc43)*rate_eval.drate_Sc43_to_Sc41_n_n_approx_dYN; + jac.set(Sc43, N, scratch); + + scratch = screened_rates(k_Ca42_p_to_Sc43_reaclib)*Y(Ca42)*state.rho + - screened_rates(k_Sc43_p_to_He4_Ca40_reaclib)*Y(Sc43)*state.rho + - screened_rates(k_Sc43_p_to_Ti44_reaclib)*Y(Sc43)*state.rho + + screened_rates(k_Ti46_p_to_He4_Sc43_derived)*Y(Ti46)*state.rho; + jac.set(Sc43, H1, scratch); + + scratch = screened_rates(k_Ca40_He4_to_p_Sc43_derived)*Y(Ca40)*state.rho + + screened_rates(k_K39_He4_to_Sc43_reaclib)*Y(K39)*state.rho + - screened_rates(k_Sc43_He4_to_V47_reaclib)*Y(Sc43)*state.rho + - screened_rates(k_Sc43_He4_to_p_Ti46_reaclib)*Y(Sc43)*state.rho; + jac.set(Sc43, He4, scratch); + + jac.set(Sc43, C12, 0.0); + + jac.set(Sc43, O16, 0.0); + + jac.set(Sc43, Ne20, 0.0); + + jac.set(Sc43, Mg23, 0.0); + + jac.set(Sc43, Mg24, 0.0); + + jac.set(Sc43, Al27, 0.0); + + jac.set(Sc43, Si27, 0.0); + + jac.set(Sc43, Si28, 0.0); + + jac.set(Sc43, Si30, 0.0); + + jac.set(Sc43, P29, 0.0); + + jac.set(Sc43, P31, 0.0); + + jac.set(Sc43, S30, 0.0); + + jac.set(Sc43, S32, 0.0); + + jac.set(Sc43, S34, 0.0); + + jac.set(Sc43, Cl33, 0.0); + + jac.set(Sc43, Cl35, 0.0); + + jac.set(Sc43, Ar34, 0.0); + + jac.set(Sc43, Ar36, 0.0); + + jac.set(Sc43, Ar38, 0.0); + + jac.set(Sc43, K37, 0.0); + + scratch = screened_rates(k_K39_He4_to_Sc43_reaclib)*Y(He4)*state.rho; + jac.set(Sc43, K39, scratch); + + jac.set(Sc43, Ca38, 0.0); + + scratch = screened_rates(k_Ca40_He4_to_p_Sc43_derived)*Y(He4)*state.rho; + jac.set(Sc43, Ca40, scratch); + + scratch = screened_rates(k_Ca42_p_to_Sc43_reaclib)*Y(H1)*state.rho; + jac.set(Sc43, Ca42, scratch); + + scratch = 0.5*screened_rates(k_Sc41_n_n_to_Sc43_approx)*amrex::Math::powi<2>(Y(N))*amrex::Math::powi<2>(state.rho); + jac.set(Sc43, Sc41, scratch); + + scratch = -screened_rates(k_Sc43_He4_to_V47_reaclib)*Y(He4)*state.rho + - screened_rates(k_Sc43_He4_to_p_Ti46_reaclib)*Y(He4)*state.rho + - screened_rates(k_Sc43_p_to_He4_Ca40_reaclib)*Y(H1)*state.rho + - screened_rates(k_Sc43_p_to_Ti44_reaclib)*Y(H1)*state.rho + - screened_rates(k_Sc43_to_He4_K39_derived) + - screened_rates(k_Sc43_to_Sc41_n_n_approx) + - screened_rates(k_Sc43_to_p_Ca42_derived); + jac.set(Sc43, Sc43, scratch); + + jac.set(Sc43, Ti42, 0.0); + + scratch = screened_rates(k_Ti44_to_p_Sc43_derived); + jac.set(Sc43, Ti44, scratch); + + scratch = screened_rates(k_Ti46_p_to_He4_Sc43_derived)*Y(H1)*state.rho; + jac.set(Sc43, Ti46, scratch); + + jac.set(Sc43, V45, 0.0); + + scratch = screened_rates(k_V47_to_He4_Sc43_derived); + jac.set(Sc43, V47, scratch); + + jac.set(Sc43, V49, 0.0); + + jac.set(Sc43, Cr46, 0.0); + + jac.set(Sc43, Cr48, 0.0); + + jac.set(Sc43, Cr50, 0.0); + + jac.set(Sc43, Cr52, 0.0); + + jac.set(Sc43, Mn49, 0.0); + + jac.set(Sc43, Mn51, 0.0); + + jac.set(Sc43, Mn53, 0.0); + + jac.set(Sc43, Fe50, 0.0); + + jac.set(Sc43, Fe52, 0.0); + + jac.set(Sc43, Fe54, 0.0); + + jac.set(Sc43, Fe56, 0.0); + + jac.set(Sc43, Co53, 0.0); + + jac.set(Sc43, Co55, 0.0); + + jac.set(Sc43, Co56, 0.0); + + jac.set(Sc43, Co57, 0.0); + + jac.set(Sc43, Ni56, 0.0); + + jac.set(Sc43, Ni58, 0.0); + + jac.set(Sc43, Cu59, 0.0); + + + // Ti42 row + + scratch = -1.0*screened_rates(k_Ti42_n_n_to_Ti44_approx)*Y(Ti42)*Y(N)*amrex::Math::powi<2>(state.rho) + - 0.5*Y(Ti42)*amrex::Math::powi<2>(Y(N))*amrex::Math::powi<2>(state.rho)*rate_eval.drate_Ti42_n_n_to_Ti44_approx_dYN + + Y(Ti44)*rate_eval.drate_Ti44_to_Ti42_n_n_approx_dYN; + jac.set(Ti42, N, scratch); + + scratch = screened_rates(k_Sc41_p_to_Ti42_reaclib)*Y(Sc41)*state.rho + + screened_rates(k_V45_p_to_He4_Ti42_derived)*Y(V45)*state.rho; + jac.set(Ti42, H1, scratch); + + scratch = screened_rates(k_Ca38_He4_to_Ti42_reaclib)*Y(Ca38)*state.rho + - screened_rates(k_Ti42_He4_to_Cr46_reaclib)*Y(Ti42)*state.rho + - screened_rates(k_Ti42_He4_to_p_V45_reaclib)*Y(Ti42)*state.rho; + jac.set(Ti42, He4, scratch); + + jac.set(Ti42, C12, 0.0); + + jac.set(Ti42, O16, 0.0); + + jac.set(Ti42, Ne20, 0.0); + + jac.set(Ti42, Mg23, 0.0); + + jac.set(Ti42, Mg24, 0.0); + + jac.set(Ti42, Al27, 0.0); + + jac.set(Ti42, Si27, 0.0); + + jac.set(Ti42, Si28, 0.0); + + jac.set(Ti42, Si30, 0.0); + + jac.set(Ti42, P29, 0.0); + + jac.set(Ti42, P31, 0.0); + + jac.set(Ti42, S30, 0.0); + + jac.set(Ti42, S32, 0.0); + + jac.set(Ti42, S34, 0.0); + + jac.set(Ti42, Cl33, 0.0); + + jac.set(Ti42, Cl35, 0.0); + + jac.set(Ti42, Ar34, 0.0); + + jac.set(Ti42, Ar36, 0.0); + + jac.set(Ti42, Ar38, 0.0); + + jac.set(Ti42, K37, 0.0); + + jac.set(Ti42, K39, 0.0); + + scratch = screened_rates(k_Ca38_He4_to_Ti42_reaclib)*Y(He4)*state.rho; + jac.set(Ti42, Ca38, scratch); + + jac.set(Ti42, Ca40, 0.0); + + jac.set(Ti42, Ca42, 0.0); + + scratch = screened_rates(k_Sc41_p_to_Ti42_reaclib)*Y(H1)*state.rho; + jac.set(Ti42, Sc41, scratch); + + jac.set(Ti42, Sc43, 0.0); + + scratch = -screened_rates(k_Ti42_He4_to_Cr46_reaclib)*Y(He4)*state.rho + - screened_rates(k_Ti42_He4_to_p_V45_reaclib)*Y(He4)*state.rho + - 0.5*screened_rates(k_Ti42_n_n_to_Ti44_approx)*amrex::Math::powi<2>(Y(N))*amrex::Math::powi<2>(state.rho) + - screened_rates(k_Ti42_to_He4_Ca38_derived) + - screened_rates(k_Ti42_to_p_Sc41_derived); + jac.set(Ti42, Ti42, scratch); + + scratch = screened_rates(k_Ti44_to_Ti42_n_n_approx); + jac.set(Ti42, Ti44, scratch); + + jac.set(Ti42, Ti46, 0.0); + + scratch = screened_rates(k_V45_p_to_He4_Ti42_derived)*Y(H1)*state.rho; + jac.set(Ti42, V45, scratch); + + jac.set(Ti42, V47, 0.0); + + jac.set(Ti42, V49, 0.0); + + scratch = screened_rates(k_Cr46_to_He4_Ti42_derived); + jac.set(Ti42, Cr46, scratch); + + jac.set(Ti42, Cr48, 0.0); + + jac.set(Ti42, Cr50, 0.0); + + jac.set(Ti42, Cr52, 0.0); + + jac.set(Ti42, Mn49, 0.0); + + jac.set(Ti42, Mn51, 0.0); + + jac.set(Ti42, Mn53, 0.0); + + jac.set(Ti42, Fe50, 0.0); + + jac.set(Ti42, Fe52, 0.0); + + jac.set(Ti42, Fe54, 0.0); + + jac.set(Ti42, Fe56, 0.0); + + jac.set(Ti42, Co53, 0.0); + + jac.set(Ti42, Co55, 0.0); + + jac.set(Ti42, Co56, 0.0); + + jac.set(Ti42, Co57, 0.0); + + jac.set(Ti42, Ni56, 0.0); + + jac.set(Ti42, Ni58, 0.0); + + jac.set(Ti42, Cu59, 0.0); + + + // Ti44 row + + scratch = 1.0*screened_rates(k_Ti42_n_n_to_Ti44_approx)*Y(Ti42)*Y(N)*amrex::Math::powi<2>(state.rho) + - 1.0*screened_rates(k_Ti44_n_n_to_Ti46_approx)*Y(Ti44)*Y(N)*amrex::Math::powi<2>(state.rho) + + 0.5*Y(Ti42)*amrex::Math::powi<2>(Y(N))*amrex::Math::powi<2>(state.rho)*rate_eval.drate_Ti42_n_n_to_Ti44_approx_dYN + - 0.5*Y(Ti44)*amrex::Math::powi<2>(Y(N))*amrex::Math::powi<2>(state.rho)*rate_eval.drate_Ti44_n_n_to_Ti46_approx_dYN + - Y(Ti44)*rate_eval.drate_Ti44_to_Ti42_n_n_approx_dYN + + Y(Ti46)*rate_eval.drate_Ti46_to_Ti44_n_n_approx_dYN; + jac.set(Ti44, N, scratch); + + scratch = screened_rates(k_Sc43_p_to_Ti44_reaclib)*Y(Sc43)*state.rho + - screened_rates(k_Ti44_p_to_He4_Sc41_derived)*Y(Ti44)*state.rho + - screened_rates(k_Ti44_p_to_V45_reaclib)*Y(Ti44)*state.rho + + screened_rates(k_V47_p_to_He4_Ti44_derived)*Y(V47)*state.rho; + jac.set(Ti44, H1, scratch); + + scratch = screened_rates(k_Ca40_He4_to_Ti44_reaclib)*Y(Ca40)*state.rho + + screened_rates(k_Sc41_He4_to_p_Ti44_reaclib)*Y(Sc41)*state.rho + - screened_rates(k_Ti44_He4_to_Cr48_reaclib)*Y(Ti44)*state.rho + - screened_rates(k_Ti44_He4_to_p_V47_reaclib)*Y(Ti44)*state.rho; + jac.set(Ti44, He4, scratch); + + jac.set(Ti44, C12, 0.0); + + jac.set(Ti44, O16, 0.0); + + jac.set(Ti44, Ne20, 0.0); + + jac.set(Ti44, Mg23, 0.0); + + jac.set(Ti44, Mg24, 0.0); + + jac.set(Ti44, Al27, 0.0); + + jac.set(Ti44, Si27, 0.0); + + jac.set(Ti44, Si28, 0.0); + + jac.set(Ti44, Si30, 0.0); + + jac.set(Ti44, P29, 0.0); + + jac.set(Ti44, P31, 0.0); + + jac.set(Ti44, S30, 0.0); + + jac.set(Ti44, S32, 0.0); + + jac.set(Ti44, S34, 0.0); + + jac.set(Ti44, Cl33, 0.0); + + jac.set(Ti44, Cl35, 0.0); + + jac.set(Ti44, Ar34, 0.0); + + jac.set(Ti44, Ar36, 0.0); + + jac.set(Ti44, Ar38, 0.0); + + jac.set(Ti44, K37, 0.0); + + jac.set(Ti44, K39, 0.0); + + jac.set(Ti44, Ca38, 0.0); + + scratch = screened_rates(k_Ca40_He4_to_Ti44_reaclib)*Y(He4)*state.rho; + jac.set(Ti44, Ca40, scratch); + + jac.set(Ti44, Ca42, 0.0); + + scratch = screened_rates(k_Sc41_He4_to_p_Ti44_reaclib)*Y(He4)*state.rho; + jac.set(Ti44, Sc41, scratch); + + scratch = screened_rates(k_Sc43_p_to_Ti44_reaclib)*Y(H1)*state.rho; + jac.set(Ti44, Sc43, scratch); + + scratch = 0.5*screened_rates(k_Ti42_n_n_to_Ti44_approx)*amrex::Math::powi<2>(Y(N))*amrex::Math::powi<2>(state.rho); + jac.set(Ti44, Ti42, scratch); + + scratch = -screened_rates(k_Ti44_He4_to_Cr48_reaclib)*Y(He4)*state.rho + - screened_rates(k_Ti44_He4_to_p_V47_reaclib)*Y(He4)*state.rho + - 0.5*screened_rates(k_Ti44_n_n_to_Ti46_approx)*amrex::Math::powi<2>(Y(N))*amrex::Math::powi<2>(state.rho) + - screened_rates(k_Ti44_p_to_He4_Sc41_derived)*Y(H1)*state.rho + - screened_rates(k_Ti44_p_to_V45_reaclib)*Y(H1)*state.rho + - screened_rates(k_Ti44_to_He4_Ca40_derived) + - screened_rates(k_Ti44_to_Ti42_n_n_approx) + - screened_rates(k_Ti44_to_p_Sc43_derived); + jac.set(Ti44, Ti44, scratch); + + scratch = screened_rates(k_Ti46_to_Ti44_n_n_approx); + jac.set(Ti44, Ti46, scratch); + + scratch = screened_rates(k_V45_to_p_Ti44_derived); + jac.set(Ti44, V45, scratch); + + scratch = screened_rates(k_V47_p_to_He4_Ti44_derived)*Y(H1)*state.rho; + jac.set(Ti44, V47, scratch); + + jac.set(Ti44, V49, 0.0); + + jac.set(Ti44, Cr46, 0.0); + + scratch = screened_rates(k_Cr48_to_He4_Ti44_derived); + jac.set(Ti44, Cr48, scratch); + + jac.set(Ti44, Cr50, 0.0); + + jac.set(Ti44, Cr52, 0.0); + + jac.set(Ti44, Mn49, 0.0); + + jac.set(Ti44, Mn51, 0.0); + + jac.set(Ti44, Mn53, 0.0); + + jac.set(Ti44, Fe50, 0.0); + + jac.set(Ti44, Fe52, 0.0); + + jac.set(Ti44, Fe54, 0.0); + + jac.set(Ti44, Fe56, 0.0); + + jac.set(Ti44, Co53, 0.0); + + jac.set(Ti44, Co55, 0.0); + + jac.set(Ti44, Co56, 0.0); + + jac.set(Ti44, Co57, 0.0); + + jac.set(Ti44, Ni56, 0.0); + + jac.set(Ti44, Ni58, 0.0); + + jac.set(Ti44, Cu59, 0.0); + + + // Ti46 row + + scratch = 1.0*screened_rates(k_Ti44_n_n_to_Ti46_approx)*Y(Ti44)*Y(N)*amrex::Math::powi<2>(state.rho) + + 0.5*Y(Ti44)*amrex::Math::powi<2>(Y(N))*amrex::Math::powi<2>(state.rho)*rate_eval.drate_Ti44_n_n_to_Ti46_approx_dYN + - Y(Ti46)*rate_eval.drate_Ti46_to_Ti44_n_n_approx_dYN; + jac.set(Ti46, N, scratch); + + scratch = -screened_rates(k_Ti46_p_to_He4_Sc43_derived)*Y(Ti46)*state.rho + - screened_rates(k_Ti46_p_to_V47_reaclib)*Y(Ti46)*state.rho + + screened_rates(k_V49_p_to_He4_Ti46_reaclib)*Y(V49)*state.rho; + jac.set(Ti46, H1, scratch); + + scratch = screened_rates(k_Ca42_He4_to_Ti46_reaclib)*Y(Ca42)*state.rho + + screened_rates(k_Sc43_He4_to_p_Ti46_reaclib)*Y(Sc43)*state.rho + - screened_rates(k_Ti46_He4_to_Cr50_reaclib)*Y(Ti46)*state.rho + - screened_rates(k_Ti46_He4_to_p_V49_derived)*Y(Ti46)*state.rho; + jac.set(Ti46, He4, scratch); + + jac.set(Ti46, C12, 0.0); + + jac.set(Ti46, O16, 0.0); + + jac.set(Ti46, Ne20, 0.0); + + jac.set(Ti46, Mg23, 0.0); + + jac.set(Ti46, Mg24, 0.0); + + jac.set(Ti46, Al27, 0.0); + + jac.set(Ti46, Si27, 0.0); + + jac.set(Ti46, Si28, 0.0); + + jac.set(Ti46, Si30, 0.0); + + jac.set(Ti46, P29, 0.0); + + jac.set(Ti46, P31, 0.0); + + jac.set(Ti46, S30, 0.0); + + jac.set(Ti46, S32, 0.0); + + jac.set(Ti46, S34, 0.0); + + jac.set(Ti46, Cl33, 0.0); + + jac.set(Ti46, Cl35, 0.0); + + jac.set(Ti46, Ar34, 0.0); + + jac.set(Ti46, Ar36, 0.0); + + jac.set(Ti46, Ar38, 0.0); + + jac.set(Ti46, K37, 0.0); + + jac.set(Ti46, K39, 0.0); + + jac.set(Ti46, Ca38, 0.0); + + jac.set(Ti46, Ca40, 0.0); + + scratch = screened_rates(k_Ca42_He4_to_Ti46_reaclib)*Y(He4)*state.rho; + jac.set(Ti46, Ca42, scratch); + + jac.set(Ti46, Sc41, 0.0); + + scratch = screened_rates(k_Sc43_He4_to_p_Ti46_reaclib)*Y(He4)*state.rho; + jac.set(Ti46, Sc43, scratch); + + jac.set(Ti46, Ti42, 0.0); + + scratch = 0.5*screened_rates(k_Ti44_n_n_to_Ti46_approx)*amrex::Math::powi<2>(Y(N))*amrex::Math::powi<2>(state.rho); + jac.set(Ti46, Ti44, scratch); + + scratch = -screened_rates(k_Ti46_He4_to_Cr50_reaclib)*Y(He4)*state.rho + - screened_rates(k_Ti46_He4_to_p_V49_derived)*Y(He4)*state.rho + - screened_rates(k_Ti46_p_to_He4_Sc43_derived)*Y(H1)*state.rho + - screened_rates(k_Ti46_p_to_V47_reaclib)*Y(H1)*state.rho + - screened_rates(k_Ti46_to_He4_Ca42_derived) + - screened_rates(k_Ti46_to_Ti44_n_n_approx); + jac.set(Ti46, Ti46, scratch); + + jac.set(Ti46, V45, 0.0); + + scratch = screened_rates(k_V47_to_p_Ti46_derived); + jac.set(Ti46, V47, scratch); + + scratch = screened_rates(k_V49_p_to_He4_Ti46_reaclib)*Y(H1)*state.rho; + jac.set(Ti46, V49, scratch); + + jac.set(Ti46, Cr46, 0.0); + + jac.set(Ti46, Cr48, 0.0); + + scratch = screened_rates(k_Cr50_to_He4_Ti46_derived); + jac.set(Ti46, Cr50, scratch); + + jac.set(Ti46, Cr52, 0.0); + + jac.set(Ti46, Mn49, 0.0); + + jac.set(Ti46, Mn51, 0.0); + + jac.set(Ti46, Mn53, 0.0); + + jac.set(Ti46, Fe50, 0.0); + + jac.set(Ti46, Fe52, 0.0); + + jac.set(Ti46, Fe54, 0.0); + + jac.set(Ti46, Fe56, 0.0); + + jac.set(Ti46, Co53, 0.0); + + jac.set(Ti46, Co55, 0.0); + + jac.set(Ti46, Co56, 0.0); + + jac.set(Ti46, Co57, 0.0); + + jac.set(Ti46, Ni56, 0.0); + + jac.set(Ti46, Ni58, 0.0); + + jac.set(Ti46, Cu59, 0.0); + + + // V45 row + + scratch = -1.0*screened_rates(k_V45_n_n_to_V47_approx)*Y(V45)*Y(N)*amrex::Math::powi<2>(state.rho) + - 0.5*Y(V45)*amrex::Math::powi<2>(Y(N))*amrex::Math::powi<2>(state.rho)*rate_eval.drate_V45_n_n_to_V47_approx_dYN + + Y(V47)*rate_eval.drate_V47_to_V45_n_n_approx_dYN; + jac.set(V45, N, scratch); + + scratch = screened_rates(k_Cr48_p_to_He4_V45_derived)*Y(Cr48)*state.rho + + screened_rates(k_Ti44_p_to_V45_reaclib)*Y(Ti44)*state.rho + - screened_rates(k_V45_p_to_Cr46_reaclib)*Y(V45)*state.rho + - screened_rates(k_V45_p_to_He4_Ti42_derived)*Y(V45)*state.rho; + jac.set(V45, H1, scratch); + + scratch = screened_rates(k_Sc41_He4_to_V45_reaclib)*Y(Sc41)*state.rho + + screened_rates(k_Ti42_He4_to_p_V45_reaclib)*Y(Ti42)*state.rho + - screened_rates(k_V45_He4_to_Mn49_reaclib)*Y(V45)*state.rho + - screened_rates(k_V45_He4_to_p_Cr48_reaclib)*Y(V45)*state.rho; + jac.set(V45, He4, scratch); + + jac.set(V45, C12, 0.0); + + jac.set(V45, O16, 0.0); + + jac.set(V45, Ne20, 0.0); + + jac.set(V45, Mg23, 0.0); + + jac.set(V45, Mg24, 0.0); + + jac.set(V45, Al27, 0.0); + + jac.set(V45, Si27, 0.0); + + jac.set(V45, Si28, 0.0); + + jac.set(V45, Si30, 0.0); + + jac.set(V45, P29, 0.0); + + jac.set(V45, P31, 0.0); + + jac.set(V45, S30, 0.0); + + jac.set(V45, S32, 0.0); + + jac.set(V45, S34, 0.0); + + jac.set(V45, Cl33, 0.0); + + jac.set(V45, Cl35, 0.0); + + jac.set(V45, Ar34, 0.0); + + jac.set(V45, Ar36, 0.0); + + jac.set(V45, Ar38, 0.0); + + jac.set(V45, K37, 0.0); + + jac.set(V45, K39, 0.0); + + jac.set(V45, Ca38, 0.0); + + jac.set(V45, Ca40, 0.0); + + jac.set(V45, Ca42, 0.0); + + scratch = screened_rates(k_Sc41_He4_to_V45_reaclib)*Y(He4)*state.rho; + jac.set(V45, Sc41, scratch); + + jac.set(V45, Sc43, 0.0); + + scratch = screened_rates(k_Ti42_He4_to_p_V45_reaclib)*Y(He4)*state.rho; + jac.set(V45, Ti42, scratch); + + scratch = screened_rates(k_Ti44_p_to_V45_reaclib)*Y(H1)*state.rho; + jac.set(V45, Ti44, scratch); + + jac.set(V45, Ti46, 0.0); + + scratch = -screened_rates(k_V45_He4_to_Mn49_reaclib)*Y(He4)*state.rho + - screened_rates(k_V45_He4_to_p_Cr48_reaclib)*Y(He4)*state.rho + - 0.5*screened_rates(k_V45_n_n_to_V47_approx)*amrex::Math::powi<2>(Y(N))*amrex::Math::powi<2>(state.rho) + - screened_rates(k_V45_p_to_Cr46_reaclib)*Y(H1)*state.rho + - screened_rates(k_V45_p_to_He4_Ti42_derived)*Y(H1)*state.rho + - screened_rates(k_V45_to_He4_Sc41_derived) + - screened_rates(k_V45_to_p_Ti44_derived); + jac.set(V45, V45, scratch); + + scratch = screened_rates(k_V47_to_V45_n_n_approx); + jac.set(V45, V47, scratch); + + jac.set(V45, V49, 0.0); + + scratch = screened_rates(k_Cr46_to_p_V45_derived); + jac.set(V45, Cr46, scratch); + + scratch = screened_rates(k_Cr48_p_to_He4_V45_derived)*Y(H1)*state.rho; + jac.set(V45, Cr48, scratch); + + jac.set(V45, Cr50, 0.0); + + jac.set(V45, Cr52, 0.0); + + scratch = screened_rates(k_Mn49_to_He4_V45_derived); + jac.set(V45, Mn49, scratch); + + jac.set(V45, Mn51, 0.0); + + jac.set(V45, Mn53, 0.0); + + jac.set(V45, Fe50, 0.0); + + jac.set(V45, Fe52, 0.0); + + jac.set(V45, Fe54, 0.0); + + jac.set(V45, Fe56, 0.0); + + jac.set(V45, Co53, 0.0); + + jac.set(V45, Co55, 0.0); + + jac.set(V45, Co56, 0.0); + + jac.set(V45, Co57, 0.0); + + jac.set(V45, Ni56, 0.0); + + jac.set(V45, Ni58, 0.0); + + jac.set(V45, Cu59, 0.0); + + + // V47 row + + scratch = 1.0*screened_rates(k_V45_n_n_to_V47_approx)*Y(V45)*Y(N)*amrex::Math::powi<2>(state.rho) + - 1.0*screened_rates(k_V47_n_n_to_V49_approx)*Y(V47)*Y(N)*amrex::Math::powi<2>(state.rho) + + 0.5*Y(V45)*amrex::Math::powi<2>(Y(N))*amrex::Math::powi<2>(state.rho)*rate_eval.drate_V45_n_n_to_V47_approx_dYN + - 0.5*Y(V47)*amrex::Math::powi<2>(Y(N))*amrex::Math::powi<2>(state.rho)*rate_eval.drate_V47_n_n_to_V49_approx_dYN + - Y(V47)*rate_eval.drate_V47_to_V45_n_n_approx_dYN + + Y(V49)*rate_eval.drate_V49_to_V47_n_n_approx_dYN; + jac.set(V47, N, scratch); + + scratch = screened_rates(k_Cr50_p_to_He4_V47_derived)*Y(Cr50)*state.rho + + screened_rates(k_Ti46_p_to_V47_reaclib)*Y(Ti46)*state.rho + - screened_rates(k_V47_p_to_Cr48_reaclib)*Y(V47)*state.rho + - screened_rates(k_V47_p_to_He4_Ti44_derived)*Y(V47)*state.rho; + jac.set(V47, H1, scratch); + + scratch = screened_rates(k_Sc43_He4_to_V47_reaclib)*Y(Sc43)*state.rho + + screened_rates(k_Ti44_He4_to_p_V47_reaclib)*Y(Ti44)*state.rho + - screened_rates(k_V47_He4_to_Mn51_reaclib)*Y(V47)*state.rho + - screened_rates(k_V47_He4_to_p_Cr50_reaclib)*Y(V47)*state.rho; + jac.set(V47, He4, scratch); + + jac.set(V47, C12, 0.0); + + jac.set(V47, O16, 0.0); + + jac.set(V47, Ne20, 0.0); + + jac.set(V47, Mg23, 0.0); + + jac.set(V47, Mg24, 0.0); + + jac.set(V47, Al27, 0.0); + + jac.set(V47, Si27, 0.0); + + jac.set(V47, Si28, 0.0); + + jac.set(V47, Si30, 0.0); + + jac.set(V47, P29, 0.0); + + jac.set(V47, P31, 0.0); + + jac.set(V47, S30, 0.0); + + jac.set(V47, S32, 0.0); + + jac.set(V47, S34, 0.0); + + jac.set(V47, Cl33, 0.0); + + jac.set(V47, Cl35, 0.0); + + jac.set(V47, Ar34, 0.0); + + jac.set(V47, Ar36, 0.0); + + jac.set(V47, Ar38, 0.0); + + jac.set(V47, K37, 0.0); + + jac.set(V47, K39, 0.0); + + jac.set(V47, Ca38, 0.0); + + jac.set(V47, Ca40, 0.0); + + jac.set(V47, Ca42, 0.0); + + jac.set(V47, Sc41, 0.0); + + scratch = screened_rates(k_Sc43_He4_to_V47_reaclib)*Y(He4)*state.rho; + jac.set(V47, Sc43, scratch); + + jac.set(V47, Ti42, 0.0); + + scratch = screened_rates(k_Ti44_He4_to_p_V47_reaclib)*Y(He4)*state.rho; + jac.set(V47, Ti44, scratch); + + scratch = screened_rates(k_Ti46_p_to_V47_reaclib)*Y(H1)*state.rho; + jac.set(V47, Ti46, scratch); + + scratch = 0.5*screened_rates(k_V45_n_n_to_V47_approx)*amrex::Math::powi<2>(Y(N))*amrex::Math::powi<2>(state.rho); + jac.set(V47, V45, scratch); + + scratch = -screened_rates(k_V47_He4_to_Mn51_reaclib)*Y(He4)*state.rho + - screened_rates(k_V47_He4_to_p_Cr50_reaclib)*Y(He4)*state.rho + - 0.5*screened_rates(k_V47_n_n_to_V49_approx)*amrex::Math::powi<2>(Y(N))*amrex::Math::powi<2>(state.rho) + - screened_rates(k_V47_p_to_Cr48_reaclib)*Y(H1)*state.rho + - screened_rates(k_V47_p_to_He4_Ti44_derived)*Y(H1)*state.rho + - screened_rates(k_V47_to_He4_Sc43_derived) + - screened_rates(k_V47_to_V45_n_n_approx) + - screened_rates(k_V47_to_p_Ti46_derived); + jac.set(V47, V47, scratch); + + scratch = screened_rates(k_V49_to_V47_n_n_approx); + jac.set(V47, V49, scratch); + + jac.set(V47, Cr46, 0.0); + + scratch = screened_rates(k_Cr48_to_p_V47_derived); + jac.set(V47, Cr48, scratch); + + scratch = screened_rates(k_Cr50_p_to_He4_V47_derived)*Y(H1)*state.rho; + jac.set(V47, Cr50, scratch); + + jac.set(V47, Cr52, 0.0); + + jac.set(V47, Mn49, 0.0); + + scratch = screened_rates(k_Mn51_to_He4_V47_derived); + jac.set(V47, Mn51, scratch); + + jac.set(V47, Mn53, 0.0); + + jac.set(V47, Fe50, 0.0); + + jac.set(V47, Fe52, 0.0); + + jac.set(V47, Fe54, 0.0); + + jac.set(V47, Fe56, 0.0); + + jac.set(V47, Co53, 0.0); + + jac.set(V47, Co55, 0.0); + + jac.set(V47, Co56, 0.0); + + jac.set(V47, Co57, 0.0); + + jac.set(V47, Ni56, 0.0); + + jac.set(V47, Ni58, 0.0); + + jac.set(V47, Cu59, 0.0); + + + // V49 row + + scratch = 1.0*screened_rates(k_V47_n_n_to_V49_approx)*Y(V47)*Y(N)*amrex::Math::powi<2>(state.rho) + + 0.5*Y(V47)*amrex::Math::powi<2>(Y(N))*amrex::Math::powi<2>(state.rho)*rate_eval.drate_V47_n_n_to_V49_approx_dYN + - Y(V49)*rate_eval.drate_V49_to_V47_n_n_approx_dYN; + jac.set(V49, N, scratch); + + scratch = screened_rates(k_Cr52_p_to_He4_V49_derived)*Y(Cr52)*state.rho + - screened_rates(k_V49_p_to_Cr50_reaclib)*Y(V49)*state.rho + - screened_rates(k_V49_p_to_He4_Ti46_reaclib)*Y(V49)*state.rho; + jac.set(V49, H1, scratch); + + scratch = screened_rates(k_Ti46_He4_to_p_V49_derived)*Y(Ti46)*state.rho + - screened_rates(k_V49_He4_to_Mn53_reaclib)*Y(V49)*state.rho + - screened_rates(k_V49_He4_to_p_Cr52_reaclib)*Y(V49)*state.rho; + jac.set(V49, He4, scratch); + + jac.set(V49, C12, 0.0); + + jac.set(V49, O16, 0.0); + + jac.set(V49, Ne20, 0.0); + + jac.set(V49, Mg23, 0.0); + + jac.set(V49, Mg24, 0.0); + + jac.set(V49, Al27, 0.0); + + jac.set(V49, Si27, 0.0); + + jac.set(V49, Si28, 0.0); + + jac.set(V49, Si30, 0.0); + + jac.set(V49, P29, 0.0); + + jac.set(V49, P31, 0.0); + + jac.set(V49, S30, 0.0); + + jac.set(V49, S32, 0.0); + + jac.set(V49, S34, 0.0); + + jac.set(V49, Cl33, 0.0); + + jac.set(V49, Cl35, 0.0); + + jac.set(V49, Ar34, 0.0); + + jac.set(V49, Ar36, 0.0); + + jac.set(V49, Ar38, 0.0); + + jac.set(V49, K37, 0.0); + + jac.set(V49, K39, 0.0); + + jac.set(V49, Ca38, 0.0); + + jac.set(V49, Ca40, 0.0); + + jac.set(V49, Ca42, 0.0); + + jac.set(V49, Sc41, 0.0); + + jac.set(V49, Sc43, 0.0); + + jac.set(V49, Ti42, 0.0); + + jac.set(V49, Ti44, 0.0); + + scratch = screened_rates(k_Ti46_He4_to_p_V49_derived)*Y(He4)*state.rho; + jac.set(V49, Ti46, scratch); + + jac.set(V49, V45, 0.0); + + scratch = 0.5*screened_rates(k_V47_n_n_to_V49_approx)*amrex::Math::powi<2>(Y(N))*amrex::Math::powi<2>(state.rho); + jac.set(V49, V47, scratch); + + scratch = -screened_rates(k_V49_He4_to_Mn53_reaclib)*Y(He4)*state.rho + - screened_rates(k_V49_He4_to_p_Cr52_reaclib)*Y(He4)*state.rho + - screened_rates(k_V49_p_to_Cr50_reaclib)*Y(H1)*state.rho + - screened_rates(k_V49_p_to_He4_Ti46_reaclib)*Y(H1)*state.rho + - screened_rates(k_V49_to_V47_n_n_approx); + jac.set(V49, V49, scratch); + + jac.set(V49, Cr46, 0.0); + + jac.set(V49, Cr48, 0.0); + + scratch = screened_rates(k_Cr50_to_p_V49_derived); + jac.set(V49, Cr50, scratch); + + scratch = screened_rates(k_Cr52_p_to_He4_V49_derived)*Y(H1)*state.rho; + jac.set(V49, Cr52, scratch); + + jac.set(V49, Mn49, 0.0); + + jac.set(V49, Mn51, 0.0); + + scratch = screened_rates(k_Mn53_to_He4_V49_derived); + jac.set(V49, Mn53, scratch); + + jac.set(V49, Fe50, 0.0); + + jac.set(V49, Fe52, 0.0); + + jac.set(V49, Fe54, 0.0); + + jac.set(V49, Fe56, 0.0); + + jac.set(V49, Co53, 0.0); + + jac.set(V49, Co55, 0.0); + + jac.set(V49, Co56, 0.0); + + jac.set(V49, Co57, 0.0); + + jac.set(V49, Ni56, 0.0); + + jac.set(V49, Ni58, 0.0); + + jac.set(V49, Cu59, 0.0); + + + // Cr46 row + + scratch = -1.0*screened_rates(k_Cr46_n_n_to_Cr48_approx)*Y(Cr46)*Y(N)*amrex::Math::powi<2>(state.rho) + - 0.5*Y(Cr46)*amrex::Math::powi<2>(Y(N))*amrex::Math::powi<2>(state.rho)*rate_eval.drate_Cr46_n_n_to_Cr48_approx_dYN + + Y(Cr48)*rate_eval.drate_Cr48_to_Cr46_n_n_approx_dYN; + jac.set(Cr46, N, scratch); + + scratch = screened_rates(k_Mn49_p_to_He4_Cr46_derived)*Y(Mn49)*state.rho + + screened_rates(k_V45_p_to_Cr46_reaclib)*Y(V45)*state.rho; + jac.set(Cr46, H1, scratch); + + scratch = -screened_rates(k_Cr46_He4_to_Fe50_reaclib)*Y(Cr46)*state.rho + - screened_rates(k_Cr46_He4_to_p_Mn49_reaclib)*Y(Cr46)*state.rho + + screened_rates(k_Ti42_He4_to_Cr46_reaclib)*Y(Ti42)*state.rho; + jac.set(Cr46, He4, scratch); + + jac.set(Cr46, C12, 0.0); + + jac.set(Cr46, O16, 0.0); + + jac.set(Cr46, Ne20, 0.0); + + jac.set(Cr46, Mg23, 0.0); + + jac.set(Cr46, Mg24, 0.0); + + jac.set(Cr46, Al27, 0.0); + + jac.set(Cr46, Si27, 0.0); + + jac.set(Cr46, Si28, 0.0); + + jac.set(Cr46, Si30, 0.0); + + jac.set(Cr46, P29, 0.0); + + jac.set(Cr46, P31, 0.0); + + jac.set(Cr46, S30, 0.0); + + jac.set(Cr46, S32, 0.0); + + jac.set(Cr46, S34, 0.0); + + jac.set(Cr46, Cl33, 0.0); + + jac.set(Cr46, Cl35, 0.0); + + jac.set(Cr46, Ar34, 0.0); + + jac.set(Cr46, Ar36, 0.0); + + jac.set(Cr46, Ar38, 0.0); + + jac.set(Cr46, K37, 0.0); + + jac.set(Cr46, K39, 0.0); + + jac.set(Cr46, Ca38, 0.0); + + jac.set(Cr46, Ca40, 0.0); + + jac.set(Cr46, Ca42, 0.0); + + jac.set(Cr46, Sc41, 0.0); + + jac.set(Cr46, Sc43, 0.0); + + scratch = screened_rates(k_Ti42_He4_to_Cr46_reaclib)*Y(He4)*state.rho; + jac.set(Cr46, Ti42, scratch); + + jac.set(Cr46, Ti44, 0.0); + + jac.set(Cr46, Ti46, 0.0); + + scratch = screened_rates(k_V45_p_to_Cr46_reaclib)*Y(H1)*state.rho; + jac.set(Cr46, V45, scratch); + + jac.set(Cr46, V47, 0.0); + + jac.set(Cr46, V49, 0.0); + + scratch = -screened_rates(k_Cr46_He4_to_Fe50_reaclib)*Y(He4)*state.rho + - screened_rates(k_Cr46_He4_to_p_Mn49_reaclib)*Y(He4)*state.rho + - 0.5*screened_rates(k_Cr46_n_n_to_Cr48_approx)*amrex::Math::powi<2>(Y(N))*amrex::Math::powi<2>(state.rho) + - screened_rates(k_Cr46_to_He4_Ti42_derived) + - screened_rates(k_Cr46_to_p_V45_derived); + jac.set(Cr46, Cr46, scratch); + + scratch = screened_rates(k_Cr48_to_Cr46_n_n_approx); + jac.set(Cr46, Cr48, scratch); + + jac.set(Cr46, Cr50, 0.0); + + jac.set(Cr46, Cr52, 0.0); + + scratch = screened_rates(k_Mn49_p_to_He4_Cr46_derived)*Y(H1)*state.rho; + jac.set(Cr46, Mn49, scratch); + + jac.set(Cr46, Mn51, 0.0); + + jac.set(Cr46, Mn53, 0.0); + + scratch = screened_rates(k_Fe50_to_He4_Cr46_derived); + jac.set(Cr46, Fe50, scratch); + + jac.set(Cr46, Fe52, 0.0); + + jac.set(Cr46, Fe54, 0.0); + + jac.set(Cr46, Fe56, 0.0); + + jac.set(Cr46, Co53, 0.0); + + jac.set(Cr46, Co55, 0.0); + + jac.set(Cr46, Co56, 0.0); + + jac.set(Cr46, Co57, 0.0); + + jac.set(Cr46, Ni56, 0.0); + + jac.set(Cr46, Ni58, 0.0); + + jac.set(Cr46, Cu59, 0.0); + + + // Cr48 row + + scratch = 1.0*screened_rates(k_Cr46_n_n_to_Cr48_approx)*Y(Cr46)*Y(N)*amrex::Math::powi<2>(state.rho) + - 1.0*screened_rates(k_Cr48_n_n_to_Cr50_approx)*Y(Cr48)*Y(N)*amrex::Math::powi<2>(state.rho) + + 0.5*Y(Cr46)*amrex::Math::powi<2>(Y(N))*amrex::Math::powi<2>(state.rho)*rate_eval.drate_Cr46_n_n_to_Cr48_approx_dYN + - 0.5*Y(Cr48)*amrex::Math::powi<2>(Y(N))*amrex::Math::powi<2>(state.rho)*rate_eval.drate_Cr48_n_n_to_Cr50_approx_dYN + - Y(Cr48)*rate_eval.drate_Cr48_to_Cr46_n_n_approx_dYN + + Y(Cr50)*rate_eval.drate_Cr50_to_Cr48_n_n_approx_dYN; + jac.set(Cr48, N, scratch); + + scratch = -screened_rates(k_Cr48_p_to_He4_V45_derived)*Y(Cr48)*state.rho + - screened_rates(k_Cr48_p_to_Mn49_reaclib)*Y(Cr48)*state.rho + + screened_rates(k_Mn51_p_to_He4_Cr48_derived)*Y(Mn51)*state.rho + + screened_rates(k_V47_p_to_Cr48_reaclib)*Y(V47)*state.rho; + jac.set(Cr48, H1, scratch); + + scratch = -screened_rates(k_Cr48_He4_to_Fe52_reaclib)*Y(Cr48)*state.rho + - screened_rates(k_Cr48_He4_to_p_Mn51_reaclib)*Y(Cr48)*state.rho + + screened_rates(k_Ti44_He4_to_Cr48_reaclib)*Y(Ti44)*state.rho + + screened_rates(k_V45_He4_to_p_Cr48_reaclib)*Y(V45)*state.rho; + jac.set(Cr48, He4, scratch); + + jac.set(Cr48, C12, 0.0); + + jac.set(Cr48, O16, 0.0); + + jac.set(Cr48, Ne20, 0.0); + + jac.set(Cr48, Mg23, 0.0); + + jac.set(Cr48, Mg24, 0.0); + + jac.set(Cr48, Al27, 0.0); + + jac.set(Cr48, Si27, 0.0); + + jac.set(Cr48, Si28, 0.0); + + jac.set(Cr48, Si30, 0.0); + + jac.set(Cr48, P29, 0.0); + + jac.set(Cr48, P31, 0.0); + + jac.set(Cr48, S30, 0.0); + + jac.set(Cr48, S32, 0.0); + + jac.set(Cr48, S34, 0.0); + + jac.set(Cr48, Cl33, 0.0); + + jac.set(Cr48, Cl35, 0.0); + + jac.set(Cr48, Ar34, 0.0); + + jac.set(Cr48, Ar36, 0.0); + + jac.set(Cr48, Ar38, 0.0); + + jac.set(Cr48, K37, 0.0); + + jac.set(Cr48, K39, 0.0); + + jac.set(Cr48, Ca38, 0.0); + + jac.set(Cr48, Ca40, 0.0); + + jac.set(Cr48, Ca42, 0.0); + + jac.set(Cr48, Sc41, 0.0); + + jac.set(Cr48, Sc43, 0.0); + + jac.set(Cr48, Ti42, 0.0); + + scratch = screened_rates(k_Ti44_He4_to_Cr48_reaclib)*Y(He4)*state.rho; + jac.set(Cr48, Ti44, scratch); + + jac.set(Cr48, Ti46, 0.0); + + scratch = screened_rates(k_V45_He4_to_p_Cr48_reaclib)*Y(He4)*state.rho; + jac.set(Cr48, V45, scratch); + + scratch = screened_rates(k_V47_p_to_Cr48_reaclib)*Y(H1)*state.rho; + jac.set(Cr48, V47, scratch); + + jac.set(Cr48, V49, 0.0); + + scratch = 0.5*screened_rates(k_Cr46_n_n_to_Cr48_approx)*amrex::Math::powi<2>(Y(N))*amrex::Math::powi<2>(state.rho); + jac.set(Cr48, Cr46, scratch); + + scratch = -screened_rates(k_Cr48_He4_to_Fe52_reaclib)*Y(He4)*state.rho + - screened_rates(k_Cr48_He4_to_p_Mn51_reaclib)*Y(He4)*state.rho + - 0.5*screened_rates(k_Cr48_n_n_to_Cr50_approx)*amrex::Math::powi<2>(Y(N))*amrex::Math::powi<2>(state.rho) + - screened_rates(k_Cr48_p_to_He4_V45_derived)*Y(H1)*state.rho + - screened_rates(k_Cr48_p_to_Mn49_reaclib)*Y(H1)*state.rho + - screened_rates(k_Cr48_to_Cr46_n_n_approx) + - screened_rates(k_Cr48_to_He4_Ti44_derived) + - screened_rates(k_Cr48_to_p_V47_derived); + jac.set(Cr48, Cr48, scratch); + + scratch = screened_rates(k_Cr50_to_Cr48_n_n_approx); + jac.set(Cr48, Cr50, scratch); + + jac.set(Cr48, Cr52, 0.0); + + scratch = screened_rates(k_Mn49_to_p_Cr48_derived); + jac.set(Cr48, Mn49, scratch); + + scratch = screened_rates(k_Mn51_p_to_He4_Cr48_derived)*Y(H1)*state.rho; + jac.set(Cr48, Mn51, scratch); + + jac.set(Cr48, Mn53, 0.0); + + jac.set(Cr48, Fe50, 0.0); + + scratch = screened_rates(k_Fe52_to_He4_Cr48_derived); + jac.set(Cr48, Fe52, scratch); + + jac.set(Cr48, Fe54, 0.0); + + jac.set(Cr48, Fe56, 0.0); + + jac.set(Cr48, Co53, 0.0); + + jac.set(Cr48, Co55, 0.0); + + jac.set(Cr48, Co56, 0.0); + + jac.set(Cr48, Co57, 0.0); + + jac.set(Cr48, Ni56, 0.0); + + jac.set(Cr48, Ni58, 0.0); + + jac.set(Cr48, Cu59, 0.0); + + + // Cr50 row + + scratch = 1.0*screened_rates(k_Cr48_n_n_to_Cr50_approx)*Y(Cr48)*Y(N)*amrex::Math::powi<2>(state.rho) + - 1.0*screened_rates(k_Cr50_n_n_to_Cr52_approx)*Y(Cr50)*Y(N)*amrex::Math::powi<2>(state.rho) + + 0.5*Y(Cr48)*amrex::Math::powi<2>(Y(N))*amrex::Math::powi<2>(state.rho)*rate_eval.drate_Cr48_n_n_to_Cr50_approx_dYN + - 0.5*Y(Cr50)*amrex::Math::powi<2>(Y(N))*amrex::Math::powi<2>(state.rho)*rate_eval.drate_Cr50_n_n_to_Cr52_approx_dYN + - Y(Cr50)*rate_eval.drate_Cr50_to_Cr48_n_n_approx_dYN + + Y(Cr52)*rate_eval.drate_Cr52_to_Cr50_n_n_approx_dYN; + jac.set(Cr50, N, scratch); + + scratch = -screened_rates(k_Cr50_p_to_He4_V47_derived)*Y(Cr50)*state.rho + - screened_rates(k_Cr50_p_to_Mn51_reaclib)*Y(Cr50)*state.rho + + screened_rates(k_Mn53_p_to_He4_Cr50_reaclib)*Y(Mn53)*state.rho + + screened_rates(k_V49_p_to_Cr50_reaclib)*Y(V49)*state.rho; + jac.set(Cr50, H1, scratch); + + scratch = -screened_rates(k_Cr50_He4_to_Fe54_reaclib)*Y(Cr50)*state.rho + - screened_rates(k_Cr50_He4_to_p_Mn53_derived)*Y(Cr50)*state.rho + + screened_rates(k_Ti46_He4_to_Cr50_reaclib)*Y(Ti46)*state.rho + + screened_rates(k_V47_He4_to_p_Cr50_reaclib)*Y(V47)*state.rho; + jac.set(Cr50, He4, scratch); + + jac.set(Cr50, C12, 0.0); + + jac.set(Cr50, O16, 0.0); + + jac.set(Cr50, Ne20, 0.0); + + jac.set(Cr50, Mg23, 0.0); + + jac.set(Cr50, Mg24, 0.0); + + jac.set(Cr50, Al27, 0.0); + + jac.set(Cr50, Si27, 0.0); + + jac.set(Cr50, Si28, 0.0); + + jac.set(Cr50, Si30, 0.0); + + jac.set(Cr50, P29, 0.0); + + jac.set(Cr50, P31, 0.0); + + jac.set(Cr50, S30, 0.0); + + jac.set(Cr50, S32, 0.0); + + jac.set(Cr50, S34, 0.0); + + jac.set(Cr50, Cl33, 0.0); + + jac.set(Cr50, Cl35, 0.0); + + jac.set(Cr50, Ar34, 0.0); + + jac.set(Cr50, Ar36, 0.0); + + jac.set(Cr50, Ar38, 0.0); + + jac.set(Cr50, K37, 0.0); + + jac.set(Cr50, K39, 0.0); + + jac.set(Cr50, Ca38, 0.0); + + jac.set(Cr50, Ca40, 0.0); + + jac.set(Cr50, Ca42, 0.0); + + jac.set(Cr50, Sc41, 0.0); + + jac.set(Cr50, Sc43, 0.0); + + jac.set(Cr50, Ti42, 0.0); + + jac.set(Cr50, Ti44, 0.0); + + scratch = screened_rates(k_Ti46_He4_to_Cr50_reaclib)*Y(He4)*state.rho; + jac.set(Cr50, Ti46, scratch); + + jac.set(Cr50, V45, 0.0); + + scratch = screened_rates(k_V47_He4_to_p_Cr50_reaclib)*Y(He4)*state.rho; + jac.set(Cr50, V47, scratch); + + scratch = screened_rates(k_V49_p_to_Cr50_reaclib)*Y(H1)*state.rho; + jac.set(Cr50, V49, scratch); + + jac.set(Cr50, Cr46, 0.0); + + scratch = 0.5*screened_rates(k_Cr48_n_n_to_Cr50_approx)*amrex::Math::powi<2>(Y(N))*amrex::Math::powi<2>(state.rho); + jac.set(Cr50, Cr48, scratch); + + scratch = -screened_rates(k_Cr50_He4_to_Fe54_reaclib)*Y(He4)*state.rho + - screened_rates(k_Cr50_He4_to_p_Mn53_derived)*Y(He4)*state.rho + - 0.5*screened_rates(k_Cr50_n_n_to_Cr52_approx)*amrex::Math::powi<2>(Y(N))*amrex::Math::powi<2>(state.rho) + - screened_rates(k_Cr50_p_to_He4_V47_derived)*Y(H1)*state.rho + - screened_rates(k_Cr50_p_to_Mn51_reaclib)*Y(H1)*state.rho + - screened_rates(k_Cr50_to_Cr48_n_n_approx) + - screened_rates(k_Cr50_to_He4_Ti46_derived) + - screened_rates(k_Cr50_to_p_V49_derived); + jac.set(Cr50, Cr50, scratch); + + scratch = screened_rates(k_Cr52_to_Cr50_n_n_approx); + jac.set(Cr50, Cr52, scratch); + + jac.set(Cr50, Mn49, 0.0); + + scratch = screened_rates(k_Mn51_to_p_Cr50_derived); + jac.set(Cr50, Mn51, scratch); + + scratch = screened_rates(k_Mn53_p_to_He4_Cr50_reaclib)*Y(H1)*state.rho; + jac.set(Cr50, Mn53, scratch); + + jac.set(Cr50, Fe50, 0.0); + + jac.set(Cr50, Fe52, 0.0); + + scratch = screened_rates(k_Fe54_to_He4_Cr50_derived); + jac.set(Cr50, Fe54, scratch); + + jac.set(Cr50, Fe56, 0.0); + + jac.set(Cr50, Co53, 0.0); + + jac.set(Cr50, Co55, 0.0); + + jac.set(Cr50, Co56, 0.0); + + jac.set(Cr50, Co57, 0.0); + + jac.set(Cr50, Ni56, 0.0); + + jac.set(Cr50, Ni58, 0.0); + + jac.set(Cr50, Cu59, 0.0); + + + // Cr52 row + + scratch = 1.0*screened_rates(k_Cr50_n_n_to_Cr52_approx)*Y(Cr50)*Y(N)*amrex::Math::powi<2>(state.rho) + + 0.5*Y(Cr50)*amrex::Math::powi<2>(Y(N))*amrex::Math::powi<2>(state.rho)*rate_eval.drate_Cr50_n_n_to_Cr52_approx_dYN + - Y(Cr52)*rate_eval.drate_Cr52_to_Cr50_n_n_approx_dYN; + jac.set(Cr52, N, scratch); + + scratch = -screened_rates(k_Cr52_p_to_He4_V49_derived)*Y(Cr52)*state.rho + - screened_rates(k_Cr52_p_to_Mn53_reaclib)*Y(Cr52)*state.rho; + jac.set(Cr52, H1, scratch); + + scratch = -screened_rates(k_Cr52_He4_to_Fe56_reaclib)*Y(Cr52)*state.rho + + screened_rates(k_V49_He4_to_p_Cr52_reaclib)*Y(V49)*state.rho; + jac.set(Cr52, He4, scratch); + + jac.set(Cr52, C12, 0.0); + + jac.set(Cr52, O16, 0.0); + + jac.set(Cr52, Ne20, 0.0); + + jac.set(Cr52, Mg23, 0.0); + + jac.set(Cr52, Mg24, 0.0); + + jac.set(Cr52, Al27, 0.0); + + jac.set(Cr52, Si27, 0.0); + + jac.set(Cr52, Si28, 0.0); + + jac.set(Cr52, Si30, 0.0); + + jac.set(Cr52, P29, 0.0); + + jac.set(Cr52, P31, 0.0); + + jac.set(Cr52, S30, 0.0); + + jac.set(Cr52, S32, 0.0); + + jac.set(Cr52, S34, 0.0); + + jac.set(Cr52, Cl33, 0.0); + + jac.set(Cr52, Cl35, 0.0); + + jac.set(Cr52, Ar34, 0.0); + + jac.set(Cr52, Ar36, 0.0); + + jac.set(Cr52, Ar38, 0.0); + + jac.set(Cr52, K37, 0.0); + + jac.set(Cr52, K39, 0.0); + + jac.set(Cr52, Ca38, 0.0); + + jac.set(Cr52, Ca40, 0.0); + + jac.set(Cr52, Ca42, 0.0); + + jac.set(Cr52, Sc41, 0.0); + + jac.set(Cr52, Sc43, 0.0); + + jac.set(Cr52, Ti42, 0.0); + + jac.set(Cr52, Ti44, 0.0); + + jac.set(Cr52, Ti46, 0.0); + + jac.set(Cr52, V45, 0.0); + + jac.set(Cr52, V47, 0.0); + + scratch = screened_rates(k_V49_He4_to_p_Cr52_reaclib)*Y(He4)*state.rho; + jac.set(Cr52, V49, scratch); + + jac.set(Cr52, Cr46, 0.0); + + jac.set(Cr52, Cr48, 0.0); + + scratch = 0.5*screened_rates(k_Cr50_n_n_to_Cr52_approx)*amrex::Math::powi<2>(Y(N))*amrex::Math::powi<2>(state.rho); + jac.set(Cr52, Cr50, scratch); + + scratch = -screened_rates(k_Cr52_He4_to_Fe56_reaclib)*Y(He4)*state.rho + - screened_rates(k_Cr52_p_to_He4_V49_derived)*Y(H1)*state.rho + - screened_rates(k_Cr52_p_to_Mn53_reaclib)*Y(H1)*state.rho + - screened_rates(k_Cr52_to_Cr50_n_n_approx); + jac.set(Cr52, Cr52, scratch); + + jac.set(Cr52, Mn49, 0.0); + + jac.set(Cr52, Mn51, 0.0); + + scratch = screened_rates(k_Mn53_to_p_Cr52_derived); + jac.set(Cr52, Mn53, scratch); + + jac.set(Cr52, Fe50, 0.0); + + jac.set(Cr52, Fe52, 0.0); + + jac.set(Cr52, Fe54, 0.0); + + scratch = screened_rates(k_Fe56_to_He4_Cr52_derived); + jac.set(Cr52, Fe56, scratch); + + jac.set(Cr52, Co53, 0.0); + + jac.set(Cr52, Co55, 0.0); + + jac.set(Cr52, Co56, 0.0); + + jac.set(Cr52, Co57, 0.0); + + jac.set(Cr52, Ni56, 0.0); + + jac.set(Cr52, Ni58, 0.0); + + jac.set(Cr52, Cu59, 0.0); + + + // Mn49 row + + scratch = -1.0*screened_rates(k_Mn49_n_n_to_Mn51_approx)*Y(Mn49)*Y(N)*amrex::Math::powi<2>(state.rho) + - 0.5*Y(Mn49)*amrex::Math::powi<2>(Y(N))*amrex::Math::powi<2>(state.rho)*rate_eval.drate_Mn49_n_n_to_Mn51_approx_dYN + + Y(Mn51)*rate_eval.drate_Mn51_to_Mn49_n_n_approx_dYN; + jac.set(Mn49, N, scratch); + + scratch = screened_rates(k_Cr48_p_to_Mn49_reaclib)*Y(Cr48)*state.rho + + screened_rates(k_Fe52_p_to_He4_Mn49_derived)*Y(Fe52)*state.rho + - screened_rates(k_Mn49_p_to_Fe50_reaclib)*Y(Mn49)*state.rho + - screened_rates(k_Mn49_p_to_He4_Cr46_derived)*Y(Mn49)*state.rho; + jac.set(Mn49, H1, scratch); + + scratch = screened_rates(k_Cr46_He4_to_p_Mn49_reaclib)*Y(Cr46)*state.rho + - screened_rates(k_Mn49_He4_to_Co53_reaclib)*Y(Mn49)*state.rho + - screened_rates(k_Mn49_He4_to_p_Fe52_reaclib)*Y(Mn49)*state.rho + + screened_rates(k_V45_He4_to_Mn49_reaclib)*Y(V45)*state.rho; + jac.set(Mn49, He4, scratch); + + jac.set(Mn49, C12, 0.0); + + jac.set(Mn49, O16, 0.0); + + jac.set(Mn49, Ne20, 0.0); + + jac.set(Mn49, Mg23, 0.0); + + jac.set(Mn49, Mg24, 0.0); + + jac.set(Mn49, Al27, 0.0); + + jac.set(Mn49, Si27, 0.0); + + jac.set(Mn49, Si28, 0.0); + + jac.set(Mn49, Si30, 0.0); + + jac.set(Mn49, P29, 0.0); + + jac.set(Mn49, P31, 0.0); + + jac.set(Mn49, S30, 0.0); + + jac.set(Mn49, S32, 0.0); + + jac.set(Mn49, S34, 0.0); + + jac.set(Mn49, Cl33, 0.0); + + jac.set(Mn49, Cl35, 0.0); + + jac.set(Mn49, Ar34, 0.0); + + jac.set(Mn49, Ar36, 0.0); + + jac.set(Mn49, Ar38, 0.0); + + jac.set(Mn49, K37, 0.0); + + jac.set(Mn49, K39, 0.0); + + jac.set(Mn49, Ca38, 0.0); + + jac.set(Mn49, Ca40, 0.0); + + jac.set(Mn49, Ca42, 0.0); + + jac.set(Mn49, Sc41, 0.0); + + jac.set(Mn49, Sc43, 0.0); + + jac.set(Mn49, Ti42, 0.0); + + jac.set(Mn49, Ti44, 0.0); + + jac.set(Mn49, Ti46, 0.0); + + scratch = screened_rates(k_V45_He4_to_Mn49_reaclib)*Y(He4)*state.rho; + jac.set(Mn49, V45, scratch); + + jac.set(Mn49, V47, 0.0); + + jac.set(Mn49, V49, 0.0); + + scratch = screened_rates(k_Cr46_He4_to_p_Mn49_reaclib)*Y(He4)*state.rho; + jac.set(Mn49, Cr46, scratch); + + scratch = screened_rates(k_Cr48_p_to_Mn49_reaclib)*Y(H1)*state.rho; + jac.set(Mn49, Cr48, scratch); + + jac.set(Mn49, Cr50, 0.0); + + jac.set(Mn49, Cr52, 0.0); + + scratch = -screened_rates(k_Mn49_He4_to_Co53_reaclib)*Y(He4)*state.rho + - screened_rates(k_Mn49_He4_to_p_Fe52_reaclib)*Y(He4)*state.rho + - 0.5*screened_rates(k_Mn49_n_n_to_Mn51_approx)*amrex::Math::powi<2>(Y(N))*amrex::Math::powi<2>(state.rho) + - screened_rates(k_Mn49_p_to_Fe50_reaclib)*Y(H1)*state.rho + - screened_rates(k_Mn49_p_to_He4_Cr46_derived)*Y(H1)*state.rho + - screened_rates(k_Mn49_to_He4_V45_derived) + - screened_rates(k_Mn49_to_p_Cr48_derived); + jac.set(Mn49, Mn49, scratch); + + scratch = screened_rates(k_Mn51_to_Mn49_n_n_approx); + jac.set(Mn49, Mn51, scratch); + + jac.set(Mn49, Mn53, 0.0); + + scratch = screened_rates(k_Fe50_to_p_Mn49_derived); + jac.set(Mn49, Fe50, scratch); + + scratch = screened_rates(k_Fe52_p_to_He4_Mn49_derived)*Y(H1)*state.rho; + jac.set(Mn49, Fe52, scratch); + + jac.set(Mn49, Fe54, 0.0); + + jac.set(Mn49, Fe56, 0.0); + + scratch = screened_rates(k_Co53_to_He4_Mn49_derived); + jac.set(Mn49, Co53, scratch); + + jac.set(Mn49, Co55, 0.0); + + jac.set(Mn49, Co56, 0.0); + + jac.set(Mn49, Co57, 0.0); + + jac.set(Mn49, Ni56, 0.0); + + jac.set(Mn49, Ni58, 0.0); + + jac.set(Mn49, Cu59, 0.0); + + + // Mn51 row + + scratch = 1.0*screened_rates(k_Mn49_n_n_to_Mn51_approx)*Y(Mn49)*Y(N)*amrex::Math::powi<2>(state.rho) + - 1.0*screened_rates(k_Mn51_n_n_to_Mn53_approx)*Y(Mn51)*Y(N)*amrex::Math::powi<2>(state.rho) + + 0.5*Y(Mn49)*amrex::Math::powi<2>(Y(N))*amrex::Math::powi<2>(state.rho)*rate_eval.drate_Mn49_n_n_to_Mn51_approx_dYN + - 0.5*Y(Mn51)*amrex::Math::powi<2>(Y(N))*amrex::Math::powi<2>(state.rho)*rate_eval.drate_Mn51_n_n_to_Mn53_approx_dYN + - Y(Mn51)*rate_eval.drate_Mn51_to_Mn49_n_n_approx_dYN + + Y(Mn53)*rate_eval.drate_Mn53_to_Mn51_n_n_approx_dYN; + jac.set(Mn51, N, scratch); + + scratch = screened_rates(k_Cr50_p_to_Mn51_reaclib)*Y(Cr50)*state.rho + + screened_rates(k_Fe54_p_to_He4_Mn51_derived)*Y(Fe54)*state.rho + - screened_rates(k_Mn51_p_to_Fe52_reaclib)*Y(Mn51)*state.rho + - screened_rates(k_Mn51_p_to_He4_Cr48_derived)*Y(Mn51)*state.rho; + jac.set(Mn51, H1, scratch); + + scratch = screened_rates(k_Cr48_He4_to_p_Mn51_reaclib)*Y(Cr48)*state.rho + - screened_rates(k_Mn51_He4_to_Co55_reaclib)*Y(Mn51)*state.rho + - screened_rates(k_Mn51_He4_to_p_Fe54_reaclib)*Y(Mn51)*state.rho + + screened_rates(k_V47_He4_to_Mn51_reaclib)*Y(V47)*state.rho; + jac.set(Mn51, He4, scratch); + + jac.set(Mn51, C12, 0.0); + + jac.set(Mn51, O16, 0.0); + + jac.set(Mn51, Ne20, 0.0); + + jac.set(Mn51, Mg23, 0.0); + + jac.set(Mn51, Mg24, 0.0); + + jac.set(Mn51, Al27, 0.0); + + jac.set(Mn51, Si27, 0.0); + + jac.set(Mn51, Si28, 0.0); + + jac.set(Mn51, Si30, 0.0); + + jac.set(Mn51, P29, 0.0); + + jac.set(Mn51, P31, 0.0); + + jac.set(Mn51, S30, 0.0); + + jac.set(Mn51, S32, 0.0); + + jac.set(Mn51, S34, 0.0); + + jac.set(Mn51, Cl33, 0.0); + + jac.set(Mn51, Cl35, 0.0); + + jac.set(Mn51, Ar34, 0.0); + + jac.set(Mn51, Ar36, 0.0); + + jac.set(Mn51, Ar38, 0.0); + + jac.set(Mn51, K37, 0.0); + + jac.set(Mn51, K39, 0.0); + + jac.set(Mn51, Ca38, 0.0); + + jac.set(Mn51, Ca40, 0.0); + + jac.set(Mn51, Ca42, 0.0); + + jac.set(Mn51, Sc41, 0.0); + + jac.set(Mn51, Sc43, 0.0); + + jac.set(Mn51, Ti42, 0.0); + + jac.set(Mn51, Ti44, 0.0); + + jac.set(Mn51, Ti46, 0.0); + + jac.set(Mn51, V45, 0.0); + + scratch = screened_rates(k_V47_He4_to_Mn51_reaclib)*Y(He4)*state.rho; + jac.set(Mn51, V47, scratch); + + jac.set(Mn51, V49, 0.0); + + jac.set(Mn51, Cr46, 0.0); + + scratch = screened_rates(k_Cr48_He4_to_p_Mn51_reaclib)*Y(He4)*state.rho; + jac.set(Mn51, Cr48, scratch); + + scratch = screened_rates(k_Cr50_p_to_Mn51_reaclib)*Y(H1)*state.rho; + jac.set(Mn51, Cr50, scratch); + + jac.set(Mn51, Cr52, 0.0); + + scratch = 0.5*screened_rates(k_Mn49_n_n_to_Mn51_approx)*amrex::Math::powi<2>(Y(N))*amrex::Math::powi<2>(state.rho); + jac.set(Mn51, Mn49, scratch); + + scratch = -screened_rates(k_Mn51_He4_to_Co55_reaclib)*Y(He4)*state.rho + - screened_rates(k_Mn51_He4_to_p_Fe54_reaclib)*Y(He4)*state.rho + - 0.5*screened_rates(k_Mn51_n_n_to_Mn53_approx)*amrex::Math::powi<2>(Y(N))*amrex::Math::powi<2>(state.rho) + - screened_rates(k_Mn51_p_to_Fe52_reaclib)*Y(H1)*state.rho + - screened_rates(k_Mn51_p_to_He4_Cr48_derived)*Y(H1)*state.rho + - screened_rates(k_Mn51_to_He4_V47_derived) + - screened_rates(k_Mn51_to_Mn49_n_n_approx) + - screened_rates(k_Mn51_to_p_Cr50_derived); + jac.set(Mn51, Mn51, scratch); + + scratch = screened_rates(k_Mn53_to_Mn51_n_n_approx); + jac.set(Mn51, Mn53, scratch); + + jac.set(Mn51, Fe50, 0.0); + + scratch = screened_rates(k_Fe52_to_p_Mn51_derived); + jac.set(Mn51, Fe52, scratch); + + scratch = screened_rates(k_Fe54_p_to_He4_Mn51_derived)*Y(H1)*state.rho; + jac.set(Mn51, Fe54, scratch); + + jac.set(Mn51, Fe56, 0.0); + + jac.set(Mn51, Co53, 0.0); + + scratch = screened_rates(k_Co55_to_He4_Mn51_derived); + jac.set(Mn51, Co55, scratch); + + jac.set(Mn51, Co56, 0.0); + + jac.set(Mn51, Co57, 0.0); + + jac.set(Mn51, Ni56, 0.0); + + jac.set(Mn51, Ni58, 0.0); + + jac.set(Mn51, Cu59, 0.0); + + + // Mn53 row + + scratch = screened_rates(k_Co56_n_to_He4_Mn53_reaclib)*Y(Co56)*state.rho + + 1.0*screened_rates(k_Mn51_n_n_to_Mn53_approx)*Y(Mn51)*Y(N)*amrex::Math::powi<2>(state.rho) + + 0.5*Y(Mn51)*amrex::Math::powi<2>(Y(N))*amrex::Math::powi<2>(state.rho)*rate_eval.drate_Mn51_n_n_to_Mn53_approx_dYN + - Y(Mn53)*rate_eval.drate_Mn53_to_Mn51_n_n_approx_dYN; + jac.set(Mn53, N, scratch); + + scratch = screened_rates(k_Cr52_p_to_Mn53_reaclib)*Y(Cr52)*state.rho + + screened_rates(k_Fe56_p_to_He4_Mn53_derived)*Y(Fe56)*state.rho + - screened_rates(k_Mn53_p_to_Fe54_reaclib)*Y(Mn53)*state.rho + - screened_rates(k_Mn53_p_to_He4_Cr50_reaclib)*Y(Mn53)*state.rho; + jac.set(Mn53, H1, scratch); + + scratch = screened_rates(k_Cr50_He4_to_p_Mn53_derived)*Y(Cr50)*state.rho + - screened_rates(k_Mn53_He4_to_Co57_reaclib)*Y(Mn53)*state.rho + - screened_rates(k_Mn53_He4_to_n_Co56_derived)*Y(Mn53)*state.rho + - screened_rates(k_Mn53_He4_to_p_Fe56_reaclib)*Y(Mn53)*state.rho + + screened_rates(k_V49_He4_to_Mn53_reaclib)*Y(V49)*state.rho; + jac.set(Mn53, He4, scratch); + + jac.set(Mn53, C12, 0.0); + + jac.set(Mn53, O16, 0.0); + + jac.set(Mn53, Ne20, 0.0); + + jac.set(Mn53, Mg23, 0.0); + + jac.set(Mn53, Mg24, 0.0); + + jac.set(Mn53, Al27, 0.0); + + jac.set(Mn53, Si27, 0.0); + + jac.set(Mn53, Si28, 0.0); + + jac.set(Mn53, Si30, 0.0); + + jac.set(Mn53, P29, 0.0); + + jac.set(Mn53, P31, 0.0); + + jac.set(Mn53, S30, 0.0); + + jac.set(Mn53, S32, 0.0); + + jac.set(Mn53, S34, 0.0); + + jac.set(Mn53, Cl33, 0.0); + + jac.set(Mn53, Cl35, 0.0); + + jac.set(Mn53, Ar34, 0.0); + + jac.set(Mn53, Ar36, 0.0); + + jac.set(Mn53, Ar38, 0.0); + + jac.set(Mn53, K37, 0.0); + + jac.set(Mn53, K39, 0.0); + + jac.set(Mn53, Ca38, 0.0); + + jac.set(Mn53, Ca40, 0.0); + + jac.set(Mn53, Ca42, 0.0); + + jac.set(Mn53, Sc41, 0.0); + + jac.set(Mn53, Sc43, 0.0); + + jac.set(Mn53, Ti42, 0.0); + + jac.set(Mn53, Ti44, 0.0); + + jac.set(Mn53, Ti46, 0.0); + + jac.set(Mn53, V45, 0.0); + + jac.set(Mn53, V47, 0.0); + + scratch = screened_rates(k_V49_He4_to_Mn53_reaclib)*Y(He4)*state.rho; + jac.set(Mn53, V49, scratch); + + jac.set(Mn53, Cr46, 0.0); + + jac.set(Mn53, Cr48, 0.0); + + scratch = screened_rates(k_Cr50_He4_to_p_Mn53_derived)*Y(He4)*state.rho; + jac.set(Mn53, Cr50, scratch); + + scratch = screened_rates(k_Cr52_p_to_Mn53_reaclib)*Y(H1)*state.rho; + jac.set(Mn53, Cr52, scratch); + + jac.set(Mn53, Mn49, 0.0); + + scratch = 0.5*screened_rates(k_Mn51_n_n_to_Mn53_approx)*amrex::Math::powi<2>(Y(N))*amrex::Math::powi<2>(state.rho); + jac.set(Mn53, Mn51, scratch); + + scratch = -screened_rates(k_Mn53_He4_to_Co57_reaclib)*Y(He4)*state.rho + - screened_rates(k_Mn53_He4_to_n_Co56_derived)*Y(He4)*state.rho + - screened_rates(k_Mn53_He4_to_p_Fe56_reaclib)*Y(He4)*state.rho + - screened_rates(k_Mn53_p_to_Fe54_reaclib)*Y(H1)*state.rho + - screened_rates(k_Mn53_p_to_He4_Cr50_reaclib)*Y(H1)*state.rho + - screened_rates(k_Mn53_to_He4_V49_derived) + - screened_rates(k_Mn53_to_Mn51_n_n_approx) + - screened_rates(k_Mn53_to_p_Cr52_derived); + jac.set(Mn53, Mn53, scratch); + + jac.set(Mn53, Fe50, 0.0); + + jac.set(Mn53, Fe52, 0.0); + + scratch = screened_rates(k_Fe54_to_p_Mn53_derived); + jac.set(Mn53, Fe54, scratch); + + scratch = screened_rates(k_Fe56_p_to_He4_Mn53_derived)*Y(H1)*state.rho; + jac.set(Mn53, Fe56, scratch); + + jac.set(Mn53, Co53, 0.0); + + jac.set(Mn53, Co55, 0.0); + + scratch = screened_rates(k_Co56_n_to_He4_Mn53_reaclib)*Y(N)*state.rho; + jac.set(Mn53, Co56, scratch); + + scratch = screened_rates(k_Co57_to_He4_Mn53_derived); + jac.set(Mn53, Co57, scratch); + + jac.set(Mn53, Ni56, 0.0); + + jac.set(Mn53, Ni58, 0.0); + + jac.set(Mn53, Cu59, 0.0); + + + // Fe50 row + + scratch = -1.0*screened_rates(k_Fe50_n_n_to_Fe52_approx)*Y(Fe50)*Y(N)*amrex::Math::powi<2>(state.rho) + - 0.5*Y(Fe50)*amrex::Math::powi<2>(Y(N))*amrex::Math::powi<2>(state.rho)*rate_eval.drate_Fe50_n_n_to_Fe52_approx_dYN + + Y(Fe52)*rate_eval.drate_Fe52_to_Fe50_n_n_approx_dYN; + jac.set(Fe50, N, scratch); + + scratch = screened_rates(k_Co53_p_to_He4_Fe50_derived)*Y(Co53)*state.rho + + screened_rates(k_Mn49_p_to_Fe50_reaclib)*Y(Mn49)*state.rho; + jac.set(Fe50, H1, scratch); + + scratch = screened_rates(k_Cr46_He4_to_Fe50_reaclib)*Y(Cr46)*state.rho + - screened_rates(k_Fe50_He4_to_p_Co53_reaclib)*Y(Fe50)*state.rho; + jac.set(Fe50, He4, scratch); + + jac.set(Fe50, C12, 0.0); + + jac.set(Fe50, O16, 0.0); + + jac.set(Fe50, Ne20, 0.0); + + jac.set(Fe50, Mg23, 0.0); + + jac.set(Fe50, Mg24, 0.0); + + jac.set(Fe50, Al27, 0.0); + + jac.set(Fe50, Si27, 0.0); + + jac.set(Fe50, Si28, 0.0); + + jac.set(Fe50, Si30, 0.0); + + jac.set(Fe50, P29, 0.0); + + jac.set(Fe50, P31, 0.0); + + jac.set(Fe50, S30, 0.0); + + jac.set(Fe50, S32, 0.0); + + jac.set(Fe50, S34, 0.0); + + jac.set(Fe50, Cl33, 0.0); + + jac.set(Fe50, Cl35, 0.0); + + jac.set(Fe50, Ar34, 0.0); + + jac.set(Fe50, Ar36, 0.0); + + jac.set(Fe50, Ar38, 0.0); + + jac.set(Fe50, K37, 0.0); + + jac.set(Fe50, K39, 0.0); + + jac.set(Fe50, Ca38, 0.0); + + jac.set(Fe50, Ca40, 0.0); + + jac.set(Fe50, Ca42, 0.0); + + jac.set(Fe50, Sc41, 0.0); + + jac.set(Fe50, Sc43, 0.0); + + jac.set(Fe50, Ti42, 0.0); + + jac.set(Fe50, Ti44, 0.0); + + jac.set(Fe50, Ti46, 0.0); + + jac.set(Fe50, V45, 0.0); + + jac.set(Fe50, V47, 0.0); + + jac.set(Fe50, V49, 0.0); + + scratch = screened_rates(k_Cr46_He4_to_Fe50_reaclib)*Y(He4)*state.rho; + jac.set(Fe50, Cr46, scratch); + + jac.set(Fe50, Cr48, 0.0); + + jac.set(Fe50, Cr50, 0.0); + + jac.set(Fe50, Cr52, 0.0); + + scratch = screened_rates(k_Mn49_p_to_Fe50_reaclib)*Y(H1)*state.rho; + jac.set(Fe50, Mn49, scratch); + + jac.set(Fe50, Mn51, 0.0); + + jac.set(Fe50, Mn53, 0.0); + + scratch = -screened_rates(k_Fe50_He4_to_p_Co53_reaclib)*Y(He4)*state.rho + - 0.5*screened_rates(k_Fe50_n_n_to_Fe52_approx)*amrex::Math::powi<2>(Y(N))*amrex::Math::powi<2>(state.rho) + - screened_rates(k_Fe50_to_He4_Cr46_derived) + - screened_rates(k_Fe50_to_p_Mn49_derived); + jac.set(Fe50, Fe50, scratch); + + scratch = screened_rates(k_Fe52_to_Fe50_n_n_approx); + jac.set(Fe50, Fe52, scratch); + + jac.set(Fe50, Fe54, 0.0); + + jac.set(Fe50, Fe56, 0.0); + + scratch = screened_rates(k_Co53_p_to_He4_Fe50_derived)*Y(H1)*state.rho; + jac.set(Fe50, Co53, scratch); + + jac.set(Fe50, Co55, 0.0); + + jac.set(Fe50, Co56, 0.0); + + jac.set(Fe50, Co57, 0.0); + + jac.set(Fe50, Ni56, 0.0); + + jac.set(Fe50, Ni58, 0.0); + + jac.set(Fe50, Cu59, 0.0); + + + // Fe52 row + + scratch = 1.0*screened_rates(k_Fe50_n_n_to_Fe52_approx)*Y(Fe50)*Y(N)*amrex::Math::powi<2>(state.rho) + - 1.0*screened_rates(k_Fe52_n_n_to_Fe54_approx)*Y(Fe52)*Y(N)*amrex::Math::powi<2>(state.rho) + + 0.5*Y(Fe50)*amrex::Math::powi<2>(Y(N))*amrex::Math::powi<2>(state.rho)*rate_eval.drate_Fe50_n_n_to_Fe52_approx_dYN + - 0.5*Y(Fe52)*amrex::Math::powi<2>(Y(N))*amrex::Math::powi<2>(state.rho)*rate_eval.drate_Fe52_n_n_to_Fe54_approx_dYN + - Y(Fe52)*rate_eval.drate_Fe52_to_Fe50_n_n_approx_dYN + + Y(Fe54)*rate_eval.drate_Fe54_to_Fe52_n_n_approx_dYN; + jac.set(Fe52, N, scratch); + + scratch = screened_rates(k_Co55_p_to_He4_Fe52_derived)*Y(Co55)*state.rho + - screened_rates(k_Fe52_p_to_Co53_reaclib)*Y(Fe52)*state.rho + - screened_rates(k_Fe52_p_to_He4_Mn49_derived)*Y(Fe52)*state.rho + + screened_rates(k_Mn51_p_to_Fe52_reaclib)*Y(Mn51)*state.rho; + jac.set(Fe52, H1, scratch); + + scratch = screened_rates(k_Cr48_He4_to_Fe52_reaclib)*Y(Cr48)*state.rho + - screened_rates(k_Fe52_He4_to_Ni56_reaclib)*Y(Fe52)*state.rho + - screened_rates(k_Fe52_He4_to_p_Co55_reaclib)*Y(Fe52)*state.rho + + screened_rates(k_Mn49_He4_to_p_Fe52_reaclib)*Y(Mn49)*state.rho; + jac.set(Fe52, He4, scratch); + + jac.set(Fe52, C12, 0.0); + + jac.set(Fe52, O16, 0.0); + + jac.set(Fe52, Ne20, 0.0); + + jac.set(Fe52, Mg23, 0.0); + + jac.set(Fe52, Mg24, 0.0); + + jac.set(Fe52, Al27, 0.0); + + jac.set(Fe52, Si27, 0.0); + + jac.set(Fe52, Si28, 0.0); + + jac.set(Fe52, Si30, 0.0); + + jac.set(Fe52, P29, 0.0); + + jac.set(Fe52, P31, 0.0); + + jac.set(Fe52, S30, 0.0); + + jac.set(Fe52, S32, 0.0); + + jac.set(Fe52, S34, 0.0); + + jac.set(Fe52, Cl33, 0.0); + + jac.set(Fe52, Cl35, 0.0); + + jac.set(Fe52, Ar34, 0.0); + + jac.set(Fe52, Ar36, 0.0); + + jac.set(Fe52, Ar38, 0.0); + + jac.set(Fe52, K37, 0.0); + + jac.set(Fe52, K39, 0.0); + + jac.set(Fe52, Ca38, 0.0); + + jac.set(Fe52, Ca40, 0.0); + + jac.set(Fe52, Ca42, 0.0); + + jac.set(Fe52, Sc41, 0.0); + + jac.set(Fe52, Sc43, 0.0); + + jac.set(Fe52, Ti42, 0.0); + + jac.set(Fe52, Ti44, 0.0); + + jac.set(Fe52, Ti46, 0.0); + + jac.set(Fe52, V45, 0.0); + + jac.set(Fe52, V47, 0.0); + + jac.set(Fe52, V49, 0.0); + + jac.set(Fe52, Cr46, 0.0); + + scratch = screened_rates(k_Cr48_He4_to_Fe52_reaclib)*Y(He4)*state.rho; + jac.set(Fe52, Cr48, scratch); + + jac.set(Fe52, Cr50, 0.0); + + jac.set(Fe52, Cr52, 0.0); + + scratch = screened_rates(k_Mn49_He4_to_p_Fe52_reaclib)*Y(He4)*state.rho; + jac.set(Fe52, Mn49, scratch); + + scratch = screened_rates(k_Mn51_p_to_Fe52_reaclib)*Y(H1)*state.rho; + jac.set(Fe52, Mn51, scratch); + + jac.set(Fe52, Mn53, 0.0); + + scratch = 0.5*screened_rates(k_Fe50_n_n_to_Fe52_approx)*amrex::Math::powi<2>(Y(N))*amrex::Math::powi<2>(state.rho); + jac.set(Fe52, Fe50, scratch); + + scratch = -screened_rates(k_Fe52_He4_to_Ni56_reaclib)*Y(He4)*state.rho + - screened_rates(k_Fe52_He4_to_p_Co55_reaclib)*Y(He4)*state.rho + - 0.5*screened_rates(k_Fe52_n_n_to_Fe54_approx)*amrex::Math::powi<2>(Y(N))*amrex::Math::powi<2>(state.rho) + - screened_rates(k_Fe52_p_to_Co53_reaclib)*Y(H1)*state.rho + - screened_rates(k_Fe52_p_to_He4_Mn49_derived)*Y(H1)*state.rho + - screened_rates(k_Fe52_to_Fe50_n_n_approx) + - screened_rates(k_Fe52_to_He4_Cr48_derived) + - screened_rates(k_Fe52_to_p_Mn51_derived); + jac.set(Fe52, Fe52, scratch); + + scratch = screened_rates(k_Fe54_to_Fe52_n_n_approx); + jac.set(Fe52, Fe54, scratch); + + jac.set(Fe52, Fe56, 0.0); + + scratch = screened_rates(k_Co53_to_p_Fe52_derived); + jac.set(Fe52, Co53, scratch); + + scratch = screened_rates(k_Co55_p_to_He4_Fe52_derived)*Y(H1)*state.rho; + jac.set(Fe52, Co55, scratch); + + jac.set(Fe52, Co56, 0.0); + + jac.set(Fe52, Co57, 0.0); + + scratch = screened_rates(k_Ni56_to_He4_Fe52_derived); + jac.set(Fe52, Ni56, scratch); + + jac.set(Fe52, Ni58, 0.0); + + jac.set(Fe52, Cu59, 0.0); + + + // Fe54 row + + scratch = 1.0*screened_rates(k_Fe52_n_n_to_Fe54_approx)*Y(Fe52)*Y(N)*amrex::Math::powi<2>(state.rho) + - 1.0*screened_rates(k_Fe54_n_n_to_Fe56_approx)*Y(Fe54)*Y(N)*amrex::Math::powi<2>(state.rho) + + 0.5*Y(Fe52)*amrex::Math::powi<2>(Y(N))*amrex::Math::powi<2>(state.rho)*rate_eval.drate_Fe52_n_n_to_Fe54_approx_dYN + - 0.5*Y(Fe54)*amrex::Math::powi<2>(Y(N))*amrex::Math::powi<2>(state.rho)*rate_eval.drate_Fe54_n_n_to_Fe56_approx_dYN + - Y(Fe54)*rate_eval.drate_Fe54_to_Fe52_n_n_approx_dYN + + Y(Fe56)*rate_eval.drate_Fe56_to_Fe54_n_n_approx_dYN; + jac.set(Fe54, N, scratch); + + scratch = screened_rates(k_Co57_p_to_He4_Fe54_reaclib)*Y(Co57)*state.rho + - screened_rates(k_Fe54_p_to_Co55_reaclib)*Y(Fe54)*state.rho + - screened_rates(k_Fe54_p_to_He4_Mn51_derived)*Y(Fe54)*state.rho + + screened_rates(k_Mn53_p_to_Fe54_reaclib)*Y(Mn53)*state.rho; + jac.set(Fe54, H1, scratch); + + scratch = screened_rates(k_Cr50_He4_to_Fe54_reaclib)*Y(Cr50)*state.rho + - screened_rates(k_Fe54_He4_to_Ni58_reaclib)*Y(Fe54)*state.rho + - screened_rates(k_Fe54_He4_to_p_Co57_derived)*Y(Fe54)*state.rho + + screened_rates(k_Mn51_He4_to_p_Fe54_reaclib)*Y(Mn51)*state.rho; + jac.set(Fe54, He4, scratch); + + jac.set(Fe54, C12, 0.0); + + jac.set(Fe54, O16, 0.0); + + jac.set(Fe54, Ne20, 0.0); + + jac.set(Fe54, Mg23, 0.0); + + jac.set(Fe54, Mg24, 0.0); + + jac.set(Fe54, Al27, 0.0); + + jac.set(Fe54, Si27, 0.0); + + jac.set(Fe54, Si28, 0.0); + + jac.set(Fe54, Si30, 0.0); + + jac.set(Fe54, P29, 0.0); + + jac.set(Fe54, P31, 0.0); + + jac.set(Fe54, S30, 0.0); + + jac.set(Fe54, S32, 0.0); + + jac.set(Fe54, S34, 0.0); + + jac.set(Fe54, Cl33, 0.0); + + jac.set(Fe54, Cl35, 0.0); + + jac.set(Fe54, Ar34, 0.0); + + jac.set(Fe54, Ar36, 0.0); + + jac.set(Fe54, Ar38, 0.0); + + jac.set(Fe54, K37, 0.0); + + jac.set(Fe54, K39, 0.0); + + jac.set(Fe54, Ca38, 0.0); + + jac.set(Fe54, Ca40, 0.0); + + jac.set(Fe54, Ca42, 0.0); + + jac.set(Fe54, Sc41, 0.0); + + jac.set(Fe54, Sc43, 0.0); + + jac.set(Fe54, Ti42, 0.0); + + jac.set(Fe54, Ti44, 0.0); + + jac.set(Fe54, Ti46, 0.0); + + jac.set(Fe54, V45, 0.0); + + jac.set(Fe54, V47, 0.0); + + jac.set(Fe54, V49, 0.0); + + jac.set(Fe54, Cr46, 0.0); + + jac.set(Fe54, Cr48, 0.0); + + scratch = screened_rates(k_Cr50_He4_to_Fe54_reaclib)*Y(He4)*state.rho; + jac.set(Fe54, Cr50, scratch); + + jac.set(Fe54, Cr52, 0.0); + + jac.set(Fe54, Mn49, 0.0); + + scratch = screened_rates(k_Mn51_He4_to_p_Fe54_reaclib)*Y(He4)*state.rho; + jac.set(Fe54, Mn51, scratch); + + scratch = screened_rates(k_Mn53_p_to_Fe54_reaclib)*Y(H1)*state.rho; + jac.set(Fe54, Mn53, scratch); + + jac.set(Fe54, Fe50, 0.0); + + scratch = 0.5*screened_rates(k_Fe52_n_n_to_Fe54_approx)*amrex::Math::powi<2>(Y(N))*amrex::Math::powi<2>(state.rho); + jac.set(Fe54, Fe52, scratch); + + scratch = -screened_rates(k_Fe54_He4_to_Ni58_reaclib)*Y(He4)*state.rho + - screened_rates(k_Fe54_He4_to_p_Co57_derived)*Y(He4)*state.rho + - 0.5*screened_rates(k_Fe54_n_n_to_Fe56_approx)*amrex::Math::powi<2>(Y(N))*amrex::Math::powi<2>(state.rho) + - screened_rates(k_Fe54_p_to_Co55_reaclib)*Y(H1)*state.rho + - screened_rates(k_Fe54_p_to_He4_Mn51_derived)*Y(H1)*state.rho + - screened_rates(k_Fe54_to_Fe52_n_n_approx) + - screened_rates(k_Fe54_to_He4_Cr50_derived) + - screened_rates(k_Fe54_to_p_Mn53_derived); + jac.set(Fe54, Fe54, scratch); + + scratch = screened_rates(k_Fe56_to_Fe54_n_n_approx); + jac.set(Fe54, Fe56, scratch); + + jac.set(Fe54, Co53, 0.0); + + scratch = screened_rates(k_Co55_to_p_Fe54_derived); + jac.set(Fe54, Co55, scratch); + + jac.set(Fe54, Co56, 0.0); + + scratch = screened_rates(k_Co57_p_to_He4_Fe54_reaclib)*Y(H1)*state.rho; + jac.set(Fe54, Co57, scratch); + + jac.set(Fe54, Ni56, 0.0); + + scratch = screened_rates(k_Ni58_to_He4_Fe54_derived); + jac.set(Fe54, Ni58, scratch); + + jac.set(Fe54, Cu59, 0.0); + + + // Fe56 row + + scratch = screened_rates(k_Co56_n_to_p_Fe56_reaclib)*Y(Co56)*state.rho + + 1.0*screened_rates(k_Fe54_n_n_to_Fe56_approx)*Y(Fe54)*Y(N)*amrex::Math::powi<2>(state.rho) + + 0.5*Y(Fe54)*amrex::Math::powi<2>(Y(N))*amrex::Math::powi<2>(state.rho)*rate_eval.drate_Fe54_n_n_to_Fe56_approx_dYN + - Y(Fe56)*rate_eval.drate_Fe56_to_Fe54_n_n_approx_dYN; + jac.set(Fe56, N, scratch); + + scratch = -screened_rates(k_Fe56_p_to_Co57_reaclib)*Y(Fe56)*state.rho + - screened_rates(k_Fe56_p_to_He4_Mn53_derived)*Y(Fe56)*state.rho + - screened_rates(k_Fe56_p_to_n_Co56_derived)*Y(Fe56)*state.rho; + jac.set(Fe56, H1, scratch); + + scratch = screened_rates(k_Cr52_He4_to_Fe56_reaclib)*Y(Cr52)*state.rho + + screened_rates(k_Mn53_He4_to_p_Fe56_reaclib)*Y(Mn53)*state.rho; + jac.set(Fe56, He4, scratch); + + jac.set(Fe56, C12, 0.0); + + jac.set(Fe56, O16, 0.0); + + jac.set(Fe56, Ne20, 0.0); + + jac.set(Fe56, Mg23, 0.0); + + jac.set(Fe56, Mg24, 0.0); + + jac.set(Fe56, Al27, 0.0); + + jac.set(Fe56, Si27, 0.0); + + jac.set(Fe56, Si28, 0.0); + + jac.set(Fe56, Si30, 0.0); + + jac.set(Fe56, P29, 0.0); + + jac.set(Fe56, P31, 0.0); + + jac.set(Fe56, S30, 0.0); + + jac.set(Fe56, S32, 0.0); + + jac.set(Fe56, S34, 0.0); + + jac.set(Fe56, Cl33, 0.0); + + jac.set(Fe56, Cl35, 0.0); + + jac.set(Fe56, Ar34, 0.0); + + jac.set(Fe56, Ar36, 0.0); + + jac.set(Fe56, Ar38, 0.0); + + jac.set(Fe56, K37, 0.0); + + jac.set(Fe56, K39, 0.0); + + jac.set(Fe56, Ca38, 0.0); + + jac.set(Fe56, Ca40, 0.0); + + jac.set(Fe56, Ca42, 0.0); + + jac.set(Fe56, Sc41, 0.0); + + jac.set(Fe56, Sc43, 0.0); + + jac.set(Fe56, Ti42, 0.0); + + jac.set(Fe56, Ti44, 0.0); + + jac.set(Fe56, Ti46, 0.0); + + jac.set(Fe56, V45, 0.0); + + jac.set(Fe56, V47, 0.0); + + jac.set(Fe56, V49, 0.0); + + jac.set(Fe56, Cr46, 0.0); + + jac.set(Fe56, Cr48, 0.0); + + jac.set(Fe56, Cr50, 0.0); + + scratch = screened_rates(k_Cr52_He4_to_Fe56_reaclib)*Y(He4)*state.rho; + jac.set(Fe56, Cr52, scratch); + + jac.set(Fe56, Mn49, 0.0); + + jac.set(Fe56, Mn51, 0.0); + + scratch = screened_rates(k_Mn53_He4_to_p_Fe56_reaclib)*Y(He4)*state.rho; + jac.set(Fe56, Mn53, scratch); + + jac.set(Fe56, Fe50, 0.0); + + jac.set(Fe56, Fe52, 0.0); + + scratch = 0.5*screened_rates(k_Fe54_n_n_to_Fe56_approx)*amrex::Math::powi<2>(Y(N))*amrex::Math::powi<2>(state.rho); + jac.set(Fe56, Fe54, scratch); + + scratch = -screened_rates(k_Fe56_p_to_Co57_reaclib)*Y(H1)*state.rho + - screened_rates(k_Fe56_p_to_He4_Mn53_derived)*Y(H1)*state.rho + - screened_rates(k_Fe56_p_to_n_Co56_derived)*Y(H1)*state.rho + - screened_rates(k_Fe56_to_Co56_beta_neg_weaktab) + - screened_rates(k_Fe56_to_Fe54_n_n_approx) + - screened_rates(k_Fe56_to_He4_Cr52_derived); + jac.set(Fe56, Fe56, scratch); + + jac.set(Fe56, Co53, 0.0); + + jac.set(Fe56, Co55, 0.0); + + scratch = screened_rates(k_Co56_n_to_p_Fe56_reaclib)*Y(N)*state.rho + + screened_rates(k_Co56_to_Fe56_electron_capture_weaktab); + jac.set(Fe56, Co56, scratch); + + scratch = screened_rates(k_Co57_to_p_Fe56_derived); + jac.set(Fe56, Co57, scratch); + + jac.set(Fe56, Ni56, 0.0); + + jac.set(Fe56, Ni58, 0.0); + + jac.set(Fe56, Cu59, 0.0); + + + // Co53 row + + scratch = -1.0*screened_rates(k_Co53_n_n_to_Co55_approx)*Y(Co53)*Y(N)*amrex::Math::powi<2>(state.rho) + - 0.5*Y(Co53)*amrex::Math::powi<2>(Y(N))*amrex::Math::powi<2>(state.rho)*rate_eval.drate_Co53_n_n_to_Co55_approx_dYN + + Y(Co55)*rate_eval.drate_Co55_to_Co53_n_n_approx_dYN; + jac.set(Co53, N, scratch); + + scratch = -screened_rates(k_Co53_p_to_He4_Fe50_derived)*Y(Co53)*state.rho + + screened_rates(k_Fe52_p_to_Co53_reaclib)*Y(Fe52)*state.rho + + screened_rates(k_Ni56_p_to_He4_Co53_derived)*Y(Ni56)*state.rho; + jac.set(Co53, H1, scratch); + + scratch = -screened_rates(k_Co53_He4_to_p_Ni56_reaclib)*Y(Co53)*state.rho + + screened_rates(k_Fe50_He4_to_p_Co53_reaclib)*Y(Fe50)*state.rho + + screened_rates(k_Mn49_He4_to_Co53_reaclib)*Y(Mn49)*state.rho; + jac.set(Co53, He4, scratch); + + jac.set(Co53, C12, 0.0); + + jac.set(Co53, O16, 0.0); + + jac.set(Co53, Ne20, 0.0); + + jac.set(Co53, Mg23, 0.0); + + jac.set(Co53, Mg24, 0.0); + + jac.set(Co53, Al27, 0.0); + + jac.set(Co53, Si27, 0.0); + + jac.set(Co53, Si28, 0.0); + + jac.set(Co53, Si30, 0.0); + + jac.set(Co53, P29, 0.0); + + jac.set(Co53, P31, 0.0); + + jac.set(Co53, S30, 0.0); + + jac.set(Co53, S32, 0.0); + + jac.set(Co53, S34, 0.0); + + jac.set(Co53, Cl33, 0.0); + + jac.set(Co53, Cl35, 0.0); + + jac.set(Co53, Ar34, 0.0); + + jac.set(Co53, Ar36, 0.0); + + jac.set(Co53, Ar38, 0.0); + + jac.set(Co53, K37, 0.0); + + jac.set(Co53, K39, 0.0); + + jac.set(Co53, Ca38, 0.0); + + jac.set(Co53, Ca40, 0.0); + + jac.set(Co53, Ca42, 0.0); + + jac.set(Co53, Sc41, 0.0); + + jac.set(Co53, Sc43, 0.0); + + jac.set(Co53, Ti42, 0.0); + + jac.set(Co53, Ti44, 0.0); + + jac.set(Co53, Ti46, 0.0); + + jac.set(Co53, V45, 0.0); + + jac.set(Co53, V47, 0.0); + + jac.set(Co53, V49, 0.0); + + jac.set(Co53, Cr46, 0.0); + + jac.set(Co53, Cr48, 0.0); + + jac.set(Co53, Cr50, 0.0); + + jac.set(Co53, Cr52, 0.0); + + scratch = screened_rates(k_Mn49_He4_to_Co53_reaclib)*Y(He4)*state.rho; + jac.set(Co53, Mn49, scratch); + + jac.set(Co53, Mn51, 0.0); + + jac.set(Co53, Mn53, 0.0); + + scratch = screened_rates(k_Fe50_He4_to_p_Co53_reaclib)*Y(He4)*state.rho; + jac.set(Co53, Fe50, scratch); + + scratch = screened_rates(k_Fe52_p_to_Co53_reaclib)*Y(H1)*state.rho; + jac.set(Co53, Fe52, scratch); + + jac.set(Co53, Fe54, 0.0); + + jac.set(Co53, Fe56, 0.0); + + scratch = -screened_rates(k_Co53_He4_to_p_Ni56_reaclib)*Y(He4)*state.rho + - 0.5*screened_rates(k_Co53_n_n_to_Co55_approx)*amrex::Math::powi<2>(Y(N))*amrex::Math::powi<2>(state.rho) + - screened_rates(k_Co53_p_to_He4_Fe50_derived)*Y(H1)*state.rho + - screened_rates(k_Co53_to_He4_Mn49_derived) + - screened_rates(k_Co53_to_p_Fe52_derived); + jac.set(Co53, Co53, scratch); + + scratch = screened_rates(k_Co55_to_Co53_n_n_approx); + jac.set(Co53, Co55, scratch); + + jac.set(Co53, Co56, 0.0); + + jac.set(Co53, Co57, 0.0); + + scratch = screened_rates(k_Ni56_p_to_He4_Co53_derived)*Y(H1)*state.rho; + jac.set(Co53, Ni56, scratch); + + jac.set(Co53, Ni58, 0.0); + + jac.set(Co53, Cu59, 0.0); + + + // Co55 row + + scratch = 1.0*screened_rates(k_Co53_n_n_to_Co55_approx)*Y(Co53)*Y(N)*amrex::Math::powi<2>(state.rho) + - screened_rates(k_Co55_n_to_Co56_reaclib)*Y(Co55)*state.rho + + 0.5*Y(Co53)*amrex::Math::powi<2>(Y(N))*amrex::Math::powi<2>(state.rho)*rate_eval.drate_Co53_n_n_to_Co55_approx_dYN + - Y(Co55)*rate_eval.drate_Co55_to_Co53_n_n_approx_dYN; + jac.set(Co55, N, scratch); + + scratch = -screened_rates(k_Co55_p_to_He4_Fe52_derived)*Y(Co55)*state.rho + - screened_rates(k_Co55_p_to_Ni56_reaclib)*Y(Co55)*state.rho + + screened_rates(k_Fe54_p_to_Co55_reaclib)*Y(Fe54)*state.rho + + screened_rates(k_Ni58_p_to_He4_Co55_derived)*Y(Ni58)*state.rho; + jac.set(Co55, H1, scratch); + + scratch = -screened_rates(k_Co55_He4_to_Cu59_reaclib)*Y(Co55)*state.rho + - screened_rates(k_Co55_He4_to_p_Ni58_reaclib)*Y(Co55)*state.rho + + screened_rates(k_Fe52_He4_to_p_Co55_reaclib)*Y(Fe52)*state.rho + + screened_rates(k_Mn51_He4_to_Co55_reaclib)*Y(Mn51)*state.rho; + jac.set(Co55, He4, scratch); + + jac.set(Co55, C12, 0.0); + + jac.set(Co55, O16, 0.0); + + jac.set(Co55, Ne20, 0.0); + + jac.set(Co55, Mg23, 0.0); + + jac.set(Co55, Mg24, 0.0); + + jac.set(Co55, Al27, 0.0); + + jac.set(Co55, Si27, 0.0); + + jac.set(Co55, Si28, 0.0); + + jac.set(Co55, Si30, 0.0); + + jac.set(Co55, P29, 0.0); + + jac.set(Co55, P31, 0.0); + + jac.set(Co55, S30, 0.0); + + jac.set(Co55, S32, 0.0); + + jac.set(Co55, S34, 0.0); + + jac.set(Co55, Cl33, 0.0); + + jac.set(Co55, Cl35, 0.0); + + jac.set(Co55, Ar34, 0.0); + + jac.set(Co55, Ar36, 0.0); + + jac.set(Co55, Ar38, 0.0); + + jac.set(Co55, K37, 0.0); + + jac.set(Co55, K39, 0.0); + + jac.set(Co55, Ca38, 0.0); + + jac.set(Co55, Ca40, 0.0); + + jac.set(Co55, Ca42, 0.0); + + jac.set(Co55, Sc41, 0.0); + + jac.set(Co55, Sc43, 0.0); + + jac.set(Co55, Ti42, 0.0); + + jac.set(Co55, Ti44, 0.0); + + jac.set(Co55, Ti46, 0.0); + + jac.set(Co55, V45, 0.0); + + jac.set(Co55, V47, 0.0); + + jac.set(Co55, V49, 0.0); + + jac.set(Co55, Cr46, 0.0); + + jac.set(Co55, Cr48, 0.0); + + jac.set(Co55, Cr50, 0.0); + + jac.set(Co55, Cr52, 0.0); + + jac.set(Co55, Mn49, 0.0); + + scratch = screened_rates(k_Mn51_He4_to_Co55_reaclib)*Y(He4)*state.rho; + jac.set(Co55, Mn51, scratch); + + jac.set(Co55, Mn53, 0.0); + + jac.set(Co55, Fe50, 0.0); + + scratch = screened_rates(k_Fe52_He4_to_p_Co55_reaclib)*Y(He4)*state.rho; + jac.set(Co55, Fe52, scratch); + + scratch = screened_rates(k_Fe54_p_to_Co55_reaclib)*Y(H1)*state.rho; + jac.set(Co55, Fe54, scratch); + + jac.set(Co55, Fe56, 0.0); + + scratch = 0.5*screened_rates(k_Co53_n_n_to_Co55_approx)*amrex::Math::powi<2>(Y(N))*amrex::Math::powi<2>(state.rho); + jac.set(Co55, Co53, scratch); + + scratch = -screened_rates(k_Co55_He4_to_Cu59_reaclib)*Y(He4)*state.rho + - screened_rates(k_Co55_He4_to_p_Ni58_reaclib)*Y(He4)*state.rho + - screened_rates(k_Co55_n_to_Co56_reaclib)*Y(N)*state.rho + - screened_rates(k_Co55_p_to_He4_Fe52_derived)*Y(H1)*state.rho + - screened_rates(k_Co55_p_to_Ni56_reaclib)*Y(H1)*state.rho + - screened_rates(k_Co55_to_Co53_n_n_approx) + - screened_rates(k_Co55_to_He4_Mn51_derived) + - screened_rates(k_Co55_to_p_Fe54_derived); + jac.set(Co55, Co55, scratch); + + scratch = screened_rates(k_Co56_to_n_Co55_derived); + jac.set(Co55, Co56, scratch); + + jac.set(Co55, Co57, 0.0); + + scratch = screened_rates(k_Ni56_to_p_Co55_derived); + jac.set(Co55, Ni56, scratch); + + scratch = screened_rates(k_Ni58_p_to_He4_Co55_derived)*Y(H1)*state.rho; + jac.set(Co55, Ni58, scratch); + + scratch = screened_rates(k_Cu59_to_He4_Co55_derived); + jac.set(Co55, Cu59, scratch); + + + // Co56 row + + scratch = screened_rates(k_Co55_n_to_Co56_reaclib)*Y(Co55)*state.rho + - screened_rates(k_Co56_n_to_Co57_reaclib)*Y(Co56)*state.rho + - screened_rates(k_Co56_n_to_He4_Mn53_reaclib)*Y(Co56)*state.rho + - screened_rates(k_Co56_n_to_p_Fe56_reaclib)*Y(Co56)*state.rho + + screened_rates(k_Cu59_n_to_He4_Co56_reaclib)*Y(Cu59)*state.rho + + screened_rates(k_Ni56_n_to_p_Co56_reaclib)*Y(Ni56)*state.rho; + jac.set(Co56, N, scratch); + + scratch = -screened_rates(k_Co56_p_to_n_Ni56_derived)*Y(Co56)*state.rho + + screened_rates(k_Fe56_p_to_n_Co56_derived)*Y(Fe56)*state.rho; + jac.set(Co56, H1, scratch); + + scratch = -screened_rates(k_Co56_He4_to_n_Cu59_derived)*Y(Co56)*state.rho + + screened_rates(k_Mn53_He4_to_n_Co56_derived)*Y(Mn53)*state.rho; + jac.set(Co56, He4, scratch); + + jac.set(Co56, C12, 0.0); + + jac.set(Co56, O16, 0.0); + + jac.set(Co56, Ne20, 0.0); + + jac.set(Co56, Mg23, 0.0); + + jac.set(Co56, Mg24, 0.0); + + jac.set(Co56, Al27, 0.0); + + jac.set(Co56, Si27, 0.0); + + jac.set(Co56, Si28, 0.0); + + jac.set(Co56, Si30, 0.0); + + jac.set(Co56, P29, 0.0); + + jac.set(Co56, P31, 0.0); + + jac.set(Co56, S30, 0.0); + + jac.set(Co56, S32, 0.0); + + jac.set(Co56, S34, 0.0); + + jac.set(Co56, Cl33, 0.0); + + jac.set(Co56, Cl35, 0.0); + + jac.set(Co56, Ar34, 0.0); + + jac.set(Co56, Ar36, 0.0); + + jac.set(Co56, Ar38, 0.0); + + jac.set(Co56, K37, 0.0); + + jac.set(Co56, K39, 0.0); + + jac.set(Co56, Ca38, 0.0); + + jac.set(Co56, Ca40, 0.0); + + jac.set(Co56, Ca42, 0.0); + + jac.set(Co56, Sc41, 0.0); + + jac.set(Co56, Sc43, 0.0); + + jac.set(Co56, Ti42, 0.0); + + jac.set(Co56, Ti44, 0.0); + + jac.set(Co56, Ti46, 0.0); + + jac.set(Co56, V45, 0.0); + + jac.set(Co56, V47, 0.0); + + jac.set(Co56, V49, 0.0); + + jac.set(Co56, Cr46, 0.0); + + jac.set(Co56, Cr48, 0.0); + + jac.set(Co56, Cr50, 0.0); + + jac.set(Co56, Cr52, 0.0); + + jac.set(Co56, Mn49, 0.0); + + jac.set(Co56, Mn51, 0.0); + + scratch = screened_rates(k_Mn53_He4_to_n_Co56_derived)*Y(He4)*state.rho; + jac.set(Co56, Mn53, scratch); + + jac.set(Co56, Fe50, 0.0); + + jac.set(Co56, Fe52, 0.0); + + jac.set(Co56, Fe54, 0.0); + + scratch = screened_rates(k_Fe56_p_to_n_Co56_derived)*Y(H1)*state.rho + + screened_rates(k_Fe56_to_Co56_beta_neg_weaktab); + jac.set(Co56, Fe56, scratch); + + jac.set(Co56, Co53, 0.0); + + scratch = screened_rates(k_Co55_n_to_Co56_reaclib)*Y(N)*state.rho; + jac.set(Co56, Co55, scratch); + + scratch = -screened_rates(k_Co56_He4_to_n_Cu59_derived)*Y(He4)*state.rho + - screened_rates(k_Co56_n_to_Co57_reaclib)*Y(N)*state.rho + - screened_rates(k_Co56_n_to_He4_Mn53_reaclib)*Y(N)*state.rho + - screened_rates(k_Co56_n_to_p_Fe56_reaclib)*Y(N)*state.rho + - screened_rates(k_Co56_p_to_n_Ni56_derived)*Y(H1)*state.rho + - screened_rates(k_Co56_to_Fe56_electron_capture_weaktab) + - screened_rates(k_Co56_to_Ni56_beta_neg_weaktab) + - screened_rates(k_Co56_to_n_Co55_derived); + jac.set(Co56, Co56, scratch); + + scratch = screened_rates(k_Co57_to_n_Co56_derived); + jac.set(Co56, Co57, scratch); + + scratch = screened_rates(k_Ni56_n_to_p_Co56_reaclib)*Y(N)*state.rho + + screened_rates(k_Ni56_to_Co56_electron_capture_weaktab); + jac.set(Co56, Ni56, scratch); + + jac.set(Co56, Ni58, 0.0); + + scratch = screened_rates(k_Cu59_n_to_He4_Co56_reaclib)*Y(N)*state.rho; + jac.set(Co56, Cu59, scratch); + + + // Co57 row + + scratch = screened_rates(k_Co56_n_to_Co57_reaclib)*Y(Co56)*state.rho; + jac.set(Co57, N, scratch); + + scratch = -screened_rates(k_Co57_p_to_He4_Fe54_reaclib)*Y(Co57)*state.rho + - screened_rates(k_Co57_p_to_Ni58_reaclib)*Y(Co57)*state.rho + + screened_rates(k_Fe56_p_to_Co57_reaclib)*Y(Fe56)*state.rho; + jac.set(Co57, H1, scratch); + + scratch = screened_rates(k_Fe54_He4_to_p_Co57_derived)*Y(Fe54)*state.rho + + screened_rates(k_Mn53_He4_to_Co57_reaclib)*Y(Mn53)*state.rho; + jac.set(Co57, He4, scratch); + + jac.set(Co57, C12, 0.0); + + jac.set(Co57, O16, 0.0); + + jac.set(Co57, Ne20, 0.0); + + jac.set(Co57, Mg23, 0.0); + + jac.set(Co57, Mg24, 0.0); + + jac.set(Co57, Al27, 0.0); + + jac.set(Co57, Si27, 0.0); + + jac.set(Co57, Si28, 0.0); + + jac.set(Co57, Si30, 0.0); + + jac.set(Co57, P29, 0.0); + + jac.set(Co57, P31, 0.0); + + jac.set(Co57, S30, 0.0); + + jac.set(Co57, S32, 0.0); + + jac.set(Co57, S34, 0.0); + + jac.set(Co57, Cl33, 0.0); + + jac.set(Co57, Cl35, 0.0); + + jac.set(Co57, Ar34, 0.0); + + jac.set(Co57, Ar36, 0.0); + + jac.set(Co57, Ar38, 0.0); + + jac.set(Co57, K37, 0.0); + + jac.set(Co57, K39, 0.0); + + jac.set(Co57, Ca38, 0.0); + + jac.set(Co57, Ca40, 0.0); + + jac.set(Co57, Ca42, 0.0); + + jac.set(Co57, Sc41, 0.0); + + jac.set(Co57, Sc43, 0.0); + + jac.set(Co57, Ti42, 0.0); + + jac.set(Co57, Ti44, 0.0); + + jac.set(Co57, Ti46, 0.0); + + jac.set(Co57, V45, 0.0); + + jac.set(Co57, V47, 0.0); + + jac.set(Co57, V49, 0.0); + + jac.set(Co57, Cr46, 0.0); + + jac.set(Co57, Cr48, 0.0); + + jac.set(Co57, Cr50, 0.0); + + jac.set(Co57, Cr52, 0.0); + + jac.set(Co57, Mn49, 0.0); + + jac.set(Co57, Mn51, 0.0); + + scratch = screened_rates(k_Mn53_He4_to_Co57_reaclib)*Y(He4)*state.rho; + jac.set(Co57, Mn53, scratch); + + jac.set(Co57, Fe50, 0.0); + + jac.set(Co57, Fe52, 0.0); + + scratch = screened_rates(k_Fe54_He4_to_p_Co57_derived)*Y(He4)*state.rho; + jac.set(Co57, Fe54, scratch); + + scratch = screened_rates(k_Fe56_p_to_Co57_reaclib)*Y(H1)*state.rho; + jac.set(Co57, Fe56, scratch); + + jac.set(Co57, Co53, 0.0); + + jac.set(Co57, Co55, 0.0); + + scratch = screened_rates(k_Co56_n_to_Co57_reaclib)*Y(N)*state.rho; + jac.set(Co57, Co56, scratch); + + scratch = -screened_rates(k_Co57_p_to_He4_Fe54_reaclib)*Y(H1)*state.rho + - screened_rates(k_Co57_p_to_Ni58_reaclib)*Y(H1)*state.rho + - screened_rates(k_Co57_to_He4_Mn53_derived) + - screened_rates(k_Co57_to_n_Co56_derived) + - screened_rates(k_Co57_to_p_Fe56_derived); + jac.set(Co57, Co57, scratch); + + jac.set(Co57, Ni56, 0.0); + + scratch = screened_rates(k_Ni58_to_p_Co57_derived); + jac.set(Co57, Ni58, scratch); + + jac.set(Co57, Cu59, 0.0); + + + // Ni56 row + + scratch = -1.0*screened_rates(k_Ni56_n_n_to_Ni58_approx)*Y(Ni56)*Y(N)*amrex::Math::powi<2>(state.rho) + - screened_rates(k_Ni56_n_to_p_Co56_reaclib)*Y(Ni56)*state.rho + - 0.5*Y(Ni56)*amrex::Math::powi<2>(Y(N))*amrex::Math::powi<2>(state.rho)*rate_eval.drate_Ni56_n_n_to_Ni58_approx_dYN + + Y(Ni58)*rate_eval.drate_Ni58_to_Ni56_n_n_approx_dYN; + jac.set(Ni56, N, scratch); + + scratch = screened_rates(k_Co55_p_to_Ni56_reaclib)*Y(Co55)*state.rho + + screened_rates(k_Co56_p_to_n_Ni56_derived)*Y(Co56)*state.rho + + screened_rates(k_Cu59_p_to_He4_Ni56_reaclib)*Y(Cu59)*state.rho + - screened_rates(k_Ni56_p_to_He4_Co53_derived)*Y(Ni56)*state.rho; + jac.set(Ni56, H1, scratch); + + scratch = screened_rates(k_Co53_He4_to_p_Ni56_reaclib)*Y(Co53)*state.rho + + screened_rates(k_Fe52_He4_to_Ni56_reaclib)*Y(Fe52)*state.rho + - screened_rates(k_Ni56_He4_to_p_Cu59_derived)*Y(Ni56)*state.rho; + jac.set(Ni56, He4, scratch); + + jac.set(Ni56, C12, 0.0); + + jac.set(Ni56, O16, 0.0); + + jac.set(Ni56, Ne20, 0.0); + + jac.set(Ni56, Mg23, 0.0); + + jac.set(Ni56, Mg24, 0.0); + + jac.set(Ni56, Al27, 0.0); + + jac.set(Ni56, Si27, 0.0); + + jac.set(Ni56, Si28, 0.0); + + jac.set(Ni56, Si30, 0.0); + + jac.set(Ni56, P29, 0.0); + + jac.set(Ni56, P31, 0.0); + + jac.set(Ni56, S30, 0.0); + + jac.set(Ni56, S32, 0.0); + + jac.set(Ni56, S34, 0.0); + + jac.set(Ni56, Cl33, 0.0); + + jac.set(Ni56, Cl35, 0.0); + + jac.set(Ni56, Ar34, 0.0); + + jac.set(Ni56, Ar36, 0.0); + + jac.set(Ni56, Ar38, 0.0); + + jac.set(Ni56, K37, 0.0); + + jac.set(Ni56, K39, 0.0); + + jac.set(Ni56, Ca38, 0.0); + + jac.set(Ni56, Ca40, 0.0); + + jac.set(Ni56, Ca42, 0.0); + + jac.set(Ni56, Sc41, 0.0); + + jac.set(Ni56, Sc43, 0.0); + + jac.set(Ni56, Ti42, 0.0); + + jac.set(Ni56, Ti44, 0.0); + + jac.set(Ni56, Ti46, 0.0); + + jac.set(Ni56, V45, 0.0); + + jac.set(Ni56, V47, 0.0); + + jac.set(Ni56, V49, 0.0); + + jac.set(Ni56, Cr46, 0.0); + + jac.set(Ni56, Cr48, 0.0); + + jac.set(Ni56, Cr50, 0.0); + + jac.set(Ni56, Cr52, 0.0); + + jac.set(Ni56, Mn49, 0.0); + + jac.set(Ni56, Mn51, 0.0); + + jac.set(Ni56, Mn53, 0.0); + + jac.set(Ni56, Fe50, 0.0); + + scratch = screened_rates(k_Fe52_He4_to_Ni56_reaclib)*Y(He4)*state.rho; + jac.set(Ni56, Fe52, scratch); + + jac.set(Ni56, Fe54, 0.0); + + jac.set(Ni56, Fe56, 0.0); + + scratch = screened_rates(k_Co53_He4_to_p_Ni56_reaclib)*Y(He4)*state.rho; + jac.set(Ni56, Co53, scratch); + + scratch = screened_rates(k_Co55_p_to_Ni56_reaclib)*Y(H1)*state.rho; + jac.set(Ni56, Co55, scratch); + + scratch = screened_rates(k_Co56_p_to_n_Ni56_derived)*Y(H1)*state.rho + + screened_rates(k_Co56_to_Ni56_beta_neg_weaktab); + jac.set(Ni56, Co56, scratch); + + jac.set(Ni56, Co57, 0.0); + + scratch = -screened_rates(k_Ni56_He4_to_p_Cu59_derived)*Y(He4)*state.rho + - 0.5*screened_rates(k_Ni56_n_n_to_Ni58_approx)*amrex::Math::powi<2>(Y(N))*amrex::Math::powi<2>(state.rho) + - screened_rates(k_Ni56_n_to_p_Co56_reaclib)*Y(N)*state.rho + - screened_rates(k_Ni56_p_to_He4_Co53_derived)*Y(H1)*state.rho + - screened_rates(k_Ni56_to_Co56_electron_capture_weaktab) + - screened_rates(k_Ni56_to_He4_Fe52_derived) + - screened_rates(k_Ni56_to_p_Co55_derived); + jac.set(Ni56, Ni56, scratch); + + scratch = screened_rates(k_Ni58_to_Ni56_n_n_approx); + jac.set(Ni56, Ni58, scratch); + + scratch = screened_rates(k_Cu59_p_to_He4_Ni56_reaclib)*Y(H1)*state.rho; + jac.set(Ni56, Cu59, scratch); + + + // Ni58 row + + scratch = 1.0*screened_rates(k_Ni56_n_n_to_Ni58_approx)*Y(Ni56)*Y(N)*amrex::Math::powi<2>(state.rho) + + 0.5*Y(Ni56)*amrex::Math::powi<2>(Y(N))*amrex::Math::powi<2>(state.rho)*rate_eval.drate_Ni56_n_n_to_Ni58_approx_dYN + - Y(Ni58)*rate_eval.drate_Ni58_to_Ni56_n_n_approx_dYN; + jac.set(Ni58, N, scratch); + + scratch = screened_rates(k_Co57_p_to_Ni58_reaclib)*Y(Co57)*state.rho + - screened_rates(k_Ni58_p_to_Cu59_reaclib)*Y(Ni58)*state.rho + - screened_rates(k_Ni58_p_to_He4_Co55_derived)*Y(Ni58)*state.rho; + jac.set(Ni58, H1, scratch); + + scratch = screened_rates(k_Co55_He4_to_p_Ni58_reaclib)*Y(Co55)*state.rho + + screened_rates(k_Fe54_He4_to_Ni58_reaclib)*Y(Fe54)*state.rho; + jac.set(Ni58, He4, scratch); + + jac.set(Ni58, C12, 0.0); + + jac.set(Ni58, O16, 0.0); + + jac.set(Ni58, Ne20, 0.0); + + jac.set(Ni58, Mg23, 0.0); + + jac.set(Ni58, Mg24, 0.0); + + jac.set(Ni58, Al27, 0.0); + + jac.set(Ni58, Si27, 0.0); + + jac.set(Ni58, Si28, 0.0); + + jac.set(Ni58, Si30, 0.0); + + jac.set(Ni58, P29, 0.0); + + jac.set(Ni58, P31, 0.0); + + jac.set(Ni58, S30, 0.0); + + jac.set(Ni58, S32, 0.0); + + jac.set(Ni58, S34, 0.0); + + jac.set(Ni58, Cl33, 0.0); + + jac.set(Ni58, Cl35, 0.0); + + jac.set(Ni58, Ar34, 0.0); + + jac.set(Ni58, Ar36, 0.0); + + jac.set(Ni58, Ar38, 0.0); + + jac.set(Ni58, K37, 0.0); + + jac.set(Ni58, K39, 0.0); + + jac.set(Ni58, Ca38, 0.0); + + jac.set(Ni58, Ca40, 0.0); + + jac.set(Ni58, Ca42, 0.0); + + jac.set(Ni58, Sc41, 0.0); + + jac.set(Ni58, Sc43, 0.0); + + jac.set(Ni58, Ti42, 0.0); + + jac.set(Ni58, Ti44, 0.0); + + jac.set(Ni58, Ti46, 0.0); + + jac.set(Ni58, V45, 0.0); + + jac.set(Ni58, V47, 0.0); + + jac.set(Ni58, V49, 0.0); + + jac.set(Ni58, Cr46, 0.0); + + jac.set(Ni58, Cr48, 0.0); + + jac.set(Ni58, Cr50, 0.0); + + jac.set(Ni58, Cr52, 0.0); + + jac.set(Ni58, Mn49, 0.0); + + jac.set(Ni58, Mn51, 0.0); + + jac.set(Ni58, Mn53, 0.0); + + jac.set(Ni58, Fe50, 0.0); + + jac.set(Ni58, Fe52, 0.0); + + scratch = screened_rates(k_Fe54_He4_to_Ni58_reaclib)*Y(He4)*state.rho; + jac.set(Ni58, Fe54, scratch); + + jac.set(Ni58, Fe56, 0.0); + + jac.set(Ni58, Co53, 0.0); + + scratch = screened_rates(k_Co55_He4_to_p_Ni58_reaclib)*Y(He4)*state.rho; + jac.set(Ni58, Co55, scratch); + + jac.set(Ni58, Co56, 0.0); + + scratch = screened_rates(k_Co57_p_to_Ni58_reaclib)*Y(H1)*state.rho; + jac.set(Ni58, Co57, scratch); + + scratch = 0.5*screened_rates(k_Ni56_n_n_to_Ni58_approx)*amrex::Math::powi<2>(Y(N))*amrex::Math::powi<2>(state.rho); + jac.set(Ni58, Ni56, scratch); + + scratch = -screened_rates(k_Ni58_p_to_Cu59_reaclib)*Y(H1)*state.rho + - screened_rates(k_Ni58_p_to_He4_Co55_derived)*Y(H1)*state.rho + - screened_rates(k_Ni58_to_He4_Fe54_derived) + - screened_rates(k_Ni58_to_Ni56_n_n_approx) + - screened_rates(k_Ni58_to_p_Co57_derived); + jac.set(Ni58, Ni58, scratch); + + scratch = screened_rates(k_Cu59_to_p_Ni58_derived); + jac.set(Ni58, Cu59, scratch); + + + // Cu59 row + + scratch = -screened_rates(k_Cu59_n_to_He4_Co56_reaclib)*Y(Cu59)*state.rho; + jac.set(Cu59, N, scratch); + + scratch = -screened_rates(k_Cu59_p_to_He4_Ni56_reaclib)*Y(Cu59)*state.rho + + screened_rates(k_Ni58_p_to_Cu59_reaclib)*Y(Ni58)*state.rho; + jac.set(Cu59, H1, scratch); + + scratch = screened_rates(k_Co55_He4_to_Cu59_reaclib)*Y(Co55)*state.rho + + screened_rates(k_Co56_He4_to_n_Cu59_derived)*Y(Co56)*state.rho + + screened_rates(k_Ni56_He4_to_p_Cu59_derived)*Y(Ni56)*state.rho; + jac.set(Cu59, He4, scratch); + + jac.set(Cu59, C12, 0.0); + + jac.set(Cu59, O16, 0.0); + + jac.set(Cu59, Ne20, 0.0); + + jac.set(Cu59, Mg23, 0.0); + + jac.set(Cu59, Mg24, 0.0); + + jac.set(Cu59, Al27, 0.0); + + jac.set(Cu59, Si27, 0.0); + + jac.set(Cu59, Si28, 0.0); + + jac.set(Cu59, Si30, 0.0); + + jac.set(Cu59, P29, 0.0); + + jac.set(Cu59, P31, 0.0); + + jac.set(Cu59, S30, 0.0); + + jac.set(Cu59, S32, 0.0); + + jac.set(Cu59, S34, 0.0); + + jac.set(Cu59, Cl33, 0.0); + + jac.set(Cu59, Cl35, 0.0); + + jac.set(Cu59, Ar34, 0.0); + + jac.set(Cu59, Ar36, 0.0); + + jac.set(Cu59, Ar38, 0.0); + + jac.set(Cu59, K37, 0.0); + + jac.set(Cu59, K39, 0.0); + + jac.set(Cu59, Ca38, 0.0); + + jac.set(Cu59, Ca40, 0.0); + + jac.set(Cu59, Ca42, 0.0); + + jac.set(Cu59, Sc41, 0.0); + + jac.set(Cu59, Sc43, 0.0); + + jac.set(Cu59, Ti42, 0.0); + + jac.set(Cu59, Ti44, 0.0); + + jac.set(Cu59, Ti46, 0.0); + + jac.set(Cu59, V45, 0.0); + + jac.set(Cu59, V47, 0.0); + + jac.set(Cu59, V49, 0.0); + + jac.set(Cu59, Cr46, 0.0); + + jac.set(Cu59, Cr48, 0.0); + + jac.set(Cu59, Cr50, 0.0); + + jac.set(Cu59, Cr52, 0.0); + + jac.set(Cu59, Mn49, 0.0); + + jac.set(Cu59, Mn51, 0.0); + + jac.set(Cu59, Mn53, 0.0); + + jac.set(Cu59, Fe50, 0.0); + + jac.set(Cu59, Fe52, 0.0); + + jac.set(Cu59, Fe54, 0.0); + + jac.set(Cu59, Fe56, 0.0); + + jac.set(Cu59, Co53, 0.0); + + scratch = screened_rates(k_Co55_He4_to_Cu59_reaclib)*Y(He4)*state.rho; + jac.set(Cu59, Co55, scratch); + + scratch = screened_rates(k_Co56_He4_to_n_Cu59_derived)*Y(He4)*state.rho; + jac.set(Cu59, Co56, scratch); + + jac.set(Cu59, Co57, 0.0); + + scratch = screened_rates(k_Ni56_He4_to_p_Cu59_derived)*Y(He4)*state.rho; + jac.set(Cu59, Ni56, scratch); + + scratch = screened_rates(k_Ni58_p_to_Cu59_reaclib)*Y(H1)*state.rho; + jac.set(Cu59, Ni58, scratch); + + scratch = -screened_rates(k_Cu59_n_to_He4_Co56_reaclib)*Y(N)*state.rho + - screened_rates(k_Cu59_p_to_He4_Ni56_reaclib)*Y(H1)*state.rho + - screened_rates(k_Cu59_to_He4_Co55_derived) + - screened_rates(k_Cu59_to_p_Ni58_derived); + jac.set(Cu59, Cu59, scratch); + + + + // add ∂λ_weak / ∂Y_e terms now + // this uses ∂Y_e/∂Y_i = Z_i + for (int irow = 1; irow <= NumSpec; ++irow) { + for (int jcol = 1; jcol <= NumSpec; ++jcol) { + jac.add(irow, jcol, rate_eval.dweak_ydot_dYe(irow) * NetworkProperties::zion(jcol)); + } + } + +} + + + +template +AMREX_GPU_DEVICE AMREX_INLINE +void actual_jac(const burn_t& state, MatrixType& jac) +{ + + // Set molar abundances + amrex::Array1D Y; + for (int i = 1; i <= NumSpec; ++i) { + Y(i) = state.xn[i-1] * aion_inv[i-1]; + } + + + rate_derivs_t rate_eval; + + constexpr int do_T_derivatives = 1; + + evaluate_rates(state, Y, rate_eval); + + // there are effectively 4 regions in the Jacobian: + // + // | + // 1) ∂Ydot_i/∂Y_j | 3) ∂Ydot/∂e + // | + // -----------------+--------------- + // | + // 2) ∂edot/∂Y_j | 4) ∂edot/∂e + // | + + + // region 1 + + // Species Jacobian elements with respect to other species + // J_ij = ∂(Ydot_i)/∂Y_j + + jac_nuc(state, jac, Y, rate_eval); + + + // region 2 + + // Energy generation rate Jacobian elements with respect to species + // J_{ienuc,j} = ∂(ε_nuc)/∂Y_j + // + // we compute this as ∂(ε_nuc)/∂Y_j = -N_A Σ_i ∂(Ydot_i)/∂Y_j m_i c² + + for (int j = 1; j <= NumSpec; ++j) { + // create a function that gives us jac(i) for the column j + auto jac_slice_2 = [&](int i) -> amrex::Real { return jac.get(i, j); }; + + amrex::Real tmp{}; + ener_gener_rate(jac_slice_2, tmp); + jac(net_ienuc,j) = tmp; + } + + // Account for the weak rate neutrino losses + // There are two contributions here: + // ∂(ε_{ν,weak})/∂Y_j and ∂(ε_{ν,weak})/∂Y_e ∂Y_e/∂Y_j + for (int jcol = 1; jcol <= NumSpec; ++jcol) { + jac.add(net_ienuc, jcol, + rate_eval.denuc_weak_dY(jcol) + + rate_eval.denuc_weak_dYe * NetworkProperties::zion(jcol)); + } + + // Account for the thermal neutrino losses + + amrex::Real dsneutdt{}; +#ifdef NEUTRINOS + amrex::Real sneut, dsneutdd, dsnuda, dsnudz; + constexpr int do_derivatives{1}; + neutrino_cooling(state.T, state.rho, state.abar, state.zbar, + sneut, dsneutdt, dsneutdd, dsnuda, dsnudz); + + for (int j = 1; j <= NumSpec; ++j) { + amrex::Real b1 = (-state.abar * state.abar * dsnuda + (zion[j-1] - state.zbar) * state.abar * dsnudz); + jac.add(net_ienuc, j, -b1); + } +#endif + + + // region 3 + + // J_{i,ienuc} = ∂(Ydot_i)/∂T for rows i = 1, ..., NumSpec + + amrex::Array1D yderivs; + + // Evaluate the Jacobian elements with respect to energy by + // calling the RHS using d(rate) / dT and then transform them + // to our energy integration variable. + + rhs_nuc(state, yderivs, Y, rate_eval.dscreened_rates_dT); + + // convert the derivatives in this column from ∂/∂T to ∂/∂e + for (int k = 1; k <= NumSpec; k++) { + jac.set(k, net_ienuc, temperature_to_energy_jacobian(state, yderivs(k))); + } + + + // region 4 + + // J_{ienuc, ienuc} = ∂(edot)/∂e. + // We start by doing the derivatives as ∂/∂T. + + // first the contribution from the strong rates, ∂(ε_nuc)/∂T, + // which we compute as ∂(ε_nuc)/∂T = -N_A Σ ∂(Ydot_i)/T m_i c² + + amrex::Real jac_e_T{}; + + ener_gener_rate(yderivs, jac_e_T); + + // Account for the weak rate neutrino losses + jac_e_T += rate_eval.denuc_weak_dT; + + // and the thermal neutrino contribution + + jac_e_T -= dsneutdt; + + // finally, convert d(de/dt)/dT to d(de/dt)/de + + jac.set(net_ienuc, net_ienuc, temperature_to_energy_jacobian(state, jac_e_T)); + +} + + +AMREX_INLINE +void actual_rhs_init () { + + +} + + +#endif diff --git a/networks/massive-star-medium/approximate_rates.H b/networks/massive-star-medium/approximate_rates.H new file mode 100644 index 0000000000..9e49eb53d9 --- /dev/null +++ b/networks/massive-star-medium/approximate_rates.H @@ -0,0 +1,1671 @@ +#ifndef APPROXIMATE_RATES_H +#define APPROXIMATE_RATES_H + +#include +#include + +#include +#include +#include + +namespace approximate_rates { + + using namespace Rates; + using namespace Species; + + template + AMREX_GPU_DEVICE AMREX_INLINE + void rate_Ni56_n_n_to_Ni58_approx(T& rate_eval, const amrex::Real rho, const amrex::Array1D& Y) { + + amrex::Real rate{}, drate_dT{}; + amrex::Real drate_dYN{}; + amrex::Real Yn = Y(N); + amrex::Real r2_ng = rate_eval.screened_rates(k_Ni57_n_to_Ni58_reaclib); + amrex::Real r1_gn = rate_eval.screened_rates(k_Ni57_to_n_Ni56_derived); + amrex::Real dd = 1.0_rt / (rho * Yn * r2_ng + r1_gn); + amrex::Real r1_ng = rate_eval.screened_rates(k_Ni56_n_to_Ni57_reaclib); + rate = 2.0_rt * r1_ng * r2_ng * dd; + if constexpr (std::is_same_v) { + amrex::Real dr1dT_ng = rate_eval.dscreened_rates_dT(k_Ni56_n_to_Ni57_reaclib); + amrex::Real dr2dT_ng = rate_eval.dscreened_rates_dT(k_Ni57_n_to_Ni58_reaclib); + amrex::Real dr1dT_gn = rate_eval.dscreened_rates_dT(k_Ni57_to_n_Ni56_derived); + drate_dT = 2.0_rt * (dr1dT_ng * r2_ng * dd + r1_ng * dr2dT_ng * dd - r1_ng * r2_ng * dd * dd * (rho * Yn * dr2dT_ng + dr1dT_gn)); + drate_dYN = -rate * dd * rho * r2_ng; + } + if constexpr (std::is_same_v) { + rate_eval.drate_Ni56_n_n_to_Ni58_approx_dYN = drate_dYN; + } + rate_eval.screened_rates(k_Ni56_n_n_to_Ni58_approx) = rate; + if constexpr (std::is_same_v) { + rate_eval.dscreened_rates_dT(k_Ni56_n_n_to_Ni58_approx) = drate_dT; + } + } + + template + AMREX_GPU_DEVICE AMREX_INLINE + void rate_Ni58_to_Ni56_n_n_approx(T& rate_eval, const amrex::Real rho, const amrex::Array1D& Y) { + + amrex::Real rate{}, drate_dT{}; + amrex::Real drate_dYN{}; + amrex::Real Yn = Y(N); + amrex::Real r2_ng = rate_eval.screened_rates(k_Ni57_n_to_Ni58_reaclib); + amrex::Real r1_gn = rate_eval.screened_rates(k_Ni57_to_n_Ni56_derived); + amrex::Real dd = 1.0_rt / (rho * Yn * r2_ng + r1_gn); + amrex::Real r2_gn = rate_eval.screened_rates(k_Ni58_to_n_Ni57_derived); + rate = r1_gn * r2_gn * dd; + if constexpr (std::is_same_v) { + amrex::Real dr1dT_gn = rate_eval.dscreened_rates_dT(k_Ni57_to_n_Ni56_derived); + amrex::Real dr2dT_gn = rate_eval.dscreened_rates_dT(k_Ni58_to_n_Ni57_derived); + amrex::Real dr2dT_ng = rate_eval.dscreened_rates_dT(k_Ni57_n_to_Ni58_reaclib); + drate_dT = dr1dT_gn * r2_gn * dd + r1_gn * dr2dT_gn * dd - r1_gn * r2_gn * dd * dd * (rho * Yn * dr2dT_ng + dr1dT_gn); + drate_dYN = -rate * dd * rho * r2_ng; + } + if constexpr (std::is_same_v) { + rate_eval.drate_Ni58_to_Ni56_n_n_approx_dYN = drate_dYN; + } + rate_eval.screened_rates(k_Ni58_to_Ni56_n_n_approx) = rate; + if constexpr (std::is_same_v) { + rate_eval.dscreened_rates_dT(k_Ni58_to_Ni56_n_n_approx) = drate_dT; + } + } + + template + AMREX_GPU_DEVICE AMREX_INLINE + void rate_Co53_n_n_to_Co55_approx(T& rate_eval, const amrex::Real rho, const amrex::Array1D& Y) { + + amrex::Real rate{}, drate_dT{}; + amrex::Real drate_dYN{}; + amrex::Real Yn = Y(N); + amrex::Real r2_ng = rate_eval.screened_rates(k_Co54_n_to_Co55_reaclib); + amrex::Real r1_gn = rate_eval.screened_rates(k_Co54_to_n_Co53_derived); + amrex::Real dd = 1.0_rt / (rho * Yn * r2_ng + r1_gn); + amrex::Real r1_ng = rate_eval.screened_rates(k_Co53_n_to_Co54_reaclib); + rate = 2.0_rt * r1_ng * r2_ng * dd; + if constexpr (std::is_same_v) { + amrex::Real dr1dT_ng = rate_eval.dscreened_rates_dT(k_Co53_n_to_Co54_reaclib); + amrex::Real dr2dT_ng = rate_eval.dscreened_rates_dT(k_Co54_n_to_Co55_reaclib); + amrex::Real dr1dT_gn = rate_eval.dscreened_rates_dT(k_Co54_to_n_Co53_derived); + drate_dT = 2.0_rt * (dr1dT_ng * r2_ng * dd + r1_ng * dr2dT_ng * dd - r1_ng * r2_ng * dd * dd * (rho * Yn * dr2dT_ng + dr1dT_gn)); + drate_dYN = -rate * dd * rho * r2_ng; + } + if constexpr (std::is_same_v) { + rate_eval.drate_Co53_n_n_to_Co55_approx_dYN = drate_dYN; + } + rate_eval.screened_rates(k_Co53_n_n_to_Co55_approx) = rate; + if constexpr (std::is_same_v) { + rate_eval.dscreened_rates_dT(k_Co53_n_n_to_Co55_approx) = drate_dT; + } + } + + template + AMREX_GPU_DEVICE AMREX_INLINE + void rate_Co55_to_Co53_n_n_approx(T& rate_eval, const amrex::Real rho, const amrex::Array1D& Y) { + + amrex::Real rate{}, drate_dT{}; + amrex::Real drate_dYN{}; + amrex::Real Yn = Y(N); + amrex::Real r2_ng = rate_eval.screened_rates(k_Co54_n_to_Co55_reaclib); + amrex::Real r1_gn = rate_eval.screened_rates(k_Co54_to_n_Co53_derived); + amrex::Real dd = 1.0_rt / (rho * Yn * r2_ng + r1_gn); + amrex::Real r2_gn = rate_eval.screened_rates(k_Co55_to_n_Co54_derived); + rate = r1_gn * r2_gn * dd; + if constexpr (std::is_same_v) { + amrex::Real dr1dT_gn = rate_eval.dscreened_rates_dT(k_Co54_to_n_Co53_derived); + amrex::Real dr2dT_gn = rate_eval.dscreened_rates_dT(k_Co55_to_n_Co54_derived); + amrex::Real dr2dT_ng = rate_eval.dscreened_rates_dT(k_Co54_n_to_Co55_reaclib); + drate_dT = dr1dT_gn * r2_gn * dd + r1_gn * dr2dT_gn * dd - r1_gn * r2_gn * dd * dd * (rho * Yn * dr2dT_ng + dr1dT_gn); + drate_dYN = -rate * dd * rho * r2_ng; + } + if constexpr (std::is_same_v) { + rate_eval.drate_Co55_to_Co53_n_n_approx_dYN = drate_dYN; + } + rate_eval.screened_rates(k_Co55_to_Co53_n_n_approx) = rate; + if constexpr (std::is_same_v) { + rate_eval.dscreened_rates_dT(k_Co55_to_Co53_n_n_approx) = drate_dT; + } + } + + template + AMREX_GPU_DEVICE AMREX_INLINE + void rate_Fe50_n_n_to_Fe52_approx(T& rate_eval, const amrex::Real rho, const amrex::Array1D& Y) { + + amrex::Real rate{}, drate_dT{}; + amrex::Real drate_dYN{}; + amrex::Real Yn = Y(N); + amrex::Real r2_ng = rate_eval.screened_rates(k_Fe51_n_to_Fe52_reaclib); + amrex::Real r1_gn = rate_eval.screened_rates(k_Fe51_to_n_Fe50_derived); + amrex::Real dd = 1.0_rt / (rho * Yn * r2_ng + r1_gn); + amrex::Real r1_ng = rate_eval.screened_rates(k_Fe50_n_to_Fe51_reaclib); + rate = 2.0_rt * r1_ng * r2_ng * dd; + if constexpr (std::is_same_v) { + amrex::Real dr1dT_ng = rate_eval.dscreened_rates_dT(k_Fe50_n_to_Fe51_reaclib); + amrex::Real dr2dT_ng = rate_eval.dscreened_rates_dT(k_Fe51_n_to_Fe52_reaclib); + amrex::Real dr1dT_gn = rate_eval.dscreened_rates_dT(k_Fe51_to_n_Fe50_derived); + drate_dT = 2.0_rt * (dr1dT_ng * r2_ng * dd + r1_ng * dr2dT_ng * dd - r1_ng * r2_ng * dd * dd * (rho * Yn * dr2dT_ng + dr1dT_gn)); + drate_dYN = -rate * dd * rho * r2_ng; + } + if constexpr (std::is_same_v) { + rate_eval.drate_Fe50_n_n_to_Fe52_approx_dYN = drate_dYN; + } + rate_eval.screened_rates(k_Fe50_n_n_to_Fe52_approx) = rate; + if constexpr (std::is_same_v) { + rate_eval.dscreened_rates_dT(k_Fe50_n_n_to_Fe52_approx) = drate_dT; + } + } + + template + AMREX_GPU_DEVICE AMREX_INLINE + void rate_Fe52_to_Fe50_n_n_approx(T& rate_eval, const amrex::Real rho, const amrex::Array1D& Y) { + + amrex::Real rate{}, drate_dT{}; + amrex::Real drate_dYN{}; + amrex::Real Yn = Y(N); + amrex::Real r2_ng = rate_eval.screened_rates(k_Fe51_n_to_Fe52_reaclib); + amrex::Real r1_gn = rate_eval.screened_rates(k_Fe51_to_n_Fe50_derived); + amrex::Real dd = 1.0_rt / (rho * Yn * r2_ng + r1_gn); + amrex::Real r2_gn = rate_eval.screened_rates(k_Fe52_to_n_Fe51_derived); + rate = r1_gn * r2_gn * dd; + if constexpr (std::is_same_v) { + amrex::Real dr1dT_gn = rate_eval.dscreened_rates_dT(k_Fe51_to_n_Fe50_derived); + amrex::Real dr2dT_gn = rate_eval.dscreened_rates_dT(k_Fe52_to_n_Fe51_derived); + amrex::Real dr2dT_ng = rate_eval.dscreened_rates_dT(k_Fe51_n_to_Fe52_reaclib); + drate_dT = dr1dT_gn * r2_gn * dd + r1_gn * dr2dT_gn * dd - r1_gn * r2_gn * dd * dd * (rho * Yn * dr2dT_ng + dr1dT_gn); + drate_dYN = -rate * dd * rho * r2_ng; + } + if constexpr (std::is_same_v) { + rate_eval.drate_Fe52_to_Fe50_n_n_approx_dYN = drate_dYN; + } + rate_eval.screened_rates(k_Fe52_to_Fe50_n_n_approx) = rate; + if constexpr (std::is_same_v) { + rate_eval.dscreened_rates_dT(k_Fe52_to_Fe50_n_n_approx) = drate_dT; + } + } + + template + AMREX_GPU_DEVICE AMREX_INLINE + void rate_Fe52_n_n_to_Fe54_approx(T& rate_eval, const amrex::Real rho, const amrex::Array1D& Y) { + + amrex::Real rate{}, drate_dT{}; + amrex::Real drate_dYN{}; + amrex::Real Yn = Y(N); + amrex::Real r2_ng = rate_eval.screened_rates(k_Fe53_n_to_Fe54_reaclib); + amrex::Real r1_gn = rate_eval.screened_rates(k_Fe53_to_n_Fe52_derived); + amrex::Real dd = 1.0_rt / (rho * Yn * r2_ng + r1_gn); + amrex::Real r1_ng = rate_eval.screened_rates(k_Fe52_n_to_Fe53_reaclib); + rate = 2.0_rt * r1_ng * r2_ng * dd; + if constexpr (std::is_same_v) { + amrex::Real dr1dT_ng = rate_eval.dscreened_rates_dT(k_Fe52_n_to_Fe53_reaclib); + amrex::Real dr2dT_ng = rate_eval.dscreened_rates_dT(k_Fe53_n_to_Fe54_reaclib); + amrex::Real dr1dT_gn = rate_eval.dscreened_rates_dT(k_Fe53_to_n_Fe52_derived); + drate_dT = 2.0_rt * (dr1dT_ng * r2_ng * dd + r1_ng * dr2dT_ng * dd - r1_ng * r2_ng * dd * dd * (rho * Yn * dr2dT_ng + dr1dT_gn)); + drate_dYN = -rate * dd * rho * r2_ng; + } + if constexpr (std::is_same_v) { + rate_eval.drate_Fe52_n_n_to_Fe54_approx_dYN = drate_dYN; + } + rate_eval.screened_rates(k_Fe52_n_n_to_Fe54_approx) = rate; + if constexpr (std::is_same_v) { + rate_eval.dscreened_rates_dT(k_Fe52_n_n_to_Fe54_approx) = drate_dT; + } + } + + template + AMREX_GPU_DEVICE AMREX_INLINE + void rate_Fe54_to_Fe52_n_n_approx(T& rate_eval, const amrex::Real rho, const amrex::Array1D& Y) { + + amrex::Real rate{}, drate_dT{}; + amrex::Real drate_dYN{}; + amrex::Real Yn = Y(N); + amrex::Real r2_ng = rate_eval.screened_rates(k_Fe53_n_to_Fe54_reaclib); + amrex::Real r1_gn = rate_eval.screened_rates(k_Fe53_to_n_Fe52_derived); + amrex::Real dd = 1.0_rt / (rho * Yn * r2_ng + r1_gn); + amrex::Real r2_gn = rate_eval.screened_rates(k_Fe54_to_n_Fe53_derived); + rate = r1_gn * r2_gn * dd; + if constexpr (std::is_same_v) { + amrex::Real dr1dT_gn = rate_eval.dscreened_rates_dT(k_Fe53_to_n_Fe52_derived); + amrex::Real dr2dT_gn = rate_eval.dscreened_rates_dT(k_Fe54_to_n_Fe53_derived); + amrex::Real dr2dT_ng = rate_eval.dscreened_rates_dT(k_Fe53_n_to_Fe54_reaclib); + drate_dT = dr1dT_gn * r2_gn * dd + r1_gn * dr2dT_gn * dd - r1_gn * r2_gn * dd * dd * (rho * Yn * dr2dT_ng + dr1dT_gn); + drate_dYN = -rate * dd * rho * r2_ng; + } + if constexpr (std::is_same_v) { + rate_eval.drate_Fe54_to_Fe52_n_n_approx_dYN = drate_dYN; + } + rate_eval.screened_rates(k_Fe54_to_Fe52_n_n_approx) = rate; + if constexpr (std::is_same_v) { + rate_eval.dscreened_rates_dT(k_Fe54_to_Fe52_n_n_approx) = drate_dT; + } + } + + template + AMREX_GPU_DEVICE AMREX_INLINE + void rate_Fe54_n_n_to_Fe56_approx(T& rate_eval, const amrex::Real rho, const amrex::Array1D& Y) { + + amrex::Real rate{}, drate_dT{}; + amrex::Real drate_dYN{}; + amrex::Real Yn = Y(N); + amrex::Real r2_ng = rate_eval.screened_rates(k_Fe55_n_to_Fe56_reaclib); + amrex::Real r1_gn = rate_eval.screened_rates(k_Fe55_to_n_Fe54_derived); + amrex::Real dd = 1.0_rt / (rho * Yn * r2_ng + r1_gn); + amrex::Real r1_ng = rate_eval.screened_rates(k_Fe54_n_to_Fe55_reaclib); + rate = 2.0_rt * r1_ng * r2_ng * dd; + if constexpr (std::is_same_v) { + amrex::Real dr1dT_ng = rate_eval.dscreened_rates_dT(k_Fe54_n_to_Fe55_reaclib); + amrex::Real dr2dT_ng = rate_eval.dscreened_rates_dT(k_Fe55_n_to_Fe56_reaclib); + amrex::Real dr1dT_gn = rate_eval.dscreened_rates_dT(k_Fe55_to_n_Fe54_derived); + drate_dT = 2.0_rt * (dr1dT_ng * r2_ng * dd + r1_ng * dr2dT_ng * dd - r1_ng * r2_ng * dd * dd * (rho * Yn * dr2dT_ng + dr1dT_gn)); + drate_dYN = -rate * dd * rho * r2_ng; + } + if constexpr (std::is_same_v) { + rate_eval.drate_Fe54_n_n_to_Fe56_approx_dYN = drate_dYN; + } + rate_eval.screened_rates(k_Fe54_n_n_to_Fe56_approx) = rate; + if constexpr (std::is_same_v) { + rate_eval.dscreened_rates_dT(k_Fe54_n_n_to_Fe56_approx) = drate_dT; + } + } + + template + AMREX_GPU_DEVICE AMREX_INLINE + void rate_Fe56_to_Fe54_n_n_approx(T& rate_eval, const amrex::Real rho, const amrex::Array1D& Y) { + + amrex::Real rate{}, drate_dT{}; + amrex::Real drate_dYN{}; + amrex::Real Yn = Y(N); + amrex::Real r2_ng = rate_eval.screened_rates(k_Fe55_n_to_Fe56_reaclib); + amrex::Real r1_gn = rate_eval.screened_rates(k_Fe55_to_n_Fe54_derived); + amrex::Real dd = 1.0_rt / (rho * Yn * r2_ng + r1_gn); + amrex::Real r2_gn = rate_eval.screened_rates(k_Fe56_to_n_Fe55_derived); + rate = r1_gn * r2_gn * dd; + if constexpr (std::is_same_v) { + amrex::Real dr1dT_gn = rate_eval.dscreened_rates_dT(k_Fe55_to_n_Fe54_derived); + amrex::Real dr2dT_gn = rate_eval.dscreened_rates_dT(k_Fe56_to_n_Fe55_derived); + amrex::Real dr2dT_ng = rate_eval.dscreened_rates_dT(k_Fe55_n_to_Fe56_reaclib); + drate_dT = dr1dT_gn * r2_gn * dd + r1_gn * dr2dT_gn * dd - r1_gn * r2_gn * dd * dd * (rho * Yn * dr2dT_ng + dr1dT_gn); + drate_dYN = -rate * dd * rho * r2_ng; + } + if constexpr (std::is_same_v) { + rate_eval.drate_Fe56_to_Fe54_n_n_approx_dYN = drate_dYN; + } + rate_eval.screened_rates(k_Fe56_to_Fe54_n_n_approx) = rate; + if constexpr (std::is_same_v) { + rate_eval.dscreened_rates_dT(k_Fe56_to_Fe54_n_n_approx) = drate_dT; + } + } + + template + AMREX_GPU_DEVICE AMREX_INLINE + void rate_Mn49_n_n_to_Mn51_approx(T& rate_eval, const amrex::Real rho, const amrex::Array1D& Y) { + + amrex::Real rate{}, drate_dT{}; + amrex::Real drate_dYN{}; + amrex::Real Yn = Y(N); + amrex::Real r2_ng = rate_eval.screened_rates(k_Mn50_n_to_Mn51_reaclib); + amrex::Real r1_gn = rate_eval.screened_rates(k_Mn50_to_n_Mn49_derived); + amrex::Real dd = 1.0_rt / (rho * Yn * r2_ng + r1_gn); + amrex::Real r1_ng = rate_eval.screened_rates(k_Mn49_n_to_Mn50_reaclib); + rate = 2.0_rt * r1_ng * r2_ng * dd; + if constexpr (std::is_same_v) { + amrex::Real dr1dT_ng = rate_eval.dscreened_rates_dT(k_Mn49_n_to_Mn50_reaclib); + amrex::Real dr2dT_ng = rate_eval.dscreened_rates_dT(k_Mn50_n_to_Mn51_reaclib); + amrex::Real dr1dT_gn = rate_eval.dscreened_rates_dT(k_Mn50_to_n_Mn49_derived); + drate_dT = 2.0_rt * (dr1dT_ng * r2_ng * dd + r1_ng * dr2dT_ng * dd - r1_ng * r2_ng * dd * dd * (rho * Yn * dr2dT_ng + dr1dT_gn)); + drate_dYN = -rate * dd * rho * r2_ng; + } + if constexpr (std::is_same_v) { + rate_eval.drate_Mn49_n_n_to_Mn51_approx_dYN = drate_dYN; + } + rate_eval.screened_rates(k_Mn49_n_n_to_Mn51_approx) = rate; + if constexpr (std::is_same_v) { + rate_eval.dscreened_rates_dT(k_Mn49_n_n_to_Mn51_approx) = drate_dT; + } + } + + template + AMREX_GPU_DEVICE AMREX_INLINE + void rate_Mn51_to_Mn49_n_n_approx(T& rate_eval, const amrex::Real rho, const amrex::Array1D& Y) { + + amrex::Real rate{}, drate_dT{}; + amrex::Real drate_dYN{}; + amrex::Real Yn = Y(N); + amrex::Real r2_ng = rate_eval.screened_rates(k_Mn50_n_to_Mn51_reaclib); + amrex::Real r1_gn = rate_eval.screened_rates(k_Mn50_to_n_Mn49_derived); + amrex::Real dd = 1.0_rt / (rho * Yn * r2_ng + r1_gn); + amrex::Real r2_gn = rate_eval.screened_rates(k_Mn51_to_n_Mn50_derived); + rate = r1_gn * r2_gn * dd; + if constexpr (std::is_same_v) { + amrex::Real dr1dT_gn = rate_eval.dscreened_rates_dT(k_Mn50_to_n_Mn49_derived); + amrex::Real dr2dT_gn = rate_eval.dscreened_rates_dT(k_Mn51_to_n_Mn50_derived); + amrex::Real dr2dT_ng = rate_eval.dscreened_rates_dT(k_Mn50_n_to_Mn51_reaclib); + drate_dT = dr1dT_gn * r2_gn * dd + r1_gn * dr2dT_gn * dd - r1_gn * r2_gn * dd * dd * (rho * Yn * dr2dT_ng + dr1dT_gn); + drate_dYN = -rate * dd * rho * r2_ng; + } + if constexpr (std::is_same_v) { + rate_eval.drate_Mn51_to_Mn49_n_n_approx_dYN = drate_dYN; + } + rate_eval.screened_rates(k_Mn51_to_Mn49_n_n_approx) = rate; + if constexpr (std::is_same_v) { + rate_eval.dscreened_rates_dT(k_Mn51_to_Mn49_n_n_approx) = drate_dT; + } + } + + template + AMREX_GPU_DEVICE AMREX_INLINE + void rate_Mn51_n_n_to_Mn53_approx(T& rate_eval, const amrex::Real rho, const amrex::Array1D& Y) { + + amrex::Real rate{}, drate_dT{}; + amrex::Real drate_dYN{}; + amrex::Real Yn = Y(N); + amrex::Real r2_ng = rate_eval.screened_rates(k_Mn52_n_to_Mn53_reaclib); + amrex::Real r1_gn = rate_eval.screened_rates(k_Mn52_to_n_Mn51_derived); + amrex::Real dd = 1.0_rt / (rho * Yn * r2_ng + r1_gn); + amrex::Real r1_ng = rate_eval.screened_rates(k_Mn51_n_to_Mn52_reaclib); + rate = 2.0_rt * r1_ng * r2_ng * dd; + if constexpr (std::is_same_v) { + amrex::Real dr1dT_ng = rate_eval.dscreened_rates_dT(k_Mn51_n_to_Mn52_reaclib); + amrex::Real dr2dT_ng = rate_eval.dscreened_rates_dT(k_Mn52_n_to_Mn53_reaclib); + amrex::Real dr1dT_gn = rate_eval.dscreened_rates_dT(k_Mn52_to_n_Mn51_derived); + drate_dT = 2.0_rt * (dr1dT_ng * r2_ng * dd + r1_ng * dr2dT_ng * dd - r1_ng * r2_ng * dd * dd * (rho * Yn * dr2dT_ng + dr1dT_gn)); + drate_dYN = -rate * dd * rho * r2_ng; + } + if constexpr (std::is_same_v) { + rate_eval.drate_Mn51_n_n_to_Mn53_approx_dYN = drate_dYN; + } + rate_eval.screened_rates(k_Mn51_n_n_to_Mn53_approx) = rate; + if constexpr (std::is_same_v) { + rate_eval.dscreened_rates_dT(k_Mn51_n_n_to_Mn53_approx) = drate_dT; + } + } + + template + AMREX_GPU_DEVICE AMREX_INLINE + void rate_Mn53_to_Mn51_n_n_approx(T& rate_eval, const amrex::Real rho, const amrex::Array1D& Y) { + + amrex::Real rate{}, drate_dT{}; + amrex::Real drate_dYN{}; + amrex::Real Yn = Y(N); + amrex::Real r2_ng = rate_eval.screened_rates(k_Mn52_n_to_Mn53_reaclib); + amrex::Real r1_gn = rate_eval.screened_rates(k_Mn52_to_n_Mn51_derived); + amrex::Real dd = 1.0_rt / (rho * Yn * r2_ng + r1_gn); + amrex::Real r2_gn = rate_eval.screened_rates(k_Mn53_to_n_Mn52_derived); + rate = r1_gn * r2_gn * dd; + if constexpr (std::is_same_v) { + amrex::Real dr1dT_gn = rate_eval.dscreened_rates_dT(k_Mn52_to_n_Mn51_derived); + amrex::Real dr2dT_gn = rate_eval.dscreened_rates_dT(k_Mn53_to_n_Mn52_derived); + amrex::Real dr2dT_ng = rate_eval.dscreened_rates_dT(k_Mn52_n_to_Mn53_reaclib); + drate_dT = dr1dT_gn * r2_gn * dd + r1_gn * dr2dT_gn * dd - r1_gn * r2_gn * dd * dd * (rho * Yn * dr2dT_ng + dr1dT_gn); + drate_dYN = -rate * dd * rho * r2_ng; + } + if constexpr (std::is_same_v) { + rate_eval.drate_Mn53_to_Mn51_n_n_approx_dYN = drate_dYN; + } + rate_eval.screened_rates(k_Mn53_to_Mn51_n_n_approx) = rate; + if constexpr (std::is_same_v) { + rate_eval.dscreened_rates_dT(k_Mn53_to_Mn51_n_n_approx) = drate_dT; + } + } + + template + AMREX_GPU_DEVICE AMREX_INLINE + void rate_Cr46_n_n_to_Cr48_approx(T& rate_eval, const amrex::Real rho, const amrex::Array1D& Y) { + + amrex::Real rate{}, drate_dT{}; + amrex::Real drate_dYN{}; + amrex::Real Yn = Y(N); + amrex::Real r2_ng = rate_eval.screened_rates(k_Cr47_n_to_Cr48_reaclib); + amrex::Real r1_gn = rate_eval.screened_rates(k_Cr47_to_n_Cr46_derived); + amrex::Real dd = 1.0_rt / (rho * Yn * r2_ng + r1_gn); + amrex::Real r1_ng = rate_eval.screened_rates(k_Cr46_n_to_Cr47_reaclib); + rate = 2.0_rt * r1_ng * r2_ng * dd; + if constexpr (std::is_same_v) { + amrex::Real dr1dT_ng = rate_eval.dscreened_rates_dT(k_Cr46_n_to_Cr47_reaclib); + amrex::Real dr2dT_ng = rate_eval.dscreened_rates_dT(k_Cr47_n_to_Cr48_reaclib); + amrex::Real dr1dT_gn = rate_eval.dscreened_rates_dT(k_Cr47_to_n_Cr46_derived); + drate_dT = 2.0_rt * (dr1dT_ng * r2_ng * dd + r1_ng * dr2dT_ng * dd - r1_ng * r2_ng * dd * dd * (rho * Yn * dr2dT_ng + dr1dT_gn)); + drate_dYN = -rate * dd * rho * r2_ng; + } + if constexpr (std::is_same_v) { + rate_eval.drate_Cr46_n_n_to_Cr48_approx_dYN = drate_dYN; + } + rate_eval.screened_rates(k_Cr46_n_n_to_Cr48_approx) = rate; + if constexpr (std::is_same_v) { + rate_eval.dscreened_rates_dT(k_Cr46_n_n_to_Cr48_approx) = drate_dT; + } + } + + template + AMREX_GPU_DEVICE AMREX_INLINE + void rate_Cr48_to_Cr46_n_n_approx(T& rate_eval, const amrex::Real rho, const amrex::Array1D& Y) { + + amrex::Real rate{}, drate_dT{}; + amrex::Real drate_dYN{}; + amrex::Real Yn = Y(N); + amrex::Real r2_ng = rate_eval.screened_rates(k_Cr47_n_to_Cr48_reaclib); + amrex::Real r1_gn = rate_eval.screened_rates(k_Cr47_to_n_Cr46_derived); + amrex::Real dd = 1.0_rt / (rho * Yn * r2_ng + r1_gn); + amrex::Real r2_gn = rate_eval.screened_rates(k_Cr48_to_n_Cr47_derived); + rate = r1_gn * r2_gn * dd; + if constexpr (std::is_same_v) { + amrex::Real dr1dT_gn = rate_eval.dscreened_rates_dT(k_Cr47_to_n_Cr46_derived); + amrex::Real dr2dT_gn = rate_eval.dscreened_rates_dT(k_Cr48_to_n_Cr47_derived); + amrex::Real dr2dT_ng = rate_eval.dscreened_rates_dT(k_Cr47_n_to_Cr48_reaclib); + drate_dT = dr1dT_gn * r2_gn * dd + r1_gn * dr2dT_gn * dd - r1_gn * r2_gn * dd * dd * (rho * Yn * dr2dT_ng + dr1dT_gn); + drate_dYN = -rate * dd * rho * r2_ng; + } + if constexpr (std::is_same_v) { + rate_eval.drate_Cr48_to_Cr46_n_n_approx_dYN = drate_dYN; + } + rate_eval.screened_rates(k_Cr48_to_Cr46_n_n_approx) = rate; + if constexpr (std::is_same_v) { + rate_eval.dscreened_rates_dT(k_Cr48_to_Cr46_n_n_approx) = drate_dT; + } + } + + template + AMREX_GPU_DEVICE AMREX_INLINE + void rate_Cr48_n_n_to_Cr50_approx(T& rate_eval, const amrex::Real rho, const amrex::Array1D& Y) { + + amrex::Real rate{}, drate_dT{}; + amrex::Real drate_dYN{}; + amrex::Real Yn = Y(N); + amrex::Real r2_ng = rate_eval.screened_rates(k_Cr49_n_to_Cr50_reaclib); + amrex::Real r1_gn = rate_eval.screened_rates(k_Cr49_to_n_Cr48_derived); + amrex::Real dd = 1.0_rt / (rho * Yn * r2_ng + r1_gn); + amrex::Real r1_ng = rate_eval.screened_rates(k_Cr48_n_to_Cr49_reaclib); + rate = 2.0_rt * r1_ng * r2_ng * dd; + if constexpr (std::is_same_v) { + amrex::Real dr1dT_ng = rate_eval.dscreened_rates_dT(k_Cr48_n_to_Cr49_reaclib); + amrex::Real dr2dT_ng = rate_eval.dscreened_rates_dT(k_Cr49_n_to_Cr50_reaclib); + amrex::Real dr1dT_gn = rate_eval.dscreened_rates_dT(k_Cr49_to_n_Cr48_derived); + drate_dT = 2.0_rt * (dr1dT_ng * r2_ng * dd + r1_ng * dr2dT_ng * dd - r1_ng * r2_ng * dd * dd * (rho * Yn * dr2dT_ng + dr1dT_gn)); + drate_dYN = -rate * dd * rho * r2_ng; + } + if constexpr (std::is_same_v) { + rate_eval.drate_Cr48_n_n_to_Cr50_approx_dYN = drate_dYN; + } + rate_eval.screened_rates(k_Cr48_n_n_to_Cr50_approx) = rate; + if constexpr (std::is_same_v) { + rate_eval.dscreened_rates_dT(k_Cr48_n_n_to_Cr50_approx) = drate_dT; + } + } + + template + AMREX_GPU_DEVICE AMREX_INLINE + void rate_Cr50_to_Cr48_n_n_approx(T& rate_eval, const amrex::Real rho, const amrex::Array1D& Y) { + + amrex::Real rate{}, drate_dT{}; + amrex::Real drate_dYN{}; + amrex::Real Yn = Y(N); + amrex::Real r2_ng = rate_eval.screened_rates(k_Cr49_n_to_Cr50_reaclib); + amrex::Real r1_gn = rate_eval.screened_rates(k_Cr49_to_n_Cr48_derived); + amrex::Real dd = 1.0_rt / (rho * Yn * r2_ng + r1_gn); + amrex::Real r2_gn = rate_eval.screened_rates(k_Cr50_to_n_Cr49_derived); + rate = r1_gn * r2_gn * dd; + if constexpr (std::is_same_v) { + amrex::Real dr1dT_gn = rate_eval.dscreened_rates_dT(k_Cr49_to_n_Cr48_derived); + amrex::Real dr2dT_gn = rate_eval.dscreened_rates_dT(k_Cr50_to_n_Cr49_derived); + amrex::Real dr2dT_ng = rate_eval.dscreened_rates_dT(k_Cr49_n_to_Cr50_reaclib); + drate_dT = dr1dT_gn * r2_gn * dd + r1_gn * dr2dT_gn * dd - r1_gn * r2_gn * dd * dd * (rho * Yn * dr2dT_ng + dr1dT_gn); + drate_dYN = -rate * dd * rho * r2_ng; + } + if constexpr (std::is_same_v) { + rate_eval.drate_Cr50_to_Cr48_n_n_approx_dYN = drate_dYN; + } + rate_eval.screened_rates(k_Cr50_to_Cr48_n_n_approx) = rate; + if constexpr (std::is_same_v) { + rate_eval.dscreened_rates_dT(k_Cr50_to_Cr48_n_n_approx) = drate_dT; + } + } + + template + AMREX_GPU_DEVICE AMREX_INLINE + void rate_Cr50_n_n_to_Cr52_approx(T& rate_eval, const amrex::Real rho, const amrex::Array1D& Y) { + + amrex::Real rate{}, drate_dT{}; + amrex::Real drate_dYN{}; + amrex::Real Yn = Y(N); + amrex::Real r2_ng = rate_eval.screened_rates(k_Cr51_n_to_Cr52_reaclib); + amrex::Real r1_gn = rate_eval.screened_rates(k_Cr51_to_n_Cr50_derived); + amrex::Real dd = 1.0_rt / (rho * Yn * r2_ng + r1_gn); + amrex::Real r1_ng = rate_eval.screened_rates(k_Cr50_n_to_Cr51_reaclib); + rate = 2.0_rt * r1_ng * r2_ng * dd; + if constexpr (std::is_same_v) { + amrex::Real dr1dT_ng = rate_eval.dscreened_rates_dT(k_Cr50_n_to_Cr51_reaclib); + amrex::Real dr2dT_ng = rate_eval.dscreened_rates_dT(k_Cr51_n_to_Cr52_reaclib); + amrex::Real dr1dT_gn = rate_eval.dscreened_rates_dT(k_Cr51_to_n_Cr50_derived); + drate_dT = 2.0_rt * (dr1dT_ng * r2_ng * dd + r1_ng * dr2dT_ng * dd - r1_ng * r2_ng * dd * dd * (rho * Yn * dr2dT_ng + dr1dT_gn)); + drate_dYN = -rate * dd * rho * r2_ng; + } + if constexpr (std::is_same_v) { + rate_eval.drate_Cr50_n_n_to_Cr52_approx_dYN = drate_dYN; + } + rate_eval.screened_rates(k_Cr50_n_n_to_Cr52_approx) = rate; + if constexpr (std::is_same_v) { + rate_eval.dscreened_rates_dT(k_Cr50_n_n_to_Cr52_approx) = drate_dT; + } + } + + template + AMREX_GPU_DEVICE AMREX_INLINE + void rate_Cr52_to_Cr50_n_n_approx(T& rate_eval, const amrex::Real rho, const amrex::Array1D& Y) { + + amrex::Real rate{}, drate_dT{}; + amrex::Real drate_dYN{}; + amrex::Real Yn = Y(N); + amrex::Real r2_ng = rate_eval.screened_rates(k_Cr51_n_to_Cr52_reaclib); + amrex::Real r1_gn = rate_eval.screened_rates(k_Cr51_to_n_Cr50_derived); + amrex::Real dd = 1.0_rt / (rho * Yn * r2_ng + r1_gn); + amrex::Real r2_gn = rate_eval.screened_rates(k_Cr52_to_n_Cr51_derived); + rate = r1_gn * r2_gn * dd; + if constexpr (std::is_same_v) { + amrex::Real dr1dT_gn = rate_eval.dscreened_rates_dT(k_Cr51_to_n_Cr50_derived); + amrex::Real dr2dT_gn = rate_eval.dscreened_rates_dT(k_Cr52_to_n_Cr51_derived); + amrex::Real dr2dT_ng = rate_eval.dscreened_rates_dT(k_Cr51_n_to_Cr52_reaclib); + drate_dT = dr1dT_gn * r2_gn * dd + r1_gn * dr2dT_gn * dd - r1_gn * r2_gn * dd * dd * (rho * Yn * dr2dT_ng + dr1dT_gn); + drate_dYN = -rate * dd * rho * r2_ng; + } + if constexpr (std::is_same_v) { + rate_eval.drate_Cr52_to_Cr50_n_n_approx_dYN = drate_dYN; + } + rate_eval.screened_rates(k_Cr52_to_Cr50_n_n_approx) = rate; + if constexpr (std::is_same_v) { + rate_eval.dscreened_rates_dT(k_Cr52_to_Cr50_n_n_approx) = drate_dT; + } + } + + template + AMREX_GPU_DEVICE AMREX_INLINE + void rate_V45_n_n_to_V47_approx(T& rate_eval, const amrex::Real rho, const amrex::Array1D& Y) { + + amrex::Real rate{}, drate_dT{}; + amrex::Real drate_dYN{}; + amrex::Real Yn = Y(N); + amrex::Real r2_ng = rate_eval.screened_rates(k_V46_n_to_V47_reaclib); + amrex::Real r1_gn = rate_eval.screened_rates(k_V46_to_n_V45_derived); + amrex::Real dd = 1.0_rt / (rho * Yn * r2_ng + r1_gn); + amrex::Real r1_ng = rate_eval.screened_rates(k_V45_n_to_V46_reaclib); + rate = 2.0_rt * r1_ng * r2_ng * dd; + if constexpr (std::is_same_v) { + amrex::Real dr1dT_ng = rate_eval.dscreened_rates_dT(k_V45_n_to_V46_reaclib); + amrex::Real dr2dT_ng = rate_eval.dscreened_rates_dT(k_V46_n_to_V47_reaclib); + amrex::Real dr1dT_gn = rate_eval.dscreened_rates_dT(k_V46_to_n_V45_derived); + drate_dT = 2.0_rt * (dr1dT_ng * r2_ng * dd + r1_ng * dr2dT_ng * dd - r1_ng * r2_ng * dd * dd * (rho * Yn * dr2dT_ng + dr1dT_gn)); + drate_dYN = -rate * dd * rho * r2_ng; + } + if constexpr (std::is_same_v) { + rate_eval.drate_V45_n_n_to_V47_approx_dYN = drate_dYN; + } + rate_eval.screened_rates(k_V45_n_n_to_V47_approx) = rate; + if constexpr (std::is_same_v) { + rate_eval.dscreened_rates_dT(k_V45_n_n_to_V47_approx) = drate_dT; + } + } + + template + AMREX_GPU_DEVICE AMREX_INLINE + void rate_V47_to_V45_n_n_approx(T& rate_eval, const amrex::Real rho, const amrex::Array1D& Y) { + + amrex::Real rate{}, drate_dT{}; + amrex::Real drate_dYN{}; + amrex::Real Yn = Y(N); + amrex::Real r2_ng = rate_eval.screened_rates(k_V46_n_to_V47_reaclib); + amrex::Real r1_gn = rate_eval.screened_rates(k_V46_to_n_V45_derived); + amrex::Real dd = 1.0_rt / (rho * Yn * r2_ng + r1_gn); + amrex::Real r2_gn = rate_eval.screened_rates(k_V47_to_n_V46_derived); + rate = r1_gn * r2_gn * dd; + if constexpr (std::is_same_v) { + amrex::Real dr1dT_gn = rate_eval.dscreened_rates_dT(k_V46_to_n_V45_derived); + amrex::Real dr2dT_gn = rate_eval.dscreened_rates_dT(k_V47_to_n_V46_derived); + amrex::Real dr2dT_ng = rate_eval.dscreened_rates_dT(k_V46_n_to_V47_reaclib); + drate_dT = dr1dT_gn * r2_gn * dd + r1_gn * dr2dT_gn * dd - r1_gn * r2_gn * dd * dd * (rho * Yn * dr2dT_ng + dr1dT_gn); + drate_dYN = -rate * dd * rho * r2_ng; + } + if constexpr (std::is_same_v) { + rate_eval.drate_V47_to_V45_n_n_approx_dYN = drate_dYN; + } + rate_eval.screened_rates(k_V47_to_V45_n_n_approx) = rate; + if constexpr (std::is_same_v) { + rate_eval.dscreened_rates_dT(k_V47_to_V45_n_n_approx) = drate_dT; + } + } + + template + AMREX_GPU_DEVICE AMREX_INLINE + void rate_V47_n_n_to_V49_approx(T& rate_eval, const amrex::Real rho, const amrex::Array1D& Y) { + + amrex::Real rate{}, drate_dT{}; + amrex::Real drate_dYN{}; + amrex::Real Yn = Y(N); + amrex::Real r2_ng = rate_eval.screened_rates(k_V48_n_to_V49_reaclib); + amrex::Real r1_gn = rate_eval.screened_rates(k_V48_to_n_V47_derived); + amrex::Real dd = 1.0_rt / (rho * Yn * r2_ng + r1_gn); + amrex::Real r1_ng = rate_eval.screened_rates(k_V47_n_to_V48_reaclib); + rate = 2.0_rt * r1_ng * r2_ng * dd; + if constexpr (std::is_same_v) { + amrex::Real dr1dT_ng = rate_eval.dscreened_rates_dT(k_V47_n_to_V48_reaclib); + amrex::Real dr2dT_ng = rate_eval.dscreened_rates_dT(k_V48_n_to_V49_reaclib); + amrex::Real dr1dT_gn = rate_eval.dscreened_rates_dT(k_V48_to_n_V47_derived); + drate_dT = 2.0_rt * (dr1dT_ng * r2_ng * dd + r1_ng * dr2dT_ng * dd - r1_ng * r2_ng * dd * dd * (rho * Yn * dr2dT_ng + dr1dT_gn)); + drate_dYN = -rate * dd * rho * r2_ng; + } + if constexpr (std::is_same_v) { + rate_eval.drate_V47_n_n_to_V49_approx_dYN = drate_dYN; + } + rate_eval.screened_rates(k_V47_n_n_to_V49_approx) = rate; + if constexpr (std::is_same_v) { + rate_eval.dscreened_rates_dT(k_V47_n_n_to_V49_approx) = drate_dT; + } + } + + template + AMREX_GPU_DEVICE AMREX_INLINE + void rate_V49_to_V47_n_n_approx(T& rate_eval, const amrex::Real rho, const amrex::Array1D& Y) { + + amrex::Real rate{}, drate_dT{}; + amrex::Real drate_dYN{}; + amrex::Real Yn = Y(N); + amrex::Real r2_ng = rate_eval.screened_rates(k_V48_n_to_V49_reaclib); + amrex::Real r1_gn = rate_eval.screened_rates(k_V48_to_n_V47_derived); + amrex::Real dd = 1.0_rt / (rho * Yn * r2_ng + r1_gn); + amrex::Real r2_gn = rate_eval.screened_rates(k_V49_to_n_V48_derived); + rate = r1_gn * r2_gn * dd; + if constexpr (std::is_same_v) { + amrex::Real dr1dT_gn = rate_eval.dscreened_rates_dT(k_V48_to_n_V47_derived); + amrex::Real dr2dT_gn = rate_eval.dscreened_rates_dT(k_V49_to_n_V48_derived); + amrex::Real dr2dT_ng = rate_eval.dscreened_rates_dT(k_V48_n_to_V49_reaclib); + drate_dT = dr1dT_gn * r2_gn * dd + r1_gn * dr2dT_gn * dd - r1_gn * r2_gn * dd * dd * (rho * Yn * dr2dT_ng + dr1dT_gn); + drate_dYN = -rate * dd * rho * r2_ng; + } + if constexpr (std::is_same_v) { + rate_eval.drate_V49_to_V47_n_n_approx_dYN = drate_dYN; + } + rate_eval.screened_rates(k_V49_to_V47_n_n_approx) = rate; + if constexpr (std::is_same_v) { + rate_eval.dscreened_rates_dT(k_V49_to_V47_n_n_approx) = drate_dT; + } + } + + template + AMREX_GPU_DEVICE AMREX_INLINE + void rate_Ti42_n_n_to_Ti44_approx(T& rate_eval, const amrex::Real rho, const amrex::Array1D& Y) { + + amrex::Real rate{}, drate_dT{}; + amrex::Real drate_dYN{}; + amrex::Real Yn = Y(N); + amrex::Real r2_ng = rate_eval.screened_rates(k_Ti43_n_to_Ti44_reaclib); + amrex::Real r1_gn = rate_eval.screened_rates(k_Ti43_to_n_Ti42_derived); + amrex::Real dd = 1.0_rt / (rho * Yn * r2_ng + r1_gn); + amrex::Real r1_ng = rate_eval.screened_rates(k_Ti42_n_to_Ti43_reaclib); + rate = 2.0_rt * r1_ng * r2_ng * dd; + if constexpr (std::is_same_v) { + amrex::Real dr1dT_ng = rate_eval.dscreened_rates_dT(k_Ti42_n_to_Ti43_reaclib); + amrex::Real dr2dT_ng = rate_eval.dscreened_rates_dT(k_Ti43_n_to_Ti44_reaclib); + amrex::Real dr1dT_gn = rate_eval.dscreened_rates_dT(k_Ti43_to_n_Ti42_derived); + drate_dT = 2.0_rt * (dr1dT_ng * r2_ng * dd + r1_ng * dr2dT_ng * dd - r1_ng * r2_ng * dd * dd * (rho * Yn * dr2dT_ng + dr1dT_gn)); + drate_dYN = -rate * dd * rho * r2_ng; + } + if constexpr (std::is_same_v) { + rate_eval.drate_Ti42_n_n_to_Ti44_approx_dYN = drate_dYN; + } + rate_eval.screened_rates(k_Ti42_n_n_to_Ti44_approx) = rate; + if constexpr (std::is_same_v) { + rate_eval.dscreened_rates_dT(k_Ti42_n_n_to_Ti44_approx) = drate_dT; + } + } + + template + AMREX_GPU_DEVICE AMREX_INLINE + void rate_Ti44_to_Ti42_n_n_approx(T& rate_eval, const amrex::Real rho, const amrex::Array1D& Y) { + + amrex::Real rate{}, drate_dT{}; + amrex::Real drate_dYN{}; + amrex::Real Yn = Y(N); + amrex::Real r2_ng = rate_eval.screened_rates(k_Ti43_n_to_Ti44_reaclib); + amrex::Real r1_gn = rate_eval.screened_rates(k_Ti43_to_n_Ti42_derived); + amrex::Real dd = 1.0_rt / (rho * Yn * r2_ng + r1_gn); + amrex::Real r2_gn = rate_eval.screened_rates(k_Ti44_to_n_Ti43_derived); + rate = r1_gn * r2_gn * dd; + if constexpr (std::is_same_v) { + amrex::Real dr1dT_gn = rate_eval.dscreened_rates_dT(k_Ti43_to_n_Ti42_derived); + amrex::Real dr2dT_gn = rate_eval.dscreened_rates_dT(k_Ti44_to_n_Ti43_derived); + amrex::Real dr2dT_ng = rate_eval.dscreened_rates_dT(k_Ti43_n_to_Ti44_reaclib); + drate_dT = dr1dT_gn * r2_gn * dd + r1_gn * dr2dT_gn * dd - r1_gn * r2_gn * dd * dd * (rho * Yn * dr2dT_ng + dr1dT_gn); + drate_dYN = -rate * dd * rho * r2_ng; + } + if constexpr (std::is_same_v) { + rate_eval.drate_Ti44_to_Ti42_n_n_approx_dYN = drate_dYN; + } + rate_eval.screened_rates(k_Ti44_to_Ti42_n_n_approx) = rate; + if constexpr (std::is_same_v) { + rate_eval.dscreened_rates_dT(k_Ti44_to_Ti42_n_n_approx) = drate_dT; + } + } + + template + AMREX_GPU_DEVICE AMREX_INLINE + void rate_Ti44_n_n_to_Ti46_approx(T& rate_eval, const amrex::Real rho, const amrex::Array1D& Y) { + + amrex::Real rate{}, drate_dT{}; + amrex::Real drate_dYN{}; + amrex::Real Yn = Y(N); + amrex::Real r2_ng = rate_eval.screened_rates(k_Ti45_n_to_Ti46_reaclib); + amrex::Real r1_gn = rate_eval.screened_rates(k_Ti45_to_n_Ti44_derived); + amrex::Real dd = 1.0_rt / (rho * Yn * r2_ng + r1_gn); + amrex::Real r1_ng = rate_eval.screened_rates(k_Ti44_n_to_Ti45_reaclib); + rate = 2.0_rt * r1_ng * r2_ng * dd; + if constexpr (std::is_same_v) { + amrex::Real dr1dT_ng = rate_eval.dscreened_rates_dT(k_Ti44_n_to_Ti45_reaclib); + amrex::Real dr2dT_ng = rate_eval.dscreened_rates_dT(k_Ti45_n_to_Ti46_reaclib); + amrex::Real dr1dT_gn = rate_eval.dscreened_rates_dT(k_Ti45_to_n_Ti44_derived); + drate_dT = 2.0_rt * (dr1dT_ng * r2_ng * dd + r1_ng * dr2dT_ng * dd - r1_ng * r2_ng * dd * dd * (rho * Yn * dr2dT_ng + dr1dT_gn)); + drate_dYN = -rate * dd * rho * r2_ng; + } + if constexpr (std::is_same_v) { + rate_eval.drate_Ti44_n_n_to_Ti46_approx_dYN = drate_dYN; + } + rate_eval.screened_rates(k_Ti44_n_n_to_Ti46_approx) = rate; + if constexpr (std::is_same_v) { + rate_eval.dscreened_rates_dT(k_Ti44_n_n_to_Ti46_approx) = drate_dT; + } + } + + template + AMREX_GPU_DEVICE AMREX_INLINE + void rate_Ti46_to_Ti44_n_n_approx(T& rate_eval, const amrex::Real rho, const amrex::Array1D& Y) { + + amrex::Real rate{}, drate_dT{}; + amrex::Real drate_dYN{}; + amrex::Real Yn = Y(N); + amrex::Real r2_ng = rate_eval.screened_rates(k_Ti45_n_to_Ti46_reaclib); + amrex::Real r1_gn = rate_eval.screened_rates(k_Ti45_to_n_Ti44_derived); + amrex::Real dd = 1.0_rt / (rho * Yn * r2_ng + r1_gn); + amrex::Real r2_gn = rate_eval.screened_rates(k_Ti46_to_n_Ti45_derived); + rate = r1_gn * r2_gn * dd; + if constexpr (std::is_same_v) { + amrex::Real dr1dT_gn = rate_eval.dscreened_rates_dT(k_Ti45_to_n_Ti44_derived); + amrex::Real dr2dT_gn = rate_eval.dscreened_rates_dT(k_Ti46_to_n_Ti45_derived); + amrex::Real dr2dT_ng = rate_eval.dscreened_rates_dT(k_Ti45_n_to_Ti46_reaclib); + drate_dT = dr1dT_gn * r2_gn * dd + r1_gn * dr2dT_gn * dd - r1_gn * r2_gn * dd * dd * (rho * Yn * dr2dT_ng + dr1dT_gn); + drate_dYN = -rate * dd * rho * r2_ng; + } + if constexpr (std::is_same_v) { + rate_eval.drate_Ti46_to_Ti44_n_n_approx_dYN = drate_dYN; + } + rate_eval.screened_rates(k_Ti46_to_Ti44_n_n_approx) = rate; + if constexpr (std::is_same_v) { + rate_eval.dscreened_rates_dT(k_Ti46_to_Ti44_n_n_approx) = drate_dT; + } + } + + template + AMREX_GPU_DEVICE AMREX_INLINE + void rate_Sc41_n_n_to_Sc43_approx(T& rate_eval, const amrex::Real rho, const amrex::Array1D& Y) { + + amrex::Real rate{}, drate_dT{}; + amrex::Real drate_dYN{}; + amrex::Real Yn = Y(N); + amrex::Real r2_ng = rate_eval.screened_rates(k_Sc42_n_to_Sc43_reaclib); + amrex::Real r1_gn = rate_eval.screened_rates(k_Sc42_to_n_Sc41_derived); + amrex::Real dd = 1.0_rt / (rho * Yn * r2_ng + r1_gn); + amrex::Real r1_ng = rate_eval.screened_rates(k_Sc41_n_to_Sc42_reaclib); + rate = 2.0_rt * r1_ng * r2_ng * dd; + if constexpr (std::is_same_v) { + amrex::Real dr1dT_ng = rate_eval.dscreened_rates_dT(k_Sc41_n_to_Sc42_reaclib); + amrex::Real dr2dT_ng = rate_eval.dscreened_rates_dT(k_Sc42_n_to_Sc43_reaclib); + amrex::Real dr1dT_gn = rate_eval.dscreened_rates_dT(k_Sc42_to_n_Sc41_derived); + drate_dT = 2.0_rt * (dr1dT_ng * r2_ng * dd + r1_ng * dr2dT_ng * dd - r1_ng * r2_ng * dd * dd * (rho * Yn * dr2dT_ng + dr1dT_gn)); + drate_dYN = -rate * dd * rho * r2_ng; + } + if constexpr (std::is_same_v) { + rate_eval.drate_Sc41_n_n_to_Sc43_approx_dYN = drate_dYN; + } + rate_eval.screened_rates(k_Sc41_n_n_to_Sc43_approx) = rate; + if constexpr (std::is_same_v) { + rate_eval.dscreened_rates_dT(k_Sc41_n_n_to_Sc43_approx) = drate_dT; + } + } + + template + AMREX_GPU_DEVICE AMREX_INLINE + void rate_Sc43_to_Sc41_n_n_approx(T& rate_eval, const amrex::Real rho, const amrex::Array1D& Y) { + + amrex::Real rate{}, drate_dT{}; + amrex::Real drate_dYN{}; + amrex::Real Yn = Y(N); + amrex::Real r2_ng = rate_eval.screened_rates(k_Sc42_n_to_Sc43_reaclib); + amrex::Real r1_gn = rate_eval.screened_rates(k_Sc42_to_n_Sc41_derived); + amrex::Real dd = 1.0_rt / (rho * Yn * r2_ng + r1_gn); + amrex::Real r2_gn = rate_eval.screened_rates(k_Sc43_to_n_Sc42_derived); + rate = r1_gn * r2_gn * dd; + if constexpr (std::is_same_v) { + amrex::Real dr1dT_gn = rate_eval.dscreened_rates_dT(k_Sc42_to_n_Sc41_derived); + amrex::Real dr2dT_gn = rate_eval.dscreened_rates_dT(k_Sc43_to_n_Sc42_derived); + amrex::Real dr2dT_ng = rate_eval.dscreened_rates_dT(k_Sc42_n_to_Sc43_reaclib); + drate_dT = dr1dT_gn * r2_gn * dd + r1_gn * dr2dT_gn * dd - r1_gn * r2_gn * dd * dd * (rho * Yn * dr2dT_ng + dr1dT_gn); + drate_dYN = -rate * dd * rho * r2_ng; + } + if constexpr (std::is_same_v) { + rate_eval.drate_Sc43_to_Sc41_n_n_approx_dYN = drate_dYN; + } + rate_eval.screened_rates(k_Sc43_to_Sc41_n_n_approx) = rate; + if constexpr (std::is_same_v) { + rate_eval.dscreened_rates_dT(k_Sc43_to_Sc41_n_n_approx) = drate_dT; + } + } + + template + AMREX_GPU_DEVICE AMREX_INLINE + void rate_Ca38_n_n_to_Ca40_approx(T& rate_eval, const amrex::Real rho, const amrex::Array1D& Y) { + + amrex::Real rate{}, drate_dT{}; + amrex::Real drate_dYN{}; + amrex::Real Yn = Y(N); + amrex::Real r2_ng = rate_eval.screened_rates(k_Ca39_n_to_Ca40_reaclib); + amrex::Real r1_gn = rate_eval.screened_rates(k_Ca39_to_n_Ca38_derived); + amrex::Real dd = 1.0_rt / (rho * Yn * r2_ng + r1_gn); + amrex::Real r1_ng = rate_eval.screened_rates(k_Ca38_n_to_Ca39_reaclib); + rate = 2.0_rt * r1_ng * r2_ng * dd; + if constexpr (std::is_same_v) { + amrex::Real dr1dT_ng = rate_eval.dscreened_rates_dT(k_Ca38_n_to_Ca39_reaclib); + amrex::Real dr2dT_ng = rate_eval.dscreened_rates_dT(k_Ca39_n_to_Ca40_reaclib); + amrex::Real dr1dT_gn = rate_eval.dscreened_rates_dT(k_Ca39_to_n_Ca38_derived); + drate_dT = 2.0_rt * (dr1dT_ng * r2_ng * dd + r1_ng * dr2dT_ng * dd - r1_ng * r2_ng * dd * dd * (rho * Yn * dr2dT_ng + dr1dT_gn)); + drate_dYN = -rate * dd * rho * r2_ng; + } + if constexpr (std::is_same_v) { + rate_eval.drate_Ca38_n_n_to_Ca40_approx_dYN = drate_dYN; + } + rate_eval.screened_rates(k_Ca38_n_n_to_Ca40_approx) = rate; + if constexpr (std::is_same_v) { + rate_eval.dscreened_rates_dT(k_Ca38_n_n_to_Ca40_approx) = drate_dT; + } + } + + template + AMREX_GPU_DEVICE AMREX_INLINE + void rate_Ca40_to_Ca38_n_n_approx(T& rate_eval, const amrex::Real rho, const amrex::Array1D& Y) { + + amrex::Real rate{}, drate_dT{}; + amrex::Real drate_dYN{}; + amrex::Real Yn = Y(N); + amrex::Real r2_ng = rate_eval.screened_rates(k_Ca39_n_to_Ca40_reaclib); + amrex::Real r1_gn = rate_eval.screened_rates(k_Ca39_to_n_Ca38_derived); + amrex::Real dd = 1.0_rt / (rho * Yn * r2_ng + r1_gn); + amrex::Real r2_gn = rate_eval.screened_rates(k_Ca40_to_n_Ca39_derived); + rate = r1_gn * r2_gn * dd; + if constexpr (std::is_same_v) { + amrex::Real dr1dT_gn = rate_eval.dscreened_rates_dT(k_Ca39_to_n_Ca38_derived); + amrex::Real dr2dT_gn = rate_eval.dscreened_rates_dT(k_Ca40_to_n_Ca39_derived); + amrex::Real dr2dT_ng = rate_eval.dscreened_rates_dT(k_Ca39_n_to_Ca40_reaclib); + drate_dT = dr1dT_gn * r2_gn * dd + r1_gn * dr2dT_gn * dd - r1_gn * r2_gn * dd * dd * (rho * Yn * dr2dT_ng + dr1dT_gn); + drate_dYN = -rate * dd * rho * r2_ng; + } + if constexpr (std::is_same_v) { + rate_eval.drate_Ca40_to_Ca38_n_n_approx_dYN = drate_dYN; + } + rate_eval.screened_rates(k_Ca40_to_Ca38_n_n_approx) = rate; + if constexpr (std::is_same_v) { + rate_eval.dscreened_rates_dT(k_Ca40_to_Ca38_n_n_approx) = drate_dT; + } + } + + template + AMREX_GPU_DEVICE AMREX_INLINE + void rate_Ca40_n_n_to_Ca42_approx(T& rate_eval, const amrex::Real rho, const amrex::Array1D& Y) { + + amrex::Real rate{}, drate_dT{}; + amrex::Real drate_dYN{}; + amrex::Real Yn = Y(N); + amrex::Real r2_ng = rate_eval.screened_rates(k_Ca41_n_to_Ca42_reaclib); + amrex::Real r1_gn = rate_eval.screened_rates(k_Ca41_to_n_Ca40_derived); + amrex::Real dd = 1.0_rt / (rho * Yn * r2_ng + r1_gn); + amrex::Real r1_ng = rate_eval.screened_rates(k_Ca40_n_to_Ca41_reaclib); + rate = 2.0_rt * r1_ng * r2_ng * dd; + if constexpr (std::is_same_v) { + amrex::Real dr1dT_ng = rate_eval.dscreened_rates_dT(k_Ca40_n_to_Ca41_reaclib); + amrex::Real dr2dT_ng = rate_eval.dscreened_rates_dT(k_Ca41_n_to_Ca42_reaclib); + amrex::Real dr1dT_gn = rate_eval.dscreened_rates_dT(k_Ca41_to_n_Ca40_derived); + drate_dT = 2.0_rt * (dr1dT_ng * r2_ng * dd + r1_ng * dr2dT_ng * dd - r1_ng * r2_ng * dd * dd * (rho * Yn * dr2dT_ng + dr1dT_gn)); + drate_dYN = -rate * dd * rho * r2_ng; + } + if constexpr (std::is_same_v) { + rate_eval.drate_Ca40_n_n_to_Ca42_approx_dYN = drate_dYN; + } + rate_eval.screened_rates(k_Ca40_n_n_to_Ca42_approx) = rate; + if constexpr (std::is_same_v) { + rate_eval.dscreened_rates_dT(k_Ca40_n_n_to_Ca42_approx) = drate_dT; + } + } + + template + AMREX_GPU_DEVICE AMREX_INLINE + void rate_Ca42_to_Ca40_n_n_approx(T& rate_eval, const amrex::Real rho, const amrex::Array1D& Y) { + + amrex::Real rate{}, drate_dT{}; + amrex::Real drate_dYN{}; + amrex::Real Yn = Y(N); + amrex::Real r2_ng = rate_eval.screened_rates(k_Ca41_n_to_Ca42_reaclib); + amrex::Real r1_gn = rate_eval.screened_rates(k_Ca41_to_n_Ca40_derived); + amrex::Real dd = 1.0_rt / (rho * Yn * r2_ng + r1_gn); + amrex::Real r2_gn = rate_eval.screened_rates(k_Ca42_to_n_Ca41_derived); + rate = r1_gn * r2_gn * dd; + if constexpr (std::is_same_v) { + amrex::Real dr1dT_gn = rate_eval.dscreened_rates_dT(k_Ca41_to_n_Ca40_derived); + amrex::Real dr2dT_gn = rate_eval.dscreened_rates_dT(k_Ca42_to_n_Ca41_derived); + amrex::Real dr2dT_ng = rate_eval.dscreened_rates_dT(k_Ca41_n_to_Ca42_reaclib); + drate_dT = dr1dT_gn * r2_gn * dd + r1_gn * dr2dT_gn * dd - r1_gn * r2_gn * dd * dd * (rho * Yn * dr2dT_ng + dr1dT_gn); + drate_dYN = -rate * dd * rho * r2_ng; + } + if constexpr (std::is_same_v) { + rate_eval.drate_Ca42_to_Ca40_n_n_approx_dYN = drate_dYN; + } + rate_eval.screened_rates(k_Ca42_to_Ca40_n_n_approx) = rate; + if constexpr (std::is_same_v) { + rate_eval.dscreened_rates_dT(k_Ca42_to_Ca40_n_n_approx) = drate_dT; + } + } + + template + AMREX_GPU_DEVICE AMREX_INLINE + void rate_Ar34_n_n_to_Ar36_approx(T& rate_eval, const amrex::Real rho, const amrex::Array1D& Y) { + + amrex::Real rate{}, drate_dT{}; + amrex::Real drate_dYN{}; + amrex::Real Yn = Y(N); + amrex::Real r2_ng = rate_eval.screened_rates(k_Ar35_n_to_Ar36_reaclib); + amrex::Real r1_gn = rate_eval.screened_rates(k_Ar35_to_n_Ar34_derived); + amrex::Real dd = 1.0_rt / (rho * Yn * r2_ng + r1_gn); + amrex::Real r1_ng = rate_eval.screened_rates(k_Ar34_n_to_Ar35_reaclib); + rate = 2.0_rt * r1_ng * r2_ng * dd; + if constexpr (std::is_same_v) { + amrex::Real dr1dT_ng = rate_eval.dscreened_rates_dT(k_Ar34_n_to_Ar35_reaclib); + amrex::Real dr2dT_ng = rate_eval.dscreened_rates_dT(k_Ar35_n_to_Ar36_reaclib); + amrex::Real dr1dT_gn = rate_eval.dscreened_rates_dT(k_Ar35_to_n_Ar34_derived); + drate_dT = 2.0_rt * (dr1dT_ng * r2_ng * dd + r1_ng * dr2dT_ng * dd - r1_ng * r2_ng * dd * dd * (rho * Yn * dr2dT_ng + dr1dT_gn)); + drate_dYN = -rate * dd * rho * r2_ng; + } + if constexpr (std::is_same_v) { + rate_eval.drate_Ar34_n_n_to_Ar36_approx_dYN = drate_dYN; + } + rate_eval.screened_rates(k_Ar34_n_n_to_Ar36_approx) = rate; + if constexpr (std::is_same_v) { + rate_eval.dscreened_rates_dT(k_Ar34_n_n_to_Ar36_approx) = drate_dT; + } + } + + template + AMREX_GPU_DEVICE AMREX_INLINE + void rate_Ar36_to_Ar34_n_n_approx(T& rate_eval, const amrex::Real rho, const amrex::Array1D& Y) { + + amrex::Real rate{}, drate_dT{}; + amrex::Real drate_dYN{}; + amrex::Real Yn = Y(N); + amrex::Real r2_ng = rate_eval.screened_rates(k_Ar35_n_to_Ar36_reaclib); + amrex::Real r1_gn = rate_eval.screened_rates(k_Ar35_to_n_Ar34_derived); + amrex::Real dd = 1.0_rt / (rho * Yn * r2_ng + r1_gn); + amrex::Real r2_gn = rate_eval.screened_rates(k_Ar36_to_n_Ar35_derived); + rate = r1_gn * r2_gn * dd; + if constexpr (std::is_same_v) { + amrex::Real dr1dT_gn = rate_eval.dscreened_rates_dT(k_Ar35_to_n_Ar34_derived); + amrex::Real dr2dT_gn = rate_eval.dscreened_rates_dT(k_Ar36_to_n_Ar35_derived); + amrex::Real dr2dT_ng = rate_eval.dscreened_rates_dT(k_Ar35_n_to_Ar36_reaclib); + drate_dT = dr1dT_gn * r2_gn * dd + r1_gn * dr2dT_gn * dd - r1_gn * r2_gn * dd * dd * (rho * Yn * dr2dT_ng + dr1dT_gn); + drate_dYN = -rate * dd * rho * r2_ng; + } + if constexpr (std::is_same_v) { + rate_eval.drate_Ar36_to_Ar34_n_n_approx_dYN = drate_dYN; + } + rate_eval.screened_rates(k_Ar36_to_Ar34_n_n_approx) = rate; + if constexpr (std::is_same_v) { + rate_eval.dscreened_rates_dT(k_Ar36_to_Ar34_n_n_approx) = drate_dT; + } + } + + template + AMREX_GPU_DEVICE AMREX_INLINE + void rate_Ar36_n_n_to_Ar38_approx(T& rate_eval, const amrex::Real rho, const amrex::Array1D& Y) { + + amrex::Real rate{}, drate_dT{}; + amrex::Real drate_dYN{}; + amrex::Real Yn = Y(N); + amrex::Real r2_ng = rate_eval.screened_rates(k_Ar37_n_to_Ar38_reaclib); + amrex::Real r1_gn = rate_eval.screened_rates(k_Ar37_to_n_Ar36_derived); + amrex::Real dd = 1.0_rt / (rho * Yn * r2_ng + r1_gn); + amrex::Real r1_ng = rate_eval.screened_rates(k_Ar36_n_to_Ar37_reaclib); + rate = 2.0_rt * r1_ng * r2_ng * dd; + if constexpr (std::is_same_v) { + amrex::Real dr1dT_ng = rate_eval.dscreened_rates_dT(k_Ar36_n_to_Ar37_reaclib); + amrex::Real dr2dT_ng = rate_eval.dscreened_rates_dT(k_Ar37_n_to_Ar38_reaclib); + amrex::Real dr1dT_gn = rate_eval.dscreened_rates_dT(k_Ar37_to_n_Ar36_derived); + drate_dT = 2.0_rt * (dr1dT_ng * r2_ng * dd + r1_ng * dr2dT_ng * dd - r1_ng * r2_ng * dd * dd * (rho * Yn * dr2dT_ng + dr1dT_gn)); + drate_dYN = -rate * dd * rho * r2_ng; + } + if constexpr (std::is_same_v) { + rate_eval.drate_Ar36_n_n_to_Ar38_approx_dYN = drate_dYN; + } + rate_eval.screened_rates(k_Ar36_n_n_to_Ar38_approx) = rate; + if constexpr (std::is_same_v) { + rate_eval.dscreened_rates_dT(k_Ar36_n_n_to_Ar38_approx) = drate_dT; + } + } + + template + AMREX_GPU_DEVICE AMREX_INLINE + void rate_Ar38_to_Ar36_n_n_approx(T& rate_eval, const amrex::Real rho, const amrex::Array1D& Y) { + + amrex::Real rate{}, drate_dT{}; + amrex::Real drate_dYN{}; + amrex::Real Yn = Y(N); + amrex::Real r2_ng = rate_eval.screened_rates(k_Ar37_n_to_Ar38_reaclib); + amrex::Real r1_gn = rate_eval.screened_rates(k_Ar37_to_n_Ar36_derived); + amrex::Real dd = 1.0_rt / (rho * Yn * r2_ng + r1_gn); + amrex::Real r2_gn = rate_eval.screened_rates(k_Ar38_to_n_Ar37_derived); + rate = r1_gn * r2_gn * dd; + if constexpr (std::is_same_v) { + amrex::Real dr1dT_gn = rate_eval.dscreened_rates_dT(k_Ar37_to_n_Ar36_derived); + amrex::Real dr2dT_gn = rate_eval.dscreened_rates_dT(k_Ar38_to_n_Ar37_derived); + amrex::Real dr2dT_ng = rate_eval.dscreened_rates_dT(k_Ar37_n_to_Ar38_reaclib); + drate_dT = dr1dT_gn * r2_gn * dd + r1_gn * dr2dT_gn * dd - r1_gn * r2_gn * dd * dd * (rho * Yn * dr2dT_ng + dr1dT_gn); + drate_dYN = -rate * dd * rho * r2_ng; + } + if constexpr (std::is_same_v) { + rate_eval.drate_Ar38_to_Ar36_n_n_approx_dYN = drate_dYN; + } + rate_eval.screened_rates(k_Ar38_to_Ar36_n_n_approx) = rate; + if constexpr (std::is_same_v) { + rate_eval.dscreened_rates_dT(k_Ar38_to_Ar36_n_n_approx) = drate_dT; + } + } + + template + AMREX_GPU_DEVICE AMREX_INLINE + void rate_Si28_n_n_to_Si30_approx(T& rate_eval, const amrex::Real rho, const amrex::Array1D& Y) { + + amrex::Real rate{}, drate_dT{}; + amrex::Real drate_dYN{}; + amrex::Real Yn = Y(N); + amrex::Real r2_ng = rate_eval.screened_rates(k_Si29_n_to_Si30_reaclib); + amrex::Real r1_gn = rate_eval.screened_rates(k_Si29_to_n_Si28_derived); + amrex::Real dd = 1.0_rt / (rho * Yn * r2_ng + r1_gn); + amrex::Real r1_ng = rate_eval.screened_rates(k_Si28_n_to_Si29_reaclib); + rate = 2.0_rt * r1_ng * r2_ng * dd; + if constexpr (std::is_same_v) { + amrex::Real dr1dT_ng = rate_eval.dscreened_rates_dT(k_Si28_n_to_Si29_reaclib); + amrex::Real dr2dT_ng = rate_eval.dscreened_rates_dT(k_Si29_n_to_Si30_reaclib); + amrex::Real dr1dT_gn = rate_eval.dscreened_rates_dT(k_Si29_to_n_Si28_derived); + drate_dT = 2.0_rt * (dr1dT_ng * r2_ng * dd + r1_ng * dr2dT_ng * dd - r1_ng * r2_ng * dd * dd * (rho * Yn * dr2dT_ng + dr1dT_gn)); + drate_dYN = -rate * dd * rho * r2_ng; + } + if constexpr (std::is_same_v) { + rate_eval.drate_Si28_n_n_to_Si30_approx_dYN = drate_dYN; + } + rate_eval.screened_rates(k_Si28_n_n_to_Si30_approx) = rate; + if constexpr (std::is_same_v) { + rate_eval.dscreened_rates_dT(k_Si28_n_n_to_Si30_approx) = drate_dT; + } + } + + template + AMREX_GPU_DEVICE AMREX_INLINE + void rate_Si30_to_Si28_n_n_approx(T& rate_eval, const amrex::Real rho, const amrex::Array1D& Y) { + + amrex::Real rate{}, drate_dT{}; + amrex::Real drate_dYN{}; + amrex::Real Yn = Y(N); + amrex::Real r2_ng = rate_eval.screened_rates(k_Si29_n_to_Si30_reaclib); + amrex::Real r1_gn = rate_eval.screened_rates(k_Si29_to_n_Si28_derived); + amrex::Real dd = 1.0_rt / (rho * Yn * r2_ng + r1_gn); + amrex::Real r2_gn = rate_eval.screened_rates(k_Si30_to_n_Si29_derived); + rate = r1_gn * r2_gn * dd; + if constexpr (std::is_same_v) { + amrex::Real dr1dT_gn = rate_eval.dscreened_rates_dT(k_Si29_to_n_Si28_derived); + amrex::Real dr2dT_gn = rate_eval.dscreened_rates_dT(k_Si30_to_n_Si29_derived); + amrex::Real dr2dT_ng = rate_eval.dscreened_rates_dT(k_Si29_n_to_Si30_reaclib); + drate_dT = dr1dT_gn * r2_gn * dd + r1_gn * dr2dT_gn * dd - r1_gn * r2_gn * dd * dd * (rho * Yn * dr2dT_ng + dr1dT_gn); + drate_dYN = -rate * dd * rho * r2_ng; + } + if constexpr (std::is_same_v) { + rate_eval.drate_Si30_to_Si28_n_n_approx_dYN = drate_dYN; + } + rate_eval.screened_rates(k_Si30_to_Si28_n_n_approx) = rate; + if constexpr (std::is_same_v) { + rate_eval.dscreened_rates_dT(k_Si30_to_Si28_n_n_approx) = drate_dT; + } + } + + template + AMREX_GPU_DEVICE AMREX_INLINE + void rate_S30_n_n_to_S32_approx(T& rate_eval, const amrex::Real rho, const amrex::Array1D& Y) { + + amrex::Real rate{}, drate_dT{}; + amrex::Real drate_dYN{}; + amrex::Real Yn = Y(N); + amrex::Real r2_ng = rate_eval.screened_rates(k_S31_n_to_S32_reaclib); + amrex::Real r1_gn = rate_eval.screened_rates(k_S31_to_n_S30_derived); + amrex::Real dd = 1.0_rt / (rho * Yn * r2_ng + r1_gn); + amrex::Real r1_ng = rate_eval.screened_rates(k_S30_n_to_S31_reaclib); + rate = 2.0_rt * r1_ng * r2_ng * dd; + if constexpr (std::is_same_v) { + amrex::Real dr1dT_ng = rate_eval.dscreened_rates_dT(k_S30_n_to_S31_reaclib); + amrex::Real dr2dT_ng = rate_eval.dscreened_rates_dT(k_S31_n_to_S32_reaclib); + amrex::Real dr1dT_gn = rate_eval.dscreened_rates_dT(k_S31_to_n_S30_derived); + drate_dT = 2.0_rt * (dr1dT_ng * r2_ng * dd + r1_ng * dr2dT_ng * dd - r1_ng * r2_ng * dd * dd * (rho * Yn * dr2dT_ng + dr1dT_gn)); + drate_dYN = -rate * dd * rho * r2_ng; + } + if constexpr (std::is_same_v) { + rate_eval.drate_S30_n_n_to_S32_approx_dYN = drate_dYN; + } + rate_eval.screened_rates(k_S30_n_n_to_S32_approx) = rate; + if constexpr (std::is_same_v) { + rate_eval.dscreened_rates_dT(k_S30_n_n_to_S32_approx) = drate_dT; + } + } + + template + AMREX_GPU_DEVICE AMREX_INLINE + void rate_S32_to_S30_n_n_approx(T& rate_eval, const amrex::Real rho, const amrex::Array1D& Y) { + + amrex::Real rate{}, drate_dT{}; + amrex::Real drate_dYN{}; + amrex::Real Yn = Y(N); + amrex::Real r2_ng = rate_eval.screened_rates(k_S31_n_to_S32_reaclib); + amrex::Real r1_gn = rate_eval.screened_rates(k_S31_to_n_S30_derived); + amrex::Real dd = 1.0_rt / (rho * Yn * r2_ng + r1_gn); + amrex::Real r2_gn = rate_eval.screened_rates(k_S32_to_n_S31_derived); + rate = r1_gn * r2_gn * dd; + if constexpr (std::is_same_v) { + amrex::Real dr1dT_gn = rate_eval.dscreened_rates_dT(k_S31_to_n_S30_derived); + amrex::Real dr2dT_gn = rate_eval.dscreened_rates_dT(k_S32_to_n_S31_derived); + amrex::Real dr2dT_ng = rate_eval.dscreened_rates_dT(k_S31_n_to_S32_reaclib); + drate_dT = dr1dT_gn * r2_gn * dd + r1_gn * dr2dT_gn * dd - r1_gn * r2_gn * dd * dd * (rho * Yn * dr2dT_ng + dr1dT_gn); + drate_dYN = -rate * dd * rho * r2_ng; + } + if constexpr (std::is_same_v) { + rate_eval.drate_S32_to_S30_n_n_approx_dYN = drate_dYN; + } + rate_eval.screened_rates(k_S32_to_S30_n_n_approx) = rate; + if constexpr (std::is_same_v) { + rate_eval.dscreened_rates_dT(k_S32_to_S30_n_n_approx) = drate_dT; + } + } + + template + AMREX_GPU_DEVICE AMREX_INLINE + void rate_S32_n_n_to_S34_approx(T& rate_eval, const amrex::Real rho, const amrex::Array1D& Y) { + + amrex::Real rate{}, drate_dT{}; + amrex::Real drate_dYN{}; + amrex::Real Yn = Y(N); + amrex::Real r2_ng = rate_eval.screened_rates(k_S33_n_to_S34_reaclib); + amrex::Real r1_gn = rate_eval.screened_rates(k_S33_to_n_S32_derived); + amrex::Real dd = 1.0_rt / (rho * Yn * r2_ng + r1_gn); + amrex::Real r1_ng = rate_eval.screened_rates(k_S32_n_to_S33_reaclib); + rate = 2.0_rt * r1_ng * r2_ng * dd; + if constexpr (std::is_same_v) { + amrex::Real dr1dT_ng = rate_eval.dscreened_rates_dT(k_S32_n_to_S33_reaclib); + amrex::Real dr2dT_ng = rate_eval.dscreened_rates_dT(k_S33_n_to_S34_reaclib); + amrex::Real dr1dT_gn = rate_eval.dscreened_rates_dT(k_S33_to_n_S32_derived); + drate_dT = 2.0_rt * (dr1dT_ng * r2_ng * dd + r1_ng * dr2dT_ng * dd - r1_ng * r2_ng * dd * dd * (rho * Yn * dr2dT_ng + dr1dT_gn)); + drate_dYN = -rate * dd * rho * r2_ng; + } + if constexpr (std::is_same_v) { + rate_eval.drate_S32_n_n_to_S34_approx_dYN = drate_dYN; + } + rate_eval.screened_rates(k_S32_n_n_to_S34_approx) = rate; + if constexpr (std::is_same_v) { + rate_eval.dscreened_rates_dT(k_S32_n_n_to_S34_approx) = drate_dT; + } + } + + template + AMREX_GPU_DEVICE AMREX_INLINE + void rate_S34_to_S32_n_n_approx(T& rate_eval, const amrex::Real rho, const amrex::Array1D& Y) { + + amrex::Real rate{}, drate_dT{}; + amrex::Real drate_dYN{}; + amrex::Real Yn = Y(N); + amrex::Real r2_ng = rate_eval.screened_rates(k_S33_n_to_S34_reaclib); + amrex::Real r1_gn = rate_eval.screened_rates(k_S33_to_n_S32_derived); + amrex::Real dd = 1.0_rt / (rho * Yn * r2_ng + r1_gn); + amrex::Real r2_gn = rate_eval.screened_rates(k_S34_to_n_S33_derived); + rate = r1_gn * r2_gn * dd; + if constexpr (std::is_same_v) { + amrex::Real dr1dT_gn = rate_eval.dscreened_rates_dT(k_S33_to_n_S32_derived); + amrex::Real dr2dT_gn = rate_eval.dscreened_rates_dT(k_S34_to_n_S33_derived); + amrex::Real dr2dT_ng = rate_eval.dscreened_rates_dT(k_S33_n_to_S34_reaclib); + drate_dT = dr1dT_gn * r2_gn * dd + r1_gn * dr2dT_gn * dd - r1_gn * r2_gn * dd * dd * (rho * Yn * dr2dT_ng + dr1dT_gn); + drate_dYN = -rate * dd * rho * r2_ng; + } + if constexpr (std::is_same_v) { + rate_eval.drate_S34_to_S32_n_n_approx_dYN = drate_dYN; + } + rate_eval.screened_rates(k_S34_to_S32_n_n_approx) = rate; + if constexpr (std::is_same_v) { + rate_eval.dscreened_rates_dT(k_S34_to_S32_n_n_approx) = drate_dT; + } + } + + template + AMREX_GPU_DEVICE AMREX_INLINE + void rate_C12_C12_to_Mg24_approx(T& rate_eval) { + + amrex::Real rate{}, drate_dT{}; + amrex::Real r_pY = rate_eval.screened_rates(k_Na23_p_to_C12_C12_derived); + amrex::Real r_pa = rate_eval.screened_rates(k_Na23_p_to_He4_Ne20_reaclib); + amrex::Real r_pg = rate_eval.screened_rates(k_Na23_p_to_Mg24_reaclib); + amrex::Real dd = 1.0_rt / (r_pY + r_pa + r_pg); + amrex::Real r_Yg = 0.0_rt; + amrex::Real r_Yp = rate_eval.screened_rates(k_C12_C12_to_p_Na23_reaclib); + rate = r_Yg + r_Yp * r_pg * dd; + if constexpr (std::is_same_v) { + amrex::Real drdT_pY = rate_eval.dscreened_rates_dT(k_Na23_p_to_C12_C12_derived); + amrex::Real drdT_pa = rate_eval.dscreened_rates_dT(k_Na23_p_to_He4_Ne20_reaclib); + amrex::Real drdT_pg = rate_eval.dscreened_rates_dT(k_Na23_p_to_Mg24_reaclib); + amrex::Real drdT_Yg = 0.0_rt; + amrex::Real drdT_Yp = rate_eval.dscreened_rates_dT(k_C12_C12_to_p_Na23_reaclib); + drate_dT = drdT_Yg + drdT_Yp * r_pg * dd + r_Yp * drdT_pg * dd - r_Yp * r_pg * dd * dd * (drdT_pY + drdT_pa + drdT_pg); + } + rate_eval.screened_rates(k_C12_C12_to_Mg24_approx) = rate; + if constexpr (std::is_same_v) { + rate_eval.dscreened_rates_dT(k_C12_C12_to_Mg24_approx) = drate_dT; + } + } + + template + AMREX_GPU_DEVICE AMREX_INLINE + void rate_Mg24_to_C12_C12_approx(T& rate_eval) { + + amrex::Real rate{}, drate_dT{}; + amrex::Real r_pY = rate_eval.screened_rates(k_Na23_p_to_C12_C12_derived); + amrex::Real r_pa = rate_eval.screened_rates(k_Na23_p_to_He4_Ne20_reaclib); + amrex::Real r_pg = rate_eval.screened_rates(k_Na23_p_to_Mg24_reaclib); + amrex::Real dd = 1.0_rt / (r_pY + r_pa + r_pg); + amrex::Real r_gY = 0.0_rt; + amrex::Real r_gp = rate_eval.screened_rates(k_Mg24_to_p_Na23_derived); + rate = r_gY + r_pY * r_gp * dd; + if constexpr (std::is_same_v) { + amrex::Real drdT_pY = rate_eval.dscreened_rates_dT(k_Na23_p_to_C12_C12_derived); + amrex::Real drdT_pa = rate_eval.dscreened_rates_dT(k_Na23_p_to_He4_Ne20_reaclib); + amrex::Real drdT_pg = rate_eval.dscreened_rates_dT(k_Na23_p_to_Mg24_reaclib); + amrex::Real drdT_gY = 0.0_rt; + amrex::Real drdT_gp = rate_eval.dscreened_rates_dT(k_Mg24_to_p_Na23_derived); + drate_dT = drdT_gY + drdT_pY * r_gp * dd + r_pY * drdT_gp * dd - r_pY * r_gp * dd * dd * (drdT_pY + drdT_pa + drdT_pg); + } + rate_eval.screened_rates(k_Mg24_to_C12_C12_approx) = rate; + if constexpr (std::is_same_v) { + rate_eval.dscreened_rates_dT(k_Mg24_to_C12_C12_approx) = drate_dT; + } + } + + template + AMREX_GPU_DEVICE AMREX_INLINE + void rate_C12_C12_to_Ne20_He4_approx(T& rate_eval) { + + amrex::Real rate{}, drate_dT{}; + amrex::Real r_pY = rate_eval.screened_rates(k_Na23_p_to_C12_C12_derived); + amrex::Real r_pa = rate_eval.screened_rates(k_Na23_p_to_He4_Ne20_reaclib); + amrex::Real r_pg = rate_eval.screened_rates(k_Na23_p_to_Mg24_reaclib); + amrex::Real dd = 1.0_rt / (r_pY + r_pa + r_pg); + amrex::Real r_Ya = rate_eval.screened_rates(k_C12_C12_to_He4_Ne20_reaclib); + amrex::Real r_Yp = rate_eval.screened_rates(k_C12_C12_to_p_Na23_reaclib); + rate = r_Ya + r_Yp * r_pa * dd; + if constexpr (std::is_same_v) { + amrex::Real drdT_pY = rate_eval.dscreened_rates_dT(k_Na23_p_to_C12_C12_derived); + amrex::Real drdT_pa = rate_eval.dscreened_rates_dT(k_Na23_p_to_He4_Ne20_reaclib); + amrex::Real drdT_pg = rate_eval.dscreened_rates_dT(k_Na23_p_to_Mg24_reaclib); + amrex::Real drdT_Ya = rate_eval.dscreened_rates_dT(k_C12_C12_to_He4_Ne20_reaclib); + amrex::Real drdT_Yp = rate_eval.dscreened_rates_dT(k_C12_C12_to_p_Na23_reaclib); + drate_dT = drdT_Ya + drdT_Yp * r_pa * dd + r_Ya * drdT_pa * dd - r_Yp * r_pa * dd * dd * (drdT_pY + drdT_pa + drdT_pg); + } + rate_eval.screened_rates(k_C12_C12_to_Ne20_He4_approx) = rate; + if constexpr (std::is_same_v) { + rate_eval.dscreened_rates_dT(k_C12_C12_to_Ne20_He4_approx) = drate_dT; + } + } + + template + AMREX_GPU_DEVICE AMREX_INLINE + void rate_Ne20_He4_to_C12_C12_approx(T& rate_eval) { + + amrex::Real rate{}, drate_dT{}; + amrex::Real r_pY = rate_eval.screened_rates(k_Na23_p_to_C12_C12_derived); + amrex::Real r_pa = rate_eval.screened_rates(k_Na23_p_to_He4_Ne20_reaclib); + amrex::Real r_pg = rate_eval.screened_rates(k_Na23_p_to_Mg24_reaclib); + amrex::Real dd = 1.0_rt / (r_pY + r_pa + r_pg); + amrex::Real r_aY = rate_eval.screened_rates(k_Ne20_He4_to_C12_C12_derived); + amrex::Real r_ap = rate_eval.screened_rates(k_Ne20_He4_to_p_Na23_derived); + rate = r_aY + r_pY * r_ap * dd; + if constexpr (std::is_same_v) { + amrex::Real drdT_pY = rate_eval.dscreened_rates_dT(k_Na23_p_to_C12_C12_derived); + amrex::Real drdT_pa = rate_eval.dscreened_rates_dT(k_Na23_p_to_He4_Ne20_reaclib); + amrex::Real drdT_pg = rate_eval.dscreened_rates_dT(k_Na23_p_to_Mg24_reaclib); + amrex::Real drdT_aY = rate_eval.dscreened_rates_dT(k_Ne20_He4_to_C12_C12_derived); + amrex::Real drdT_ap = rate_eval.dscreened_rates_dT(k_Ne20_He4_to_p_Na23_derived); + drate_dT = drdT_aY + drdT_pY * r_ap * dd + r_pY * drdT_ap * dd - r_pY * r_ap * dd * dd * (drdT_pY + drdT_pa + drdT_pg); + } + rate_eval.screened_rates(k_Ne20_He4_to_C12_C12_approx) = rate; + if constexpr (std::is_same_v) { + rate_eval.dscreened_rates_dT(k_Ne20_He4_to_C12_C12_approx) = drate_dT; + } + } + + template + AMREX_GPU_DEVICE AMREX_INLINE + void rate_Ne20_He4_to_Mg24_approx(T& rate_eval) { + + amrex::Real rate{}, drate_dT{}; + amrex::Real r_pg = rate_eval.screened_rates(k_Na23_p_to_Mg24_reaclib); + amrex::Real r_pa = rate_eval.screened_rates(k_Na23_p_to_He4_Ne20_reaclib); + amrex::Real r_pY = rate_eval.screened_rates(k_Na23_p_to_C12_C12_derived); + amrex::Real dd = 1.0_rt / (r_pg + r_pa + r_pY); + amrex::Real r_ag = rate_eval.screened_rates(k_Ne20_He4_to_Mg24_reaclib); + amrex::Real r_ap = rate_eval.screened_rates(k_Ne20_He4_to_p_Na23_derived); + rate = r_ag + r_ap * r_pg * dd; + if constexpr (std::is_same_v) { + amrex::Real drdT_ag = rate_eval.dscreened_rates_dT(k_Ne20_He4_to_Mg24_reaclib); + amrex::Real drdT_ap = rate_eval.dscreened_rates_dT(k_Ne20_He4_to_p_Na23_derived); + amrex::Real drdT_pg = rate_eval.dscreened_rates_dT(k_Na23_p_to_Mg24_reaclib); + amrex::Real drdT_pa = rate_eval.dscreened_rates_dT(k_Na23_p_to_He4_Ne20_reaclib); + amrex::Real drdT_pY = rate_eval.dscreened_rates_dT(k_Na23_p_to_C12_C12_derived); + drate_dT = drdT_ag + drdT_ap * r_pg * dd + r_ap * drdT_pg * dd - r_ap * r_pg * dd * dd * (drdT_pg + drdT_pa + drdT_pY); + } + rate_eval.screened_rates(k_Ne20_He4_to_Mg24_approx) = rate; + if constexpr (std::is_same_v) { + rate_eval.dscreened_rates_dT(k_Ne20_He4_to_Mg24_approx) = drate_dT; + } + } + + template + AMREX_GPU_DEVICE AMREX_INLINE + void rate_Mg24_to_Ne20_He4_approx(T& rate_eval) { + + amrex::Real rate{}, drate_dT{}; + amrex::Real r_pg = rate_eval.screened_rates(k_Na23_p_to_Mg24_reaclib); + amrex::Real r_pa = rate_eval.screened_rates(k_Na23_p_to_He4_Ne20_reaclib); + amrex::Real r_pY = rate_eval.screened_rates(k_Na23_p_to_C12_C12_derived); + amrex::Real dd = 1.0_rt / (r_pg + r_pa + r_pY); + amrex::Real r_ga = rate_eval.screened_rates(k_Mg24_to_He4_Ne20_derived); + amrex::Real r_gp = rate_eval.screened_rates(k_Mg24_to_p_Na23_derived); + rate = r_ga + r_gp * r_pa * dd; + if constexpr (std::is_same_v) { + amrex::Real drdT_ga = rate_eval.dscreened_rates_dT(k_Mg24_to_He4_Ne20_derived); + amrex::Real drdT_pa = rate_eval.dscreened_rates_dT(k_Na23_p_to_He4_Ne20_reaclib); + amrex::Real drdT_gp = rate_eval.dscreened_rates_dT(k_Mg24_to_p_Na23_derived); + amrex::Real drdT_pg = rate_eval.dscreened_rates_dT(k_Na23_p_to_Mg24_reaclib); + amrex::Real drdT_pY = rate_eval.dscreened_rates_dT(k_Na23_p_to_C12_C12_derived); + drate_dT = drdT_ga + drdT_gp * r_pa * dd + r_gp * drdT_pa * dd - r_gp * r_pa * dd * dd * (drdT_pg + drdT_pa + drdT_pY); + } + rate_eval.screened_rates(k_Mg24_to_Ne20_He4_approx) = rate; + if constexpr (std::is_same_v) { + rate_eval.dscreened_rates_dT(k_Mg24_to_Ne20_He4_approx) = drate_dT; + } + } + + + + template + AMREX_GPU_DEVICE AMREX_INLINE + void + fill_rates([[maybe_unused]] const tf_t& tfactors, + [[maybe_unused]] const amrex::Real rho, + [[maybe_unused]] const amrex::Array1D& Y, + [[maybe_unused]] T& rate_eval) + { + + [[maybe_unused]] amrex::Real rate{}; + [[maybe_unused]] amrex::Real drate_dT{}; + + { + // Ni56_n_n_to_Ni58_approx + rate_Ni56_n_n_to_Ni58_approx(rate_eval, rho, Y); + } + + { + // Ni58_to_Ni56_n_n_approx + rate_Ni58_to_Ni56_n_n_approx(rate_eval, rho, Y); + } + + { + // Co53_n_n_to_Co55_approx + rate_Co53_n_n_to_Co55_approx(rate_eval, rho, Y); + } + + { + // Co55_to_Co53_n_n_approx + rate_Co55_to_Co53_n_n_approx(rate_eval, rho, Y); + } + + { + // Fe50_n_n_to_Fe52_approx + rate_Fe50_n_n_to_Fe52_approx(rate_eval, rho, Y); + } + + { + // Fe52_to_Fe50_n_n_approx + rate_Fe52_to_Fe50_n_n_approx(rate_eval, rho, Y); + } + + { + // Fe52_n_n_to_Fe54_approx + rate_Fe52_n_n_to_Fe54_approx(rate_eval, rho, Y); + } + + { + // Fe54_to_Fe52_n_n_approx + rate_Fe54_to_Fe52_n_n_approx(rate_eval, rho, Y); + } + + { + // Fe54_n_n_to_Fe56_approx + rate_Fe54_n_n_to_Fe56_approx(rate_eval, rho, Y); + } + + { + // Fe56_to_Fe54_n_n_approx + rate_Fe56_to_Fe54_n_n_approx(rate_eval, rho, Y); + } + + { + // Mn49_n_n_to_Mn51_approx + rate_Mn49_n_n_to_Mn51_approx(rate_eval, rho, Y); + } + + { + // Mn51_to_Mn49_n_n_approx + rate_Mn51_to_Mn49_n_n_approx(rate_eval, rho, Y); + } + + { + // Mn51_n_n_to_Mn53_approx + rate_Mn51_n_n_to_Mn53_approx(rate_eval, rho, Y); + } + + { + // Mn53_to_Mn51_n_n_approx + rate_Mn53_to_Mn51_n_n_approx(rate_eval, rho, Y); + } + + { + // Cr46_n_n_to_Cr48_approx + rate_Cr46_n_n_to_Cr48_approx(rate_eval, rho, Y); + } + + { + // Cr48_to_Cr46_n_n_approx + rate_Cr48_to_Cr46_n_n_approx(rate_eval, rho, Y); + } + + { + // Cr48_n_n_to_Cr50_approx + rate_Cr48_n_n_to_Cr50_approx(rate_eval, rho, Y); + } + + { + // Cr50_to_Cr48_n_n_approx + rate_Cr50_to_Cr48_n_n_approx(rate_eval, rho, Y); + } + + { + // Cr50_n_n_to_Cr52_approx + rate_Cr50_n_n_to_Cr52_approx(rate_eval, rho, Y); + } + + { + // Cr52_to_Cr50_n_n_approx + rate_Cr52_to_Cr50_n_n_approx(rate_eval, rho, Y); + } + + { + // V45_n_n_to_V47_approx + rate_V45_n_n_to_V47_approx(rate_eval, rho, Y); + } + + { + // V47_to_V45_n_n_approx + rate_V47_to_V45_n_n_approx(rate_eval, rho, Y); + } + + { + // V47_n_n_to_V49_approx + rate_V47_n_n_to_V49_approx(rate_eval, rho, Y); + } + + { + // V49_to_V47_n_n_approx + rate_V49_to_V47_n_n_approx(rate_eval, rho, Y); + } + + { + // Ti42_n_n_to_Ti44_approx + rate_Ti42_n_n_to_Ti44_approx(rate_eval, rho, Y); + } + + { + // Ti44_to_Ti42_n_n_approx + rate_Ti44_to_Ti42_n_n_approx(rate_eval, rho, Y); + } + + { + // Ti44_n_n_to_Ti46_approx + rate_Ti44_n_n_to_Ti46_approx(rate_eval, rho, Y); + } + + { + // Ti46_to_Ti44_n_n_approx + rate_Ti46_to_Ti44_n_n_approx(rate_eval, rho, Y); + } + + { + // Sc41_n_n_to_Sc43_approx + rate_Sc41_n_n_to_Sc43_approx(rate_eval, rho, Y); + } + + { + // Sc43_to_Sc41_n_n_approx + rate_Sc43_to_Sc41_n_n_approx(rate_eval, rho, Y); + } + + { + // Ca38_n_n_to_Ca40_approx + rate_Ca38_n_n_to_Ca40_approx(rate_eval, rho, Y); + } + + { + // Ca40_to_Ca38_n_n_approx + rate_Ca40_to_Ca38_n_n_approx(rate_eval, rho, Y); + } + + { + // Ca40_n_n_to_Ca42_approx + rate_Ca40_n_n_to_Ca42_approx(rate_eval, rho, Y); + } + + { + // Ca42_to_Ca40_n_n_approx + rate_Ca42_to_Ca40_n_n_approx(rate_eval, rho, Y); + } + + { + // Ar34_n_n_to_Ar36_approx + rate_Ar34_n_n_to_Ar36_approx(rate_eval, rho, Y); + } + + { + // Ar36_to_Ar34_n_n_approx + rate_Ar36_to_Ar34_n_n_approx(rate_eval, rho, Y); + } + + { + // Ar36_n_n_to_Ar38_approx + rate_Ar36_n_n_to_Ar38_approx(rate_eval, rho, Y); + } + + { + // Ar38_to_Ar36_n_n_approx + rate_Ar38_to_Ar36_n_n_approx(rate_eval, rho, Y); + } + + { + // Si28_n_n_to_Si30_approx + rate_Si28_n_n_to_Si30_approx(rate_eval, rho, Y); + } + + { + // Si30_to_Si28_n_n_approx + rate_Si30_to_Si28_n_n_approx(rate_eval, rho, Y); + } + + { + // S30_n_n_to_S32_approx + rate_S30_n_n_to_S32_approx(rate_eval, rho, Y); + } + + { + // S32_to_S30_n_n_approx + rate_S32_to_S30_n_n_approx(rate_eval, rho, Y); + } + + { + // S32_n_n_to_S34_approx + rate_S32_n_n_to_S34_approx(rate_eval, rho, Y); + } + + { + // S34_to_S32_n_n_approx + rate_S34_to_S32_n_n_approx(rate_eval, rho, Y); + } + + { + // C12_C12_to_Mg24_approx + rate_C12_C12_to_Mg24_approx(rate_eval); + } + + { + // Mg24_to_C12_C12_approx + rate_Mg24_to_C12_C12_approx(rate_eval); + } + + { + // C12_C12_to_Ne20_He4_approx + rate_C12_C12_to_Ne20_He4_approx(rate_eval); + } + + { + // Ne20_He4_to_C12_C12_approx + rate_Ne20_He4_to_C12_C12_approx(rate_eval); + } + + { + // Ne20_He4_to_Mg24_approx + rate_Ne20_He4_to_Mg24_approx(rate_eval); + } + + { + // Mg24_to_Ne20_He4_approx + rate_Mg24_to_Ne20_He4_approx(rate_eval); + } + + + } +} +#endif diff --git a/networks/massive-star-medium/branched_rates.H b/networks/massive-star-medium/branched_rates.H new file mode 100644 index 0000000000..d4350d5343 --- /dev/null +++ b/networks/massive-star-medium/branched_rates.H @@ -0,0 +1,33 @@ +#ifndef BRANCHED_RATES_H +#define BRANCHED_RATES_H + +#include +#include + +#include +#include +#include +#include +#include + +namespace branched_rates { + + using namespace Rates; + + using namespace temp_tabular; + + + template + AMREX_GPU_DEVICE AMREX_INLINE + void + fill_rates([[maybe_unused]] const tf_t& tfactors, + [[maybe_unused]] T& rate_eval) + { + + [[maybe_unused]] amrex::Real rate; + [[maybe_unused]] amrex::Real drate_dT; + + + } +} +#endif diff --git a/networks/massive-star-medium/derived_rates.H b/networks/massive-star-medium/derived_rates.H new file mode 100644 index 0000000000..31841228af --- /dev/null +++ b/networks/massive-star-medium/derived_rates.H @@ -0,0 +1,14041 @@ +#ifndef DERIVED_RATES_H +#define DERIVED_RATES_H + +#include +#include +#include +#include +#include + +namespace derived_rates { + + using namespace Rates; + + template + AMREX_GPU_DEVICE AMREX_INLINE + void rate_O16_to_He4_C12_derived(T& rate_eval, const tf_t& tfactors, [[maybe_unused]] part_fun::pf_cache_t& pf_cache) { + + // O16 --> He4 + C12 + + amrex::Real rate{}, drate_dT{}; + // Evaluate partition function terms + + amrex::Real C12_log_pf, dC12_log_pf_dT9; + + // setting C12 log(partition function) to 0.0 by default, independent of T + C12_log_pf = 0.0_rt; + dC12_log_pf_dT9 = 0.0_rt; + + amrex::Real He4_log_pf, dHe4_log_pf_dT9; + + // setting He4 log(partition function) to 0.0 by default, independent of T + He4_log_pf = 0.0_rt; + dHe4_log_pf_dT9 = 0.0_rt; + + amrex::Real O16_log_pf, dO16_log_pf_dT9; + + // interpolating O16 partition function + get_partition_function_cached(O16, tfactors.T9, pf_cache, O16_log_pf, dO16_log_pf_dT9); + + amrex::Real net_log_pf = He4_log_pf + C12_log_pf - O16_log_pf; + [[maybe_unused]] amrex::Real net_dlog_pf_dT9 = dHe4_log_pf_dT9 + dC12_log_pf_dT9 - dO16_log_pf_dT9; + + amrex::Real ln_set_rate{0.0}; + amrex::Real dln_set_rate_dT9{0.0}; + amrex::Real set_rate{0.0}; + + // ReacLib set derived from nac2 + ln_set_rate = 279.29694929711803 + -84.95157686791683 * tfactors.T9i + 103.411 * tfactors.T913i + -420.567 * tfactors.T913 + + 64.0874 * tfactors.T9 + -12.4624 * tfactors.T953 + 138.803 * tfactors.lnT9; + + ln_set_rate += net_log_pf; + + if constexpr (std::is_same_v) { + dln_set_rate_dT9 = 84.95157686791683 * tfactors.T9i * tfactors.T9i + -(1.0/3.0) * 103.411 * tfactors.T943i + (1.0/3.0) * -420.567 * tfactors.T923i + + 64.0874 + (5.0/3.0) * -12.4624 * tfactors.T923 + 138.803 * tfactors.T9i; + + dln_set_rate_dT9 += net_dlog_pf_dT9; + } + + // avoid underflows by zeroing rates in [0.0, 1.e-100] + ln_set_rate = std::max(ln_set_rate, -230.0); + set_rate = std::exp(ln_set_rate); + rate += set_rate; + if constexpr (std::is_same_v) { + if (ln_set_rate > -230.0_rt) { + drate_dT += set_rate * dln_set_rate_dT9 * 1.0e-9_rt; + } + } + + // ReacLib set derived from nac2 + ln_set_rate = 94.31554929711803 + -84.50314686791683 * tfactors.T9i + 58.9128 * tfactors.T913i + -148.273 * tfactors.T913 + + 9.08324 * tfactors.T9 + -0.541041 * tfactors.T953 + 71.8554 * tfactors.lnT9; + + ln_set_rate += net_log_pf; + + if constexpr (std::is_same_v) { + dln_set_rate_dT9 = 84.50314686791683 * tfactors.T9i * tfactors.T9i + -(1.0/3.0) * 58.9128 * tfactors.T943i + (1.0/3.0) * -148.273 * tfactors.T923i + + 9.08324 + (5.0/3.0) * -0.541041 * tfactors.T923 + 71.8554 * tfactors.T9i; + + dln_set_rate_dT9 += net_dlog_pf_dT9; + } + + // avoid underflows by zeroing rates in [0.0, 1.e-100] + ln_set_rate = std::max(ln_set_rate, -230.0); + set_rate = std::exp(ln_set_rate); + rate += set_rate; + if constexpr (std::is_same_v) { + if (ln_set_rate > -230.0_rt) { + drate_dT += set_rate * dln_set_rate_dT9 * 1.0e-9_rt; + } + } + + rate_eval.screened_rates(k_O16_to_He4_C12_derived) = rate; + if constexpr (std::is_same_v) { + rate_eval.dscreened_rates_dT(k_O16_to_He4_C12_derived) = drate_dT; + } + } + + template + AMREX_GPU_DEVICE AMREX_INLINE + void rate_Ne20_to_He4_O16_derived(T& rate_eval, const tf_t& tfactors, [[maybe_unused]] part_fun::pf_cache_t& pf_cache) { + + // Ne20 --> He4 + O16 + + amrex::Real rate{}, drate_dT{}; + // Evaluate partition function terms + + amrex::Real He4_log_pf, dHe4_log_pf_dT9; + + // setting He4 log(partition function) to 0.0 by default, independent of T + He4_log_pf = 0.0_rt; + dHe4_log_pf_dT9 = 0.0_rt; + + amrex::Real O16_log_pf, dO16_log_pf_dT9; + + // interpolating O16 partition function + get_partition_function_cached(O16, tfactors.T9, pf_cache, O16_log_pf, dO16_log_pf_dT9); + + amrex::Real Ne20_log_pf, dNe20_log_pf_dT9; + + // interpolating Ne20 partition function + get_partition_function_cached(Ne20, tfactors.T9, pf_cache, Ne20_log_pf, dNe20_log_pf_dT9); + + amrex::Real net_log_pf = He4_log_pf + O16_log_pf - Ne20_log_pf; + [[maybe_unused]] amrex::Real net_dlog_pf_dT9 = dHe4_log_pf_dT9 + dO16_log_pf_dT9 - dNe20_log_pf_dT9; + + amrex::Real ln_set_rate{0.0}; + amrex::Real dln_set_rate_dT9{0.0}; + amrex::Real set_rate{0.0}; + + // ReacLib set derived from co10r + ln_set_rate = 28.644822801502126 + -65.24608327101186 * tfactors.T9i; + + ln_set_rate += net_log_pf; + + if constexpr (std::is_same_v) { + dln_set_rate_dT9 = 65.24608327101186 * tfactors.T9i * tfactors.T9i; + + dln_set_rate_dT9 += net_dlog_pf_dT9; + } + + // avoid underflows by zeroing rates in [0.0, 1.e-100] + ln_set_rate = std::max(ln_set_rate, -230.0); + set_rate = std::exp(ln_set_rate); + rate += set_rate; + if constexpr (std::is_same_v) { + if (ln_set_rate > -230.0_rt) { + drate_dT += set_rate * dln_set_rate_dT9 * 1.0e-9_rt; + } + } + + // ReacLib set derived from co10n + ln_set_rate = 48.662112801502126 + -54.887583271011856 * tfactors.T9i + -39.7262 * tfactors.T913i + -0.210799 * tfactors.T913 + + 0.442879 * tfactors.T9 + -0.0797753 * tfactors.T953 + 0.833333 * tfactors.lnT9; + + ln_set_rate += net_log_pf; + + if constexpr (std::is_same_v) { + dln_set_rate_dT9 = 54.887583271011856 * tfactors.T9i * tfactors.T9i + -(1.0/3.0) * -39.7262 * tfactors.T943i + (1.0/3.0) * -0.210799 * tfactors.T923i + + 0.442879 + (5.0/3.0) * -0.0797753 * tfactors.T923 + 0.833333 * tfactors.T9i; + + dln_set_rate_dT9 += net_dlog_pf_dT9; + } + + // avoid underflows by zeroing rates in [0.0, 1.e-100] + ln_set_rate = std::max(ln_set_rate, -230.0); + set_rate = std::exp(ln_set_rate); + rate += set_rate; + if constexpr (std::is_same_v) { + if (ln_set_rate > -230.0_rt) { + drate_dT += set_rate * dln_set_rate_dT9 * 1.0e-9_rt; + } + } + + // ReacLib set derived from co10r + ln_set_rate = 34.267592801502126 + -67.65188327101185 * tfactors.T9i + -3.65925 * tfactors.T913 + + 0.714224 * tfactors.T9 + -0.00107508 * tfactors.T953; + + ln_set_rate += net_log_pf; + + if constexpr (std::is_same_v) { + dln_set_rate_dT9 = 67.65188327101185 * tfactors.T9i * tfactors.T9i + (1.0/3.0) * -3.65925 * tfactors.T923i + + 0.714224 + (5.0/3.0) * -0.00107508 * tfactors.T923; + + dln_set_rate_dT9 += net_dlog_pf_dT9; + } + + // avoid underflows by zeroing rates in [0.0, 1.e-100] + ln_set_rate = std::max(ln_set_rate, -230.0); + set_rate = std::exp(ln_set_rate); + rate += set_rate; + if constexpr (std::is_same_v) { + if (ln_set_rate > -230.0_rt) { + drate_dT += set_rate * dln_set_rate_dT9 * 1.0e-9_rt; + } + } + + rate_eval.screened_rates(k_Ne20_to_He4_O16_derived) = rate; + if constexpr (std::is_same_v) { + rate_eval.dscreened_rates_dT(k_Ne20_to_He4_O16_derived) = drate_dT; + } + } + + template + AMREX_GPU_DEVICE AMREX_INLINE + void rate_Mg24_to_n_Mg23_derived(T& rate_eval, const tf_t& tfactors, [[maybe_unused]] part_fun::pf_cache_t& pf_cache) { + + // Mg24 --> n + Mg23 + + amrex::Real rate{}, drate_dT{}; + // Evaluate partition function terms + + amrex::Real n_log_pf, dn_log_pf_dT9; + + // setting n log(partition function) to 0.0 by default, independent of T + n_log_pf = 0.0_rt; + dn_log_pf_dT9 = 0.0_rt; + + amrex::Real Mg23_log_pf, dMg23_log_pf_dT9; + + // interpolating Mg23 partition function + get_partition_function_cached(Mg23, tfactors.T9, pf_cache, Mg23_log_pf, dMg23_log_pf_dT9); + + amrex::Real Mg24_log_pf, dMg24_log_pf_dT9; + + // interpolating Mg24 partition function + get_partition_function_cached(Mg24, tfactors.T9, pf_cache, Mg24_log_pf, dMg24_log_pf_dT9); + + amrex::Real net_log_pf = n_log_pf + Mg23_log_pf - Mg24_log_pf; + [[maybe_unused]] amrex::Real net_dlog_pf_dT9 = dn_log_pf_dT9 + dMg23_log_pf_dT9 - dMg24_log_pf_dT9; + + amrex::Real ln_set_rate{0.0}; + amrex::Real dln_set_rate_dT9{0.0}; + amrex::Real set_rate{0.0}; + + // ReacLib set derived from ths8r + ln_set_rate = 32.05683058133977 + -191.83691284889673 * tfactors.T9i + 2.66964 * tfactors.T913 + + -0.448904 * tfactors.T9 + 0.0326505 * tfactors.T953 + 1.5 * tfactors.lnT9; + + ln_set_rate += net_log_pf; + + if constexpr (std::is_same_v) { + dln_set_rate_dT9 = 191.83691284889673 * tfactors.T9i * tfactors.T9i + (1.0/3.0) * 2.66964 * tfactors.T923i + + -0.448904 + (5.0/3.0) * 0.0326505 * tfactors.T923 + 1.5 * tfactors.T9i; + + dln_set_rate_dT9 += net_dlog_pf_dT9; + } + + // avoid underflows by zeroing rates in [0.0, 1.e-100] + ln_set_rate = std::max(ln_set_rate, -230.0); + set_rate = std::exp(ln_set_rate); + rate += set_rate; + if constexpr (std::is_same_v) { + if (ln_set_rate > -230.0_rt) { + drate_dT += set_rate * dln_set_rate_dT9 * 1.0e-9_rt; + } + } + + rate_eval.screened_rates(k_Mg24_to_n_Mg23_derived) = rate; + if constexpr (std::is_same_v) { + rate_eval.dscreened_rates_dT(k_Mg24_to_n_Mg23_derived) = drate_dT; + } + } + + template + AMREX_GPU_DEVICE AMREX_INLINE + void rate_Si27_to_He4_Mg23_derived(T& rate_eval, const tf_t& tfactors, [[maybe_unused]] part_fun::pf_cache_t& pf_cache) { + + // Si27 --> He4 + Mg23 + + amrex::Real rate{}, drate_dT{}; + // Evaluate partition function terms + + amrex::Real He4_log_pf, dHe4_log_pf_dT9; + + // setting He4 log(partition function) to 0.0 by default, independent of T + He4_log_pf = 0.0_rt; + dHe4_log_pf_dT9 = 0.0_rt; + + amrex::Real Mg23_log_pf, dMg23_log_pf_dT9; + + // interpolating Mg23 partition function + get_partition_function_cached(Mg23, tfactors.T9, pf_cache, Mg23_log_pf, dMg23_log_pf_dT9); + + amrex::Real Si27_log_pf, dSi27_log_pf_dT9; + + // interpolating Si27 partition function + get_partition_function_cached(Si27, tfactors.T9, pf_cache, Si27_log_pf, dSi27_log_pf_dT9); + + amrex::Real net_log_pf = He4_log_pf + Mg23_log_pf - Si27_log_pf; + [[maybe_unused]] amrex::Real net_dlog_pf_dT9 = dHe4_log_pf_dT9 + dMg23_log_pf_dT9 - dSi27_log_pf_dT9; + + amrex::Real ln_set_rate{0.0}; + amrex::Real dln_set_rate_dT9{0.0}; + amrex::Real set_rate{0.0}; + + // ReacLib set derived from ths8r + ln_set_rate = 68.14909115483175 + -108.33694817182082 * tfactors.T9i + -53.203 * tfactors.T913i + -4.6318 * tfactors.T913 + + -0.130951 * tfactors.T9 + 0.014691 * tfactors.T953 + 0.833333 * tfactors.lnT9; + + ln_set_rate += net_log_pf; + + if constexpr (std::is_same_v) { + dln_set_rate_dT9 = 108.33694817182082 * tfactors.T9i * tfactors.T9i + -(1.0/3.0) * -53.203 * tfactors.T943i + (1.0/3.0) * -4.6318 * tfactors.T923i + + -0.130951 + (5.0/3.0) * 0.014691 * tfactors.T923 + 0.833333 * tfactors.T9i; + + dln_set_rate_dT9 += net_dlog_pf_dT9; + } + + // avoid underflows by zeroing rates in [0.0, 1.e-100] + ln_set_rate = std::max(ln_set_rate, -230.0); + set_rate = std::exp(ln_set_rate); + rate += set_rate; + if constexpr (std::is_same_v) { + if (ln_set_rate > -230.0_rt) { + drate_dT += set_rate * dln_set_rate_dT9 * 1.0e-9_rt; + } + } + + rate_eval.screened_rates(k_Si27_to_He4_Mg23_derived) = rate; + if constexpr (std::is_same_v) { + rate_eval.dscreened_rates_dT(k_Si27_to_He4_Mg23_derived) = drate_dT; + } + } + + template + AMREX_GPU_DEVICE AMREX_INLINE + void rate_Si28_to_n_Si27_derived(T& rate_eval, const tf_t& tfactors, [[maybe_unused]] part_fun::pf_cache_t& pf_cache) { + + // Si28 --> n + Si27 + + amrex::Real rate{}, drate_dT{}; + // Evaluate partition function terms + + amrex::Real n_log_pf, dn_log_pf_dT9; + + // setting n log(partition function) to 0.0 by default, independent of T + n_log_pf = 0.0_rt; + dn_log_pf_dT9 = 0.0_rt; + + amrex::Real Si27_log_pf, dSi27_log_pf_dT9; + + // interpolating Si27 partition function + get_partition_function_cached(Si27, tfactors.T9, pf_cache, Si27_log_pf, dSi27_log_pf_dT9); + + amrex::Real Si28_log_pf, dSi28_log_pf_dT9; + + // interpolating Si28 partition function + get_partition_function_cached(Si28, tfactors.T9, pf_cache, Si28_log_pf, dSi28_log_pf_dT9); + + amrex::Real net_log_pf = n_log_pf + Si27_log_pf - Si28_log_pf; + [[maybe_unused]] amrex::Real net_dlog_pf_dT9 = dn_log_pf_dT9 + dSi27_log_pf_dT9 - dSi28_log_pf_dT9; + + amrex::Real ln_set_rate{0.0}; + amrex::Real dln_set_rate_dT9{0.0}; + amrex::Real set_rate{0.0}; + + // ReacLib set derived from ths8r + ln_set_rate = 34.60590343256573 + -199.36103986444223 * tfactors.T9i + 0.559804 * tfactors.T913 + + -0.0233808 * tfactors.T9 + -0.00121313 * tfactors.T953 + 1.5 * tfactors.lnT9; + + ln_set_rate += net_log_pf; + + if constexpr (std::is_same_v) { + dln_set_rate_dT9 = 199.36103986444223 * tfactors.T9i * tfactors.T9i + (1.0/3.0) * 0.559804 * tfactors.T923i + + -0.0233808 + (5.0/3.0) * -0.00121313 * tfactors.T923 + 1.5 * tfactors.T9i; + + dln_set_rate_dT9 += net_dlog_pf_dT9; + } + + // avoid underflows by zeroing rates in [0.0, 1.e-100] + ln_set_rate = std::max(ln_set_rate, -230.0); + set_rate = std::exp(ln_set_rate); + rate += set_rate; + if constexpr (std::is_same_v) { + if (ln_set_rate > -230.0_rt) { + drate_dT += set_rate * dln_set_rate_dT9 * 1.0e-9_rt; + } + } + + rate_eval.screened_rates(k_Si28_to_n_Si27_derived) = rate; + if constexpr (std::is_same_v) { + rate_eval.dscreened_rates_dT(k_Si28_to_n_Si27_derived) = drate_dT; + } + } + + template + AMREX_GPU_DEVICE AMREX_INLINE + void rate_Si28_to_p_Al27_derived(T& rate_eval, const tf_t& tfactors, [[maybe_unused]] part_fun::pf_cache_t& pf_cache) { + + // Si28 --> p + Al27 + + amrex::Real rate{}, drate_dT{}; + // Evaluate partition function terms + + amrex::Real p_log_pf, dp_log_pf_dT9; + + // setting p log(partition function) to 0.0 by default, independent of T + p_log_pf = 0.0_rt; + dp_log_pf_dT9 = 0.0_rt; + + amrex::Real Al27_log_pf, dAl27_log_pf_dT9; + + // interpolating Al27 partition function + get_partition_function_cached(Al27, tfactors.T9, pf_cache, Al27_log_pf, dAl27_log_pf_dT9); + + amrex::Real Si28_log_pf, dSi28_log_pf_dT9; + + // interpolating Si28 partition function + get_partition_function_cached(Si28, tfactors.T9, pf_cache, Si28_log_pf, dSi28_log_pf_dT9); + + amrex::Real net_log_pf = p_log_pf + Al27_log_pf - Si28_log_pf; + [[maybe_unused]] amrex::Real net_dlog_pf_dT9 = dp_log_pf_dT9 + dAl27_log_pf_dT9 - dSi28_log_pf_dT9; + + amrex::Real ln_set_rate{0.0}; + amrex::Real dln_set_rate_dT9{0.0}; + amrex::Real set_rate{0.0}; + + // ReacLib set derived from il10r + ln_set_rate = 11.796402252999236 + -136.3412367256539 * tfactors.T9i + 23.8634 * tfactors.T913 + + -3.70135 * tfactors.T9 + 0.28964 * tfactors.T953; + + ln_set_rate += net_log_pf; + + if constexpr (std::is_same_v) { + dln_set_rate_dT9 = 136.3412367256539 * tfactors.T9i * tfactors.T9i + (1.0/3.0) * 23.8634 * tfactors.T923i + + -3.70135 + (5.0/3.0) * 0.28964 * tfactors.T923; + + dln_set_rate_dT9 += net_dlog_pf_dT9; + } + + // avoid underflows by zeroing rates in [0.0, 1.e-100] + ln_set_rate = std::max(ln_set_rate, -230.0); + set_rate = std::exp(ln_set_rate); + rate += set_rate; + if constexpr (std::is_same_v) { + if (ln_set_rate > -230.0_rt) { + drate_dT += set_rate * dln_set_rate_dT9 * 1.0e-9_rt; + } + } + + // ReacLib set derived from il10r + ln_set_rate = 111.48620225299923 + -134.8245897256539 * tfactors.T9i + -26.8327 * tfactors.T913i + -116.137 * tfactors.T913 + + 0.00950567 * tfactors.T9 + 0.00999755 * tfactors.T953; + + ln_set_rate += net_log_pf; + + if constexpr (std::is_same_v) { + dln_set_rate_dT9 = 134.8245897256539 * tfactors.T9i * tfactors.T9i + -(1.0/3.0) * -26.8327 * tfactors.T943i + (1.0/3.0) * -116.137 * tfactors.T923i + + 0.00950567 + (5.0/3.0) * 0.00999755 * tfactors.T923; + + dln_set_rate_dT9 += net_dlog_pf_dT9; + } + + // avoid underflows by zeroing rates in [0.0, 1.e-100] + ln_set_rate = std::max(ln_set_rate, -230.0); + set_rate = std::exp(ln_set_rate); + rate += set_rate; + if constexpr (std::is_same_v) { + if (ln_set_rate > -230.0_rt) { + drate_dT += set_rate * dln_set_rate_dT9 * 1.0e-9_rt; + } + } + + // ReacLib set derived from il10n + ln_set_rate = 46.569302252999236 + -134.4372767256539 * tfactors.T9i + -23.2205 * tfactors.T913i + + -2.0 * tfactors.T953 + 0.833333 * tfactors.lnT9; + + ln_set_rate += net_log_pf; + + if constexpr (std::is_same_v) { + dln_set_rate_dT9 = 134.4372767256539 * tfactors.T9i * tfactors.T9i + -(1.0/3.0) * -23.2205 * tfactors.T943i + + (5.0/3.0) * -2.0 * tfactors.T923 + 0.833333 * tfactors.T9i; + + dln_set_rate_dT9 += net_dlog_pf_dT9; + } + + // avoid underflows by zeroing rates in [0.0, 1.e-100] + ln_set_rate = std::max(ln_set_rate, -230.0); + set_rate = std::exp(ln_set_rate); + rate += set_rate; + if constexpr (std::is_same_v) { + if (ln_set_rate > -230.0_rt) { + drate_dT += set_rate * dln_set_rate_dT9 * 1.0e-9_rt; + } + } + + rate_eval.screened_rates(k_Si28_to_p_Al27_derived) = rate; + if constexpr (std::is_same_v) { + rate_eval.dscreened_rates_dT(k_Si28_to_p_Al27_derived) = drate_dT; + } + } + + template + AMREX_GPU_DEVICE AMREX_INLINE + void rate_Si28_to_He4_Mg24_derived(T& rate_eval, const tf_t& tfactors, [[maybe_unused]] part_fun::pf_cache_t& pf_cache) { + + // Si28 --> He4 + Mg24 + + amrex::Real rate{}, drate_dT{}; + // Evaluate partition function terms + + amrex::Real He4_log_pf, dHe4_log_pf_dT9; + + // setting He4 log(partition function) to 0.0 by default, independent of T + He4_log_pf = 0.0_rt; + dHe4_log_pf_dT9 = 0.0_rt; + + amrex::Real Mg24_log_pf, dMg24_log_pf_dT9; + + // interpolating Mg24 partition function + get_partition_function_cached(Mg24, tfactors.T9, pf_cache, Mg24_log_pf, dMg24_log_pf_dT9); + + amrex::Real Si28_log_pf, dSi28_log_pf_dT9; + + // interpolating Si28 partition function + get_partition_function_cached(Si28, tfactors.T9, pf_cache, Si28_log_pf, dSi28_log_pf_dT9); + + amrex::Real net_log_pf = He4_log_pf + Mg24_log_pf - Si28_log_pf; + [[maybe_unused]] amrex::Real net_dlog_pf_dT9 = dHe4_log_pf_dT9 + dMg24_log_pf_dT9 - dSi28_log_pf_dT9; + + amrex::Real ln_set_rate{0.0}; + amrex::Real dln_set_rate_dT9{0.0}; + amrex::Real set_rate{0.0}; + + // ReacLib set derived from st08r + ln_set_rate = 32.902724006057724 + -131.4900751873663 * tfactors.T9i; + + ln_set_rate += net_log_pf; + + if constexpr (std::is_same_v) { + dln_set_rate_dT9 = 131.4900751873663 * tfactors.T9i * tfactors.T9i; + + dln_set_rate_dT9 += net_dlog_pf_dT9; + } + + // avoid underflows by zeroing rates in [0.0, 1.e-100] + ln_set_rate = std::max(ln_set_rate, -230.0); + set_rate = std::exp(ln_set_rate); + rate += set_rate; + if constexpr (std::is_same_v) { + if (ln_set_rate > -230.0_rt) { + drate_dT += set_rate * dln_set_rate_dT9 * 1.0e-9_rt; + } + } + + // ReacLib set derived from st08r + ln_set_rate = -25.68644599394228 + -128.6942751873663 * tfactors.T9i + 21.3721 * tfactors.T913i + 37.7649 * tfactors.T913 + + -4.10635 * tfactors.T9 + 0.249618 * tfactors.T953; + + ln_set_rate += net_log_pf; + + if constexpr (std::is_same_v) { + dln_set_rate_dT9 = 128.6942751873663 * tfactors.T9i * tfactors.T9i + -(1.0/3.0) * 21.3721 * tfactors.T943i + (1.0/3.0) * 37.7649 * tfactors.T923i + + -4.10635 + (5.0/3.0) * 0.249618 * tfactors.T923; + + dln_set_rate_dT9 += net_dlog_pf_dT9; + } + + // avoid underflows by zeroing rates in [0.0, 1.e-100] + ln_set_rate = std::max(ln_set_rate, -230.0); + set_rate = std::exp(ln_set_rate); + rate += set_rate; + if constexpr (std::is_same_v) { + if (ln_set_rate > -230.0_rt) { + drate_dT += set_rate * dln_set_rate_dT9 * 1.0e-9_rt; + } + } + + rate_eval.screened_rates(k_Si28_to_He4_Mg24_derived) = rate; + if constexpr (std::is_same_v) { + rate_eval.dscreened_rates_dT(k_Si28_to_He4_Mg24_derived) = drate_dT; + } + } + + template + AMREX_GPU_DEVICE AMREX_INLINE + void rate_P29_to_p_Si28_derived(T& rate_eval, const tf_t& tfactors, [[maybe_unused]] part_fun::pf_cache_t& pf_cache) { + + // P29 --> p + Si28 + + amrex::Real rate{}, drate_dT{}; + // Evaluate partition function terms + + amrex::Real p_log_pf, dp_log_pf_dT9; + + // setting p log(partition function) to 0.0 by default, independent of T + p_log_pf = 0.0_rt; + dp_log_pf_dT9 = 0.0_rt; + + amrex::Real P29_log_pf, dP29_log_pf_dT9; + + // interpolating P29 partition function + get_partition_function_cached(P29, tfactors.T9, pf_cache, P29_log_pf, dP29_log_pf_dT9); + + amrex::Real Si28_log_pf, dSi28_log_pf_dT9; + + // interpolating Si28 partition function + get_partition_function_cached(Si28, tfactors.T9, pf_cache, Si28_log_pf, dSi28_log_pf_dT9); + + amrex::Real net_log_pf = p_log_pf + Si28_log_pf - P29_log_pf; + [[maybe_unused]] amrex::Real net_dlog_pf_dT9 = dp_log_pf_dT9 + dSi28_log_pf_dT9 - dP29_log_pf_dT9; + + amrex::Real ln_set_rate{0.0}; + amrex::Real dln_set_rate_dT9{0.0}; + amrex::Real set_rate{0.0}; + + // ReacLib set derived from il10n + ln_set_rate = 39.156867542086886 + -31.90051818093998 * tfactors.T9i + -23.8173 * tfactors.T913i + 7.08203 * tfactors.T913 + + -1.44753 * tfactors.T9 + 0.0804296 * tfactors.T953 + 0.833333 * tfactors.lnT9; + + ln_set_rate += net_log_pf; + + if constexpr (std::is_same_v) { + dln_set_rate_dT9 = 31.90051818093998 * tfactors.T9i * tfactors.T9i + -(1.0/3.0) * -23.8173 * tfactors.T943i + (1.0/3.0) * 7.08203 * tfactors.T923i + + -1.44753 + (5.0/3.0) * 0.0804296 * tfactors.T923 + 0.833333 * tfactors.T9i; + + dln_set_rate_dT9 += net_dlog_pf_dT9; + } + + // avoid underflows by zeroing rates in [0.0, 1.e-100] + ln_set_rate = std::max(ln_set_rate, -230.0); + set_rate = std::exp(ln_set_rate); + rate += set_rate; + if constexpr (std::is_same_v) { + if (ln_set_rate > -230.0_rt) { + drate_dT += set_rate * dln_set_rate_dT9 * 1.0e-9_rt; + } + } + + // ReacLib set derived from il10r + ln_set_rate = 28.71871754208689 + -36.04283818093998 * tfactors.T9i; + + ln_set_rate += net_log_pf; + + if constexpr (std::is_same_v) { + dln_set_rate_dT9 = 36.04283818093998 * tfactors.T9i * tfactors.T9i; + + dln_set_rate_dT9 += net_dlog_pf_dT9; + } + + // avoid underflows by zeroing rates in [0.0, 1.e-100] + ln_set_rate = std::max(ln_set_rate, -230.0); + set_rate = std::exp(ln_set_rate); + rate += set_rate; + if constexpr (std::is_same_v) { + if (ln_set_rate > -230.0_rt) { + drate_dT += set_rate * dln_set_rate_dT9 * 1.0e-9_rt; + } + } + + rate_eval.screened_rates(k_P29_to_p_Si28_derived) = rate; + if constexpr (std::is_same_v) { + rate_eval.dscreened_rates_dT(k_P29_to_p_Si28_derived) = drate_dT; + } + } + + template + AMREX_GPU_DEVICE AMREX_INLINE + void rate_P31_to_p_Si30_derived(T& rate_eval, const tf_t& tfactors, [[maybe_unused]] part_fun::pf_cache_t& pf_cache) { + + // P31 --> p + Si30 + + amrex::Real rate{}, drate_dT{}; + // Evaluate partition function terms + + amrex::Real Si30_log_pf, dSi30_log_pf_dT9; + + // interpolating Si30 partition function + get_partition_function_cached(Si30, tfactors.T9, pf_cache, Si30_log_pf, dSi30_log_pf_dT9); + + amrex::Real p_log_pf, dp_log_pf_dT9; + + // setting p log(partition function) to 0.0 by default, independent of T + p_log_pf = 0.0_rt; + dp_log_pf_dT9 = 0.0_rt; + + amrex::Real P31_log_pf, dP31_log_pf_dT9; + + // interpolating P31 partition function + get_partition_function_cached(P31, tfactors.T9, pf_cache, P31_log_pf, dP31_log_pf_dT9); + + amrex::Real net_log_pf = p_log_pf + Si30_log_pf - P31_log_pf; + [[maybe_unused]] amrex::Real net_dlog_pf_dT9 = dp_log_pf_dT9 + dSi30_log_pf_dT9 - dP31_log_pf_dT9; + + amrex::Real ln_set_rate{0.0}; + amrex::Real dln_set_rate_dT9{0.0}; + amrex::Real set_rate{0.0}; + + // ReacLib set derived from de20r + ln_set_rate = 35.352341431948254 + -91.31403689784659 * tfactors.T9i + + 0.3809 * tfactors.lnT9; + + ln_set_rate += net_log_pf; + + if constexpr (std::is_same_v) { + dln_set_rate_dT9 = 91.31403689784659 * tfactors.T9i * tfactors.T9i + + 0.3809 * tfactors.T9i; + + dln_set_rate_dT9 += net_dlog_pf_dT9; + } + + // avoid underflows by zeroing rates in [0.0, 1.e-100] + ln_set_rate = std::max(ln_set_rate, -230.0); + set_rate = std::exp(ln_set_rate); + rate += set_rate; + if constexpr (std::is_same_v) { + if (ln_set_rate > -230.0_rt) { + drate_dT += set_rate * dln_set_rate_dT9 * 1.0e-9_rt; + } + } + + // ReacLib set derived from de20r + ln_set_rate = 31.780501431948256 + -89.85529689784659 * tfactors.T9i + + 2.7883 * tfactors.lnT9; + + ln_set_rate += net_log_pf; + + if constexpr (std::is_same_v) { + dln_set_rate_dT9 = 89.85529689784659 * tfactors.T9i * tfactors.T9i + + 2.7883 * tfactors.T9i; + + dln_set_rate_dT9 += net_dlog_pf_dT9; + } + + // avoid underflows by zeroing rates in [0.0, 1.e-100] + ln_set_rate = std::max(ln_set_rate, -230.0); + set_rate = std::exp(ln_set_rate); + rate += set_rate; + if constexpr (std::is_same_v) { + if (ln_set_rate > -230.0_rt) { + drate_dT += set_rate * dln_set_rate_dT9 * 1.0e-9_rt; + } + } + + // ReacLib set derived from de20r + ln_set_rate = -311.28315856805176 + -85.80625689784658 * tfactors.T9i + + -77.047 * tfactors.lnT9; + + ln_set_rate += net_log_pf; + + if constexpr (std::is_same_v) { + dln_set_rate_dT9 = 85.80625689784658 * tfactors.T9i * tfactors.T9i + + -77.047 * tfactors.T9i; + + dln_set_rate_dT9 += net_dlog_pf_dT9; + } + + // avoid underflows by zeroing rates in [0.0, 1.e-100] + ln_set_rate = std::max(ln_set_rate, -230.0); + set_rate = std::exp(ln_set_rate); + rate += set_rate; + if constexpr (std::is_same_v) { + if (ln_set_rate > -230.0_rt) { + drate_dT += set_rate * dln_set_rate_dT9 * 1.0e-9_rt; + } + } + + // ReacLib set derived from de20r + ln_set_rate = 18.740761431948258 + -85.92472689784658 * tfactors.T9i + + 6.49034 * tfactors.lnT9; + + ln_set_rate += net_log_pf; + + if constexpr (std::is_same_v) { + dln_set_rate_dT9 = 85.92472689784658 * tfactors.T9i * tfactors.T9i + + 6.49034 * tfactors.T9i; + + dln_set_rate_dT9 += net_dlog_pf_dT9; + } + + // avoid underflows by zeroing rates in [0.0, 1.e-100] + ln_set_rate = std::max(ln_set_rate, -230.0); + set_rate = std::exp(ln_set_rate); + rate += set_rate; + if constexpr (std::is_same_v) { + if (ln_set_rate > -230.0_rt) { + drate_dT += set_rate * dln_set_rate_dT9 * 1.0e-9_rt; + } + } + + // ReacLib set derived from de20r + ln_set_rate = 4.063041431948257 + -85.61824789784659 * tfactors.T9i + + 2.8033099999999997 * tfactors.lnT9; + + ln_set_rate += net_log_pf; + + if constexpr (std::is_same_v) { + dln_set_rate_dT9 = 85.61824789784659 * tfactors.T9i * tfactors.T9i + + 2.8033099999999997 * tfactors.T9i; + + dln_set_rate_dT9 += net_dlog_pf_dT9; + } + + // avoid underflows by zeroing rates in [0.0, 1.e-100] + ln_set_rate = std::max(ln_set_rate, -230.0); + set_rate = std::exp(ln_set_rate); + rate += set_rate; + if constexpr (std::is_same_v) { + if (ln_set_rate > -230.0_rt) { + drate_dT += set_rate * dln_set_rate_dT9 * 1.0e-9_rt; + } + } + + // ReacLib set derived from de20r + ln_set_rate = -1115.3571585680518 + -180.5498868978466 * tfactors.T9i + + -895.258 * tfactors.lnT9; + + ln_set_rate += net_log_pf; + + if constexpr (std::is_same_v) { + dln_set_rate_dT9 = 180.5498868978466 * tfactors.T9i * tfactors.T9i + + -895.258 * tfactors.T9i; + + dln_set_rate_dT9 += net_dlog_pf_dT9; + } + + // avoid underflows by zeroing rates in [0.0, 1.e-100] + ln_set_rate = std::max(ln_set_rate, -230.0); + set_rate = std::exp(ln_set_rate); + rate += set_rate; + if constexpr (std::is_same_v) { + if (ln_set_rate > -230.0_rt) { + drate_dT += set_rate * dln_set_rate_dT9 * 1.0e-9_rt; + } + } + + // ReacLib set derived from de20r + ln_set_rate = 32.94828143194825 + -90.26261689784658 * tfactors.T9i + + -0.0708200000000001 * tfactors.lnT9; + + ln_set_rate += net_log_pf; + + if constexpr (std::is_same_v) { + dln_set_rate_dT9 = 90.26261689784658 * tfactors.T9i * tfactors.T9i + + -0.0708200000000001 * tfactors.T9i; + + dln_set_rate_dT9 += net_dlog_pf_dT9; + } + + // avoid underflows by zeroing rates in [0.0, 1.e-100] + ln_set_rate = std::max(ln_set_rate, -230.0); + set_rate = std::exp(ln_set_rate); + rate += set_rate; + if constexpr (std::is_same_v) { + if (ln_set_rate > -230.0_rt) { + drate_dT += set_rate * dln_set_rate_dT9 * 1.0e-9_rt; + } + } + + // ReacLib set derived from de20r + ln_set_rate = -11.876558568051745 + -85.26592089784658 * tfactors.T9i + + -0.12839 * tfactors.lnT9; + + ln_set_rate += net_log_pf; + + if constexpr (std::is_same_v) { + dln_set_rate_dT9 = 85.26592089784658 * tfactors.T9i * tfactors.T9i + + -0.12839 * tfactors.T9i; + + dln_set_rate_dT9 += net_dlog_pf_dT9; + } + + // avoid underflows by zeroing rates in [0.0, 1.e-100] + ln_set_rate = std::max(ln_set_rate, -230.0); + set_rate = std::exp(ln_set_rate); + rate += set_rate; + if constexpr (std::is_same_v) { + if (ln_set_rate > -230.0_rt) { + drate_dT += set_rate * dln_set_rate_dT9 * 1.0e-9_rt; + } + } + + rate_eval.screened_rates(k_P31_to_p_Si30_derived) = rate; + if constexpr (std::is_same_v) { + rate_eval.dscreened_rates_dT(k_P31_to_p_Si30_derived) = drate_dT; + } + } + + template + AMREX_GPU_DEVICE AMREX_INLINE + void rate_P31_to_He4_Al27_derived(T& rate_eval, const tf_t& tfactors, [[maybe_unused]] part_fun::pf_cache_t& pf_cache) { + + // P31 --> He4 + Al27 + + amrex::Real rate{}, drate_dT{}; + // Evaluate partition function terms + + amrex::Real He4_log_pf, dHe4_log_pf_dT9; + + // setting He4 log(partition function) to 0.0 by default, independent of T + He4_log_pf = 0.0_rt; + dHe4_log_pf_dT9 = 0.0_rt; + + amrex::Real Al27_log_pf, dAl27_log_pf_dT9; + + // interpolating Al27 partition function + get_partition_function_cached(Al27, tfactors.T9, pf_cache, Al27_log_pf, dAl27_log_pf_dT9); + + amrex::Real P31_log_pf, dP31_log_pf_dT9; + + // interpolating P31 partition function + get_partition_function_cached(P31, tfactors.T9, pf_cache, P31_log_pf, dP31_log_pf_dT9); + + amrex::Real net_log_pf = He4_log_pf + Al27_log_pf - P31_log_pf; + [[maybe_unused]] amrex::Real net_dlog_pf_dT9 = dHe4_log_pf_dT9 + dAl27_log_pf_dT9 - dP31_log_pf_dT9; + + amrex::Real ln_set_rate{0.0}; + amrex::Real dln_set_rate_dT9{0.0}; + amrex::Real set_rate{0.0}; + + // ReacLib set derived from ths8r + ln_set_rate = 73.21877134266595 + -112.19944704325766 * tfactors.T9i + -56.5351 * tfactors.T913i + -0.896208 * tfactors.T913 + + -1.72024 * tfactors.T9 + 0.185409 * tfactors.T953 + 0.833333 * tfactors.lnT9; + + ln_set_rate += net_log_pf; + + if constexpr (std::is_same_v) { + dln_set_rate_dT9 = 112.19944704325766 * tfactors.T9i * tfactors.T9i + -(1.0/3.0) * -56.5351 * tfactors.T943i + (1.0/3.0) * -0.896208 * tfactors.T923i + + -1.72024 + (5.0/3.0) * 0.185409 * tfactors.T923 + 0.833333 * tfactors.T9i; + + dln_set_rate_dT9 += net_dlog_pf_dT9; + } + + // avoid underflows by zeroing rates in [0.0, 1.e-100] + ln_set_rate = std::max(ln_set_rate, -230.0); + set_rate = std::exp(ln_set_rate); + rate += set_rate; + if constexpr (std::is_same_v) { + if (ln_set_rate > -230.0_rt) { + drate_dT += set_rate * dln_set_rate_dT9 * 1.0e-9_rt; + } + } + + rate_eval.screened_rates(k_P31_to_He4_Al27_derived) = rate; + if constexpr (std::is_same_v) { + rate_eval.dscreened_rates_dT(k_P31_to_He4_Al27_derived) = drate_dT; + } + } + + template + AMREX_GPU_DEVICE AMREX_INLINE + void rate_S30_to_p_P29_derived(T& rate_eval, const tf_t& tfactors, [[maybe_unused]] part_fun::pf_cache_t& pf_cache) { + + // S30 --> p + P29 + + amrex::Real rate{}, drate_dT{}; + // Evaluate partition function terms + + amrex::Real S30_log_pf, dS30_log_pf_dT9; + + // interpolating S30 partition function + get_partition_function_cached(S30, tfactors.T9, pf_cache, S30_log_pf, dS30_log_pf_dT9); + + amrex::Real p_log_pf, dp_log_pf_dT9; + + // setting p log(partition function) to 0.0 by default, independent of T + p_log_pf = 0.0_rt; + dp_log_pf_dT9 = 0.0_rt; + + amrex::Real P29_log_pf, dP29_log_pf_dT9; + + // interpolating P29 partition function + get_partition_function_cached(P29, tfactors.T9, pf_cache, P29_log_pf, dP29_log_pf_dT9); + + amrex::Real net_log_pf = p_log_pf + P29_log_pf - S30_log_pf; + [[maybe_unused]] amrex::Real net_dlog_pf_dT9 = dp_log_pf_dT9 + dP29_log_pf_dT9 - dS30_log_pf_dT9; + + amrex::Real ln_set_rate{0.0}; + amrex::Real dln_set_rate_dT9{0.0}; + amrex::Real set_rate{0.0}; + + // ReacLib set derived from il10r + ln_set_rate = -1.6327732225774767 + -54.72612338903181 * tfactors.T9i + 8.48834 * tfactors.T913i + 25.65 * tfactors.T913 + + -3.79773 * tfactors.T9 + 0.320391 * tfactors.T953; + + ln_set_rate += net_log_pf; + + if constexpr (std::is_same_v) { + dln_set_rate_dT9 = 54.72612338903181 * tfactors.T9i * tfactors.T9i + -(1.0/3.0) * 8.48834 * tfactors.T943i + (1.0/3.0) * 25.65 * tfactors.T923i + + -3.79773 + (5.0/3.0) * 0.320391 * tfactors.T923; + + dln_set_rate_dT9 += net_dlog_pf_dT9; + } + + // avoid underflows by zeroing rates in [0.0, 1.e-100] + ln_set_rate = std::max(ln_set_rate, -230.0); + set_rate = std::exp(ln_set_rate); + rate += set_rate; + if constexpr (std::is_same_v) { + if (ln_set_rate > -230.0_rt) { + drate_dT += set_rate * dln_set_rate_dT9 * 1.0e-9_rt; + } + } + + // ReacLib set derived from il10n + ln_set_rate = 45.34032677742252 + -51.00674338903181 * tfactors.T9i + -25.6007 * tfactors.T913i + + -2.0 * tfactors.T953 + 0.833333 * tfactors.lnT9; + + ln_set_rate += net_log_pf; + + if constexpr (std::is_same_v) { + dln_set_rate_dT9 = 51.00674338903181 * tfactors.T9i * tfactors.T9i + -(1.0/3.0) * -25.6007 * tfactors.T943i + + (5.0/3.0) * -2.0 * tfactors.T923 + 0.833333 * tfactors.T9i; + + dln_set_rate_dT9 += net_dlog_pf_dT9; + } + + // avoid underflows by zeroing rates in [0.0, 1.e-100] + ln_set_rate = std::max(ln_set_rate, -230.0); + set_rate = std::exp(ln_set_rate); + rate += set_rate; + if constexpr (std::is_same_v) { + if (ln_set_rate > -230.0_rt) { + drate_dT += set_rate * dln_set_rate_dT9 * 1.0e-9_rt; + } + } + + rate_eval.screened_rates(k_S30_to_p_P29_derived) = rate; + if constexpr (std::is_same_v) { + rate_eval.dscreened_rates_dT(k_S30_to_p_P29_derived) = drate_dT; + } + } + + template + AMREX_GPU_DEVICE AMREX_INLINE + void rate_S32_to_p_P31_derived(T& rate_eval, const tf_t& tfactors, [[maybe_unused]] part_fun::pf_cache_t& pf_cache) { + + // S32 --> p + P31 + + amrex::Real rate{}, drate_dT{}; + // Evaluate partition function terms + + amrex::Real p_log_pf, dp_log_pf_dT9; + + // setting p log(partition function) to 0.0 by default, independent of T + p_log_pf = 0.0_rt; + dp_log_pf_dT9 = 0.0_rt; + + amrex::Real S32_log_pf, dS32_log_pf_dT9; + + // interpolating S32 partition function + get_partition_function_cached(S32, tfactors.T9, pf_cache, S32_log_pf, dS32_log_pf_dT9); + + amrex::Real P31_log_pf, dP31_log_pf_dT9; + + // interpolating P31 partition function + get_partition_function_cached(P31, tfactors.T9, pf_cache, P31_log_pf, dP31_log_pf_dT9); + + amrex::Real net_log_pf = p_log_pf + P31_log_pf - S32_log_pf; + [[maybe_unused]] amrex::Real net_dlog_pf_dT9 = dp_log_pf_dT9 + dP31_log_pf_dT9 - dS32_log_pf_dT9; + + amrex::Real ln_set_rate{0.0}; + amrex::Real dln_set_rate_dT9{0.0}; + amrex::Real set_rate{0.0}; + + // ReacLib set derived from il10r + ln_set_rate = 25.192389422303183 + -106.63906812813134 * tfactors.T9i + 8.09341 * tfactors.T913 + + -0.615971 * tfactors.T9 + 0.031159 * tfactors.T953; + + ln_set_rate += net_log_pf; + + if constexpr (std::is_same_v) { + dln_set_rate_dT9 = 106.63906812813134 * tfactors.T9i * tfactors.T9i + (1.0/3.0) * 8.09341 * tfactors.T923i + + -0.615971 + (5.0/3.0) * 0.031159 * tfactors.T923; + + dln_set_rate_dT9 += net_dlog_pf_dT9; + } + + // avoid underflows by zeroing rates in [0.0, 1.e-100] + ln_set_rate = std::max(ln_set_rate, -230.0); + set_rate = std::exp(ln_set_rate); + rate += set_rate; + if constexpr (std::is_same_v) { + if (ln_set_rate > -230.0_rt) { + drate_dT += set_rate * dln_set_rate_dT9 * 1.0e-9_rt; + } + } + + // ReacLib set derived from il10r + ln_set_rate = 21.702443422303183 + -105.12160812813134 * tfactors.T9i; + + ln_set_rate += net_log_pf; + + if constexpr (std::is_same_v) { + dln_set_rate_dT9 = 105.12160812813134 * tfactors.T9i * tfactors.T9i; + + dln_set_rate_dT9 += net_dlog_pf_dT9; + } + + // avoid underflows by zeroing rates in [0.0, 1.e-100] + ln_set_rate = std::max(ln_set_rate, -230.0); + set_rate = std::exp(ln_set_rate); + rate += set_rate; + if constexpr (std::is_same_v) { + if (ln_set_rate > -230.0_rt) { + drate_dT += set_rate * dln_set_rate_dT9 * 1.0e-9_rt; + } + } + + // ReacLib set derived from il10n + ln_set_rate = 43.630433422303184 + -102.86202812813134 * tfactors.T9i + -25.3278 * tfactors.T913i + 6.4931 * tfactors.T913 + + -9.27513 * tfactors.T9 + -0.610439 * tfactors.T953 + 0.833333 * tfactors.lnT9; + + ln_set_rate += net_log_pf; + + if constexpr (std::is_same_v) { + dln_set_rate_dT9 = 102.86202812813134 * tfactors.T9i * tfactors.T9i + -(1.0/3.0) * -25.3278 * tfactors.T943i + (1.0/3.0) * 6.4931 * tfactors.T923i + + -9.27513 + (5.0/3.0) * -0.610439 * tfactors.T923 + 0.833333 * tfactors.T9i; + + dln_set_rate_dT9 += net_dlog_pf_dT9; + } + + // avoid underflows by zeroing rates in [0.0, 1.e-100] + ln_set_rate = std::max(ln_set_rate, -230.0); + set_rate = std::exp(ln_set_rate); + rate += set_rate; + if constexpr (std::is_same_v) { + if (ln_set_rate > -230.0_rt) { + drate_dT += set_rate * dln_set_rate_dT9 * 1.0e-9_rt; + } + } + + rate_eval.screened_rates(k_S32_to_p_P31_derived) = rate; + if constexpr (std::is_same_v) { + rate_eval.dscreened_rates_dT(k_S32_to_p_P31_derived) = drate_dT; + } + } + + template + AMREX_GPU_DEVICE AMREX_INLINE + void rate_S32_to_He4_Si28_derived(T& rate_eval, const tf_t& tfactors, [[maybe_unused]] part_fun::pf_cache_t& pf_cache) { + + // S32 --> He4 + Si28 + + amrex::Real rate{}, drate_dT{}; + // Evaluate partition function terms + + amrex::Real He4_log_pf, dHe4_log_pf_dT9; + + // setting He4 log(partition function) to 0.0 by default, independent of T + He4_log_pf = 0.0_rt; + dHe4_log_pf_dT9 = 0.0_rt; + + amrex::Real S32_log_pf, dS32_log_pf_dT9; + + // interpolating S32 partition function + get_partition_function_cached(S32, tfactors.T9, pf_cache, S32_log_pf, dS32_log_pf_dT9); + + amrex::Real Si28_log_pf, dSi28_log_pf_dT9; + + // interpolating Si28 partition function + get_partition_function_cached(Si28, tfactors.T9, pf_cache, Si28_log_pf, dSi28_log_pf_dT9); + + amrex::Real net_log_pf = He4_log_pf + Si28_log_pf - S32_log_pf; + [[maybe_unused]] amrex::Real net_dlog_pf_dT9 = dHe4_log_pf_dT9 + dSi28_log_pf_dT9 - dS32_log_pf_dT9; + + amrex::Real ln_set_rate{0.0}; + amrex::Real dln_set_rate_dT9{0.0}; + amrex::Real set_rate{0.0}; + + // ReacLib set derived from ths8r + ln_set_rate = 72.8147025119699 + -80.62419844573513 * tfactors.T9i + -59.4896 * tfactors.T913i + 4.47205 * tfactors.T913 + + -4.78989 * tfactors.T9 + 0.557201 * tfactors.T953 + 0.833333 * tfactors.lnT9; + + ln_set_rate += net_log_pf; + + if constexpr (std::is_same_v) { + dln_set_rate_dT9 = 80.62419844573513 * tfactors.T9i * tfactors.T9i + -(1.0/3.0) * -59.4896 * tfactors.T943i + (1.0/3.0) * 4.47205 * tfactors.T923i + + -4.78989 + (5.0/3.0) * 0.557201 * tfactors.T923 + 0.833333 * tfactors.T9i; + + dln_set_rate_dT9 += net_dlog_pf_dT9; + } + + // avoid underflows by zeroing rates in [0.0, 1.e-100] + ln_set_rate = std::max(ln_set_rate, -230.0); + set_rate = std::exp(ln_set_rate); + rate += set_rate; + if constexpr (std::is_same_v) { + if (ln_set_rate > -230.0_rt) { + drate_dT += set_rate * dln_set_rate_dT9 * 1.0e-9_rt; + } + } + + rate_eval.screened_rates(k_S32_to_He4_Si28_derived) = rate; + if constexpr (std::is_same_v) { + rate_eval.dscreened_rates_dT(k_S32_to_He4_Si28_derived) = drate_dT; + } + } + + template + AMREX_GPU_DEVICE AMREX_INLINE + void rate_S34_to_He4_Si30_derived(T& rate_eval, const tf_t& tfactors, [[maybe_unused]] part_fun::pf_cache_t& pf_cache) { + + // S34 --> He4 + Si30 + + amrex::Real rate{}, drate_dT{}; + // Evaluate partition function terms + + amrex::Real Si30_log_pf, dSi30_log_pf_dT9; + + // interpolating Si30 partition function + get_partition_function_cached(Si30, tfactors.T9, pf_cache, Si30_log_pf, dSi30_log_pf_dT9); + + amrex::Real He4_log_pf, dHe4_log_pf_dT9; + + // setting He4 log(partition function) to 0.0 by default, independent of T + He4_log_pf = 0.0_rt; + dHe4_log_pf_dT9 = 0.0_rt; + + amrex::Real S34_log_pf, dS34_log_pf_dT9; + + // interpolating S34 partition function + get_partition_function_cached(S34, tfactors.T9, pf_cache, S34_log_pf, dS34_log_pf_dT9); + + amrex::Real net_log_pf = He4_log_pf + Si30_log_pf - S34_log_pf; + [[maybe_unused]] amrex::Real net_dlog_pf_dT9 = dHe4_log_pf_dT9 + dSi30_log_pf_dT9 - dS34_log_pf_dT9; + + amrex::Real ln_set_rate{0.0}; + amrex::Real dln_set_rate_dT9{0.0}; + amrex::Real set_rate{0.0}; + + // ReacLib set derived from ths8r + ln_set_rate = 72.40691003335057 + -91.95006887812762 * tfactors.T9i + -59.6559 * tfactors.T913i + 3.70141 * tfactors.T913 + + -3.12537 * tfactors.T9 + 0.307626 * tfactors.T953 + 0.833333 * tfactors.lnT9; + + ln_set_rate += net_log_pf; + + if constexpr (std::is_same_v) { + dln_set_rate_dT9 = 91.95006887812762 * tfactors.T9i * tfactors.T9i + -(1.0/3.0) * -59.6559 * tfactors.T943i + (1.0/3.0) * 3.70141 * tfactors.T923i + + -3.12537 + (5.0/3.0) * 0.307626 * tfactors.T923 + 0.833333 * tfactors.T9i; + + dln_set_rate_dT9 += net_dlog_pf_dT9; + } + + // avoid underflows by zeroing rates in [0.0, 1.e-100] + ln_set_rate = std::max(ln_set_rate, -230.0); + set_rate = std::exp(ln_set_rate); + rate += set_rate; + if constexpr (std::is_same_v) { + if (ln_set_rate > -230.0_rt) { + drate_dT += set_rate * dln_set_rate_dT9 * 1.0e-9_rt; + } + } + + rate_eval.screened_rates(k_S34_to_He4_Si30_derived) = rate; + if constexpr (std::is_same_v) { + rate_eval.dscreened_rates_dT(k_S34_to_He4_Si30_derived) = drate_dT; + } + } + + template + AMREX_GPU_DEVICE AMREX_INLINE + void rate_Cl33_to_p_S32_derived(T& rate_eval, const tf_t& tfactors, [[maybe_unused]] part_fun::pf_cache_t& pf_cache) { + + // Cl33 --> p + S32 + + amrex::Real rate{}, drate_dT{}; + // Evaluate partition function terms + + amrex::Real Cl33_log_pf, dCl33_log_pf_dT9; + + // interpolating Cl33 partition function + get_partition_function_cached(Cl33, tfactors.T9, pf_cache, Cl33_log_pf, dCl33_log_pf_dT9); + + amrex::Real p_log_pf, dp_log_pf_dT9; + + // setting p log(partition function) to 0.0 by default, independent of T + p_log_pf = 0.0_rt; + dp_log_pf_dT9 = 0.0_rt; + + amrex::Real S32_log_pf, dS32_log_pf_dT9; + + // interpolating S32 partition function + get_partition_function_cached(S32, tfactors.T9, pf_cache, S32_log_pf, dS32_log_pf_dT9); + + amrex::Real net_log_pf = p_log_pf + S32_log_pf - Cl33_log_pf; + [[maybe_unused]] amrex::Real net_dlog_pf_dT9 = dp_log_pf_dT9 + dS32_log_pf_dT9 - dCl33_log_pf_dT9; + + amrex::Real ln_set_rate{0.0}; + amrex::Real dln_set_rate_dT9{0.0}; + amrex::Real set_rate{0.0}; + + // ReacLib set derived from il10n + ln_set_rate = 74.7623172827099 + -26.42040054322257 * tfactors.T9i + -29.7741 * tfactors.T913i + -87.4473 * tfactors.T913 + + 182.189 * tfactors.T9 + -128.625 * tfactors.T953 + 0.833333 * tfactors.lnT9; + + ln_set_rate += net_log_pf; + + if constexpr (std::is_same_v) { + dln_set_rate_dT9 = 26.42040054322257 * tfactors.T9i * tfactors.T9i + -(1.0/3.0) * -29.7741 * tfactors.T943i + (1.0/3.0) * -87.4473 * tfactors.T923i + + 182.189 + (5.0/3.0) * -128.625 * tfactors.T923 + 0.833333 * tfactors.T9i; + + dln_set_rate_dT9 += net_dlog_pf_dT9; + } + + // avoid underflows by zeroing rates in [0.0, 1.e-100] + ln_set_rate = std::max(ln_set_rate, -230.0); + set_rate = std::exp(ln_set_rate); + rate += set_rate; + if constexpr (std::is_same_v) { + if (ln_set_rate > -230.0_rt) { + drate_dT += set_rate * dln_set_rate_dT9 * 1.0e-9_rt; + } + } + + // ReacLib set derived from il10r + ln_set_rate = 91.6269172827099 + -29.424110543222568 * tfactors.T9i + -33.7204 * tfactors.T913i + -32.7355 * tfactors.T913 + + 3.92526 * tfactors.T9 + -0.250479 * tfactors.T953; + + ln_set_rate += net_log_pf; + + if constexpr (std::is_same_v) { + dln_set_rate_dT9 = 29.424110543222568 * tfactors.T9i * tfactors.T9i + -(1.0/3.0) * -33.7204 * tfactors.T943i + (1.0/3.0) * -32.7355 * tfactors.T923i + + 3.92526 + (5.0/3.0) * -0.250479 * tfactors.T923; + + dln_set_rate_dT9 += net_dlog_pf_dT9; + } + + // avoid underflows by zeroing rates in [0.0, 1.e-100] + ln_set_rate = std::max(ln_set_rate, -230.0); + set_rate = std::exp(ln_set_rate); + rate += set_rate; + if constexpr (std::is_same_v) { + if (ln_set_rate > -230.0_rt) { + drate_dT += set_rate * dln_set_rate_dT9 * 1.0e-9_rt; + } + } + + // ReacLib set derived from il10r + ln_set_rate = -4.945882717290097 + -27.29450754322257 * tfactors.T9i; + + ln_set_rate += net_log_pf; + + if constexpr (std::is_same_v) { + dln_set_rate_dT9 = 27.29450754322257 * tfactors.T9i * tfactors.T9i; + + dln_set_rate_dT9 += net_dlog_pf_dT9; + } + + // avoid underflows by zeroing rates in [0.0, 1.e-100] + ln_set_rate = std::max(ln_set_rate, -230.0); + set_rate = std::exp(ln_set_rate); + rate += set_rate; + if constexpr (std::is_same_v) { + if (ln_set_rate > -230.0_rt) { + drate_dT += set_rate * dln_set_rate_dT9 * 1.0e-9_rt; + } + } + + rate_eval.screened_rates(k_Cl33_to_p_S32_derived) = rate; + if constexpr (std::is_same_v) { + rate_eval.dscreened_rates_dT(k_Cl33_to_p_S32_derived) = drate_dT; + } + } + + template + AMREX_GPU_DEVICE AMREX_INLINE + void rate_Cl33_to_He4_P29_derived(T& rate_eval, const tf_t& tfactors, [[maybe_unused]] part_fun::pf_cache_t& pf_cache) { + + // Cl33 --> He4 + P29 + + amrex::Real rate{}, drate_dT{}; + // Evaluate partition function terms + + amrex::Real Cl33_log_pf, dCl33_log_pf_dT9; + + // interpolating Cl33 partition function + get_partition_function_cached(Cl33, tfactors.T9, pf_cache, Cl33_log_pf, dCl33_log_pf_dT9); + + amrex::Real He4_log_pf, dHe4_log_pf_dT9; + + // setting He4 log(partition function) to 0.0 by default, independent of T + He4_log_pf = 0.0_rt; + dHe4_log_pf_dT9 = 0.0_rt; + + amrex::Real P29_log_pf, dP29_log_pf_dT9; + + // interpolating P29 partition function + get_partition_function_cached(P29, tfactors.T9, pf_cache, P29_log_pf, dP29_log_pf_dT9); + + amrex::Real net_log_pf = He4_log_pf + P29_log_pf - Cl33_log_pf; + [[maybe_unused]] amrex::Real net_dlog_pf_dT9 = dHe4_log_pf_dT9 + dP29_log_pf_dT9 - dCl33_log_pf_dT9; + + amrex::Real ln_set_rate{0.0}; + amrex::Real dln_set_rate_dT9{0.0}; + amrex::Real set_rate{0.0}; + + // ReacLib set derived from ths8r + ln_set_rate = 66.20475225259291 + -75.14408080801772 * tfactors.T9i + -62.3802 * tfactors.T913i + 0.593062 * tfactors.T913 + + -1.14226 * tfactors.T9 + 0.0934776 * tfactors.T953 + 0.833333 * tfactors.lnT9; + + ln_set_rate += net_log_pf; + + if constexpr (std::is_same_v) { + dln_set_rate_dT9 = 75.14408080801772 * tfactors.T9i * tfactors.T9i + -(1.0/3.0) * -62.3802 * tfactors.T943i + (1.0/3.0) * 0.593062 * tfactors.T923i + + -1.14226 + (5.0/3.0) * 0.0934776 * tfactors.T923 + 0.833333 * tfactors.T9i; + + dln_set_rate_dT9 += net_dlog_pf_dT9; + } + + // avoid underflows by zeroing rates in [0.0, 1.e-100] + ln_set_rate = std::max(ln_set_rate, -230.0); + set_rate = std::exp(ln_set_rate); + rate += set_rate; + if constexpr (std::is_same_v) { + if (ln_set_rate > -230.0_rt) { + drate_dT += set_rate * dln_set_rate_dT9 * 1.0e-9_rt; + } + } + + rate_eval.screened_rates(k_Cl33_to_He4_P29_derived) = rate; + if constexpr (std::is_same_v) { + rate_eval.dscreened_rates_dT(k_Cl33_to_He4_P29_derived) = drate_dT; + } + } + + template + AMREX_GPU_DEVICE AMREX_INLINE + void rate_Cl35_to_p_S34_derived(T& rate_eval, const tf_t& tfactors, [[maybe_unused]] part_fun::pf_cache_t& pf_cache) { + + // Cl35 --> p + S34 + + amrex::Real rate{}, drate_dT{}; + // Evaluate partition function terms + + amrex::Real p_log_pf, dp_log_pf_dT9; + + // setting p log(partition function) to 0.0 by default, independent of T + p_log_pf = 0.0_rt; + dp_log_pf_dT9 = 0.0_rt; + + amrex::Real Cl35_log_pf, dCl35_log_pf_dT9; + + // interpolating Cl35 partition function + get_partition_function_cached(Cl35, tfactors.T9, pf_cache, Cl35_log_pf, dCl35_log_pf_dT9); + + amrex::Real S34_log_pf, dS34_log_pf_dT9; + + // interpolating S34 partition function + get_partition_function_cached(S34, tfactors.T9, pf_cache, S34_log_pf, dS34_log_pf_dT9); + + amrex::Real net_log_pf = p_log_pf + S34_log_pf - Cl35_log_pf; + [[maybe_unused]] amrex::Real net_dlog_pf_dT9 = dp_log_pf_dT9 + dS34_log_pf_dT9 - dCl35_log_pf_dT9; + + amrex::Real ln_set_rate{0.0}; + amrex::Real dln_set_rate_dT9{0.0}; + amrex::Real set_rate{0.0}; + + // ReacLib set derived from se19r + ln_set_rate = 14.594869555370497 + -75.95634244116214 * tfactors.T9i; + + ln_set_rate += net_log_pf; + + if constexpr (std::is_same_v) { + dln_set_rate_dT9 = 75.95634244116214 * tfactors.T9i * tfactors.T9i; + + dln_set_rate_dT9 += net_dlog_pf_dT9; + } + + // avoid underflows by zeroing rates in [0.0, 1.e-100] + ln_set_rate = std::max(ln_set_rate, -230.0); + set_rate = std::exp(ln_set_rate); + rate += set_rate; + if constexpr (std::is_same_v) { + if (ln_set_rate > -230.0_rt) { + drate_dT += set_rate * dln_set_rate_dT9 * 1.0e-9_rt; + } + } + + // ReacLib set derived from se19r + ln_set_rate = 30.549759555370496 + -79.68602244116214 * tfactors.T9i; + + ln_set_rate += net_log_pf; + + if constexpr (std::is_same_v) { + dln_set_rate_dT9 = 79.68602244116214 * tfactors.T9i * tfactors.T9i; + + dln_set_rate_dT9 += net_dlog_pf_dT9; + } + + // avoid underflows by zeroing rates in [0.0, 1.e-100] + ln_set_rate = std::max(ln_set_rate, -230.0); + set_rate = std::exp(ln_set_rate); + rate += set_rate; + if constexpr (std::is_same_v) { + if (ln_set_rate > -230.0_rt) { + drate_dT += set_rate * dln_set_rate_dT9 * 1.0e-9_rt; + } + } + + // ReacLib set derived from se19r + ln_set_rate = 7.417229555370497 + -75.33433244116213 * tfactors.T9i; + + ln_set_rate += net_log_pf; + + if constexpr (std::is_same_v) { + dln_set_rate_dT9 = 75.33433244116213 * tfactors.T9i * tfactors.T9i; + + dln_set_rate_dT9 += net_dlog_pf_dT9; + } + + // avoid underflows by zeroing rates in [0.0, 1.e-100] + ln_set_rate = std::max(ln_set_rate, -230.0); + set_rate = std::exp(ln_set_rate); + rate += set_rate; + if constexpr (std::is_same_v) { + if (ln_set_rate > -230.0_rt) { + drate_dT += set_rate * dln_set_rate_dT9 * 1.0e-9_rt; + } + } + + // ReacLib set derived from se19r + ln_set_rate = 29.296749555370496 + -79.03617244116214 * tfactors.T9i; + + ln_set_rate += net_log_pf; + + if constexpr (std::is_same_v) { + dln_set_rate_dT9 = 79.03617244116214 * tfactors.T9i * tfactors.T9i; + + dln_set_rate_dT9 += net_dlog_pf_dT9; + } + + // avoid underflows by zeroing rates in [0.0, 1.e-100] + ln_set_rate = std::max(ln_set_rate, -230.0); + set_rate = std::exp(ln_set_rate); + rate += set_rate; + if constexpr (std::is_same_v) { + if (ln_set_rate > -230.0_rt) { + drate_dT += set_rate * dln_set_rate_dT9 * 1.0e-9_rt; + } + } + + // ReacLib set derived from se19r + ln_set_rate = 4.358729555370498 + -75.10224244116213 * tfactors.T9i; + + ln_set_rate += net_log_pf; + + if constexpr (std::is_same_v) { + dln_set_rate_dT9 = 75.10224244116213 * tfactors.T9i * tfactors.T9i; + + dln_set_rate_dT9 += net_dlog_pf_dT9; + } + + // avoid underflows by zeroing rates in [0.0, 1.e-100] + ln_set_rate = std::max(ln_set_rate, -230.0); + set_rate = std::exp(ln_set_rate); + rate += set_rate; + if constexpr (std::is_same_v) { + if (ln_set_rate > -230.0_rt) { + drate_dT += set_rate * dln_set_rate_dT9 * 1.0e-9_rt; + } + } + + // ReacLib set derived from se19r + ln_set_rate = 28.101369555370496 + -78.57199244116214 * tfactors.T9i; + + ln_set_rate += net_log_pf; + + if constexpr (std::is_same_v) { + dln_set_rate_dT9 = 78.57199244116214 * tfactors.T9i * tfactors.T9i; + + dln_set_rate_dT9 += net_dlog_pf_dT9; + } + + // avoid underflows by zeroing rates in [0.0, 1.e-100] + ln_set_rate = std::max(ln_set_rate, -230.0); + set_rate = std::exp(ln_set_rate); + rate += set_rate; + if constexpr (std::is_same_v) { + if (ln_set_rate > -230.0_rt) { + drate_dT += set_rate * dln_set_rate_dT9 * 1.0e-9_rt; + } + } + + // ReacLib set derived from se19r + ln_set_rate = 22.729819555370497 + -77.09822244116214 * tfactors.T9i; + + ln_set_rate += net_log_pf; + + if constexpr (std::is_same_v) { + dln_set_rate_dT9 = 77.09822244116214 * tfactors.T9i * tfactors.T9i; + + dln_set_rate_dT9 += net_dlog_pf_dT9; + } + + // avoid underflows by zeroing rates in [0.0, 1.e-100] + ln_set_rate = std::max(ln_set_rate, -230.0); + set_rate = std::exp(ln_set_rate); + rate += set_rate; + if constexpr (std::is_same_v) { + if (ln_set_rate > -230.0_rt) { + drate_dT += set_rate * dln_set_rate_dT9 * 1.0e-9_rt; + } + } + + // ReacLib set derived from se19r + ln_set_rate = -37.72937044462951 + -101.61919244116214 * tfactors.T9i + 454.53 * tfactors.T913i + -375.557 * tfactors.T913 + + 12.6533 * tfactors.T9 + -0.408677 * tfactors.T953 + 246.618 * tfactors.lnT9; + + ln_set_rate += net_log_pf; + + if constexpr (std::is_same_v) { + dln_set_rate_dT9 = 101.61919244116214 * tfactors.T9i * tfactors.T9i + -(1.0/3.0) * 454.53 * tfactors.T943i + (1.0/3.0) * -375.557 * tfactors.T923i + + 12.6533 + (5.0/3.0) * -0.408677 * tfactors.T923 + 246.618 * tfactors.T9i; + + dln_set_rate_dT9 += net_dlog_pf_dT9; + } + + // avoid underflows by zeroing rates in [0.0, 1.e-100] + ln_set_rate = std::max(ln_set_rate, -230.0); + set_rate = std::exp(ln_set_rate); + rate += set_rate; + if constexpr (std::is_same_v) { + if (ln_set_rate > -230.0_rt) { + drate_dT += set_rate * dln_set_rate_dT9 * 1.0e-9_rt; + } + } + + rate_eval.screened_rates(k_Cl35_to_p_S34_derived) = rate; + if constexpr (std::is_same_v) { + rate_eval.dscreened_rates_dT(k_Cl35_to_p_S34_derived) = drate_dT; + } + } + + template + AMREX_GPU_DEVICE AMREX_INLINE + void rate_Cl35_to_He4_P31_derived(T& rate_eval, const tf_t& tfactors, [[maybe_unused]] part_fun::pf_cache_t& pf_cache) { + + // Cl35 --> He4 + P31 + + amrex::Real rate{}, drate_dT{}; + // Evaluate partition function terms + + amrex::Real He4_log_pf, dHe4_log_pf_dT9; + + // setting He4 log(partition function) to 0.0 by default, independent of T + He4_log_pf = 0.0_rt; + dHe4_log_pf_dT9 = 0.0_rt; + + amrex::Real Cl35_log_pf, dCl35_log_pf_dT9; + + // interpolating Cl35 partition function + get_partition_function_cached(Cl35, tfactors.T9, pf_cache, Cl35_log_pf, dCl35_log_pf_dT9); + + amrex::Real P31_log_pf, dP31_log_pf_dT9; + + // interpolating P31 partition function + get_partition_function_cached(P31, tfactors.T9, pf_cache, P31_log_pf, dP31_log_pf_dT9); + + amrex::Real net_log_pf = He4_log_pf + P31_log_pf - Cl35_log_pf; + [[maybe_unused]] amrex::Real net_dlog_pf_dT9 = dHe4_log_pf_dT9 + dP31_log_pf_dT9 - dCl35_log_pf_dT9; + + amrex::Real ln_set_rate{0.0}; + amrex::Real dln_set_rate_dT9{0.0}; + amrex::Real set_rate{0.0}; + + // ReacLib set derived from ths8r + ln_set_rate = 74.6695981567728 + -81.20727442147438 * tfactors.T9i + -62.5433 * tfactors.T913i + -2.95026 * tfactors.T913 + + -0.89652 * tfactors.T9 + 0.0774126 * tfactors.T953 + 0.833333 * tfactors.lnT9; + + ln_set_rate += net_log_pf; + + if constexpr (std::is_same_v) { + dln_set_rate_dT9 = 81.20727442147438 * tfactors.T9i * tfactors.T9i + -(1.0/3.0) * -62.5433 * tfactors.T943i + (1.0/3.0) * -2.95026 * tfactors.T923i + + -0.89652 + (5.0/3.0) * 0.0774126 * tfactors.T923 + 0.833333 * tfactors.T9i; + + dln_set_rate_dT9 += net_dlog_pf_dT9; + } + + // avoid underflows by zeroing rates in [0.0, 1.e-100] + ln_set_rate = std::max(ln_set_rate, -230.0); + set_rate = std::exp(ln_set_rate); + rate += set_rate; + if constexpr (std::is_same_v) { + if (ln_set_rate > -230.0_rt) { + drate_dT += set_rate * dln_set_rate_dT9 * 1.0e-9_rt; + } + } + + rate_eval.screened_rates(k_Cl35_to_He4_P31_derived) = rate; + if constexpr (std::is_same_v) { + rate_eval.dscreened_rates_dT(k_Cl35_to_He4_P31_derived) = drate_dT; + } + } + + template + AMREX_GPU_DEVICE AMREX_INLINE + void rate_Ar34_to_p_Cl33_derived(T& rate_eval, const tf_t& tfactors, [[maybe_unused]] part_fun::pf_cache_t& pf_cache) { + + // Ar34 --> p + Cl33 + + amrex::Real rate{}, drate_dT{}; + // Evaluate partition function terms + + amrex::Real Cl33_log_pf, dCl33_log_pf_dT9; + + // interpolating Cl33 partition function + get_partition_function_cached(Cl33, tfactors.T9, pf_cache, Cl33_log_pf, dCl33_log_pf_dT9); + + amrex::Real p_log_pf, dp_log_pf_dT9; + + // setting p log(partition function) to 0.0 by default, independent of T + p_log_pf = 0.0_rt; + dp_log_pf_dT9 = 0.0_rt; + + amrex::Real Ar34_log_pf, dAr34_log_pf_dT9; + + // interpolating Ar34 partition function + get_partition_function_cached(Ar34, tfactors.T9, pf_cache, Ar34_log_pf, dAr34_log_pf_dT9); + + amrex::Real net_log_pf = p_log_pf + Cl33_log_pf - Ar34_log_pf; + [[maybe_unused]] amrex::Real net_dlog_pf_dT9 = dp_log_pf_dT9 + dCl33_log_pf_dT9 - dAr34_log_pf_dT9; + + amrex::Real ln_set_rate{0.0}; + amrex::Real dln_set_rate_dT9{0.0}; + amrex::Real set_rate{0.0}; + + // ReacLib set derived from ths8r + ln_set_rate = 60.19620056329993 + -54.12302068534123 * tfactors.T9i + -27.8815 * tfactors.T913i + -3.18731 * tfactors.T913 + + -1.76254 * tfactors.T9 + 0.264735 * tfactors.T953 + 0.833333 * tfactors.lnT9; + + ln_set_rate += net_log_pf; + + if constexpr (std::is_same_v) { + dln_set_rate_dT9 = 54.12302068534123 * tfactors.T9i * tfactors.T9i + -(1.0/3.0) * -27.8815 * tfactors.T943i + (1.0/3.0) * -3.18731 * tfactors.T923i + + -1.76254 + (5.0/3.0) * 0.264735 * tfactors.T923 + 0.833333 * tfactors.T9i; + + dln_set_rate_dT9 += net_dlog_pf_dT9; + } + + // avoid underflows by zeroing rates in [0.0, 1.e-100] + ln_set_rate = std::max(ln_set_rate, -230.0); + set_rate = std::exp(ln_set_rate); + rate += set_rate; + if constexpr (std::is_same_v) { + if (ln_set_rate > -230.0_rt) { + drate_dT += set_rate * dln_set_rate_dT9 * 1.0e-9_rt; + } + } + + rate_eval.screened_rates(k_Ar34_to_p_Cl33_derived) = rate; + if constexpr (std::is_same_v) { + rate_eval.dscreened_rates_dT(k_Ar34_to_p_Cl33_derived) = drate_dT; + } + } + + template + AMREX_GPU_DEVICE AMREX_INLINE + void rate_Ar34_to_He4_S30_derived(T& rate_eval, const tf_t& tfactors, [[maybe_unused]] part_fun::pf_cache_t& pf_cache) { + + // Ar34 --> He4 + S30 + + amrex::Real rate{}, drate_dT{}; + // Evaluate partition function terms + + amrex::Real S30_log_pf, dS30_log_pf_dT9; + + // interpolating S30 partition function + get_partition_function_cached(S30, tfactors.T9, pf_cache, S30_log_pf, dS30_log_pf_dT9); + + amrex::Real He4_log_pf, dHe4_log_pf_dT9; + + // setting He4 log(partition function) to 0.0 by default, independent of T + He4_log_pf = 0.0_rt; + dHe4_log_pf_dT9 = 0.0_rt; + + amrex::Real Ar34_log_pf, dAr34_log_pf_dT9; + + // interpolating Ar34 partition function + get_partition_function_cached(Ar34, tfactors.T9, pf_cache, Ar34_log_pf, dAr34_log_pf_dT9); + + amrex::Real net_log_pf = He4_log_pf + S30_log_pf - Ar34_log_pf; + [[maybe_unused]] amrex::Real net_dlog_pf_dT9 = dHe4_log_pf_dT9 + dS30_log_pf_dT9 - dAr34_log_pf_dT9; + + amrex::Real ln_set_rate{0.0}; + amrex::Real dln_set_rate_dT9{0.0}; + amrex::Real set_rate{0.0}; + + // ReacLib set derived from ths8r + ln_set_rate = 68.01882603847031 + -78.26035810433434 * tfactors.T9i + -65.211 * tfactors.T913i + -1.41447 * tfactors.T913 + + -0.542976 * tfactors.T9 + 0.0211165 * tfactors.T953 + 0.833333 * tfactors.lnT9; + + ln_set_rate += net_log_pf; + + if constexpr (std::is_same_v) { + dln_set_rate_dT9 = 78.26035810433434 * tfactors.T9i * tfactors.T9i + -(1.0/3.0) * -65.211 * tfactors.T943i + (1.0/3.0) * -1.41447 * tfactors.T923i + + -0.542976 + (5.0/3.0) * 0.0211165 * tfactors.T923 + 0.833333 * tfactors.T9i; + + dln_set_rate_dT9 += net_dlog_pf_dT9; + } + + // avoid underflows by zeroing rates in [0.0, 1.e-100] + ln_set_rate = std::max(ln_set_rate, -230.0); + set_rate = std::exp(ln_set_rate); + rate += set_rate; + if constexpr (std::is_same_v) { + if (ln_set_rate > -230.0_rt) { + drate_dT += set_rate * dln_set_rate_dT9 * 1.0e-9_rt; + } + } + + rate_eval.screened_rates(k_Ar34_to_He4_S30_derived) = rate; + if constexpr (std::is_same_v) { + rate_eval.dscreened_rates_dT(k_Ar34_to_He4_S30_derived) = drate_dT; + } + } + + template + AMREX_GPU_DEVICE AMREX_INLINE + void rate_Ar36_to_p_Cl35_derived(T& rate_eval, const tf_t& tfactors, [[maybe_unused]] part_fun::pf_cache_t& pf_cache) { + + // Ar36 --> p + Cl35 + + amrex::Real rate{}, drate_dT{}; + // Evaluate partition function terms + + amrex::Real p_log_pf, dp_log_pf_dT9; + + // setting p log(partition function) to 0.0 by default, independent of T + p_log_pf = 0.0_rt; + dp_log_pf_dT9 = 0.0_rt; + + amrex::Real Cl35_log_pf, dCl35_log_pf_dT9; + + // interpolating Cl35 partition function + get_partition_function_cached(Cl35, tfactors.T9, pf_cache, Cl35_log_pf, dCl35_log_pf_dT9); + + amrex::Real Ar36_log_pf, dAr36_log_pf_dT9; + + // interpolating Ar36 partition function + get_partition_function_cached(Ar36, tfactors.T9, pf_cache, Ar36_log_pf, dAr36_log_pf_dT9); + + amrex::Real net_log_pf = p_log_pf + Cl35_log_pf - Ar36_log_pf; + [[maybe_unused]] amrex::Real net_dlog_pf_dT9 = dp_log_pf_dT9 + dCl35_log_pf_dT9 - dAr36_log_pf_dT9; + + amrex::Real ln_set_rate{0.0}; + amrex::Real dln_set_rate_dT9{0.0}; + amrex::Real set_rate{0.0}; + + // ReacLib set derived from il10r + ln_set_rate = -17.455589662878502 + -99.28409012589869 * tfactors.T9i; + + ln_set_rate += net_log_pf; + + if constexpr (std::is_same_v) { + dln_set_rate_dT9 = 99.28409012589869 * tfactors.T9i * tfactors.T9i; + + dln_set_rate_dT9 += net_dlog_pf_dT9; + } + + // avoid underflows by zeroing rates in [0.0, 1.e-100] + ln_set_rate = std::max(ln_set_rate, -230.0); + set_rate = std::exp(ln_set_rate); + rate += set_rate; + if constexpr (std::is_same_v) { + if (ln_set_rate > -230.0_rt) { + drate_dT += set_rate * dln_set_rate_dT9 * 1.0e-9_rt; + } + } + + // ReacLib set derived from il10n + ln_set_rate = 60.7561103371215 + -98.71943912589869 * tfactors.T9i + -27.8971 * tfactors.T913i + -16.2304 * tfactors.T913 + + 35.255 * tfactors.T9 + -25.8411 * tfactors.T953 + 0.833333 * tfactors.lnT9; + + ln_set_rate += net_log_pf; + + if constexpr (std::is_same_v) { + dln_set_rate_dT9 = 98.71943912589869 * tfactors.T9i * tfactors.T9i + -(1.0/3.0) * -27.8971 * tfactors.T943i + (1.0/3.0) * -16.2304 * tfactors.T923i + + 35.255 + (5.0/3.0) * -25.8411 * tfactors.T923 + 0.833333 * tfactors.T9i; + + dln_set_rate_dT9 += net_dlog_pf_dT9; + } + + // avoid underflows by zeroing rates in [0.0, 1.e-100] + ln_set_rate = std::max(ln_set_rate, -230.0); + set_rate = std::exp(ln_set_rate); + rate += set_rate; + if constexpr (std::is_same_v) { + if (ln_set_rate > -230.0_rt) { + drate_dT += set_rate * dln_set_rate_dT9 * 1.0e-9_rt; + } + } + + // ReacLib set derived from il10r + ln_set_rate = 17.222320337121502 + -102.37035912589869 * tfactors.T9i + 18.0179 * tfactors.T913 + + -2.86304 * tfactors.T9 + 0.250854 * tfactors.T953; + + ln_set_rate += net_log_pf; + + if constexpr (std::is_same_v) { + dln_set_rate_dT9 = 102.37035912589869 * tfactors.T9i * tfactors.T9i + (1.0/3.0) * 18.0179 * tfactors.T923i + + -2.86304 + (5.0/3.0) * 0.250854 * tfactors.T923; + + dln_set_rate_dT9 += net_dlog_pf_dT9; + } + + // avoid underflows by zeroing rates in [0.0, 1.e-100] + ln_set_rate = std::max(ln_set_rate, -230.0); + set_rate = std::exp(ln_set_rate); + rate += set_rate; + if constexpr (std::is_same_v) { + if (ln_set_rate > -230.0_rt) { + drate_dT += set_rate * dln_set_rate_dT9 * 1.0e-9_rt; + } + } + + // ReacLib set derived from il10r + ln_set_rate = 16.0363703371215 + -100.7293991258987 * tfactors.T9i; + + ln_set_rate += net_log_pf; + + if constexpr (std::is_same_v) { + dln_set_rate_dT9 = 100.7293991258987 * tfactors.T9i * tfactors.T9i; + + dln_set_rate_dT9 += net_dlog_pf_dT9; + } + + // avoid underflows by zeroing rates in [0.0, 1.e-100] + ln_set_rate = std::max(ln_set_rate, -230.0); + set_rate = std::exp(ln_set_rate); + rate += set_rate; + if constexpr (std::is_same_v) { + if (ln_set_rate > -230.0_rt) { + drate_dT += set_rate * dln_set_rate_dT9 * 1.0e-9_rt; + } + } + + rate_eval.screened_rates(k_Ar36_to_p_Cl35_derived) = rate; + if constexpr (std::is_same_v) { + rate_eval.dscreened_rates_dT(k_Ar36_to_p_Cl35_derived) = drate_dT; + } + } + + template + AMREX_GPU_DEVICE AMREX_INLINE + void rate_Ar36_to_He4_S32_derived(T& rate_eval, const tf_t& tfactors, [[maybe_unused]] part_fun::pf_cache_t& pf_cache) { + + // Ar36 --> He4 + S32 + + amrex::Real rate{}, drate_dT{}; + // Evaluate partition function terms + + amrex::Real He4_log_pf, dHe4_log_pf_dT9; + + // setting He4 log(partition function) to 0.0 by default, independent of T + He4_log_pf = 0.0_rt; + dHe4_log_pf_dT9 = 0.0_rt; + + amrex::Real S32_log_pf, dS32_log_pf_dT9; + + // interpolating S32 partition function + get_partition_function_cached(S32, tfactors.T9, pf_cache, S32_log_pf, dS32_log_pf_dT9); + + amrex::Real Ar36_log_pf, dAr36_log_pf_dT9; + + // interpolating Ar36 partition function + get_partition_function_cached(Ar36, tfactors.T9, pf_cache, Ar36_log_pf, dAr36_log_pf_dT9); + + amrex::Real net_log_pf = He4_log_pf + S32_log_pf - Ar36_log_pf; + [[maybe_unused]] amrex::Real net_dlog_pf_dT9 = dHe4_log_pf_dT9 + dS32_log_pf_dT9 - dAr36_log_pf_dT9; + + amrex::Real ln_set_rate{0.0}; + amrex::Real dln_set_rate_dT9{0.0}; + amrex::Real set_rate{0.0}; + + // ReacLib set derived from ths8r + ln_set_rate = 73.81807507159112 + -77.06468541928012 * tfactors.T9i + -65.3709 * tfactors.T913i + 5.68294 * tfactors.T913 + + -5.00388 * tfactors.T9 + 0.571407 * tfactors.T953 + 0.833333 * tfactors.lnT9; + + ln_set_rate += net_log_pf; + + if constexpr (std::is_same_v) { + dln_set_rate_dT9 = 77.06468541928012 * tfactors.T9i * tfactors.T9i + -(1.0/3.0) * -65.3709 * tfactors.T943i + (1.0/3.0) * 5.68294 * tfactors.T923i + + -5.00388 + (5.0/3.0) * 0.571407 * tfactors.T923 + 0.833333 * tfactors.T9i; + + dln_set_rate_dT9 += net_dlog_pf_dT9; + } + + // avoid underflows by zeroing rates in [0.0, 1.e-100] + ln_set_rate = std::max(ln_set_rate, -230.0); + set_rate = std::exp(ln_set_rate); + rate += set_rate; + if constexpr (std::is_same_v) { + if (ln_set_rate > -230.0_rt) { + drate_dT += set_rate * dln_set_rate_dT9 * 1.0e-9_rt; + } + } + + rate_eval.screened_rates(k_Ar36_to_He4_S32_derived) = rate; + if constexpr (std::is_same_v) { + rate_eval.dscreened_rates_dT(k_Ar36_to_He4_S32_derived) = drate_dT; + } + } + + template + AMREX_GPU_DEVICE AMREX_INLINE + void rate_Ar38_to_He4_S34_derived(T& rate_eval, const tf_t& tfactors, [[maybe_unused]] part_fun::pf_cache_t& pf_cache) { + + // Ar38 --> He4 + S34 + + amrex::Real rate{}, drate_dT{}; + // Evaluate partition function terms + + amrex::Real Ar38_log_pf, dAr38_log_pf_dT9; + + // interpolating Ar38 partition function + get_partition_function_cached(Ar38, tfactors.T9, pf_cache, Ar38_log_pf, dAr38_log_pf_dT9); + + amrex::Real He4_log_pf, dHe4_log_pf_dT9; + + // setting He4 log(partition function) to 0.0 by default, independent of T + He4_log_pf = 0.0_rt; + dHe4_log_pf_dT9 = 0.0_rt; + + amrex::Real S34_log_pf, dS34_log_pf_dT9; + + // interpolating S34 partition function + get_partition_function_cached(S34, tfactors.T9, pf_cache, S34_log_pf, dS34_log_pf_dT9); + + amrex::Real net_log_pf = He4_log_pf + S34_log_pf - Ar38_log_pf; + [[maybe_unused]] amrex::Real net_dlog_pf_dT9 = dHe4_log_pf_dT9 + dS34_log_pf_dT9 - dAr38_log_pf_dT9; + + amrex::Real ln_set_rate{0.0}; + amrex::Real dln_set_rate_dT9{0.0}; + amrex::Real set_rate{0.0}; + + // ReacLib set derived from cn18 + ln_set_rate = 253.65592843778612 + -101.61351496454262 * tfactors.T9i + 635.332 * tfactors.T913i + -902.05 * tfactors.T913 + + 42.5623 * tfactors.T9 + -2.08434 * tfactors.T953 + 478.85 * tfactors.lnT9; + + ln_set_rate += net_log_pf; + + if constexpr (std::is_same_v) { + dln_set_rate_dT9 = 101.61351496454262 * tfactors.T9i * tfactors.T9i + -(1.0/3.0) * 635.332 * tfactors.T943i + (1.0/3.0) * -902.05 * tfactors.T923i + + 42.5623 + (5.0/3.0) * -2.08434 * tfactors.T923 + 478.85 * tfactors.T9i; + + dln_set_rate_dT9 += net_dlog_pf_dT9; + } + + // avoid underflows by zeroing rates in [0.0, 1.e-100] + ln_set_rate = std::max(ln_set_rate, -230.0); + set_rate = std::exp(ln_set_rate); + rate += set_rate; + if constexpr (std::is_same_v) { + if (ln_set_rate > -230.0_rt) { + drate_dT += set_rate * dln_set_rate_dT9 * 1.0e-9_rt; + } + } + + rate_eval.screened_rates(k_Ar38_to_He4_S34_derived) = rate; + if constexpr (std::is_same_v) { + rate_eval.dscreened_rates_dT(k_Ar38_to_He4_S34_derived) = drate_dT; + } + } + + template + AMREX_GPU_DEVICE AMREX_INLINE + void rate_K37_to_p_Ar36_derived(T& rate_eval, const tf_t& tfactors, [[maybe_unused]] part_fun::pf_cache_t& pf_cache) { + + // K37 --> p + Ar36 + + amrex::Real rate{}, drate_dT{}; + // Evaluate partition function terms + + amrex::Real p_log_pf, dp_log_pf_dT9; + + // setting p log(partition function) to 0.0 by default, independent of T + p_log_pf = 0.0_rt; + dp_log_pf_dT9 = 0.0_rt; + + amrex::Real K37_log_pf, dK37_log_pf_dT9; + + // interpolating K37 partition function + get_partition_function_cached(K37, tfactors.T9, pf_cache, K37_log_pf, dK37_log_pf_dT9); + + amrex::Real Ar36_log_pf, dAr36_log_pf_dT9; + + // interpolating Ar36 partition function + get_partition_function_cached(Ar36, tfactors.T9, pf_cache, Ar36_log_pf, dAr36_log_pf_dT9); + + amrex::Real net_log_pf = p_log_pf + Ar36_log_pf - K37_log_pf; + [[maybe_unused]] amrex::Real net_dlog_pf_dT9 = dp_log_pf_dT9 + dAr36_log_pf_dT9 - dK37_log_pf_dT9; + + amrex::Real ln_set_rate{0.0}; + amrex::Real dln_set_rate_dT9{0.0}; + amrex::Real set_rate{0.0}; + + // ReacLib set derived from il10r + ln_set_rate = 25.48017518360185 + -30.537200136219777 * tfactors.T9i + 7.50962 * tfactors.T913 + + -1.68675 * tfactors.T9 + 0.189725 * tfactors.T953; + + ln_set_rate += net_log_pf; + + if constexpr (std::is_same_v) { + dln_set_rate_dT9 = 30.537200136219777 * tfactors.T9i * tfactors.T9i + (1.0/3.0) * 7.50962 * tfactors.T923i + + -1.68675 + (5.0/3.0) * 0.189725 * tfactors.T923; + + dln_set_rate_dT9 += net_dlog_pf_dT9; + } + + // avoid underflows by zeroing rates in [0.0, 1.e-100] + ln_set_rate = std::max(ln_set_rate, -230.0); + set_rate = std::exp(ln_set_rate); + rate += set_rate; + if constexpr (std::is_same_v) { + if (ln_set_rate > -230.0_rt) { + drate_dT += set_rate * dln_set_rate_dT9 * 1.0e-9_rt; + } + } + + // ReacLib set derived from il10r + ln_set_rate = 26.99508518360185 + -25.181990136219778 * tfactors.T9i; + + ln_set_rate += net_log_pf; + + if constexpr (std::is_same_v) { + dln_set_rate_dT9 = 25.181990136219778 * tfactors.T9i * tfactors.T9i; + + dln_set_rate_dT9 += net_dlog_pf_dT9; + } + + // avoid underflows by zeroing rates in [0.0, 1.e-100] + ln_set_rate = std::max(ln_set_rate, -230.0); + set_rate = std::exp(ln_set_rate); + rate += set_rate; + if constexpr (std::is_same_v) { + if (ln_set_rate > -230.0_rt) { + drate_dT += set_rate * dln_set_rate_dT9 * 1.0e-9_rt; + } + } + + // ReacLib set derived from il10n + ln_set_rate = 43.78969518360185 + -21.556890136219778 * tfactors.T9i + -28.9682 * tfactors.T913i + + -1.0 * tfactors.T953 + 0.833333 * tfactors.lnT9; + + ln_set_rate += net_log_pf; + + if constexpr (std::is_same_v) { + dln_set_rate_dT9 = 21.556890136219778 * tfactors.T9i * tfactors.T9i + -(1.0/3.0) * -28.9682 * tfactors.T943i + + (5.0/3.0) * -1.0 * tfactors.T923 + 0.833333 * tfactors.T9i; + + dln_set_rate_dT9 += net_dlog_pf_dT9; + } + + // avoid underflows by zeroing rates in [0.0, 1.e-100] + ln_set_rate = std::max(ln_set_rate, -230.0); + set_rate = std::exp(ln_set_rate); + rate += set_rate; + if constexpr (std::is_same_v) { + if (ln_set_rate > -230.0_rt) { + drate_dT += set_rate * dln_set_rate_dT9 * 1.0e-9_rt; + } + } + + rate_eval.screened_rates(k_K37_to_p_Ar36_derived) = rate; + if constexpr (std::is_same_v) { + rate_eval.dscreened_rates_dT(k_K37_to_p_Ar36_derived) = drate_dT; + } + } + + template + AMREX_GPU_DEVICE AMREX_INLINE + void rate_K37_to_He4_Cl33_derived(T& rate_eval, const tf_t& tfactors, [[maybe_unused]] part_fun::pf_cache_t& pf_cache) { + + // K37 --> He4 + Cl33 + + amrex::Real rate{}, drate_dT{}; + // Evaluate partition function terms + + amrex::Real Cl33_log_pf, dCl33_log_pf_dT9; + + // interpolating Cl33 partition function + get_partition_function_cached(Cl33, tfactors.T9, pf_cache, Cl33_log_pf, dCl33_log_pf_dT9); + + amrex::Real He4_log_pf, dHe4_log_pf_dT9; + + // setting He4 log(partition function) to 0.0 by default, independent of T + He4_log_pf = 0.0_rt; + dHe4_log_pf_dT9 = 0.0_rt; + + amrex::Real K37_log_pf, dK37_log_pf_dT9; + + // interpolating K37 partition function + get_partition_function_cached(K37, tfactors.T9, pf_cache, K37_log_pf, dK37_log_pf_dT9); + + amrex::Real net_log_pf = He4_log_pf + Cl33_log_pf - K37_log_pf; + [[maybe_unused]] amrex::Real net_dlog_pf_dT9 = dHe4_log_pf_dT9 + dCl33_log_pf_dT9 - dK37_log_pf_dT9; + + amrex::Real ln_set_rate{0.0}; + amrex::Real dln_set_rate_dT9{0.0}; + amrex::Real set_rate{0.0}; + + // ReacLib set derived from ths8r + ln_set_rate = 71.60805297248307 + -72.20117501230614 * tfactors.T9i + -68.1442 * tfactors.T913i + -2.72746 * tfactors.T913 + + -0.317537 * tfactors.T9 + 0.0162782 * tfactors.T953 + 0.833333 * tfactors.lnT9; + + ln_set_rate += net_log_pf; + + if constexpr (std::is_same_v) { + dln_set_rate_dT9 = 72.20117501230614 * tfactors.T9i * tfactors.T9i + -(1.0/3.0) * -68.1442 * tfactors.T943i + (1.0/3.0) * -2.72746 * tfactors.T923i + + -0.317537 + (5.0/3.0) * 0.0162782 * tfactors.T923 + 0.833333 * tfactors.T9i; + + dln_set_rate_dT9 += net_dlog_pf_dT9; + } + + // avoid underflows by zeroing rates in [0.0, 1.e-100] + ln_set_rate = std::max(ln_set_rate, -230.0); + set_rate = std::exp(ln_set_rate); + rate += set_rate; + if constexpr (std::is_same_v) { + if (ln_set_rate > -230.0_rt) { + drate_dT += set_rate * dln_set_rate_dT9 * 1.0e-9_rt; + } + } + + rate_eval.screened_rates(k_K37_to_He4_Cl33_derived) = rate; + if constexpr (std::is_same_v) { + rate_eval.dscreened_rates_dT(k_K37_to_He4_Cl33_derived) = drate_dT; + } + } + + template + AMREX_GPU_DEVICE AMREX_INLINE + void rate_K39_to_p_Ar38_derived(T& rate_eval, const tf_t& tfactors, [[maybe_unused]] part_fun::pf_cache_t& pf_cache) { + + // K39 --> p + Ar38 + + amrex::Real rate{}, drate_dT{}; + // Evaluate partition function terms + + amrex::Real Ar38_log_pf, dAr38_log_pf_dT9; + + // interpolating Ar38 partition function + get_partition_function_cached(Ar38, tfactors.T9, pf_cache, Ar38_log_pf, dAr38_log_pf_dT9); + + amrex::Real p_log_pf, dp_log_pf_dT9; + + // setting p log(partition function) to 0.0 by default, independent of T + p_log_pf = 0.0_rt; + dp_log_pf_dT9 = 0.0_rt; + + amrex::Real K39_log_pf, dK39_log_pf_dT9; + + // interpolating K39 partition function + get_partition_function_cached(K39, tfactors.T9, pf_cache, K39_log_pf, dK39_log_pf_dT9); + + amrex::Real net_log_pf = p_log_pf + Ar38_log_pf - K39_log_pf; + [[maybe_unused]] amrex::Real net_dlog_pf_dT9 = dp_log_pf_dT9 + dAr38_log_pf_dT9 - dK39_log_pf_dT9; + + amrex::Real ln_set_rate{0.0}; + amrex::Real dln_set_rate_dT9{0.0}; + amrex::Real set_rate{0.0}; + + // ReacLib set derived from ths8r + ln_set_rate = 57.583260221976474 + -74.05232999435097 * tfactors.T9i + -29.0021 * tfactors.T913i + -0.525968 * tfactors.T913 + + -1.94216 * tfactors.T9 + 0.267346 * tfactors.T953 + 0.833333 * tfactors.lnT9; + + ln_set_rate += net_log_pf; + + if constexpr (std::is_same_v) { + dln_set_rate_dT9 = 74.05232999435097 * tfactors.T9i * tfactors.T9i + -(1.0/3.0) * -29.0021 * tfactors.T943i + (1.0/3.0) * -0.525968 * tfactors.T923i + + -1.94216 + (5.0/3.0) * 0.267346 * tfactors.T923 + 0.833333 * tfactors.T9i; + + dln_set_rate_dT9 += net_dlog_pf_dT9; + } + + // avoid underflows by zeroing rates in [0.0, 1.e-100] + ln_set_rate = std::max(ln_set_rate, -230.0); + set_rate = std::exp(ln_set_rate); + rate += set_rate; + if constexpr (std::is_same_v) { + if (ln_set_rate > -230.0_rt) { + drate_dT += set_rate * dln_set_rate_dT9 * 1.0e-9_rt; + } + } + + rate_eval.screened_rates(k_K39_to_p_Ar38_derived) = rate; + if constexpr (std::is_same_v) { + rate_eval.dscreened_rates_dT(k_K39_to_p_Ar38_derived) = drate_dT; + } + } + + template + AMREX_GPU_DEVICE AMREX_INLINE + void rate_K39_to_He4_Cl35_derived(T& rate_eval, const tf_t& tfactors, [[maybe_unused]] part_fun::pf_cache_t& pf_cache) { + + // K39 --> He4 + Cl35 + + amrex::Real rate{}, drate_dT{}; + // Evaluate partition function terms + + amrex::Real He4_log_pf, dHe4_log_pf_dT9; + + // setting He4 log(partition function) to 0.0 by default, independent of T + He4_log_pf = 0.0_rt; + dHe4_log_pf_dT9 = 0.0_rt; + + amrex::Real Cl35_log_pf, dCl35_log_pf_dT9; + + // interpolating Cl35 partition function + get_partition_function_cached(Cl35, tfactors.T9, pf_cache, Cl35_log_pf, dCl35_log_pf_dT9); + + amrex::Real K39_log_pf, dK39_log_pf_dT9; + + // interpolating K39 partition function + get_partition_function_cached(K39, tfactors.T9, pf_cache, K39_log_pf, dK39_log_pf_dT9); + + amrex::Real net_log_pf = He4_log_pf + Cl35_log_pf - K39_log_pf; + [[maybe_unused]] amrex::Real net_dlog_pf_dT9 = dHe4_log_pf_dT9 + dCl35_log_pf_dT9 - dK39_log_pf_dT9; + + amrex::Real ln_set_rate{0.0}; + amrex::Real dln_set_rate_dT9{0.0}; + amrex::Real set_rate{0.0}; + + // ReacLib set derived from ths8r + ln_set_rate = 77.64945910439207 + -83.76815251770985 * tfactors.T9i + -68.2848 * tfactors.T913i + 0.0178545 * tfactors.T913 + + -2.06783 * tfactors.T9 + 0.199659 * tfactors.T953 + 0.833333 * tfactors.lnT9; + + ln_set_rate += net_log_pf; + + if constexpr (std::is_same_v) { + dln_set_rate_dT9 = 83.76815251770985 * tfactors.T9i * tfactors.T9i + -(1.0/3.0) * -68.2848 * tfactors.T943i + (1.0/3.0) * 0.0178545 * tfactors.T923i + + -2.06783 + (5.0/3.0) * 0.199659 * tfactors.T923 + 0.833333 * tfactors.T9i; + + dln_set_rate_dT9 += net_dlog_pf_dT9; + } + + // avoid underflows by zeroing rates in [0.0, 1.e-100] + ln_set_rate = std::max(ln_set_rate, -230.0); + set_rate = std::exp(ln_set_rate); + rate += set_rate; + if constexpr (std::is_same_v) { + if (ln_set_rate > -230.0_rt) { + drate_dT += set_rate * dln_set_rate_dT9 * 1.0e-9_rt; + } + } + + rate_eval.screened_rates(k_K39_to_He4_Cl35_derived) = rate; + if constexpr (std::is_same_v) { + rate_eval.dscreened_rates_dT(k_K39_to_He4_Cl35_derived) = drate_dT; + } + } + + template + AMREX_GPU_DEVICE AMREX_INLINE + void rate_Ca38_to_p_K37_derived(T& rate_eval, const tf_t& tfactors, [[maybe_unused]] part_fun::pf_cache_t& pf_cache) { + + // Ca38 --> p + K37 + + amrex::Real rate{}, drate_dT{}; + // Evaluate partition function terms + + amrex::Real p_log_pf, dp_log_pf_dT9; + + // setting p log(partition function) to 0.0 by default, independent of T + p_log_pf = 0.0_rt; + dp_log_pf_dT9 = 0.0_rt; + + amrex::Real K37_log_pf, dK37_log_pf_dT9; + + // interpolating K37 partition function + get_partition_function_cached(K37, tfactors.T9, pf_cache, K37_log_pf, dK37_log_pf_dT9); + + amrex::Real Ca38_log_pf, dCa38_log_pf_dT9; + + // interpolating Ca38 partition function + get_partition_function_cached(Ca38, tfactors.T9, pf_cache, Ca38_log_pf, dCa38_log_pf_dT9); + + amrex::Real net_log_pf = p_log_pf + K37_log_pf - Ca38_log_pf; + [[maybe_unused]] amrex::Real net_dlog_pf_dT9 = dp_log_pf_dT9 + dK37_log_pf_dT9 - dCa38_log_pf_dT9; + + amrex::Real ln_set_rate{0.0}; + amrex::Real dln_set_rate_dT9{0.0}; + amrex::Real set_rate{0.0}; + + // ReacLib set derived from ths8r + ln_set_rate = 61.28349410873902 + -52.76888946578814 * tfactors.T9i + -30.0596 * tfactors.T913i + -2.56332 * tfactors.T913 + + -2.026 * tfactors.T9 + 0.289027 * tfactors.T953 + 0.833333 * tfactors.lnT9; + + ln_set_rate += net_log_pf; + + if constexpr (std::is_same_v) { + dln_set_rate_dT9 = 52.76888946578814 * tfactors.T9i * tfactors.T9i + -(1.0/3.0) * -30.0596 * tfactors.T943i + (1.0/3.0) * -2.56332 * tfactors.T923i + + -2.026 + (5.0/3.0) * 0.289027 * tfactors.T923 + 0.833333 * tfactors.T9i; + + dln_set_rate_dT9 += net_dlog_pf_dT9; + } + + // avoid underflows by zeroing rates in [0.0, 1.e-100] + ln_set_rate = std::max(ln_set_rate, -230.0); + set_rate = std::exp(ln_set_rate); + rate += set_rate; + if constexpr (std::is_same_v) { + if (ln_set_rate > -230.0_rt) { + drate_dT += set_rate * dln_set_rate_dT9 * 1.0e-9_rt; + } + } + + rate_eval.screened_rates(k_Ca38_to_p_K37_derived) = rate; + if constexpr (std::is_same_v) { + rate_eval.dscreened_rates_dT(k_Ca38_to_p_K37_derived) = drate_dT; + } + } + + template + AMREX_GPU_DEVICE AMREX_INLINE + void rate_Ca38_to_He4_Ar34_derived(T& rate_eval, const tf_t& tfactors, [[maybe_unused]] part_fun::pf_cache_t& pf_cache) { + + // Ca38 --> He4 + Ar34 + + amrex::Real rate{}, drate_dT{}; + // Evaluate partition function terms + + amrex::Real He4_log_pf, dHe4_log_pf_dT9; + + // setting He4 log(partition function) to 0.0 by default, independent of T + He4_log_pf = 0.0_rt; + dHe4_log_pf_dT9 = 0.0_rt; + + amrex::Real Ar34_log_pf, dAr34_log_pf_dT9; + + // interpolating Ar34 partition function + get_partition_function_cached(Ar34, tfactors.T9, pf_cache, Ar34_log_pf, dAr34_log_pf_dT9); + + amrex::Real Ca38_log_pf, dCa38_log_pf_dT9; + + // interpolating Ca38 partition function + get_partition_function_cached(Ca38, tfactors.T9, pf_cache, Ca38_log_pf, dCa38_log_pf_dT9); + + amrex::Real net_log_pf = He4_log_pf + Ar34_log_pf - Ca38_log_pf; + [[maybe_unused]] amrex::Real net_dlog_pf_dT9 = dHe4_log_pf_dT9 + dAr34_log_pf_dT9 - dCa38_log_pf_dT9; + + amrex::Real ln_set_rate{0.0}; + amrex::Real dln_set_rate_dT9{0.0}; + amrex::Real set_rate{0.0}; + + // ReacLib set derived from ths8r + ln_set_rate = 73.80824651792216 + -70.84704379274585 * tfactors.T9i + -70.8666 * tfactors.T913i + -5.98563 * tfactors.T913 + + 0.582779 * tfactors.T9 + -0.093842 * tfactors.T953 + 0.833333 * tfactors.lnT9; + + ln_set_rate += net_log_pf; + + if constexpr (std::is_same_v) { + dln_set_rate_dT9 = 70.84704379274585 * tfactors.T9i * tfactors.T9i + -(1.0/3.0) * -70.8666 * tfactors.T943i + (1.0/3.0) * -5.98563 * tfactors.T923i + + 0.582779 + (5.0/3.0) * -0.093842 * tfactors.T923 + 0.833333 * tfactors.T9i; + + dln_set_rate_dT9 += net_dlog_pf_dT9; + } + + // avoid underflows by zeroing rates in [0.0, 1.e-100] + ln_set_rate = std::max(ln_set_rate, -230.0); + set_rate = std::exp(ln_set_rate); + rate += set_rate; + if constexpr (std::is_same_v) { + if (ln_set_rate > -230.0_rt) { + drate_dT += set_rate * dln_set_rate_dT9 * 1.0e-9_rt; + } + } + + rate_eval.screened_rates(k_Ca38_to_He4_Ar34_derived) = rate; + if constexpr (std::is_same_v) { + rate_eval.dscreened_rates_dT(k_Ca38_to_He4_Ar34_derived) = drate_dT; + } + } + + template + AMREX_GPU_DEVICE AMREX_INLINE + void rate_Ca40_to_p_K39_derived(T& rate_eval, const tf_t& tfactors, [[maybe_unused]] part_fun::pf_cache_t& pf_cache) { + + // Ca40 --> p + K39 + + amrex::Real rate{}, drate_dT{}; + // Evaluate partition function terms + + amrex::Real p_log_pf, dp_log_pf_dT9; + + // setting p log(partition function) to 0.0 by default, independent of T + p_log_pf = 0.0_rt; + dp_log_pf_dT9 = 0.0_rt; + + amrex::Real Ca40_log_pf, dCa40_log_pf_dT9; + + // interpolating Ca40 partition function + get_partition_function_cached(Ca40, tfactors.T9, pf_cache, Ca40_log_pf, dCa40_log_pf_dT9); + + amrex::Real K39_log_pf, dK39_log_pf_dT9; + + // interpolating K39 partition function + get_partition_function_cached(K39, tfactors.T9, pf_cache, K39_log_pf, dK39_log_pf_dT9); + + amrex::Real net_log_pf = p_log_pf + K39_log_pf - Ca40_log_pf; + [[maybe_unused]] amrex::Real net_dlog_pf_dT9 = dp_log_pf_dT9 + dK39_log_pf_dT9 - dCa40_log_pf_dT9; + + amrex::Real ln_set_rate{0.0}; + amrex::Real dln_set_rate_dT9{0.0}; + amrex::Real set_rate{0.0}; + + // ReacLib set derived from lo18r + ln_set_rate = 2786.453572485239 + -101.86683326322635 * tfactors.T9i + 802.18 * tfactors.T913i + -4010.27 * tfactors.T913 + + 1137.69 * tfactors.lnT9; + + ln_set_rate += net_log_pf; + + if constexpr (std::is_same_v) { + dln_set_rate_dT9 = 101.86683326322635 * tfactors.T9i * tfactors.T9i + -(1.0/3.0) * 802.18 * tfactors.T943i + (1.0/3.0) * -4010.27 * tfactors.T923i + + 1137.69 * tfactors.T9i; + + dln_set_rate_dT9 += net_dlog_pf_dT9; + } + + // avoid underflows by zeroing rates in [0.0, 1.e-100] + ln_set_rate = std::max(ln_set_rate, -230.0); + set_rate = std::exp(ln_set_rate); + rate += set_rate; + if constexpr (std::is_same_v) { + if (ln_set_rate > -230.0_rt) { + drate_dT += set_rate * dln_set_rate_dT9 * 1.0e-9_rt; + } + } + + // ReacLib set derived from lo18r + ln_set_rate = 613.1725724852387 + -109.20919326322635 * tfactors.T9i + 641.844 * tfactors.T913i + -1248.49 * tfactors.T913 + + 566.426 * tfactors.lnT9; + + ln_set_rate += net_log_pf; + + if constexpr (std::is_same_v) { + dln_set_rate_dT9 = 109.20919326322635 * tfactors.T9i * tfactors.T9i + -(1.0/3.0) * 641.844 * tfactors.T943i + (1.0/3.0) * -1248.49 * tfactors.T923i + + 566.426 * tfactors.T9i; + + dln_set_rate_dT9 += net_dlog_pf_dT9; + } + + // avoid underflows by zeroing rates in [0.0, 1.e-100] + ln_set_rate = std::max(ln_set_rate, -230.0); + set_rate = std::exp(ln_set_rate); + rate += set_rate; + if constexpr (std::is_same_v) { + if (ln_set_rate > -230.0_rt) { + drate_dT += set_rate * dln_set_rate_dT9 * 1.0e-9_rt; + } + } + + // ReacLib set derived from lo18r + ln_set_rate = 127.32557248523868 + -98.30957326322635 * tfactors.T9i + 41.1723 * tfactors.T913i + -149.299 * tfactors.T913 + + 10.5229 * tfactors.T9 + -0.68208 * tfactors.T953 + 60.7367 * tfactors.lnT9; + + ln_set_rate += net_log_pf; + + if constexpr (std::is_same_v) { + dln_set_rate_dT9 = 98.30957326322635 * tfactors.T9i * tfactors.T9i + -(1.0/3.0) * 41.1723 * tfactors.T943i + (1.0/3.0) * -149.299 * tfactors.T923i + + 10.5229 + (5.0/3.0) * -0.68208 * tfactors.T923 + 60.7367 * tfactors.T9i; + + dln_set_rate_dT9 += net_dlog_pf_dT9; + } + + // avoid underflows by zeroing rates in [0.0, 1.e-100] + ln_set_rate = std::max(ln_set_rate, -230.0); + set_rate = std::exp(ln_set_rate); + rate += set_rate; + if constexpr (std::is_same_v) { + if (ln_set_rate > -230.0_rt) { + drate_dT += set_rate * dln_set_rate_dT9 * 1.0e-9_rt; + } + } + + rate_eval.screened_rates(k_Ca40_to_p_K39_derived) = rate; + if constexpr (std::is_same_v) { + rate_eval.dscreened_rates_dT(k_Ca40_to_p_K39_derived) = drate_dT; + } + } + + template + AMREX_GPU_DEVICE AMREX_INLINE + void rate_Ca40_to_He4_Ar36_derived(T& rate_eval, const tf_t& tfactors, [[maybe_unused]] part_fun::pf_cache_t& pf_cache) { + + // Ca40 --> He4 + Ar36 + + amrex::Real rate{}, drate_dT{}; + // Evaluate partition function terms + + amrex::Real He4_log_pf, dHe4_log_pf_dT9; + + // setting He4 log(partition function) to 0.0 by default, independent of T + He4_log_pf = 0.0_rt; + dHe4_log_pf_dT9 = 0.0_rt; + + amrex::Real Ca40_log_pf, dCa40_log_pf_dT9; + + // interpolating Ca40 partition function + get_partition_function_cached(Ca40, tfactors.T9, pf_cache, Ca40_log_pf, dCa40_log_pf_dT9); + + amrex::Real Ar36_log_pf, dAr36_log_pf_dT9; + + // interpolating Ar36 partition function + get_partition_function_cached(Ar36, tfactors.T9, pf_cache, Ar36_log_pf, dAr36_log_pf_dT9); + + amrex::Real net_log_pf = He4_log_pf + Ar36_log_pf - Ca40_log_pf; + [[maybe_unused]] amrex::Real net_dlog_pf_dT9 = dHe4_log_pf_dT9 + dAr36_log_pf_dT9 - dCa40_log_pf_dT9; + + amrex::Real ln_set_rate{0.0}; + amrex::Real dln_set_rate_dT9{0.0}; + amrex::Real set_rate{0.0}; + + // ReacLib set derived from ths8r + ln_set_rate = 77.28432125250924 + -81.69320665503751 * tfactors.T9i + -71.0046 * tfactors.T913i + 4.0656 * tfactors.T913 + + -5.26509 * tfactors.T9 + 0.683546 * tfactors.T953 + 0.833333 * tfactors.lnT9; + + ln_set_rate += net_log_pf; + + if constexpr (std::is_same_v) { + dln_set_rate_dT9 = 81.69320665503751 * tfactors.T9i * tfactors.T9i + -(1.0/3.0) * -71.0046 * tfactors.T943i + (1.0/3.0) * 4.0656 * tfactors.T923i + + -5.26509 + (5.0/3.0) * 0.683546 * tfactors.T923 + 0.833333 * tfactors.T9i; + + dln_set_rate_dT9 += net_dlog_pf_dT9; + } + + // avoid underflows by zeroing rates in [0.0, 1.e-100] + ln_set_rate = std::max(ln_set_rate, -230.0); + set_rate = std::exp(ln_set_rate); + rate += set_rate; + if constexpr (std::is_same_v) { + if (ln_set_rate > -230.0_rt) { + drate_dT += set_rate * dln_set_rate_dT9 * 1.0e-9_rt; + } + } + + rate_eval.screened_rates(k_Ca40_to_He4_Ar36_derived) = rate; + if constexpr (std::is_same_v) { + rate_eval.dscreened_rates_dT(k_Ca40_to_He4_Ar36_derived) = drate_dT; + } + } + + template + AMREX_GPU_DEVICE AMREX_INLINE + void rate_Ca42_to_He4_Ar38_derived(T& rate_eval, const tf_t& tfactors, [[maybe_unused]] part_fun::pf_cache_t& pf_cache) { + + // Ca42 --> He4 + Ar38 + + amrex::Real rate{}, drate_dT{}; + // Evaluate partition function terms + + amrex::Real Ar38_log_pf, dAr38_log_pf_dT9; + + // interpolating Ar38 partition function + get_partition_function_cached(Ar38, tfactors.T9, pf_cache, Ar38_log_pf, dAr38_log_pf_dT9); + + amrex::Real He4_log_pf, dHe4_log_pf_dT9; + + // setting He4 log(partition function) to 0.0 by default, independent of T + He4_log_pf = 0.0_rt; + dHe4_log_pf_dT9 = 0.0_rt; + + amrex::Real Ca42_log_pf, dCa42_log_pf_dT9; + + // interpolating Ca42 partition function + get_partition_function_cached(Ca42, tfactors.T9, pf_cache, Ca42_log_pf, dCa42_log_pf_dT9); + + amrex::Real net_log_pf = He4_log_pf + Ar38_log_pf - Ca42_log_pf; + [[maybe_unused]] amrex::Real net_dlog_pf_dT9 = dHe4_log_pf_dT9 + dAr38_log_pf_dT9 - dCa42_log_pf_dT9; + + amrex::Real ln_set_rate{0.0}; + amrex::Real dln_set_rate_dT9{0.0}; + amrex::Real set_rate{0.0}; + + // ReacLib set derived from ths8r + ln_set_rate = 77.58296390367897 + -72.6138316767612 * tfactors.T9i + -71.1296 * tfactors.T913i + 2.75299 * tfactors.T913 + + -2.43406 * tfactors.T9 + 0.199511 * tfactors.T953 + 0.833333 * tfactors.lnT9; + + ln_set_rate += net_log_pf; + + if constexpr (std::is_same_v) { + dln_set_rate_dT9 = 72.6138316767612 * tfactors.T9i * tfactors.T9i + -(1.0/3.0) * -71.1296 * tfactors.T943i + (1.0/3.0) * 2.75299 * tfactors.T923i + + -2.43406 + (5.0/3.0) * 0.199511 * tfactors.T923 + 0.833333 * tfactors.T9i; + + dln_set_rate_dT9 += net_dlog_pf_dT9; + } + + // avoid underflows by zeroing rates in [0.0, 1.e-100] + ln_set_rate = std::max(ln_set_rate, -230.0); + set_rate = std::exp(ln_set_rate); + rate += set_rate; + if constexpr (std::is_same_v) { + if (ln_set_rate > -230.0_rt) { + drate_dT += set_rate * dln_set_rate_dT9 * 1.0e-9_rt; + } + } + + rate_eval.screened_rates(k_Ca42_to_He4_Ar38_derived) = rate; + if constexpr (std::is_same_v) { + rate_eval.dscreened_rates_dT(k_Ca42_to_He4_Ar38_derived) = drate_dT; + } + } + + template + AMREX_GPU_DEVICE AMREX_INLINE + void rate_Sc41_to_p_Ca40_derived(T& rate_eval, const tf_t& tfactors, [[maybe_unused]] part_fun::pf_cache_t& pf_cache) { + + // Sc41 --> p + Ca40 + + amrex::Real rate{}, drate_dT{}; + // Evaluate partition function terms + + amrex::Real p_log_pf, dp_log_pf_dT9; + + // setting p log(partition function) to 0.0 by default, independent of T + p_log_pf = 0.0_rt; + dp_log_pf_dT9 = 0.0_rt; + + amrex::Real Ca40_log_pf, dCa40_log_pf_dT9; + + // interpolating Ca40 partition function + get_partition_function_cached(Ca40, tfactors.T9, pf_cache, Ca40_log_pf, dCa40_log_pf_dT9); + + amrex::Real Sc41_log_pf, dSc41_log_pf_dT9; + + // interpolating Sc41 partition function + get_partition_function_cached(Sc41, tfactors.T9, pf_cache, Sc41_log_pf, dSc41_log_pf_dT9); + + amrex::Real net_log_pf = p_log_pf + Ca40_log_pf - Sc41_log_pf; + [[maybe_unused]] amrex::Real net_dlog_pf_dT9 = dp_log_pf_dT9 + dCa40_log_pf_dT9 - dSc41_log_pf_dT9; + + amrex::Real ln_set_rate{0.0}; + amrex::Real dln_set_rate_dT9{0.0}; + amrex::Real set_rate{0.0}; + + // ReacLib set derived from il10n + ln_set_rate = 41.615999266911004 + -12.590078983707985 * tfactors.T9i + -31.1711 * tfactors.T913i + + -1.0 * tfactors.T953 + 0.833333 * tfactors.lnT9; + + ln_set_rate += net_log_pf; + + if constexpr (std::is_same_v) { + dln_set_rate_dT9 = 12.590078983707985 * tfactors.T9i * tfactors.T9i + -(1.0/3.0) * -31.1711 * tfactors.T943i + + (5.0/3.0) * -1.0 * tfactors.T923 + 0.833333 * tfactors.T9i; + + dln_set_rate_dT9 += net_dlog_pf_dT9; + } + + // avoid underflows by zeroing rates in [0.0, 1.e-100] + ln_set_rate = std::max(ln_set_rate, -230.0); + set_rate = std::exp(ln_set_rate); + rate += set_rate; + if constexpr (std::is_same_v) { + if (ln_set_rate > -230.0_rt) { + drate_dT += set_rate * dln_set_rate_dT9 * 1.0e-9_rt; + } + } + + // ReacLib set derived from il10r + ln_set_rate = 72.295299266911 + -46.102378983707986 * tfactors.T9i + -33.7287 * tfactors.T913 + + 5.22449 * tfactors.T9 + -0.357104 * tfactors.T953; + + ln_set_rate += net_log_pf; + + if constexpr (std::is_same_v) { + dln_set_rate_dT9 = 46.102378983707986 * tfactors.T9i * tfactors.T9i + (1.0/3.0) * -33.7287 * tfactors.T923i + + 5.22449 + (5.0/3.0) * -0.357104 * tfactors.T923; + + dln_set_rate_dT9 += net_dlog_pf_dT9; + } + + // avoid underflows by zeroing rates in [0.0, 1.e-100] + ln_set_rate = std::max(ln_set_rate, -230.0); + set_rate = std::exp(ln_set_rate); + rate += set_rate; + if constexpr (std::is_same_v) { + if (ln_set_rate > -230.0_rt) { + drate_dT += set_rate * dln_set_rate_dT9 * 1.0e-9_rt; + } + } + + // ReacLib set derived from il10r + ln_set_rate = 27.237989266911 + -19.912438983707986 * tfactors.T9i; + + ln_set_rate += net_log_pf; + + if constexpr (std::is_same_v) { + dln_set_rate_dT9 = 19.912438983707986 * tfactors.T9i * tfactors.T9i; + + dln_set_rate_dT9 += net_dlog_pf_dT9; + } + + // avoid underflows by zeroing rates in [0.0, 1.e-100] + ln_set_rate = std::max(ln_set_rate, -230.0); + set_rate = std::exp(ln_set_rate); + rate += set_rate; + if constexpr (std::is_same_v) { + if (ln_set_rate > -230.0_rt) { + drate_dT += set_rate * dln_set_rate_dT9 * 1.0e-9_rt; + } + } + + rate_eval.screened_rates(k_Sc41_to_p_Ca40_derived) = rate; + if constexpr (std::is_same_v) { + rate_eval.dscreened_rates_dT(k_Sc41_to_p_Ca40_derived) = drate_dT; + } + } + + template + AMREX_GPU_DEVICE AMREX_INLINE + void rate_Sc41_to_He4_K37_derived(T& rate_eval, const tf_t& tfactors, [[maybe_unused]] part_fun::pf_cache_t& pf_cache) { + + // Sc41 --> He4 + K37 + + amrex::Real rate{}, drate_dT{}; + // Evaluate partition function terms + + amrex::Real He4_log_pf, dHe4_log_pf_dT9; + + // setting He4 log(partition function) to 0.0 by default, independent of T + He4_log_pf = 0.0_rt; + dHe4_log_pf_dT9 = 0.0_rt; + + amrex::Real K37_log_pf, dK37_log_pf_dT9; + + // interpolating K37 partition function + get_partition_function_cached(K37, tfactors.T9, pf_cache, K37_log_pf, dK37_log_pf_dT9); + + amrex::Real Sc41_log_pf, dSc41_log_pf_dT9; + + // interpolating Sc41 partition function + get_partition_function_cached(Sc41, tfactors.T9, pf_cache, Sc41_log_pf, dSc41_log_pf_dT9); + + amrex::Real net_log_pf = He4_log_pf + K37_log_pf - Sc41_log_pf; + [[maybe_unused]] amrex::Real net_dlog_pf_dT9 = dHe4_log_pf_dT9 + dK37_log_pf_dT9 - dSc41_log_pf_dT9; + + amrex::Real ln_set_rate{0.0}; + amrex::Real dln_set_rate_dT9{0.0}; + amrex::Real set_rate{0.0}; + + // ReacLib set derived from ths8r + ln_set_rate = 74.8476253358184 + -72.72639550252572 * tfactors.T9i + -73.6776 * tfactors.T913i + -5.3733 * tfactors.T913 + + 0.685776 * tfactors.T9 + -0.123735 * tfactors.T953 + 0.833333 * tfactors.lnT9; + + ln_set_rate += net_log_pf; + + if constexpr (std::is_same_v) { + dln_set_rate_dT9 = 72.72639550252572 * tfactors.T9i * tfactors.T9i + -(1.0/3.0) * -73.6776 * tfactors.T943i + (1.0/3.0) * -5.3733 * tfactors.T923i + + 0.685776 + (5.0/3.0) * -0.123735 * tfactors.T923 + 0.833333 * tfactors.T9i; + + dln_set_rate_dT9 += net_dlog_pf_dT9; + } + + // avoid underflows by zeroing rates in [0.0, 1.e-100] + ln_set_rate = std::max(ln_set_rate, -230.0); + set_rate = std::exp(ln_set_rate); + rate += set_rate; + if constexpr (std::is_same_v) { + if (ln_set_rate > -230.0_rt) { + drate_dT += set_rate * dln_set_rate_dT9 * 1.0e-9_rt; + } + } + + rate_eval.screened_rates(k_Sc41_to_He4_K37_derived) = rate; + if constexpr (std::is_same_v) { + rate_eval.dscreened_rates_dT(k_Sc41_to_He4_K37_derived) = drate_dT; + } + } + + template + AMREX_GPU_DEVICE AMREX_INLINE + void rate_Sc43_to_p_Ca42_derived(T& rate_eval, const tf_t& tfactors, [[maybe_unused]] part_fun::pf_cache_t& pf_cache) { + + // Sc43 --> p + Ca42 + + amrex::Real rate{}, drate_dT{}; + // Evaluate partition function terms + + amrex::Real p_log_pf, dp_log_pf_dT9; + + // setting p log(partition function) to 0.0 by default, independent of T + p_log_pf = 0.0_rt; + dp_log_pf_dT9 = 0.0_rt; + + amrex::Real Ca42_log_pf, dCa42_log_pf_dT9; + + // interpolating Ca42 partition function + get_partition_function_cached(Ca42, tfactors.T9, pf_cache, Ca42_log_pf, dCa42_log_pf_dT9); + + amrex::Real Sc43_log_pf, dSc43_log_pf_dT9; + + // interpolating Sc43 partition function + get_partition_function_cached(Sc43, tfactors.T9, pf_cache, Sc43_log_pf, dSc43_log_pf_dT9); + + amrex::Real net_log_pf = p_log_pf + Ca42_log_pf - Sc43_log_pf; + [[maybe_unused]] amrex::Real net_dlog_pf_dT9 = dp_log_pf_dT9 + dCa42_log_pf_dT9 - dSc43_log_pf_dT9; + + amrex::Real ln_set_rate{0.0}; + amrex::Real dln_set_rate_dT9{0.0}; + amrex::Real set_rate{0.0}; + + // ReacLib set derived from ths8r + ln_set_rate = 57.429501245652034 + -57.20773369244204 * tfactors.T9i + -31.1381 * tfactors.T913i + -0.151667 * tfactors.T913 + + -1.76926 * tfactors.T9 + 0.219569 * tfactors.T953 + 0.833333 * tfactors.lnT9; + + ln_set_rate += net_log_pf; + + if constexpr (std::is_same_v) { + dln_set_rate_dT9 = 57.20773369244204 * tfactors.T9i * tfactors.T9i + -(1.0/3.0) * -31.1381 * tfactors.T943i + (1.0/3.0) * -0.151667 * tfactors.T923i + + -1.76926 + (5.0/3.0) * 0.219569 * tfactors.T923 + 0.833333 * tfactors.T9i; + + dln_set_rate_dT9 += net_dlog_pf_dT9; + } + + // avoid underflows by zeroing rates in [0.0, 1.e-100] + ln_set_rate = std::max(ln_set_rate, -230.0); + set_rate = std::exp(ln_set_rate); + rate += set_rate; + if constexpr (std::is_same_v) { + if (ln_set_rate > -230.0_rt) { + drate_dT += set_rate * dln_set_rate_dT9 * 1.0e-9_rt; + } + } + + rate_eval.screened_rates(k_Sc43_to_p_Ca42_derived) = rate; + if constexpr (std::is_same_v) { + rate_eval.dscreened_rates_dT(k_Sc43_to_p_Ca42_derived) = drate_dT; + } + } + + template + AMREX_GPU_DEVICE AMREX_INLINE + void rate_Sc43_to_He4_K39_derived(T& rate_eval, const tf_t& tfactors, [[maybe_unused]] part_fun::pf_cache_t& pf_cache) { + + // Sc43 --> He4 + K39 + + amrex::Real rate{}, drate_dT{}; + // Evaluate partition function terms + + amrex::Real He4_log_pf, dHe4_log_pf_dT9; + + // setting He4 log(partition function) to 0.0 by default, independent of T + He4_log_pf = 0.0_rt; + dHe4_log_pf_dT9 = 0.0_rt; + + amrex::Real K39_log_pf, dK39_log_pf_dT9; + + // interpolating K39 partition function + get_partition_function_cached(K39, tfactors.T9, pf_cache, K39_log_pf, dK39_log_pf_dT9); + + amrex::Real Sc43_log_pf, dSc43_log_pf_dT9; + + // interpolating Sc43 partition function + get_partition_function_cached(Sc43, tfactors.T9, pf_cache, Sc43_log_pf, dSc43_log_pf_dT9); + + amrex::Real net_log_pf = He4_log_pf + K39_log_pf - Sc43_log_pf; + [[maybe_unused]] amrex::Real net_dlog_pf_dT9 = dHe4_log_pf_dT9 + dK39_log_pf_dT9 - dSc43_log_pf_dT9; + + amrex::Real ln_set_rate{0.0}; + amrex::Real dln_set_rate_dT9{0.0}; + amrex::Real set_rate{0.0}; + + // ReacLib set derived from ths8r + ln_set_rate = 78.37420492735454 + -55.76923537484507 * tfactors.T9i + -73.8006 * tfactors.T913i + 1.87885 * tfactors.T913 + + -2.75862 * tfactors.T9 + 0.279678 * tfactors.T953 + 0.833333 * tfactors.lnT9; + + ln_set_rate += net_log_pf; + + if constexpr (std::is_same_v) { + dln_set_rate_dT9 = 55.76923537484507 * tfactors.T9i * tfactors.T9i + -(1.0/3.0) * -73.8006 * tfactors.T943i + (1.0/3.0) * 1.87885 * tfactors.T923i + + -2.75862 + (5.0/3.0) * 0.279678 * tfactors.T923 + 0.833333 * tfactors.T9i; + + dln_set_rate_dT9 += net_dlog_pf_dT9; + } + + // avoid underflows by zeroing rates in [0.0, 1.e-100] + ln_set_rate = std::max(ln_set_rate, -230.0); + set_rate = std::exp(ln_set_rate); + rate += set_rate; + if constexpr (std::is_same_v) { + if (ln_set_rate > -230.0_rt) { + drate_dT += set_rate * dln_set_rate_dT9 * 1.0e-9_rt; + } + } + + rate_eval.screened_rates(k_Sc43_to_He4_K39_derived) = rate; + if constexpr (std::is_same_v) { + rate_eval.dscreened_rates_dT(k_Sc43_to_He4_K39_derived) = drate_dT; + } + } + + template + AMREX_GPU_DEVICE AMREX_INLINE + void rate_Ti42_to_p_Sc41_derived(T& rate_eval, const tf_t& tfactors, [[maybe_unused]] part_fun::pf_cache_t& pf_cache) { + + // Ti42 --> p + Sc41 + + amrex::Real rate{}, drate_dT{}; + // Evaluate partition function terms + + amrex::Real p_log_pf, dp_log_pf_dT9; + + // setting p log(partition function) to 0.0 by default, independent of T + p_log_pf = 0.0_rt; + dp_log_pf_dT9 = 0.0_rt; + + amrex::Real Ti42_log_pf, dTi42_log_pf_dT9; + + // interpolating Ti42 partition function + get_partition_function_cached(Ti42, tfactors.T9, pf_cache, Ti42_log_pf, dTi42_log_pf_dT9); + + amrex::Real Sc41_log_pf, dSc41_log_pf_dT9; + + // interpolating Sc41 partition function + get_partition_function_cached(Sc41, tfactors.T9, pf_cache, Sc41_log_pf, dSc41_log_pf_dT9); + + amrex::Real net_log_pf = p_log_pf + Sc41_log_pf - Ti42_log_pf; + [[maybe_unused]] amrex::Real net_dlog_pf_dT9 = dp_log_pf_dT9 + dSc41_log_pf_dT9 - dTi42_log_pf_dT9; + + amrex::Real ln_set_rate{0.0}; + amrex::Real dln_set_rate_dT9{0.0}; + amrex::Real set_rate{0.0}; + + // ReacLib set derived from ths8r + ln_set_rate = 64.12066756154039 + -43.52809564043815 * tfactors.T9i + -32.1615 * tfactors.T913i + -3.68811 * tfactors.T913 + + -2.01234 * tfactors.T9 + 0.3232 * tfactors.T953 + 0.833333 * tfactors.lnT9; + + ln_set_rate += net_log_pf; + + if constexpr (std::is_same_v) { + dln_set_rate_dT9 = 43.52809564043815 * tfactors.T9i * tfactors.T9i + -(1.0/3.0) * -32.1615 * tfactors.T943i + (1.0/3.0) * -3.68811 * tfactors.T923i + + -2.01234 + (5.0/3.0) * 0.3232 * tfactors.T923 + 0.833333 * tfactors.T9i; + + dln_set_rate_dT9 += net_dlog_pf_dT9; + } + + // avoid underflows by zeroing rates in [0.0, 1.e-100] + ln_set_rate = std::max(ln_set_rate, -230.0); + set_rate = std::exp(ln_set_rate); + rate += set_rate; + if constexpr (std::is_same_v) { + if (ln_set_rate > -230.0_rt) { + drate_dT += set_rate * dln_set_rate_dT9 * 1.0e-9_rt; + } + } + + rate_eval.screened_rates(k_Ti42_to_p_Sc41_derived) = rate; + if constexpr (std::is_same_v) { + rate_eval.dscreened_rates_dT(k_Ti42_to_p_Sc41_derived) = drate_dT; + } + } + + template + AMREX_GPU_DEVICE AMREX_INLINE + void rate_Ti42_to_He4_Ca38_derived(T& rate_eval, const tf_t& tfactors, [[maybe_unused]] part_fun::pf_cache_t& pf_cache) { + + // Ti42 --> He4 + Ca38 + + amrex::Real rate{}, drate_dT{}; + // Evaluate partition function terms + + amrex::Real He4_log_pf, dHe4_log_pf_dT9; + + // setting He4 log(partition function) to 0.0 by default, independent of T + He4_log_pf = 0.0_rt; + dHe4_log_pf_dT9 = 0.0_rt; + + amrex::Real Ti42_log_pf, dTi42_log_pf_dT9; + + // interpolating Ti42 partition function + get_partition_function_cached(Ti42, tfactors.T9, pf_cache, Ti42_log_pf, dTi42_log_pf_dT9); + + amrex::Real Ca38_log_pf, dCa38_log_pf_dT9; + + // interpolating Ca38 partition function + get_partition_function_cached(Ca38, tfactors.T9, pf_cache, Ca38_log_pf, dCa38_log_pf_dT9); + + amrex::Real net_log_pf = He4_log_pf + Ca38_log_pf - Ti42_log_pf; + [[maybe_unused]] amrex::Real net_dlog_pf_dT9 = dHe4_log_pf_dT9 + dCa38_log_pf_dT9 - dTi42_log_pf_dT9; + + amrex::Real ln_set_rate{0.0}; + amrex::Real dln_set_rate_dT9{0.0}; + amrex::Real set_rate{0.0}; + + // ReacLib set derived from ths8r + ln_set_rate = 83.43049878861977 + -63.48560167717572 * tfactors.T9i + -76.3063 * tfactors.T913i + -10.7213 * tfactors.T913 + + 0.926161 * tfactors.T9 + -0.0855699 * tfactors.T953 + 0.833333 * tfactors.lnT9; + + ln_set_rate += net_log_pf; + + if constexpr (std::is_same_v) { + dln_set_rate_dT9 = 63.48560167717572 * tfactors.T9i * tfactors.T9i + -(1.0/3.0) * -76.3063 * tfactors.T943i + (1.0/3.0) * -10.7213 * tfactors.T923i + + 0.926161 + (5.0/3.0) * -0.0855699 * tfactors.T923 + 0.833333 * tfactors.T9i; + + dln_set_rate_dT9 += net_dlog_pf_dT9; + } + + // avoid underflows by zeroing rates in [0.0, 1.e-100] + ln_set_rate = std::max(ln_set_rate, -230.0); + set_rate = std::exp(ln_set_rate); + rate += set_rate; + if constexpr (std::is_same_v) { + if (ln_set_rate > -230.0_rt) { + drate_dT += set_rate * dln_set_rate_dT9 * 1.0e-9_rt; + } + } + + rate_eval.screened_rates(k_Ti42_to_He4_Ca38_derived) = rate; + if constexpr (std::is_same_v) { + rate_eval.dscreened_rates_dT(k_Ti42_to_He4_Ca38_derived) = drate_dT; + } + } + + template + AMREX_GPU_DEVICE AMREX_INLINE + void rate_Ti44_to_p_Sc43_derived(T& rate_eval, const tf_t& tfactors, [[maybe_unused]] part_fun::pf_cache_t& pf_cache) { + + // Ti44 --> p + Sc43 + + amrex::Real rate{}, drate_dT{}; + // Evaluate partition function terms + + amrex::Real p_log_pf, dp_log_pf_dT9; + + // setting p log(partition function) to 0.0 by default, independent of T + p_log_pf = 0.0_rt; + dp_log_pf_dT9 = 0.0_rt; + + amrex::Real Ti44_log_pf, dTi44_log_pf_dT9; + + // interpolating Ti44 partition function + get_partition_function_cached(Ti44, tfactors.T9, pf_cache, Ti44_log_pf, dTi44_log_pf_dT9); + + amrex::Real Sc43_log_pf, dSc43_log_pf_dT9; + + // interpolating Sc43 partition function + get_partition_function_cached(Sc43, tfactors.T9, pf_cache, Sc43_log_pf, dSc43_log_pf_dT9); + + amrex::Real net_log_pf = p_log_pf + Sc43_log_pf - Ti44_log_pf; + [[maybe_unused]] amrex::Real net_dlog_pf_dT9 = dp_log_pf_dT9 + dSc43_log_pf_dT9 - dTi44_log_pf_dT9; + + amrex::Real ln_set_rate{0.0}; + amrex::Real dln_set_rate_dT9{0.0}; + amrex::Real set_rate{0.0}; + + // ReacLib set derived from ths8r + ln_set_rate = 62.61343220623275 + -100.37294370395585 * tfactors.T9i + -32.1734 * tfactors.T913i + -1.77078 * tfactors.T913 + + -2.21706 * tfactors.T9 + 0.298499 * tfactors.T953 + 0.833333 * tfactors.lnT9; + + ln_set_rate += net_log_pf; + + if constexpr (std::is_same_v) { + dln_set_rate_dT9 = 100.37294370395585 * tfactors.T9i * tfactors.T9i + -(1.0/3.0) * -32.1734 * tfactors.T943i + (1.0/3.0) * -1.77078 * tfactors.T923i + + -2.21706 + (5.0/3.0) * 0.298499 * tfactors.T923 + 0.833333 * tfactors.T9i; + + dln_set_rate_dT9 += net_dlog_pf_dT9; + } + + // avoid underflows by zeroing rates in [0.0, 1.e-100] + ln_set_rate = std::max(ln_set_rate, -230.0); + set_rate = std::exp(ln_set_rate); + rate += set_rate; + if constexpr (std::is_same_v) { + if (ln_set_rate > -230.0_rt) { + drate_dT += set_rate * dln_set_rate_dT9 * 1.0e-9_rt; + } + } + + rate_eval.screened_rates(k_Ti44_to_p_Sc43_derived) = rate; + if constexpr (std::is_same_v) { + rate_eval.dscreened_rates_dT(k_Ti44_to_p_Sc43_derived) = drate_dT; + } + } + + template + AMREX_GPU_DEVICE AMREX_INLINE + void rate_Ti44_to_He4_Ca40_derived(T& rate_eval, const tf_t& tfactors, [[maybe_unused]] part_fun::pf_cache_t& pf_cache) { + + // Ti44 --> He4 + Ca40 + + amrex::Real rate{}, drate_dT{}; + // Evaluate partition function terms + + amrex::Real He4_log_pf, dHe4_log_pf_dT9; + + // setting He4 log(partition function) to 0.0 by default, independent of T + He4_log_pf = 0.0_rt; + dHe4_log_pf_dT9 = 0.0_rt; + + amrex::Real Ca40_log_pf, dCa40_log_pf_dT9; + + // interpolating Ca40 partition function + get_partition_function_cached(Ca40, tfactors.T9, pf_cache, Ca40_log_pf, dCa40_log_pf_dT9); + + amrex::Real Ti44_log_pf, dTi44_log_pf_dT9; + + // interpolating Ti44 partition function + get_partition_function_cached(Ti44, tfactors.T9, pf_cache, Ti44_log_pf, dTi44_log_pf_dT9); + + amrex::Real net_log_pf = He4_log_pf + Ca40_log_pf - Ti44_log_pf; + [[maybe_unused]] amrex::Real net_dlog_pf_dT9 = dHe4_log_pf_dT9 + dCa40_log_pf_dT9 - dTi44_log_pf_dT9; + + amrex::Real ln_set_rate{0.0}; + amrex::Real dln_set_rate_dT9{0.0}; + amrex::Real set_rate{0.0}; + + // ReacLib set derived from chw0 + ln_set_rate = 78.7006646483486 + -59.49768581557457 * tfactors.T9i + -76.4273 * tfactors.T913i + 3.87451 * tfactors.T913 + + -3.61477 * tfactors.T9 + 0.367451 * tfactors.T953 + 0.833333 * tfactors.lnT9; + + ln_set_rate += net_log_pf; + + if constexpr (std::is_same_v) { + dln_set_rate_dT9 = 59.49768581557457 * tfactors.T9i * tfactors.T9i + -(1.0/3.0) * -76.4273 * tfactors.T943i + (1.0/3.0) * 3.87451 * tfactors.T923i + + -3.61477 + (5.0/3.0) * 0.367451 * tfactors.T923 + 0.833333 * tfactors.T9i; + + dln_set_rate_dT9 += net_dlog_pf_dT9; + } + + // avoid underflows by zeroing rates in [0.0, 1.e-100] + ln_set_rate = std::max(ln_set_rate, -230.0); + set_rate = std::exp(ln_set_rate); + rate += set_rate; + if constexpr (std::is_same_v) { + if (ln_set_rate > -230.0_rt) { + drate_dT += set_rate * dln_set_rate_dT9 * 1.0e-9_rt; + } + } + + rate_eval.screened_rates(k_Ti44_to_He4_Ca40_derived) = rate; + if constexpr (std::is_same_v) { + rate_eval.dscreened_rates_dT(k_Ti44_to_He4_Ca40_derived) = drate_dT; + } + } + + template + AMREX_GPU_DEVICE AMREX_INLINE + void rate_Ti46_to_He4_Ca42_derived(T& rate_eval, const tf_t& tfactors, [[maybe_unused]] part_fun::pf_cache_t& pf_cache) { + + // Ti46 --> He4 + Ca42 + + amrex::Real rate{}, drate_dT{}; + // Evaluate partition function terms + + amrex::Real Ti46_log_pf, dTi46_log_pf_dT9; + + // interpolating Ti46 partition function + get_partition_function_cached(Ti46, tfactors.T9, pf_cache, Ti46_log_pf, dTi46_log_pf_dT9); + + amrex::Real He4_log_pf, dHe4_log_pf_dT9; + + // setting He4 log(partition function) to 0.0 by default, independent of T + He4_log_pf = 0.0_rt; + dHe4_log_pf_dT9 = 0.0_rt; + + amrex::Real Ca42_log_pf, dCa42_log_pf_dT9; + + // interpolating Ca42 partition function + get_partition_function_cached(Ca42, tfactors.T9, pf_cache, Ca42_log_pf, dCa42_log_pf_dT9); + + amrex::Real net_log_pf = He4_log_pf + Ca42_log_pf - Ti46_log_pf; + [[maybe_unused]] amrex::Real net_dlog_pf_dT9 = dHe4_log_pf_dT9 + dCa42_log_pf_dT9 - dTi46_log_pf_dT9; + + amrex::Real ln_set_rate{0.0}; + amrex::Real dln_set_rate_dT9{0.0}; + amrex::Real set_rate{0.0}; + + // ReacLib set derived from ths8r + ln_set_rate = 79.79033156127323 + -92.90456370262497 * tfactors.T9i + -76.5379 * tfactors.T913i + 2.80099 * tfactors.T913 + + -2.34788 * tfactors.T9 + 0.150014 * tfactors.T953 + 0.833333 * tfactors.lnT9; + + ln_set_rate += net_log_pf; + + if constexpr (std::is_same_v) { + dln_set_rate_dT9 = 92.90456370262497 * tfactors.T9i * tfactors.T9i + -(1.0/3.0) * -76.5379 * tfactors.T943i + (1.0/3.0) * 2.80099 * tfactors.T923i + + -2.34788 + (5.0/3.0) * 0.150014 * tfactors.T923 + 0.833333 * tfactors.T9i; + + dln_set_rate_dT9 += net_dlog_pf_dT9; + } + + // avoid underflows by zeroing rates in [0.0, 1.e-100] + ln_set_rate = std::max(ln_set_rate, -230.0); + set_rate = std::exp(ln_set_rate); + rate += set_rate; + if constexpr (std::is_same_v) { + if (ln_set_rate > -230.0_rt) { + drate_dT += set_rate * dln_set_rate_dT9 * 1.0e-9_rt; + } + } + + rate_eval.screened_rates(k_Ti46_to_He4_Ca42_derived) = rate; + if constexpr (std::is_same_v) { + rate_eval.dscreened_rates_dT(k_Ti46_to_He4_Ca42_derived) = drate_dT; + } + } + + template + AMREX_GPU_DEVICE AMREX_INLINE + void rate_V45_to_p_Ti44_derived(T& rate_eval, const tf_t& tfactors, [[maybe_unused]] part_fun::pf_cache_t& pf_cache) { + + // V45 --> p + Ti44 + + amrex::Real rate{}, drate_dT{}; + // Evaluate partition function terms + + amrex::Real p_log_pf, dp_log_pf_dT9; + + // setting p log(partition function) to 0.0 by default, independent of T + p_log_pf = 0.0_rt; + dp_log_pf_dT9 = 0.0_rt; + + amrex::Real V45_log_pf, dV45_log_pf_dT9; + + // interpolating V45 partition function + get_partition_function_cached(V45, tfactors.T9, pf_cache, V45_log_pf, dV45_log_pf_dT9); + + amrex::Real Ti44_log_pf, dTi44_log_pf_dT9; + + // interpolating Ti44 partition function + get_partition_function_cached(Ti44, tfactors.T9, pf_cache, Ti44_log_pf, dTi44_log_pf_dT9); + + amrex::Real net_log_pf = p_log_pf + Ti44_log_pf - V45_log_pf; + [[maybe_unused]] amrex::Real net_dlog_pf_dT9 = dp_log_pf_dT9 + dTi44_log_pf_dT9 - dV45_log_pf_dT9; + + amrex::Real ln_set_rate{0.0}; + amrex::Real dln_set_rate_dT9{0.0}; + amrex::Real set_rate{0.0}; + + // ReacLib set derived from nfisn + ln_set_rate = 35.89240351152864 + -20.283684291835424 * tfactors.T9i + -22.1209 * tfactors.T913i + 2.87067 * tfactors.T913 + + -0.0200651 * tfactors.T9 + -0.0194061 * tfactors.T953 + -5.01065 * tfactors.lnT9; + + ln_set_rate += net_log_pf; + + if constexpr (std::is_same_v) { + dln_set_rate_dT9 = 20.283684291835424 * tfactors.T9i * tfactors.T9i + -(1.0/3.0) * -22.1209 * tfactors.T943i + (1.0/3.0) * 2.87067 * tfactors.T923i + + -0.0200651 + (5.0/3.0) * -0.0194061 * tfactors.T923 + -5.01065 * tfactors.T9i; + + dln_set_rate_dT9 += net_dlog_pf_dT9; + } + + // avoid underflows by zeroing rates in [0.0, 1.e-100] + ln_set_rate = std::max(ln_set_rate, -230.0); + set_rate = std::exp(ln_set_rate); + rate += set_rate; + if constexpr (std::is_same_v) { + if (ln_set_rate > -230.0_rt) { + drate_dT += set_rate * dln_set_rate_dT9 * 1.0e-9_rt; + } + } + + // ReacLib set derived from nfisn + ln_set_rate = 40.33000351152864 + -18.718495291835424 * tfactors.T9i + -41.059 * tfactors.T913i + 12.0361 * tfactors.T913 + + -0.649888 * tfactors.T9 + 0.0175707 * tfactors.T953 + -4.96732 * tfactors.lnT9; + + ln_set_rate += net_log_pf; + + if constexpr (std::is_same_v) { + dln_set_rate_dT9 = 18.718495291835424 * tfactors.T9i * tfactors.T9i + -(1.0/3.0) * -41.059 * tfactors.T943i + (1.0/3.0) * 12.0361 * tfactors.T923i + + -0.649888 + (5.0/3.0) * 0.0175707 * tfactors.T923 + -4.96732 * tfactors.T9i; + + dln_set_rate_dT9 += net_dlog_pf_dT9; + } + + // avoid underflows by zeroing rates in [0.0, 1.e-100] + ln_set_rate = std::max(ln_set_rate, -230.0); + set_rate = std::exp(ln_set_rate); + rate += set_rate; + if constexpr (std::is_same_v) { + if (ln_set_rate > -230.0_rt) { + drate_dT += set_rate * dln_set_rate_dT9 * 1.0e-9_rt; + } + } + + // ReacLib set derived from nfisn + ln_set_rate = 43.39120351152864 + -20.763494291835425 * tfactors.T9i + -155.515 * tfactors.T913i + 135.903 * tfactors.T913 + + -3.34812 * tfactors.T9 + -0.0139974 * tfactors.T953 + -85.9481 * tfactors.lnT9; + + ln_set_rate += net_log_pf; + + if constexpr (std::is_same_v) { + dln_set_rate_dT9 = 20.763494291835425 * tfactors.T9i * tfactors.T9i + -(1.0/3.0) * -155.515 * tfactors.T943i + (1.0/3.0) * 135.903 * tfactors.T923i + + -3.34812 + (5.0/3.0) * -0.0139974 * tfactors.T923 + -85.9481 * tfactors.T9i; + + dln_set_rate_dT9 += net_dlog_pf_dT9; + } + + // avoid underflows by zeroing rates in [0.0, 1.e-100] + ln_set_rate = std::max(ln_set_rate, -230.0); + set_rate = std::exp(ln_set_rate); + rate += set_rate; + if constexpr (std::is_same_v) { + if (ln_set_rate > -230.0_rt) { + drate_dT += set_rate * dln_set_rate_dT9 * 1.0e-9_rt; + } + } + + // ReacLib set derived from nfisn + ln_set_rate = -96.49529648847135 + -53.72779429183542 * tfactors.T9i + 84.8583 * tfactors.T913i + 64.855 * tfactors.T913 + + -6.59381 * tfactors.T9 + 0.413146 * tfactors.T953 + 0.07498000000000005 * tfactors.lnT9; + + ln_set_rate += net_log_pf; + + if constexpr (std::is_same_v) { + dln_set_rate_dT9 = 53.72779429183542 * tfactors.T9i * tfactors.T9i + -(1.0/3.0) * 84.8583 * tfactors.T943i + (1.0/3.0) * 64.855 * tfactors.T923i + + -6.59381 + (5.0/3.0) * 0.413146 * tfactors.T923 + 0.07498000000000005 * tfactors.T9i; + + dln_set_rate_dT9 += net_dlog_pf_dT9; + } + + // avoid underflows by zeroing rates in [0.0, 1.e-100] + ln_set_rate = std::max(ln_set_rate, -230.0); + set_rate = std::exp(ln_set_rate); + rate += set_rate; + if constexpr (std::is_same_v) { + if (ln_set_rate > -230.0_rt) { + drate_dT += set_rate * dln_set_rate_dT9 * 1.0e-9_rt; + } + } + + // ReacLib set derived from nfisn + ln_set_rate = 24.537293511528638 + -21.334824291835425 * tfactors.T9i + -27.0951 * tfactors.T913i + 22.7374 * tfactors.T913 + + -2.18213 * tfactors.T9 + 0.223757 * tfactors.T953 + -13.8241 * tfactors.lnT9; + + ln_set_rate += net_log_pf; + + if constexpr (std::is_same_v) { + dln_set_rate_dT9 = 21.334824291835425 * tfactors.T9i * tfactors.T9i + -(1.0/3.0) * -27.0951 * tfactors.T943i + (1.0/3.0) * 22.7374 * tfactors.T923i + + -2.18213 + (5.0/3.0) * 0.223757 * tfactors.T923 + -13.8241 * tfactors.T9i; + + dln_set_rate_dT9 += net_dlog_pf_dT9; + } + + // avoid underflows by zeroing rates in [0.0, 1.e-100] + ln_set_rate = std::max(ln_set_rate, -230.0); + set_rate = std::exp(ln_set_rate); + rate += set_rate; + if constexpr (std::is_same_v) { + if (ln_set_rate > -230.0_rt) { + drate_dT += set_rate * dln_set_rate_dT9 * 1.0e-9_rt; + } + } + + rate_eval.screened_rates(k_V45_to_p_Ti44_derived) = rate; + if constexpr (std::is_same_v) { + rate_eval.dscreened_rates_dT(k_V45_to_p_Ti44_derived) = drate_dT; + } + } + + template + AMREX_GPU_DEVICE AMREX_INLINE + void rate_V45_to_He4_Sc41_derived(T& rate_eval, const tf_t& tfactors, [[maybe_unused]] part_fun::pf_cache_t& pf_cache) { + + // V45 --> He4 + Sc41 + + amrex::Real rate{}, drate_dT{}; + // Evaluate partition function terms + + amrex::Real He4_log_pf, dHe4_log_pf_dT9; + + // setting He4 log(partition function) to 0.0 by default, independent of T + He4_log_pf = 0.0_rt; + dHe4_log_pf_dT9 = 0.0_rt; + + amrex::Real V45_log_pf, dV45_log_pf_dT9; + + // interpolating V45 partition function + get_partition_function_cached(V45, tfactors.T9, pf_cache, V45_log_pf, dV45_log_pf_dT9); + + amrex::Real Sc41_log_pf, dSc41_log_pf_dT9; + + // interpolating Sc41 partition function + get_partition_function_cached(Sc41, tfactors.T9, pf_cache, Sc41_log_pf, dSc41_log_pf_dT9); + + amrex::Real net_log_pf = He4_log_pf + Sc41_log_pf - V45_log_pf; + [[maybe_unused]] amrex::Real net_dlog_pf_dT9 = dHe4_log_pf_dT9 + dSc41_log_pf_dT9 - dV45_log_pf_dT9; + + amrex::Real ln_set_rate{0.0}; + amrex::Real dln_set_rate_dT9{0.0}; + amrex::Real set_rate{0.0}; + + // ReacLib set derived from ths8r + ln_set_rate = 78.20656889296623 + -65.785501123702 * tfactors.T9i + -79.013 * tfactors.T913i + -6.64623 * tfactors.T913 + + 1.10793 * tfactors.T9 + -0.169427 * tfactors.T953 + 0.833333 * tfactors.lnT9; + + ln_set_rate += net_log_pf; + + if constexpr (std::is_same_v) { + dln_set_rate_dT9 = 65.785501123702 * tfactors.T9i * tfactors.T9i + -(1.0/3.0) * -79.013 * tfactors.T943i + (1.0/3.0) * -6.64623 * tfactors.T923i + + 1.10793 + (5.0/3.0) * -0.169427 * tfactors.T923 + 0.833333 * tfactors.T9i; + + dln_set_rate_dT9 += net_dlog_pf_dT9; + } + + // avoid underflows by zeroing rates in [0.0, 1.e-100] + ln_set_rate = std::max(ln_set_rate, -230.0); + set_rate = std::exp(ln_set_rate); + rate += set_rate; + if constexpr (std::is_same_v) { + if (ln_set_rate > -230.0_rt) { + drate_dT += set_rate * dln_set_rate_dT9 * 1.0e-9_rt; + } + } + + rate_eval.screened_rates(k_V45_to_He4_Sc41_derived) = rate; + if constexpr (std::is_same_v) { + rate_eval.dscreened_rates_dT(k_V45_to_He4_Sc41_derived) = drate_dT; + } + } + + template + AMREX_GPU_DEVICE AMREX_INLINE + void rate_V47_to_p_Ti46_derived(T& rate_eval, const tf_t& tfactors, [[maybe_unused]] part_fun::pf_cache_t& pf_cache) { + + // V47 --> p + Ti46 + + amrex::Real rate{}, drate_dT{}; + // Evaluate partition function terms + + amrex::Real Ti46_log_pf, dTi46_log_pf_dT9; + + // interpolating Ti46 partition function + get_partition_function_cached(Ti46, tfactors.T9, pf_cache, Ti46_log_pf, dTi46_log_pf_dT9); + + amrex::Real p_log_pf, dp_log_pf_dT9; + + // setting p log(partition function) to 0.0 by default, independent of T + p_log_pf = 0.0_rt; + dp_log_pf_dT9 = 0.0_rt; + + amrex::Real V47_log_pf, dV47_log_pf_dT9; + + // interpolating V47 partition function + get_partition_function_cached(V47, tfactors.T9, pf_cache, V47_log_pf, dV47_log_pf_dT9); + + amrex::Real net_log_pf = p_log_pf + Ti46_log_pf - V47_log_pf; + [[maybe_unused]] amrex::Real net_dlog_pf_dT9 = dp_log_pf_dT9 + dTi46_log_pf_dT9 - dV47_log_pf_dT9; + + amrex::Real ln_set_rate{0.0}; + amrex::Real dln_set_rate_dT9{0.0}; + amrex::Real set_rate{0.0}; + + // ReacLib set derived from ths8r + ln_set_rate = 58.07481350908684 + -59.96949296023878 * tfactors.T9i + -33.2034 * tfactors.T913i + 0.505619 * tfactors.T913 + + -1.73654 * tfactors.T9 + 0.207342 * tfactors.T953 + 0.833333 * tfactors.lnT9; + + ln_set_rate += net_log_pf; + + if constexpr (std::is_same_v) { + dln_set_rate_dT9 = 59.96949296023878 * tfactors.T9i * tfactors.T9i + -(1.0/3.0) * -33.2034 * tfactors.T943i + (1.0/3.0) * 0.505619 * tfactors.T923i + + -1.73654 + (5.0/3.0) * 0.207342 * tfactors.T923 + 0.833333 * tfactors.T9i; + + dln_set_rate_dT9 += net_dlog_pf_dT9; + } + + // avoid underflows by zeroing rates in [0.0, 1.e-100] + ln_set_rate = std::max(ln_set_rate, -230.0); + set_rate = std::exp(ln_set_rate); + rate += set_rate; + if constexpr (std::is_same_v) { + if (ln_set_rate > -230.0_rt) { + drate_dT += set_rate * dln_set_rate_dT9 * 1.0e-9_rt; + } + } + + rate_eval.screened_rates(k_V47_to_p_Ti46_derived) = rate; + if constexpr (std::is_same_v) { + rate_eval.dscreened_rates_dT(k_V47_to_p_Ti46_derived) = drate_dT; + } + } + + template + AMREX_GPU_DEVICE AMREX_INLINE + void rate_V47_to_He4_Sc43_derived(T& rate_eval, const tf_t& tfactors, [[maybe_unused]] part_fun::pf_cache_t& pf_cache) { + + // V47 --> He4 + Sc43 + + amrex::Real rate{}, drate_dT{}; + // Evaluate partition function terms + + amrex::Real He4_log_pf, dHe4_log_pf_dT9; + + // setting He4 log(partition function) to 0.0 by default, independent of T + He4_log_pf = 0.0_rt; + dHe4_log_pf_dT9 = 0.0_rt; + + amrex::Real V47_log_pf, dV47_log_pf_dT9; + + // interpolating V47 partition function + get_partition_function_cached(V47, tfactors.T9, pf_cache, V47_log_pf, dV47_log_pf_dT9); + + amrex::Real Sc43_log_pf, dSc43_log_pf_dT9; + + // interpolating Sc43 partition function + get_partition_function_cached(Sc43, tfactors.T9, pf_cache, Sc43_log_pf, dSc43_log_pf_dT9); + + amrex::Real net_log_pf = He4_log_pf + Sc43_log_pf - V47_log_pf; + [[maybe_unused]] amrex::Real net_dlog_pf_dT9 = dHe4_log_pf_dT9 + dSc43_log_pf_dT9 - dV47_log_pf_dT9; + + amrex::Real ln_set_rate{0.0}; + amrex::Real dln_set_rate_dT9{0.0}; + amrex::Real set_rate{0.0}; + + // ReacLib set derived from ths8r + ln_set_rate = 84.67304382470803 + -95.66632297040007 * tfactors.T9i + -79.122 * tfactors.T913i + -7.07006 * tfactors.T913 + + 0.424183 * tfactors.T9 + -0.0665231 * tfactors.T953 + 0.833333 * tfactors.lnT9; + + ln_set_rate += net_log_pf; + + if constexpr (std::is_same_v) { + dln_set_rate_dT9 = 95.66632297040007 * tfactors.T9i * tfactors.T9i + -(1.0/3.0) * -79.122 * tfactors.T943i + (1.0/3.0) * -7.07006 * tfactors.T923i + + 0.424183 + (5.0/3.0) * -0.0665231 * tfactors.T923 + 0.833333 * tfactors.T9i; + + dln_set_rate_dT9 += net_dlog_pf_dT9; + } + + // avoid underflows by zeroing rates in [0.0, 1.e-100] + ln_set_rate = std::max(ln_set_rate, -230.0); + set_rate = std::exp(ln_set_rate); + rate += set_rate; + if constexpr (std::is_same_v) { + if (ln_set_rate > -230.0_rt) { + drate_dT += set_rate * dln_set_rate_dT9 * 1.0e-9_rt; + } + } + + rate_eval.screened_rates(k_V47_to_He4_Sc43_derived) = rate; + if constexpr (std::is_same_v) { + rate_eval.dscreened_rates_dT(k_V47_to_He4_Sc43_derived) = drate_dT; + } + } + + template + AMREX_GPU_DEVICE AMREX_INLINE + void rate_Cr46_to_p_V45_derived(T& rate_eval, const tf_t& tfactors, [[maybe_unused]] part_fun::pf_cache_t& pf_cache) { + + // Cr46 --> p + V45 + + amrex::Real rate{}, drate_dT{}; + // Evaluate partition function terms + + amrex::Real p_log_pf, dp_log_pf_dT9; + + // setting p log(partition function) to 0.0 by default, independent of T + p_log_pf = 0.0_rt; + dp_log_pf_dT9 = 0.0_rt; + + amrex::Real V45_log_pf, dV45_log_pf_dT9; + + // interpolating V45 partition function + get_partition_function_cached(V45, tfactors.T9, pf_cache, V45_log_pf, dV45_log_pf_dT9); + + amrex::Real Cr46_log_pf, dCr46_log_pf_dT9; + + // interpolating Cr46 partition function + get_partition_function_cached(Cr46, tfactors.T9, pf_cache, Cr46_log_pf, dCr46_log_pf_dT9); + + amrex::Real net_log_pf = p_log_pf + V45_log_pf - Cr46_log_pf; + [[maybe_unused]] amrex::Real net_dlog_pf_dT9 = dp_log_pf_dT9 + dV45_log_pf_dT9 - dCr46_log_pf_dT9; + + amrex::Real ln_set_rate{0.0}; + amrex::Real dln_set_rate_dT9{0.0}; + amrex::Real set_rate{0.0}; + + // ReacLib set derived from ths8r + ln_set_rate = 61.69853410036488 + -56.56704824688144 * tfactors.T9i + -34.1967 * tfactors.T913i + -1.70253 * tfactors.T913 + + -2.38375 * tfactors.T9 + 0.33421 * tfactors.T953 + 0.833333 * tfactors.lnT9; + + ln_set_rate += net_log_pf; + + if constexpr (std::is_same_v) { + dln_set_rate_dT9 = 56.56704824688144 * tfactors.T9i * tfactors.T9i + -(1.0/3.0) * -34.1967 * tfactors.T943i + (1.0/3.0) * -1.70253 * tfactors.T923i + + -2.38375 + (5.0/3.0) * 0.33421 * tfactors.T923 + 0.833333 * tfactors.T9i; + + dln_set_rate_dT9 += net_dlog_pf_dT9; + } + + // avoid underflows by zeroing rates in [0.0, 1.e-100] + ln_set_rate = std::max(ln_set_rate, -230.0); + set_rate = std::exp(ln_set_rate); + rate += set_rate; + if constexpr (std::is_same_v) { + if (ln_set_rate > -230.0_rt) { + drate_dT += set_rate * dln_set_rate_dT9 * 1.0e-9_rt; + } + } + + rate_eval.screened_rates(k_Cr46_to_p_V45_derived) = rate; + if constexpr (std::is_same_v) { + rate_eval.dscreened_rates_dT(k_Cr46_to_p_V45_derived) = drate_dT; + } + } + + template + AMREX_GPU_DEVICE AMREX_INLINE + void rate_Cr46_to_He4_Ti42_derived(T& rate_eval, const tf_t& tfactors, [[maybe_unused]] part_fun::pf_cache_t& pf_cache) { + + // Cr46 --> He4 + Ti42 + + amrex::Real rate{}, drate_dT{}; + // Evaluate partition function terms + + amrex::Real He4_log_pf, dHe4_log_pf_dT9; + + // setting He4 log(partition function) to 0.0 by default, independent of T + He4_log_pf = 0.0_rt; + dHe4_log_pf_dT9 = 0.0_rt; + + amrex::Real Ti42_log_pf, dTi42_log_pf_dT9; + + // interpolating Ti42 partition function + get_partition_function_cached(Ti42, tfactors.T9, pf_cache, Ti42_log_pf, dTi42_log_pf_dT9); + + amrex::Real Cr46_log_pf, dCr46_log_pf_dT9; + + // interpolating Cr46 partition function + get_partition_function_cached(Cr46, tfactors.T9, pf_cache, Cr46_log_pf, dCr46_log_pf_dT9); + + amrex::Real net_log_pf = He4_log_pf + Ti42_log_pf - Cr46_log_pf; + [[maybe_unused]] amrex::Real net_dlog_pf_dT9 = dHe4_log_pf_dT9 + dTi42_log_pf_dT9 - dCr46_log_pf_dT9; + + amrex::Real ln_set_rate{0.0}; + amrex::Real dln_set_rate_dT9{0.0}; + amrex::Real set_rate{0.0}; + + // ReacLib set derived from ths8r + ln_set_rate = 79.53613543179074 + -78.82445373014531 * tfactors.T9i + -81.5598 * tfactors.T913i + -7.76887 * tfactors.T913 + + 1.52445 * tfactors.T9 + -0.287125 * tfactors.T953 + 0.833333 * tfactors.lnT9; + + ln_set_rate += net_log_pf; + + if constexpr (std::is_same_v) { + dln_set_rate_dT9 = 78.82445373014531 * tfactors.T9i * tfactors.T9i + -(1.0/3.0) * -81.5598 * tfactors.T943i + (1.0/3.0) * -7.76887 * tfactors.T923i + + 1.52445 + (5.0/3.0) * -0.287125 * tfactors.T923 + 0.833333 * tfactors.T9i; + + dln_set_rate_dT9 += net_dlog_pf_dT9; + } + + // avoid underflows by zeroing rates in [0.0, 1.e-100] + ln_set_rate = std::max(ln_set_rate, -230.0); + set_rate = std::exp(ln_set_rate); + rate += set_rate; + if constexpr (std::is_same_v) { + if (ln_set_rate > -230.0_rt) { + drate_dT += set_rate * dln_set_rate_dT9 * 1.0e-9_rt; + } + } + + rate_eval.screened_rates(k_Cr46_to_He4_Ti42_derived) = rate; + if constexpr (std::is_same_v) { + rate_eval.dscreened_rates_dT(k_Cr46_to_He4_Ti42_derived) = drate_dT; + } + } + + template + AMREX_GPU_DEVICE AMREX_INLINE + void rate_Cr48_to_p_V47_derived(T& rate_eval, const tf_t& tfactors, [[maybe_unused]] part_fun::pf_cache_t& pf_cache) { + + // Cr48 --> p + V47 + + amrex::Real rate{}, drate_dT{}; + // Evaluate partition function terms + + amrex::Real Cr48_log_pf, dCr48_log_pf_dT9; + + // interpolating Cr48 partition function + get_partition_function_cached(Cr48, tfactors.T9, pf_cache, Cr48_log_pf, dCr48_log_pf_dT9); + + amrex::Real p_log_pf, dp_log_pf_dT9; + + // setting p log(partition function) to 0.0 by default, independent of T + p_log_pf = 0.0_rt; + dp_log_pf_dT9 = 0.0_rt; + + amrex::Real V47_log_pf, dV47_log_pf_dT9; + + // interpolating V47 partition function + get_partition_function_cached(V47, tfactors.T9, pf_cache, V47_log_pf, dV47_log_pf_dT9); + + amrex::Real net_log_pf = p_log_pf + V47_log_pf - Cr48_log_pf; + [[maybe_unused]] amrex::Real net_dlog_pf_dT9 = dp_log_pf_dT9 + dV47_log_pf_dT9 - dCr48_log_pf_dT9; + + amrex::Real ln_set_rate{0.0}; + amrex::Real dln_set_rate_dT9{0.0}; + amrex::Real set_rate{0.0}; + + // ReacLib set derived from nfisn + ln_set_rate = 67.75975303984967 + -100.08956223422913 * tfactors.T9i + -34.0548 * tfactors.T913i + -3.41973 * tfactors.T913 + + 1.16501 * tfactors.T9 + -0.105543 * tfactors.T953 + -6.20886 * tfactors.lnT9; + + ln_set_rate += net_log_pf; + + if constexpr (std::is_same_v) { + dln_set_rate_dT9 = 100.08956223422913 * tfactors.T9i * tfactors.T9i + -(1.0/3.0) * -34.0548 * tfactors.T943i + (1.0/3.0) * -3.41973 * tfactors.T923i + + 1.16501 + (5.0/3.0) * -0.105543 * tfactors.T923 + -6.20886 * tfactors.T9i; + + dln_set_rate_dT9 += net_dlog_pf_dT9; + } + + // avoid underflows by zeroing rates in [0.0, 1.e-100] + ln_set_rate = std::max(ln_set_rate, -230.0); + set_rate = std::exp(ln_set_rate); + rate += set_rate; + if constexpr (std::is_same_v) { + if (ln_set_rate > -230.0_rt) { + drate_dT += set_rate * dln_set_rate_dT9 * 1.0e-9_rt; + } + } + + // ReacLib set derived from nfisn + ln_set_rate = 536.5429530398497 + -99.32517223422914 * tfactors.T9i + 317.171 * tfactors.T913i + -911.679 * tfactors.T913 + + 94.4245 * tfactors.T9 + -10.1973 * tfactors.T953 + 332.227 * tfactors.lnT9; + + ln_set_rate += net_log_pf; + + if constexpr (std::is_same_v) { + dln_set_rate_dT9 = 99.32517223422914 * tfactors.T9i * tfactors.T9i + -(1.0/3.0) * 317.171 * tfactors.T943i + (1.0/3.0) * -911.679 * tfactors.T923i + + 94.4245 + (5.0/3.0) * -10.1973 * tfactors.T923 + 332.227 * tfactors.T9i; + + dln_set_rate_dT9 += net_dlog_pf_dT9; + } + + // avoid underflows by zeroing rates in [0.0, 1.e-100] + ln_set_rate = std::max(ln_set_rate, -230.0); + set_rate = std::exp(ln_set_rate); + rate += set_rate; + if constexpr (std::is_same_v) { + if (ln_set_rate > -230.0_rt) { + drate_dT += set_rate * dln_set_rate_dT9 * 1.0e-9_rt; + } + } + + // ReacLib set derived from nfisn + ln_set_rate = 48.911453039849675 + -93.78359723422915 * tfactors.T9i + -45.9868 * tfactors.T913i + 13.6822 * tfactors.T913 + + -0.376902 * tfactors.T9 + -0.0194875 * tfactors.T953 + -6.9232499999999995 * tfactors.lnT9; + + ln_set_rate += net_log_pf; + + if constexpr (std::is_same_v) { + dln_set_rate_dT9 = 93.78359723422915 * tfactors.T9i * tfactors.T9i + -(1.0/3.0) * -45.9868 * tfactors.T943i + (1.0/3.0) * 13.6822 * tfactors.T923i + + -0.376902 + (5.0/3.0) * -0.0194875 * tfactors.T923 + -6.9232499999999995 * tfactors.T9i; + + dln_set_rate_dT9 += net_dlog_pf_dT9; + } + + // avoid underflows by zeroing rates in [0.0, 1.e-100] + ln_set_rate = std::max(ln_set_rate, -230.0); + set_rate = std::exp(ln_set_rate); + rate += set_rate; + if constexpr (std::is_same_v) { + if (ln_set_rate > -230.0_rt) { + drate_dT += set_rate * dln_set_rate_dT9 * 1.0e-9_rt; + } + } + + // ReacLib set derived from nfisn + ln_set_rate = 65.64255303984967 + -94.54467623422914 * tfactors.T9i + -110.655 * tfactors.T913i + 83.0232 * tfactors.T913 + + -19.7762 * tfactors.T9 + 3.03961 * tfactors.T953 + -47.9742 * tfactors.lnT9; + + ln_set_rate += net_log_pf; + + if constexpr (std::is_same_v) { + dln_set_rate_dT9 = 94.54467623422914 * tfactors.T9i * tfactors.T9i + -(1.0/3.0) * -110.655 * tfactors.T943i + (1.0/3.0) * 83.0232 * tfactors.T923i + + -19.7762 + (5.0/3.0) * 3.03961 * tfactors.T923 + -47.9742 * tfactors.T9i; + + dln_set_rate_dT9 += net_dlog_pf_dT9; + } + + // avoid underflows by zeroing rates in [0.0, 1.e-100] + ln_set_rate = std::max(ln_set_rate, -230.0); + set_rate = std::exp(ln_set_rate); + rate += set_rate; + if constexpr (std::is_same_v) { + if (ln_set_rate > -230.0_rt) { + drate_dT += set_rate * dln_set_rate_dT9 * 1.0e-9_rt; + } + } + + rate_eval.screened_rates(k_Cr48_to_p_V47_derived) = rate; + if constexpr (std::is_same_v) { + rate_eval.dscreened_rates_dT(k_Cr48_to_p_V47_derived) = drate_dT; + } + } + + template + AMREX_GPU_DEVICE AMREX_INLINE + void rate_Cr48_to_He4_Ti44_derived(T& rate_eval, const tf_t& tfactors, [[maybe_unused]] part_fun::pf_cache_t& pf_cache) { + + // Cr48 --> He4 + Ti44 + + amrex::Real rate{}, drate_dT{}; + // Evaluate partition function terms + + amrex::Real Cr48_log_pf, dCr48_log_pf_dT9; + + // interpolating Cr48 partition function + get_partition_function_cached(Cr48, tfactors.T9, pf_cache, Cr48_log_pf, dCr48_log_pf_dT9); + + amrex::Real He4_log_pf, dHe4_log_pf_dT9; + + // setting He4 log(partition function) to 0.0 by default, independent of T + He4_log_pf = 0.0_rt; + dHe4_log_pf_dT9 = 0.0_rt; + + amrex::Real Ti44_log_pf, dTi44_log_pf_dT9; + + // interpolating Ti44 partition function + get_partition_function_cached(Ti44, tfactors.T9, pf_cache, Ti44_log_pf, dTi44_log_pf_dT9); + + amrex::Real net_log_pf = He4_log_pf + Ti44_log_pf - Cr48_log_pf; + [[maybe_unused]] amrex::Real net_dlog_pf_dT9 = dHe4_log_pf_dT9 + dTi44_log_pf_dT9 - dCr48_log_pf_dT9; + + amrex::Real ln_set_rate{0.0}; + amrex::Real dln_set_rate_dT9{0.0}; + amrex::Real set_rate{0.0}; + + // ReacLib set derived from ths8r + ln_set_rate = 89.75906465832496 + -89.32364150067336 * tfactors.T9i + -81.667 * tfactors.T913i + -10.6333 * tfactors.T913 + + -0.672613 * tfactors.T9 + 0.161209 * tfactors.T953 + 0.833333 * tfactors.lnT9; + + ln_set_rate += net_log_pf; + + if constexpr (std::is_same_v) { + dln_set_rate_dT9 = 89.32364150067336 * tfactors.T9i * tfactors.T9i + -(1.0/3.0) * -81.667 * tfactors.T943i + (1.0/3.0) * -10.6333 * tfactors.T923i + + -0.672613 + (5.0/3.0) * 0.161209 * tfactors.T923 + 0.833333 * tfactors.T9i; + + dln_set_rate_dT9 += net_dlog_pf_dT9; + } + + // avoid underflows by zeroing rates in [0.0, 1.e-100] + ln_set_rate = std::max(ln_set_rate, -230.0); + set_rate = std::exp(ln_set_rate); + rate += set_rate; + if constexpr (std::is_same_v) { + if (ln_set_rate > -230.0_rt) { + drate_dT += set_rate * dln_set_rate_dT9 * 1.0e-9_rt; + } + } + + rate_eval.screened_rates(k_Cr48_to_He4_Ti44_derived) = rate; + if constexpr (std::is_same_v) { + rate_eval.dscreened_rates_dT(k_Cr48_to_He4_Ti44_derived) = drate_dT; + } + } + + template + AMREX_GPU_DEVICE AMREX_INLINE + void rate_Cr50_to_p_V49_derived(T& rate_eval, const tf_t& tfactors, [[maybe_unused]] part_fun::pf_cache_t& pf_cache) { + + // Cr50 --> p + V49 + + amrex::Real rate{}, drate_dT{}; + // Evaluate partition function terms + + amrex::Real V49_log_pf, dV49_log_pf_dT9; + + // interpolating V49 partition function + get_partition_function_cached(V49, tfactors.T9, pf_cache, V49_log_pf, dV49_log_pf_dT9); + + amrex::Real p_log_pf, dp_log_pf_dT9; + + // setting p log(partition function) to 0.0 by default, independent of T + p_log_pf = 0.0_rt; + dp_log_pf_dT9 = 0.0_rt; + + amrex::Real Cr50_log_pf, dCr50_log_pf_dT9; + + // interpolating Cr50 partition function + get_partition_function_cached(Cr50, tfactors.T9, pf_cache, Cr50_log_pf, dCr50_log_pf_dT9); + + amrex::Real net_log_pf = p_log_pf + V49_log_pf - Cr50_log_pf; + [[maybe_unused]] amrex::Real net_dlog_pf_dT9 = dp_log_pf_dT9 + dV49_log_pf_dT9 - dCr50_log_pf_dT9; + + amrex::Real ln_set_rate{0.0}; + amrex::Real dln_set_rate_dT9{0.0}; + amrex::Real set_rate{0.0}; + + // ReacLib set derived from ths8r + ln_set_rate = 61.00795168922196 + -111.26564068398237 * tfactors.T9i + -34.217 * tfactors.T913i + 1.28258 * tfactors.T913 + + -1.5098 * tfactors.T9 + 0.142011 * tfactors.T953 + 0.833333 * tfactors.lnT9; + + ln_set_rate += net_log_pf; + + if constexpr (std::is_same_v) { + dln_set_rate_dT9 = 111.26564068398237 * tfactors.T9i * tfactors.T9i + -(1.0/3.0) * -34.217 * tfactors.T943i + (1.0/3.0) * 1.28258 * tfactors.T923i + + -1.5098 + (5.0/3.0) * 0.142011 * tfactors.T923 + 0.833333 * tfactors.T9i; + + dln_set_rate_dT9 += net_dlog_pf_dT9; + } + + // avoid underflows by zeroing rates in [0.0, 1.e-100] + ln_set_rate = std::max(ln_set_rate, -230.0); + set_rate = std::exp(ln_set_rate); + rate += set_rate; + if constexpr (std::is_same_v) { + if (ln_set_rate > -230.0_rt) { + drate_dT += set_rate * dln_set_rate_dT9 * 1.0e-9_rt; + } + } + + rate_eval.screened_rates(k_Cr50_to_p_V49_derived) = rate; + if constexpr (std::is_same_v) { + rate_eval.dscreened_rates_dT(k_Cr50_to_p_V49_derived) = drate_dT; + } + } + + template + AMREX_GPU_DEVICE AMREX_INLINE + void rate_Cr50_to_He4_Ti46_derived(T& rate_eval, const tf_t& tfactors, [[maybe_unused]] part_fun::pf_cache_t& pf_cache) { + + // Cr50 --> He4 + Ti46 + + amrex::Real rate{}, drate_dT{}; + // Evaluate partition function terms + + amrex::Real Ti46_log_pf, dTi46_log_pf_dT9; + + // interpolating Ti46 partition function + get_partition_function_cached(Ti46, tfactors.T9, pf_cache, Ti46_log_pf, dTi46_log_pf_dT9); + + amrex::Real He4_log_pf, dHe4_log_pf_dT9; + + // setting He4 log(partition function) to 0.0 by default, independent of T + He4_log_pf = 0.0_rt; + dHe4_log_pf_dT9 = 0.0_rt; + + amrex::Real Cr50_log_pf, dCr50_log_pf_dT9; + + // interpolating Cr50 partition function + get_partition_function_cached(Cr50, tfactors.T9, pf_cache, Cr50_log_pf, dCr50_log_pf_dT9); + + amrex::Real net_log_pf = He4_log_pf + Ti46_log_pf - Cr50_log_pf; + [[maybe_unused]] amrex::Real net_dlog_pf_dT9 = dHe4_log_pf_dT9 + dTi46_log_pf_dT9 - dCr50_log_pf_dT9; + + amrex::Real ln_set_rate{0.0}; + amrex::Real dln_set_rate_dT9{0.0}; + amrex::Real set_rate{0.0}; + + // ReacLib set derived from ths8r + ln_set_rate = 82.00592864021027 + -99.31153420274927 * tfactors.T9i + -81.7658 * tfactors.T913i + 3.48637 * tfactors.T913 + + -3.9188 * tfactors.T9 + 0.440356 * tfactors.T953 + 0.833333 * tfactors.lnT9; + + ln_set_rate += net_log_pf; + + if constexpr (std::is_same_v) { + dln_set_rate_dT9 = 99.31153420274927 * tfactors.T9i * tfactors.T9i + -(1.0/3.0) * -81.7658 * tfactors.T943i + (1.0/3.0) * 3.48637 * tfactors.T923i + + -3.9188 + (5.0/3.0) * 0.440356 * tfactors.T923 + 0.833333 * tfactors.T9i; + + dln_set_rate_dT9 += net_dlog_pf_dT9; + } + + // avoid underflows by zeroing rates in [0.0, 1.e-100] + ln_set_rate = std::max(ln_set_rate, -230.0); + set_rate = std::exp(ln_set_rate); + rate += set_rate; + if constexpr (std::is_same_v) { + if (ln_set_rate > -230.0_rt) { + drate_dT += set_rate * dln_set_rate_dT9 * 1.0e-9_rt; + } + } + + rate_eval.screened_rates(k_Cr50_to_He4_Ti46_derived) = rate; + if constexpr (std::is_same_v) { + rate_eval.dscreened_rates_dT(k_Cr50_to_He4_Ti46_derived) = drate_dT; + } + } + + template + AMREX_GPU_DEVICE AMREX_INLINE + void rate_Mn49_to_p_Cr48_derived(T& rate_eval, const tf_t& tfactors, [[maybe_unused]] part_fun::pf_cache_t& pf_cache) { + + // Mn49 --> p + Cr48 + + amrex::Real rate{}, drate_dT{}; + // Evaluate partition function terms + + amrex::Real Cr48_log_pf, dCr48_log_pf_dT9; + + // interpolating Cr48 partition function + get_partition_function_cached(Cr48, tfactors.T9, pf_cache, Cr48_log_pf, dCr48_log_pf_dT9); + + amrex::Real p_log_pf, dp_log_pf_dT9; + + // setting p log(partition function) to 0.0 by default, independent of T + p_log_pf = 0.0_rt; + dp_log_pf_dT9 = 0.0_rt; + + amrex::Real Mn49_log_pf, dMn49_log_pf_dT9; + + // interpolating Mn49 partition function + get_partition_function_cached(Mn49, tfactors.T9, pf_cache, Mn49_log_pf, dMn49_log_pf_dT9); + + amrex::Real net_log_pf = p_log_pf + Cr48_log_pf - Mn49_log_pf; + [[maybe_unused]] amrex::Real net_dlog_pf_dT9 = dp_log_pf_dT9 + dCr48_log_pf_dT9 - dMn49_log_pf_dT9; + + amrex::Real ln_set_rate{0.0}; + amrex::Real dln_set_rate_dT9{0.0}; + amrex::Real set_rate{0.0}; + + // ReacLib set derived from ths8r + ln_set_rate = 60.43582082218232 + -24.22873759767555 * tfactors.T9i + -35.1969 * tfactors.T913i + -3.36393 * tfactors.T913 + + -1.55965 * tfactors.T9 + 0.237119 * tfactors.T953 + 0.833333 * tfactors.lnT9; + + ln_set_rate += net_log_pf; + + if constexpr (std::is_same_v) { + dln_set_rate_dT9 = 24.22873759767555 * tfactors.T9i * tfactors.T9i + -(1.0/3.0) * -35.1969 * tfactors.T943i + (1.0/3.0) * -3.36393 * tfactors.T923i + + -1.55965 + (5.0/3.0) * 0.237119 * tfactors.T923 + 0.833333 * tfactors.T9i; + + dln_set_rate_dT9 += net_dlog_pf_dT9; + } + + // avoid underflows by zeroing rates in [0.0, 1.e-100] + ln_set_rate = std::max(ln_set_rate, -230.0); + set_rate = std::exp(ln_set_rate); + rate += set_rate; + if constexpr (std::is_same_v) { + if (ln_set_rate > -230.0_rt) { + drate_dT += set_rate * dln_set_rate_dT9 * 1.0e-9_rt; + } + } + + rate_eval.screened_rates(k_Mn49_to_p_Cr48_derived) = rate; + if constexpr (std::is_same_v) { + rate_eval.dscreened_rates_dT(k_Mn49_to_p_Cr48_derived) = drate_dT; + } + } + + template + AMREX_GPU_DEVICE AMREX_INLINE + void rate_Mn49_to_He4_V45_derived(T& rate_eval, const tf_t& tfactors, [[maybe_unused]] part_fun::pf_cache_t& pf_cache) { + + // Mn49 --> He4 + V45 + + amrex::Real rate{}, drate_dT{}; + // Evaluate partition function terms + + amrex::Real He4_log_pf, dHe4_log_pf_dT9; + + // setting He4 log(partition function) to 0.0 by default, independent of T + He4_log_pf = 0.0_rt; + dHe4_log_pf_dT9 = 0.0_rt; + + amrex::Real V45_log_pf, dV45_log_pf_dT9; + + // interpolating V45 partition function + get_partition_function_cached(V45, tfactors.T9, pf_cache, V45_log_pf, dV45_log_pf_dT9); + + amrex::Real Mn49_log_pf, dMn49_log_pf_dT9; + + // interpolating Mn49 partition function + get_partition_function_cached(Mn49, tfactors.T9, pf_cache, Mn49_log_pf, dMn49_log_pf_dT9); + + amrex::Real net_log_pf = He4_log_pf + V45_log_pf - Mn49_log_pf; + [[maybe_unused]] amrex::Real net_dlog_pf_dT9 = dHe4_log_pf_dT9 + dV45_log_pf_dT9 - dMn49_log_pf_dT9; + + amrex::Real ln_set_rate{0.0}; + amrex::Real dln_set_rate_dT9{0.0}; + amrex::Real set_rate{0.0}; + + // ReacLib set derived from ths8r + ln_set_rate = 77.07158196897863 + -94.67448480649189 * tfactors.T9i + -84.1758 * tfactors.T913i + -2.09835 * tfactors.T913 + + -0.662318 * tfactors.T9 + 0.0293536 * tfactors.T953 + 0.833333 * tfactors.lnT9; + + ln_set_rate += net_log_pf; + + if constexpr (std::is_same_v) { + dln_set_rate_dT9 = 94.67448480649189 * tfactors.T9i * tfactors.T9i + -(1.0/3.0) * -84.1758 * tfactors.T943i + (1.0/3.0) * -2.09835 * tfactors.T923i + + -0.662318 + (5.0/3.0) * 0.0293536 * tfactors.T923 + 0.833333 * tfactors.T9i; + + dln_set_rate_dT9 += net_dlog_pf_dT9; + } + + // avoid underflows by zeroing rates in [0.0, 1.e-100] + ln_set_rate = std::max(ln_set_rate, -230.0); + set_rate = std::exp(ln_set_rate); + rate += set_rate; + if constexpr (std::is_same_v) { + if (ln_set_rate > -230.0_rt) { + drate_dT += set_rate * dln_set_rate_dT9 * 1.0e-9_rt; + } + } + + rate_eval.screened_rates(k_Mn49_to_He4_V45_derived) = rate; + if constexpr (std::is_same_v) { + rate_eval.dscreened_rates_dT(k_Mn49_to_He4_V45_derived) = drate_dT; + } + } + + template + AMREX_GPU_DEVICE AMREX_INLINE + void rate_Mn51_to_p_Cr50_derived(T& rate_eval, const tf_t& tfactors, [[maybe_unused]] part_fun::pf_cache_t& pf_cache) { + + // Mn51 --> p + Cr50 + + amrex::Real rate{}, drate_dT{}; + // Evaluate partition function terms + + amrex::Real Mn51_log_pf, dMn51_log_pf_dT9; + + // interpolating Mn51 partition function + get_partition_function_cached(Mn51, tfactors.T9, pf_cache, Mn51_log_pf, dMn51_log_pf_dT9); + + amrex::Real p_log_pf, dp_log_pf_dT9; + + // setting p log(partition function) to 0.0 by default, independent of T + p_log_pf = 0.0_rt; + dp_log_pf_dT9 = 0.0_rt; + + amrex::Real Cr50_log_pf, dCr50_log_pf_dT9; + + // interpolating Cr50 partition function + get_partition_function_cached(Cr50, tfactors.T9, pf_cache, Cr50_log_pf, dCr50_log_pf_dT9); + + amrex::Real net_log_pf = p_log_pf + Cr50_log_pf - Mn51_log_pf; + [[maybe_unused]] amrex::Real net_dlog_pf_dT9 = dp_log_pf_dT9 + dCr50_log_pf_dT9 - dMn51_log_pf_dT9; + + amrex::Real ln_set_rate{0.0}; + amrex::Real dln_set_rate_dT9{0.0}; + amrex::Real set_rate{0.0}; + + // ReacLib set derived from ths8r + ln_set_rate = 57.756820578960856 + -61.16522250740343 * tfactors.T9i + -35.2065 * tfactors.T913i + 0.884621 * tfactors.T913 + + -1.76421 * tfactors.T9 + 0.202494 * tfactors.T953 + 0.833333 * tfactors.lnT9; + + ln_set_rate += net_log_pf; + + if constexpr (std::is_same_v) { + dln_set_rate_dT9 = 61.16522250740343 * tfactors.T9i * tfactors.T9i + -(1.0/3.0) * -35.2065 * tfactors.T943i + (1.0/3.0) * 0.884621 * tfactors.T923i + + -1.76421 + (5.0/3.0) * 0.202494 * tfactors.T923 + 0.833333 * tfactors.T9i; + + dln_set_rate_dT9 += net_dlog_pf_dT9; + } + + // avoid underflows by zeroing rates in [0.0, 1.e-100] + ln_set_rate = std::max(ln_set_rate, -230.0); + set_rate = std::exp(ln_set_rate); + rate += set_rate; + if constexpr (std::is_same_v) { + if (ln_set_rate > -230.0_rt) { + drate_dT += set_rate * dln_set_rate_dT9 * 1.0e-9_rt; + } + } + + rate_eval.screened_rates(k_Mn51_to_p_Cr50_derived) = rate; + if constexpr (std::is_same_v) { + rate_eval.dscreened_rates_dT(k_Mn51_to_p_Cr50_derived) = drate_dT; + } + } + + template + AMREX_GPU_DEVICE AMREX_INLINE + void rate_Mn51_to_He4_V47_derived(T& rate_eval, const tf_t& tfactors, [[maybe_unused]] part_fun::pf_cache_t& pf_cache) { + + // Mn51 --> He4 + V47 + + amrex::Real rate{}, drate_dT{}; + // Evaluate partition function terms + + amrex::Real Mn51_log_pf, dMn51_log_pf_dT9; + + // interpolating Mn51 partition function + get_partition_function_cached(Mn51, tfactors.T9, pf_cache, Mn51_log_pf, dMn51_log_pf_dT9); + + amrex::Real He4_log_pf, dHe4_log_pf_dT9; + + // setting He4 log(partition function) to 0.0 by default, independent of T + He4_log_pf = 0.0_rt; + dHe4_log_pf_dT9 = 0.0_rt; + + amrex::Real V47_log_pf, dV47_log_pf_dT9; + + // interpolating V47 partition function + get_partition_function_cached(V47, tfactors.T9, pf_cache, V47_log_pf, dV47_log_pf_dT9); + + amrex::Real net_log_pf = He4_log_pf + V47_log_pf - Mn51_log_pf; + [[maybe_unused]] amrex::Real net_dlog_pf_dT9 = dHe4_log_pf_dT9 + dV47_log_pf_dT9 - dMn51_log_pf_dT9; + + amrex::Real ln_set_rate{0.0}; + amrex::Real dln_set_rate_dT9{0.0}; + amrex::Real set_rate{0.0}; + + // ReacLib set derived from ths8r + ln_set_rate = 81.42763571008429 + -100.50726374990671 * tfactors.T9i + -84.2732 * tfactors.T913i + -2.98061 * tfactors.T913 + + -0.531361 * tfactors.T9 + 0.023612 * tfactors.T953 + 0.833333 * tfactors.lnT9; + + ln_set_rate += net_log_pf; + + if constexpr (std::is_same_v) { + dln_set_rate_dT9 = 100.50726374990671 * tfactors.T9i * tfactors.T9i + -(1.0/3.0) * -84.2732 * tfactors.T943i + (1.0/3.0) * -2.98061 * tfactors.T923i + + -0.531361 + (5.0/3.0) * 0.023612 * tfactors.T923 + 0.833333 * tfactors.T9i; + + dln_set_rate_dT9 += net_dlog_pf_dT9; + } + + // avoid underflows by zeroing rates in [0.0, 1.e-100] + ln_set_rate = std::max(ln_set_rate, -230.0); + set_rate = std::exp(ln_set_rate); + rate += set_rate; + if constexpr (std::is_same_v) { + if (ln_set_rate > -230.0_rt) { + drate_dT += set_rate * dln_set_rate_dT9 * 1.0e-9_rt; + } + } + + rate_eval.screened_rates(k_Mn51_to_He4_V47_derived) = rate; + if constexpr (std::is_same_v) { + rate_eval.dscreened_rates_dT(k_Mn51_to_He4_V47_derived) = drate_dT; + } + } + + template + AMREX_GPU_DEVICE AMREX_INLINE + void rate_Mn53_to_p_Cr52_derived(T& rate_eval, const tf_t& tfactors, [[maybe_unused]] part_fun::pf_cache_t& pf_cache) { + + // Mn53 --> p + Cr52 + + amrex::Real rate{}, drate_dT{}; + // Evaluate partition function terms + + amrex::Real p_log_pf, dp_log_pf_dT9; + + // setting p log(partition function) to 0.0 by default, independent of T + p_log_pf = 0.0_rt; + dp_log_pf_dT9 = 0.0_rt; + + amrex::Real Mn53_log_pf, dMn53_log_pf_dT9; + + // interpolating Mn53 partition function + get_partition_function_cached(Mn53, tfactors.T9, pf_cache, Mn53_log_pf, dMn53_log_pf_dT9); + + amrex::Real Cr52_log_pf, dCr52_log_pf_dT9; + + // interpolating Cr52 partition function + get_partition_function_cached(Cr52, tfactors.T9, pf_cache, Cr52_log_pf, dCr52_log_pf_dT9); + + amrex::Real net_log_pf = p_log_pf + Cr52_log_pf - Mn53_log_pf; + [[maybe_unused]] amrex::Real net_dlog_pf_dT9 = dp_log_pf_dT9 + dCr52_log_pf_dT9 - dMn53_log_pf_dT9; + + amrex::Real ln_set_rate{0.0}; + amrex::Real dln_set_rate_dT9{0.0}; + amrex::Real set_rate{0.0}; + + // ReacLib set derived from ths8r + ln_set_rate = 57.31253842897789 + -76.122866140133 * tfactors.T9i + -35.2154 * tfactors.T913i + 0.73019 * tfactors.T913 + + -1.26018 * tfactors.T9 + 0.121141 * tfactors.T953 + 0.833333 * tfactors.lnT9; + + ln_set_rate += net_log_pf; + + if constexpr (std::is_same_v) { + dln_set_rate_dT9 = 76.122866140133 * tfactors.T9i * tfactors.T9i + -(1.0/3.0) * -35.2154 * tfactors.T943i + (1.0/3.0) * 0.73019 * tfactors.T923i + + -1.26018 + (5.0/3.0) * 0.121141 * tfactors.T923 + 0.833333 * tfactors.T9i; + + dln_set_rate_dT9 += net_dlog_pf_dT9; + } + + // avoid underflows by zeroing rates in [0.0, 1.e-100] + ln_set_rate = std::max(ln_set_rate, -230.0); + set_rate = std::exp(ln_set_rate); + rate += set_rate; + if constexpr (std::is_same_v) { + if (ln_set_rate > -230.0_rt) { + drate_dT += set_rate * dln_set_rate_dT9 * 1.0e-9_rt; + } + } + + rate_eval.screened_rates(k_Mn53_to_p_Cr52_derived) = rate; + if constexpr (std::is_same_v) { + rate_eval.dscreened_rates_dT(k_Mn53_to_p_Cr52_derived) = drate_dT; + } + } + + template + AMREX_GPU_DEVICE AMREX_INLINE + void rate_Mn53_to_He4_V49_derived(T& rate_eval, const tf_t& tfactors, [[maybe_unused]] part_fun::pf_cache_t& pf_cache) { + + // Mn53 --> He4 + V49 + + amrex::Real rate{}, drate_dT{}; + // Evaluate partition function terms + + amrex::Real V49_log_pf, dV49_log_pf_dT9; + + // interpolating V49 partition function + get_partition_function_cached(V49, tfactors.T9, pf_cache, V49_log_pf, dV49_log_pf_dT9); + + amrex::Real He4_log_pf, dHe4_log_pf_dT9; + + // setting He4 log(partition function) to 0.0 by default, independent of T + He4_log_pf = 0.0_rt; + dHe4_log_pf_dT9 = 0.0_rt; + + amrex::Real Mn53_log_pf, dMn53_log_pf_dT9; + + // interpolating Mn53 partition function + get_partition_function_cached(Mn53, tfactors.T9, pf_cache, Mn53_log_pf, dMn53_log_pf_dT9); + + amrex::Real net_log_pf = He4_log_pf + V49_log_pf - Mn53_log_pf; + [[maybe_unused]] amrex::Real net_dlog_pf_dT9 = dHe4_log_pf_dT9 + dV49_log_pf_dT9 - dMn53_log_pf_dT9; + + amrex::Real ln_set_rate{0.0}; + amrex::Real dln_set_rate_dT9{0.0}; + amrex::Real set_rate{0.0}; + + // ReacLib set derived from ths8r + ln_set_rate = 87.43161285745258 + -106.21633853020451 * tfactors.T9i + -84.3633 * tfactors.T913i + -5.28933 * tfactors.T913 + + -1.3103 * tfactors.T9 + 0.187088 * tfactors.T953 + 0.833333 * tfactors.lnT9; + + ln_set_rate += net_log_pf; + + if constexpr (std::is_same_v) { + dln_set_rate_dT9 = 106.21633853020451 * tfactors.T9i * tfactors.T9i + -(1.0/3.0) * -84.3633 * tfactors.T943i + (1.0/3.0) * -5.28933 * tfactors.T923i + + -1.3103 + (5.0/3.0) * 0.187088 * tfactors.T923 + 0.833333 * tfactors.T9i; + + dln_set_rate_dT9 += net_dlog_pf_dT9; + } + + // avoid underflows by zeroing rates in [0.0, 1.e-100] + ln_set_rate = std::max(ln_set_rate, -230.0); + set_rate = std::exp(ln_set_rate); + rate += set_rate; + if constexpr (std::is_same_v) { + if (ln_set_rate > -230.0_rt) { + drate_dT += set_rate * dln_set_rate_dT9 * 1.0e-9_rt; + } + } + + rate_eval.screened_rates(k_Mn53_to_He4_V49_derived) = rate; + if constexpr (std::is_same_v) { + rate_eval.dscreened_rates_dT(k_Mn53_to_He4_V49_derived) = drate_dT; + } + } + + template + AMREX_GPU_DEVICE AMREX_INLINE + void rate_Fe50_to_p_Mn49_derived(T& rate_eval, const tf_t& tfactors, [[maybe_unused]] part_fun::pf_cache_t& pf_cache) { + + // Fe50 --> p + Mn49 + + amrex::Real rate{}, drate_dT{}; + // Evaluate partition function terms + + amrex::Real Fe50_log_pf, dFe50_log_pf_dT9; + + // interpolating Fe50 partition function + get_partition_function_cached(Fe50, tfactors.T9, pf_cache, Fe50_log_pf, dFe50_log_pf_dT9); + + amrex::Real p_log_pf, dp_log_pf_dT9; + + // setting p log(partition function) to 0.0 by default, independent of T + p_log_pf = 0.0_rt; + dp_log_pf_dT9 = 0.0_rt; + + amrex::Real Mn49_log_pf, dMn49_log_pf_dT9; + + // interpolating Mn49 partition function + get_partition_function_cached(Mn49, tfactors.T9, pf_cache, Mn49_log_pf, dMn49_log_pf_dT9); + + amrex::Real net_log_pf = p_log_pf + Mn49_log_pf - Fe50_log_pf; + [[maybe_unused]] amrex::Real net_dlog_pf_dT9 = dp_log_pf_dT9 + dMn49_log_pf_dT9 - dFe50_log_pf_dT9; + + amrex::Real ln_set_rate{0.0}; + amrex::Real dln_set_rate_dT9{0.0}; + amrex::Real set_rate{0.0}; + + // ReacLib set derived from ths8r + ln_set_rate = 61.5702885380999 + -48.10155227730567 * tfactors.T9i + -36.173 * tfactors.T913i + 1.28192 * tfactors.T913 + + -3.04331 * tfactors.T9 + 0.393688 * tfactors.T953 + 0.833333 * tfactors.lnT9; + + ln_set_rate += net_log_pf; + + if constexpr (std::is_same_v) { + dln_set_rate_dT9 = 48.10155227730567 * tfactors.T9i * tfactors.T9i + -(1.0/3.0) * -36.173 * tfactors.T943i + (1.0/3.0) * 1.28192 * tfactors.T923i + + -3.04331 + (5.0/3.0) * 0.393688 * tfactors.T923 + 0.833333 * tfactors.T9i; + + dln_set_rate_dT9 += net_dlog_pf_dT9; + } + + // avoid underflows by zeroing rates in [0.0, 1.e-100] + ln_set_rate = std::max(ln_set_rate, -230.0); + set_rate = std::exp(ln_set_rate); + rate += set_rate; + if constexpr (std::is_same_v) { + if (ln_set_rate > -230.0_rt) { + drate_dT += set_rate * dln_set_rate_dT9 * 1.0e-9_rt; + } + } + + rate_eval.screened_rates(k_Fe50_to_p_Mn49_derived) = rate; + if constexpr (std::is_same_v) { + rate_eval.dscreened_rates_dT(k_Fe50_to_p_Mn49_derived) = drate_dT; + } + } + + template + AMREX_GPU_DEVICE AMREX_INLINE + void rate_Fe50_to_He4_Cr46_derived(T& rate_eval, const tf_t& tfactors, [[maybe_unused]] part_fun::pf_cache_t& pf_cache) { + + // Fe50 --> He4 + Cr46 + + amrex::Real rate{}, drate_dT{}; + // Evaluate partition function terms + + amrex::Real Fe50_log_pf, dFe50_log_pf_dT9; + + // interpolating Fe50 partition function + get_partition_function_cached(Fe50, tfactors.T9, pf_cache, Fe50_log_pf, dFe50_log_pf_dT9); + + amrex::Real He4_log_pf, dHe4_log_pf_dT9; + + // setting He4 log(partition function) to 0.0 by default, independent of T + He4_log_pf = 0.0_rt; + dHe4_log_pf_dT9 = 0.0_rt; + + amrex::Real Cr46_log_pf, dCr46_log_pf_dT9; + + // interpolating Cr46 partition function + get_partition_function_cached(Cr46, tfactors.T9, pf_cache, Cr46_log_pf, dCr46_log_pf_dT9); + + amrex::Real net_log_pf = He4_log_pf + Cr46_log_pf - Fe50_log_pf; + [[maybe_unused]] amrex::Real net_dlog_pf_dT9 = dHe4_log_pf_dT9 + dCr46_log_pf_dT9 - dFe50_log_pf_dT9; + + amrex::Real ln_set_rate{0.0}; + amrex::Real dln_set_rate_dT9{0.0}; + amrex::Real set_rate{0.0}; + + // ReacLib set derived from ths8r + ln_set_rate = 81.32553640671367 + -86.2089888369161 * tfactors.T9i + -86.6499 * tfactors.T913i + -6.44312 * tfactors.T913 + + 1.15026 * tfactors.T9 + -0.173961 * tfactors.T953 + 0.833333 * tfactors.lnT9; + + ln_set_rate += net_log_pf; + + if constexpr (std::is_same_v) { + dln_set_rate_dT9 = 86.2089888369161 * tfactors.T9i * tfactors.T9i + -(1.0/3.0) * -86.6499 * tfactors.T943i + (1.0/3.0) * -6.44312 * tfactors.T923i + + 1.15026 + (5.0/3.0) * -0.173961 * tfactors.T923 + 0.833333 * tfactors.T9i; + + dln_set_rate_dT9 += net_dlog_pf_dT9; + } + + // avoid underflows by zeroing rates in [0.0, 1.e-100] + ln_set_rate = std::max(ln_set_rate, -230.0); + set_rate = std::exp(ln_set_rate); + rate += set_rate; + if constexpr (std::is_same_v) { + if (ln_set_rate > -230.0_rt) { + drate_dT += set_rate * dln_set_rate_dT9 * 1.0e-9_rt; + } + } + + rate_eval.screened_rates(k_Fe50_to_He4_Cr46_derived) = rate; + if constexpr (std::is_same_v) { + rate_eval.dscreened_rates_dT(k_Fe50_to_He4_Cr46_derived) = drate_dT; + } + } + + template + AMREX_GPU_DEVICE AMREX_INLINE + void rate_Fe52_to_p_Mn51_derived(T& rate_eval, const tf_t& tfactors, [[maybe_unused]] part_fun::pf_cache_t& pf_cache) { + + // Fe52 --> p + Mn51 + + amrex::Real rate{}, drate_dT{}; + // Evaluate partition function terms + + amrex::Real Mn51_log_pf, dMn51_log_pf_dT9; + + // interpolating Mn51 partition function + get_partition_function_cached(Mn51, tfactors.T9, pf_cache, Mn51_log_pf, dMn51_log_pf_dT9); + + amrex::Real p_log_pf, dp_log_pf_dT9; + + // setting p log(partition function) to 0.0 by default, independent of T + p_log_pf = 0.0_rt; + dp_log_pf_dT9 = 0.0_rt; + + amrex::Real Fe52_log_pf, dFe52_log_pf_dT9; + + // interpolating Fe52 partition function + get_partition_function_cached(Fe52, tfactors.T9, pf_cache, Fe52_log_pf, dFe52_log_pf_dT9); + + amrex::Real net_log_pf = p_log_pf + Mn51_log_pf - Fe52_log_pf; + [[maybe_unused]] amrex::Real net_dlog_pf_dT9 = dp_log_pf_dT9 + dMn51_log_pf_dT9 - dFe52_log_pf_dT9; + + amrex::Real ln_set_rate{0.0}; + amrex::Real dln_set_rate_dT9{0.0}; + amrex::Real set_rate{0.0}; + + // ReacLib set derived from ths8r + ln_set_rate = 61.74743132228039 + -85.61663846070292 * tfactors.T9i + -36.1825 * tfactors.T913i + 0.873042 * tfactors.T913 + + -2.89731 * tfactors.T9 + 0.364394 * tfactors.T953 + 0.833333 * tfactors.lnT9; + + ln_set_rate += net_log_pf; + + if constexpr (std::is_same_v) { + dln_set_rate_dT9 = 85.61663846070292 * tfactors.T9i * tfactors.T9i + -(1.0/3.0) * -36.1825 * tfactors.T943i + (1.0/3.0) * 0.873042 * tfactors.T923i + + -2.89731 + (5.0/3.0) * 0.364394 * tfactors.T923 + 0.833333 * tfactors.T9i; + + dln_set_rate_dT9 += net_dlog_pf_dT9; + } + + // avoid underflows by zeroing rates in [0.0, 1.e-100] + ln_set_rate = std::max(ln_set_rate, -230.0); + set_rate = std::exp(ln_set_rate); + rate += set_rate; + if constexpr (std::is_same_v) { + if (ln_set_rate > -230.0_rt) { + drate_dT += set_rate * dln_set_rate_dT9 * 1.0e-9_rt; + } + } + + rate_eval.screened_rates(k_Fe52_to_p_Mn51_derived) = rate; + if constexpr (std::is_same_v) { + rate_eval.dscreened_rates_dT(k_Fe52_to_p_Mn51_derived) = drate_dT; + } + } + + template + AMREX_GPU_DEVICE AMREX_INLINE + void rate_Fe52_to_He4_Cr48_derived(T& rate_eval, const tf_t& tfactors, [[maybe_unused]] part_fun::pf_cache_t& pf_cache) { + + // Fe52 --> He4 + Cr48 + + amrex::Real rate{}, drate_dT{}; + // Evaluate partition function terms + + amrex::Real Cr48_log_pf, dCr48_log_pf_dT9; + + // interpolating Cr48 partition function + get_partition_function_cached(Cr48, tfactors.T9, pf_cache, Cr48_log_pf, dCr48_log_pf_dT9); + + amrex::Real He4_log_pf, dHe4_log_pf_dT9; + + // setting He4 log(partition function) to 0.0 by default, independent of T + He4_log_pf = 0.0_rt; + dHe4_log_pf_dT9 = 0.0_rt; + + amrex::Real Fe52_log_pf, dFe52_log_pf_dT9; + + // interpolating Fe52 partition function + get_partition_function_cached(Fe52, tfactors.T9, pf_cache, Fe52_log_pf, dFe52_log_pf_dT9); + + amrex::Real net_log_pf = He4_log_pf + Cr48_log_pf - Fe52_log_pf; + [[maybe_unused]] amrex::Real net_dlog_pf_dT9 = dHe4_log_pf_dT9 + dCr48_log_pf_dT9 - dFe52_log_pf_dT9; + + amrex::Real ln_set_rate{0.0}; + amrex::Real dln_set_rate_dT9{0.0}; + amrex::Real set_rate{0.0}; + + // ReacLib set derived from ths8r + ln_set_rate = 90.149113992515 + -92.09363997638769 * tfactors.T9i + -86.7459 * tfactors.T913i + -9.79373 * tfactors.T913 + + -0.772169 * tfactors.T9 + 0.155883 * tfactors.T953 + 0.833333 * tfactors.lnT9; + + ln_set_rate += net_log_pf; + + if constexpr (std::is_same_v) { + dln_set_rate_dT9 = 92.09363997638769 * tfactors.T9i * tfactors.T9i + -(1.0/3.0) * -86.7459 * tfactors.T943i + (1.0/3.0) * -9.79373 * tfactors.T923i + + -0.772169 + (5.0/3.0) * 0.155883 * tfactors.T923 + 0.833333 * tfactors.T9i; + + dln_set_rate_dT9 += net_dlog_pf_dT9; + } + + // avoid underflows by zeroing rates in [0.0, 1.e-100] + ln_set_rate = std::max(ln_set_rate, -230.0); + set_rate = std::exp(ln_set_rate); + rate += set_rate; + if constexpr (std::is_same_v) { + if (ln_set_rate > -230.0_rt) { + drate_dT += set_rate * dln_set_rate_dT9 * 1.0e-9_rt; + } + } + + rate_eval.screened_rates(k_Fe52_to_He4_Cr48_derived) = rate; + if constexpr (std::is_same_v) { + rate_eval.dscreened_rates_dT(k_Fe52_to_He4_Cr48_derived) = drate_dT; + } + } + + template + AMREX_GPU_DEVICE AMREX_INLINE + void rate_Fe54_to_p_Mn53_derived(T& rate_eval, const tf_t& tfactors, [[maybe_unused]] part_fun::pf_cache_t& pf_cache) { + + // Fe54 --> p + Mn53 + + amrex::Real rate{}, drate_dT{}; + // Evaluate partition function terms + + amrex::Real p_log_pf, dp_log_pf_dT9; + + // setting p log(partition function) to 0.0 by default, independent of T + p_log_pf = 0.0_rt; + dp_log_pf_dT9 = 0.0_rt; + + amrex::Real Mn53_log_pf, dMn53_log_pf_dT9; + + // interpolating Mn53 partition function + get_partition_function_cached(Mn53, tfactors.T9, pf_cache, Mn53_log_pf, dMn53_log_pf_dT9); + + amrex::Real Fe54_log_pf, dFe54_log_pf_dT9; + + // interpolating Fe54 partition function + get_partition_function_cached(Fe54, tfactors.T9, pf_cache, Fe54_log_pf, dFe54_log_pf_dT9); + + amrex::Real net_log_pf = p_log_pf + Mn53_log_pf - Fe54_log_pf; + [[maybe_unused]] amrex::Real net_dlog_pf_dT9 = dp_log_pf_dT9 + dMn53_log_pf_dT9 - dFe54_log_pf_dT9; + + amrex::Real ln_set_rate{0.0}; + amrex::Real dln_set_rate_dT9{0.0}; + amrex::Real set_rate{0.0}; + + // ReacLib set derived from ths8r + ln_set_rate = 61.36267309371828 + -102.737944497193 * tfactors.T9i + -36.1913 * tfactors.T913i + 1.44056 * tfactors.T913 + + -1.50734 * tfactors.T9 + 0.142124 * tfactors.T953 + 0.833333 * tfactors.lnT9; + + ln_set_rate += net_log_pf; + + if constexpr (std::is_same_v) { + dln_set_rate_dT9 = 102.737944497193 * tfactors.T9i * tfactors.T9i + -(1.0/3.0) * -36.1913 * tfactors.T943i + (1.0/3.0) * 1.44056 * tfactors.T923i + + -1.50734 + (5.0/3.0) * 0.142124 * tfactors.T923 + 0.833333 * tfactors.T9i; + + dln_set_rate_dT9 += net_dlog_pf_dT9; + } + + // avoid underflows by zeroing rates in [0.0, 1.e-100] + ln_set_rate = std::max(ln_set_rate, -230.0); + set_rate = std::exp(ln_set_rate); + rate += set_rate; + if constexpr (std::is_same_v) { + if (ln_set_rate > -230.0_rt) { + drate_dT += set_rate * dln_set_rate_dT9 * 1.0e-9_rt; + } + } + + rate_eval.screened_rates(k_Fe54_to_p_Mn53_derived) = rate; + if constexpr (std::is_same_v) { + rate_eval.dscreened_rates_dT(k_Fe54_to_p_Mn53_derived) = drate_dT; + } + } + + template + AMREX_GPU_DEVICE AMREX_INLINE + void rate_Fe54_to_He4_Cr50_derived(T& rate_eval, const tf_t& tfactors, [[maybe_unused]] part_fun::pf_cache_t& pf_cache) { + + // Fe54 --> He4 + Cr50 + + amrex::Real rate{}, drate_dT{}; + // Evaluate partition function terms + + amrex::Real He4_log_pf, dHe4_log_pf_dT9; + + // setting He4 log(partition function) to 0.0 by default, independent of T + He4_log_pf = 0.0_rt; + dHe4_log_pf_dT9 = 0.0_rt; + + amrex::Real Cr50_log_pf, dCr50_log_pf_dT9; + + // interpolating Cr50 partition function + get_partition_function_cached(Cr50, tfactors.T9, pf_cache, Cr50_log_pf, dCr50_log_pf_dT9); + + amrex::Real Fe54_log_pf, dFe54_log_pf_dT9; + + // interpolating Fe54 partition function + get_partition_function_cached(Fe54, tfactors.T9, pf_cache, Fe54_log_pf, dFe54_log_pf_dT9); + + amrex::Real net_log_pf = He4_log_pf + Cr50_log_pf - Fe54_log_pf; + [[maybe_unused]] amrex::Real net_dlog_pf_dT9 = dHe4_log_pf_dT9 + dCr50_log_pf_dT9 - dFe54_log_pf_dT9; + + amrex::Real ln_set_rate{0.0}; + amrex::Real dln_set_rate_dT9{0.0}; + amrex::Real set_rate{0.0}; + + // ReacLib set derived from ths8r + ln_set_rate = 84.69763426194889 + -97.68864234340795 * tfactors.T9i + -86.8349 * tfactors.T913i + 2.37343 * tfactors.T913 + + -3.65677 * tfactors.T9 + 0.412128 * tfactors.T953 + 0.833333 * tfactors.lnT9; + + ln_set_rate += net_log_pf; + + if constexpr (std::is_same_v) { + dln_set_rate_dT9 = 97.68864234340795 * tfactors.T9i * tfactors.T9i + -(1.0/3.0) * -86.8349 * tfactors.T943i + (1.0/3.0) * 2.37343 * tfactors.T923i + + -3.65677 + (5.0/3.0) * 0.412128 * tfactors.T923 + 0.833333 * tfactors.T9i; + + dln_set_rate_dT9 += net_dlog_pf_dT9; + } + + // avoid underflows by zeroing rates in [0.0, 1.e-100] + ln_set_rate = std::max(ln_set_rate, -230.0); + set_rate = std::exp(ln_set_rate); + rate += set_rate; + if constexpr (std::is_same_v) { + if (ln_set_rate > -230.0_rt) { + drate_dT += set_rate * dln_set_rate_dT9 * 1.0e-9_rt; + } + } + + rate_eval.screened_rates(k_Fe54_to_He4_Cr50_derived) = rate; + if constexpr (std::is_same_v) { + rate_eval.dscreened_rates_dT(k_Fe54_to_He4_Cr50_derived) = drate_dT; + } + } + + template + AMREX_GPU_DEVICE AMREX_INLINE + void rate_Fe56_to_He4_Cr52_derived(T& rate_eval, const tf_t& tfactors, [[maybe_unused]] part_fun::pf_cache_t& pf_cache) { + + // Fe56 --> He4 + Cr52 + + amrex::Real rate{}, drate_dT{}; + // Evaluate partition function terms + + amrex::Real He4_log_pf, dHe4_log_pf_dT9; + + // setting He4 log(partition function) to 0.0 by default, independent of T + He4_log_pf = 0.0_rt; + dHe4_log_pf_dT9 = 0.0_rt; + + amrex::Real Fe56_log_pf, dFe56_log_pf_dT9; + + // interpolating Fe56 partition function + get_partition_function_cached(Fe56, tfactors.T9, pf_cache, Fe56_log_pf, dFe56_log_pf_dT9); + + amrex::Real Cr52_log_pf, dCr52_log_pf_dT9; + + // interpolating Cr52 partition function + get_partition_function_cached(Cr52, tfactors.T9, pf_cache, Cr52_log_pf, dCr52_log_pf_dT9); + + amrex::Real net_log_pf = He4_log_pf + Cr52_log_pf - Fe56_log_pf; + [[maybe_unused]] amrex::Real net_dlog_pf_dT9 = dHe4_log_pf_dT9 + dCr52_log_pf_dT9 - dFe56_log_pf_dT9; + + amrex::Real ln_set_rate{0.0}; + amrex::Real dln_set_rate_dT9{0.0}; + amrex::Real set_rate{0.0}; + + // ReacLib set derived from ths8r + ln_set_rate = 82.99716009465217 + -88.34015858985633 * tfactors.T9i + -86.9175 * tfactors.T913i + 5.655 * tfactors.T913 + + -4.53625 * tfactors.T9 + 0.479806 * tfactors.T953 + 0.833333 * tfactors.lnT9; + + ln_set_rate += net_log_pf; + + if constexpr (std::is_same_v) { + dln_set_rate_dT9 = 88.34015858985633 * tfactors.T9i * tfactors.T9i + -(1.0/3.0) * -86.9175 * tfactors.T943i + (1.0/3.0) * 5.655 * tfactors.T923i + + -4.53625 + (5.0/3.0) * 0.479806 * tfactors.T923 + 0.833333 * tfactors.T9i; + + dln_set_rate_dT9 += net_dlog_pf_dT9; + } + + // avoid underflows by zeroing rates in [0.0, 1.e-100] + ln_set_rate = std::max(ln_set_rate, -230.0); + set_rate = std::exp(ln_set_rate); + rate += set_rate; + if constexpr (std::is_same_v) { + if (ln_set_rate > -230.0_rt) { + drate_dT += set_rate * dln_set_rate_dT9 * 1.0e-9_rt; + } + } + + rate_eval.screened_rates(k_Fe56_to_He4_Cr52_derived) = rate; + if constexpr (std::is_same_v) { + rate_eval.dscreened_rates_dT(k_Fe56_to_He4_Cr52_derived) = drate_dT; + } + } + + template + AMREX_GPU_DEVICE AMREX_INLINE + void rate_Co53_to_p_Fe52_derived(T& rate_eval, const tf_t& tfactors, [[maybe_unused]] part_fun::pf_cache_t& pf_cache) { + + // Co53 --> p + Fe52 + + amrex::Real rate{}, drate_dT{}; + // Evaluate partition function terms + + amrex::Real Co53_log_pf, dCo53_log_pf_dT9; + + // interpolating Co53 partition function + get_partition_function_cached(Co53, tfactors.T9, pf_cache, Co53_log_pf, dCo53_log_pf_dT9); + + amrex::Real p_log_pf, dp_log_pf_dT9; + + // setting p log(partition function) to 0.0 by default, independent of T + p_log_pf = 0.0_rt; + dp_log_pf_dT9 = 0.0_rt; + + amrex::Real Fe52_log_pf, dFe52_log_pf_dT9; + + // interpolating Fe52 partition function + get_partition_function_cached(Fe52, tfactors.T9, pf_cache, Fe52_log_pf, dFe52_log_pf_dT9); + + amrex::Real net_log_pf = p_log_pf + Fe52_log_pf - Co53_log_pf; + [[maybe_unused]] amrex::Real net_dlog_pf_dT9 = dp_log_pf_dT9 + dFe52_log_pf_dT9 - dCo53_log_pf_dT9; + + amrex::Real ln_set_rate{0.0}; + amrex::Real dln_set_rate_dT9{0.0}; + amrex::Real set_rate{0.0}; + + // ReacLib set derived from ths8r + ln_set_rate = 60.90479478903703 + -18.756046851504873 * tfactors.T9i + -37.1457 * tfactors.T913i + -5.67417 * tfactors.T913 + + -0.559644 * tfactors.T9 + 0.102768 * tfactors.T953 + 0.833333 * tfactors.lnT9; + + ln_set_rate += net_log_pf; + + if constexpr (std::is_same_v) { + dln_set_rate_dT9 = 18.756046851504873 * tfactors.T9i * tfactors.T9i + -(1.0/3.0) * -37.1457 * tfactors.T943i + (1.0/3.0) * -5.67417 * tfactors.T923i + + -0.559644 + (5.0/3.0) * 0.102768 * tfactors.T923 + 0.833333 * tfactors.T9i; + + dln_set_rate_dT9 += net_dlog_pf_dT9; + } + + // avoid underflows by zeroing rates in [0.0, 1.e-100] + ln_set_rate = std::max(ln_set_rate, -230.0); + set_rate = std::exp(ln_set_rate); + rate += set_rate; + if constexpr (std::is_same_v) { + if (ln_set_rate > -230.0_rt) { + drate_dT += set_rate * dln_set_rate_dT9 * 1.0e-9_rt; + } + } + + rate_eval.screened_rates(k_Co53_to_p_Fe52_derived) = rate; + if constexpr (std::is_same_v) { + rate_eval.dscreened_rates_dT(k_Co53_to_p_Fe52_derived) = drate_dT; + } + } + + template + AMREX_GPU_DEVICE AMREX_INLINE + void rate_Co53_to_He4_Mn49_derived(T& rate_eval, const tf_t& tfactors, [[maybe_unused]] part_fun::pf_cache_t& pf_cache) { + + // Co53 --> He4 + Mn49 + + amrex::Real rate{}, drate_dT{}; + // Evaluate partition function terms + + amrex::Real Co53_log_pf, dCo53_log_pf_dT9; + + // interpolating Co53 partition function + get_partition_function_cached(Co53, tfactors.T9, pf_cache, Co53_log_pf, dCo53_log_pf_dT9); + + amrex::Real He4_log_pf, dHe4_log_pf_dT9; + + // setting He4 log(partition function) to 0.0 by default, independent of T + He4_log_pf = 0.0_rt; + dHe4_log_pf_dT9 = 0.0_rt; + + amrex::Real Mn49_log_pf, dMn49_log_pf_dT9; + + // interpolating Mn49 partition function + get_partition_function_cached(Mn49, tfactors.T9, pf_cache, Mn49_log_pf, dMn49_log_pf_dT9); + + amrex::Real net_log_pf = He4_log_pf + Mn49_log_pf - Co53_log_pf; + [[maybe_unused]] amrex::Real net_dlog_pf_dT9 = dHe4_log_pf_dT9 + dMn49_log_pf_dT9 - dCo53_log_pf_dT9; + + amrex::Real ln_set_rate{0.0}; + amrex::Real dln_set_rate_dT9{0.0}; + amrex::Real set_rate{0.0}; + + // ReacLib set derived from ths8r + ln_set_rate = 78.4777879593697 + -86.62094923020983 * tfactors.T9i + -89.1861 * tfactors.T913i + -0.631651 * tfactors.T913 + + -0.826494 * tfactors.T9 + 0.0355619 * tfactors.T953 + 0.833333 * tfactors.lnT9; + + ln_set_rate += net_log_pf; + + if constexpr (std::is_same_v) { + dln_set_rate_dT9 = 86.62094923020983 * tfactors.T9i * tfactors.T9i + -(1.0/3.0) * -89.1861 * tfactors.T943i + (1.0/3.0) * -0.631651 * tfactors.T923i + + -0.826494 + (5.0/3.0) * 0.0355619 * tfactors.T923 + 0.833333 * tfactors.T9i; + + dln_set_rate_dT9 += net_dlog_pf_dT9; + } + + // avoid underflows by zeroing rates in [0.0, 1.e-100] + ln_set_rate = std::max(ln_set_rate, -230.0); + set_rate = std::exp(ln_set_rate); + rate += set_rate; + if constexpr (std::is_same_v) { + if (ln_set_rate > -230.0_rt) { + drate_dT += set_rate * dln_set_rate_dT9 * 1.0e-9_rt; + } + } + + rate_eval.screened_rates(k_Co53_to_He4_Mn49_derived) = rate; + if constexpr (std::is_same_v) { + rate_eval.dscreened_rates_dT(k_Co53_to_He4_Mn49_derived) = drate_dT; + } + } + + template + AMREX_GPU_DEVICE AMREX_INLINE + void rate_Co55_to_p_Fe54_derived(T& rate_eval, const tf_t& tfactors, [[maybe_unused]] part_fun::pf_cache_t& pf_cache) { + + // Co55 --> p + Fe54 + + amrex::Real rate{}, drate_dT{}; + // Evaluate partition function terms + + amrex::Real p_log_pf, dp_log_pf_dT9; + + // setting p log(partition function) to 0.0 by default, independent of T + p_log_pf = 0.0_rt; + dp_log_pf_dT9 = 0.0_rt; + + amrex::Real Co55_log_pf, dCo55_log_pf_dT9; + + // interpolating Co55 partition function + get_partition_function_cached(Co55, tfactors.T9, pf_cache, Co55_log_pf, dCo55_log_pf_dT9); + + amrex::Real Fe54_log_pf, dFe54_log_pf_dT9; + + // interpolating Fe54 partition function + get_partition_function_cached(Fe54, tfactors.T9, pf_cache, Fe54_log_pf, dFe54_log_pf_dT9); + + amrex::Real net_log_pf = p_log_pf + Fe54_log_pf - Co55_log_pf; + [[maybe_unused]] amrex::Real net_dlog_pf_dT9 = dp_log_pf_dT9 + dFe54_log_pf_dT9 - dCo55_log_pf_dT9; + + amrex::Real ln_set_rate{0.0}; + amrex::Real dln_set_rate_dT9{0.0}; + amrex::Real set_rate{0.0}; + + // ReacLib set derived from ths8r + ln_set_rate = 57.84851844810452 + -58.76958578644693 * tfactors.T9i + -37.1544 * tfactors.T913i + 0.950364 * tfactors.T913 + + -1.77529 * tfactors.T9 + 0.198562 * tfactors.T953 + 0.833333 * tfactors.lnT9; + + ln_set_rate += net_log_pf; + + if constexpr (std::is_same_v) { + dln_set_rate_dT9 = 58.76958578644693 * tfactors.T9i * tfactors.T9i + -(1.0/3.0) * -37.1544 * tfactors.T943i + (1.0/3.0) * 0.950364 * tfactors.T923i + + -1.77529 + (5.0/3.0) * 0.198562 * tfactors.T923 + 0.833333 * tfactors.T9i; + + dln_set_rate_dT9 += net_dlog_pf_dT9; + } + + // avoid underflows by zeroing rates in [0.0, 1.e-100] + ln_set_rate = std::max(ln_set_rate, -230.0); + set_rate = std::exp(ln_set_rate); + rate += set_rate; + if constexpr (std::is_same_v) { + if (ln_set_rate > -230.0_rt) { + drate_dT += set_rate * dln_set_rate_dT9 * 1.0e-9_rt; + } + } + + rate_eval.screened_rates(k_Co55_to_p_Fe54_derived) = rate; + if constexpr (std::is_same_v) { + rate_eval.dscreened_rates_dT(k_Co55_to_p_Fe54_derived) = drate_dT; + } + } + + template + AMREX_GPU_DEVICE AMREX_INLINE + void rate_Co55_to_He4_Mn51_derived(T& rate_eval, const tf_t& tfactors, [[maybe_unused]] part_fun::pf_cache_t& pf_cache) { + + // Co55 --> He4 + Mn51 + + amrex::Real rate{}, drate_dT{}; + // Evaluate partition function terms + + amrex::Real Mn51_log_pf, dMn51_log_pf_dT9; + + // interpolating Mn51 partition function + get_partition_function_cached(Mn51, tfactors.T9, pf_cache, Mn51_log_pf, dMn51_log_pf_dT9); + + amrex::Real He4_log_pf, dHe4_log_pf_dT9; + + // setting He4 log(partition function) to 0.0 by default, independent of T + He4_log_pf = 0.0_rt; + dHe4_log_pf_dT9 = 0.0_rt; + + amrex::Real Co55_log_pf, dCo55_log_pf_dT9; + + // interpolating Co55 partition function + get_partition_function_cached(Co55, tfactors.T9, pf_cache, Co55_log_pf, dCo55_log_pf_dT9); + + amrex::Real net_log_pf = He4_log_pf + Mn51_log_pf - Co55_log_pf; + [[maybe_unused]] amrex::Real net_dlog_pf_dT9 = dHe4_log_pf_dT9 + dMn51_log_pf_dT9 - dCo55_log_pf_dT9; + + amrex::Real ln_set_rate{0.0}; + amrex::Real dln_set_rate_dT9{0.0}; + amrex::Real set_rate{0.0}; + + // ReacLib set derived from ths8r + ln_set_rate = 90.61473213109255 + -95.29300562248025 * tfactors.T9i + -89.274 * tfactors.T913i + -10.4373 * tfactors.T913 + + 1.00492 * tfactors.T9 + -0.125548 * tfactors.T953 + 0.833333 * tfactors.lnT9; + + ln_set_rate += net_log_pf; + + if constexpr (std::is_same_v) { + dln_set_rate_dT9 = 95.29300562248025 * tfactors.T9i * tfactors.T9i + -(1.0/3.0) * -89.274 * tfactors.T943i + (1.0/3.0) * -10.4373 * tfactors.T923i + + 1.00492 + (5.0/3.0) * -0.125548 * tfactors.T923 + 0.833333 * tfactors.T9i; + + dln_set_rate_dT9 += net_dlog_pf_dT9; + } + + // avoid underflows by zeroing rates in [0.0, 1.e-100] + ln_set_rate = std::max(ln_set_rate, -230.0); + set_rate = std::exp(ln_set_rate); + rate += set_rate; + if constexpr (std::is_same_v) { + if (ln_set_rate > -230.0_rt) { + drate_dT += set_rate * dln_set_rate_dT9 * 1.0e-9_rt; + } + } + + rate_eval.screened_rates(k_Co55_to_He4_Mn51_derived) = rate; + if constexpr (std::is_same_v) { + rate_eval.dscreened_rates_dT(k_Co55_to_He4_Mn51_derived) = drate_dT; + } + } + + template + AMREX_GPU_DEVICE AMREX_INLINE + void rate_Co56_to_n_Co55_derived(T& rate_eval, const tf_t& tfactors, [[maybe_unused]] part_fun::pf_cache_t& pf_cache) { + + // Co56 --> n + Co55 + + amrex::Real rate{}, drate_dT{}; + // Evaluate partition function terms + + amrex::Real n_log_pf, dn_log_pf_dT9; + + // setting n log(partition function) to 0.0 by default, independent of T + n_log_pf = 0.0_rt; + dn_log_pf_dT9 = 0.0_rt; + + amrex::Real Co55_log_pf, dCo55_log_pf_dT9; + + // interpolating Co55 partition function + get_partition_function_cached(Co55, tfactors.T9, pf_cache, Co55_log_pf, dCo55_log_pf_dT9); + + amrex::Real Co56_log_pf, dCo56_log_pf_dT9; + + // interpolating Co56 partition function + get_partition_function_cached(Co56, tfactors.T9, pf_cache, Co56_log_pf, dCo56_log_pf_dT9); + + amrex::Real net_log_pf = n_log_pf + Co55_log_pf - Co56_log_pf; + [[maybe_unused]] amrex::Real net_dlog_pf_dT9 = dn_log_pf_dT9 + dCo55_log_pf_dT9 - dCo56_log_pf_dT9; + + amrex::Real ln_set_rate{0.0}; + amrex::Real dln_set_rate_dT9{0.0}; + amrex::Real set_rate{0.0}; + + // ReacLib set derived from ths8r + ln_set_rate = 40.647564333711024 + -116.994640839646 * tfactors.T9i + -1.86357 * tfactors.T913 + + 0.616591 * tfactors.T9 + -0.0839313 * tfactors.T953 + 1.5 * tfactors.lnT9; + + ln_set_rate += net_log_pf; + + if constexpr (std::is_same_v) { + dln_set_rate_dT9 = 116.994640839646 * tfactors.T9i * tfactors.T9i + (1.0/3.0) * -1.86357 * tfactors.T923i + + 0.616591 + (5.0/3.0) * -0.0839313 * tfactors.T923 + 1.5 * tfactors.T9i; + + dln_set_rate_dT9 += net_dlog_pf_dT9; + } + + // avoid underflows by zeroing rates in [0.0, 1.e-100] + ln_set_rate = std::max(ln_set_rate, -230.0); + set_rate = std::exp(ln_set_rate); + rate += set_rate; + if constexpr (std::is_same_v) { + if (ln_set_rate > -230.0_rt) { + drate_dT += set_rate * dln_set_rate_dT9 * 1.0e-9_rt; + } + } + + rate_eval.screened_rates(k_Co56_to_n_Co55_derived) = rate; + if constexpr (std::is_same_v) { + rate_eval.dscreened_rates_dT(k_Co56_to_n_Co55_derived) = drate_dT; + } + } + + template + AMREX_GPU_DEVICE AMREX_INLINE + void rate_Co57_to_n_Co56_derived(T& rate_eval, const tf_t& tfactors, [[maybe_unused]] part_fun::pf_cache_t& pf_cache) { + + // Co57 --> n + Co56 + + amrex::Real rate{}, drate_dT{}; + // Evaluate partition function terms + + amrex::Real n_log_pf, dn_log_pf_dT9; + + // setting n log(partition function) to 0.0 by default, independent of T + n_log_pf = 0.0_rt; + dn_log_pf_dT9 = 0.0_rt; + + amrex::Real Co56_log_pf, dCo56_log_pf_dT9; + + // interpolating Co56 partition function + get_partition_function_cached(Co56, tfactors.T9, pf_cache, Co56_log_pf, dCo56_log_pf_dT9); + + amrex::Real Co57_log_pf, dCo57_log_pf_dT9; + + // interpolating Co57 partition function + get_partition_function_cached(Co57, tfactors.T9, pf_cache, Co57_log_pf, dCo57_log_pf_dT9); + + amrex::Real net_log_pf = n_log_pf + Co56_log_pf - Co57_log_pf; + [[maybe_unused]] amrex::Real net_dlog_pf_dT9 = dn_log_pf_dT9 + dCo56_log_pf_dT9 - dCo57_log_pf_dT9; + + amrex::Real ln_set_rate{0.0}; + amrex::Real dln_set_rate_dT9{0.0}; + amrex::Real set_rate{0.0}; + + // ReacLib set derived from ths8r + ln_set_rate = 41.17386809654295 + -132.01901045161702 * tfactors.T9i + -1.37855 * tfactors.T913 + + 0.299896 * tfactors.T9 + -0.04382 * tfactors.T953 + 1.5 * tfactors.lnT9; + + ln_set_rate += net_log_pf; + + if constexpr (std::is_same_v) { + dln_set_rate_dT9 = 132.01901045161702 * tfactors.T9i * tfactors.T9i + (1.0/3.0) * -1.37855 * tfactors.T923i + + 0.299896 + (5.0/3.0) * -0.04382 * tfactors.T923 + 1.5 * tfactors.T9i; + + dln_set_rate_dT9 += net_dlog_pf_dT9; + } + + // avoid underflows by zeroing rates in [0.0, 1.e-100] + ln_set_rate = std::max(ln_set_rate, -230.0); + set_rate = std::exp(ln_set_rate); + rate += set_rate; + if constexpr (std::is_same_v) { + if (ln_set_rate > -230.0_rt) { + drate_dT += set_rate * dln_set_rate_dT9 * 1.0e-9_rt; + } + } + + rate_eval.screened_rates(k_Co57_to_n_Co56_derived) = rate; + if constexpr (std::is_same_v) { + rate_eval.dscreened_rates_dT(k_Co57_to_n_Co56_derived) = drate_dT; + } + } + + template + AMREX_GPU_DEVICE AMREX_INLINE + void rate_Co57_to_p_Fe56_derived(T& rate_eval, const tf_t& tfactors, [[maybe_unused]] part_fun::pf_cache_t& pf_cache) { + + // Co57 --> p + Fe56 + + amrex::Real rate{}, drate_dT{}; + // Evaluate partition function terms + + amrex::Real p_log_pf, dp_log_pf_dT9; + + // setting p log(partition function) to 0.0 by default, independent of T + p_log_pf = 0.0_rt; + dp_log_pf_dT9 = 0.0_rt; + + amrex::Real Fe56_log_pf, dFe56_log_pf_dT9; + + // interpolating Fe56 partition function + get_partition_function_cached(Fe56, tfactors.T9, pf_cache, Fe56_log_pf, dFe56_log_pf_dT9); + + amrex::Real Co57_log_pf, dCo57_log_pf_dT9; + + // interpolating Co57 partition function + get_partition_function_cached(Co57, tfactors.T9, pf_cache, Co57_log_pf, dCo57_log_pf_dT9); + + amrex::Real net_log_pf = p_log_pf + Fe56_log_pf - Co57_log_pf; + [[maybe_unused]] amrex::Real net_dlog_pf_dT9 = dp_log_pf_dT9 + dFe56_log_pf_dT9 - dCo57_log_pf_dT9; + + amrex::Real ln_set_rate{0.0}; + amrex::Real dln_set_rate_dT9{0.0}; + amrex::Real set_rate{0.0}; + + // ReacLib set derived from ths8r + ln_set_rate = 57.68564187237867 + -69.94636137001572 * tfactors.T9i + -37.1625 * tfactors.T913i + 1.06776 * tfactors.T913 + + -1.31689 * tfactors.T9 + 0.122089 * tfactors.T953 + 0.833333 * tfactors.lnT9; + + ln_set_rate += net_log_pf; + + if constexpr (std::is_same_v) { + dln_set_rate_dT9 = 69.94636137001572 * tfactors.T9i * tfactors.T9i + -(1.0/3.0) * -37.1625 * tfactors.T943i + (1.0/3.0) * 1.06776 * tfactors.T923i + + -1.31689 + (5.0/3.0) * 0.122089 * tfactors.T923 + 0.833333 * tfactors.T9i; + + dln_set_rate_dT9 += net_dlog_pf_dT9; + } + + // avoid underflows by zeroing rates in [0.0, 1.e-100] + ln_set_rate = std::max(ln_set_rate, -230.0); + set_rate = std::exp(ln_set_rate); + rate += set_rate; + if constexpr (std::is_same_v) { + if (ln_set_rate > -230.0_rt) { + drate_dT += set_rate * dln_set_rate_dT9 * 1.0e-9_rt; + } + } + + rate_eval.screened_rates(k_Co57_to_p_Fe56_derived) = rate; + if constexpr (std::is_same_v) { + rate_eval.dscreened_rates_dT(k_Co57_to_p_Fe56_derived) = drate_dT; + } + } + + template + AMREX_GPU_DEVICE AMREX_INLINE + void rate_Co57_to_He4_Mn53_derived(T& rate_eval, const tf_t& tfactors, [[maybe_unused]] part_fun::pf_cache_t& pf_cache) { + + // Co57 --> He4 + Mn53 + + amrex::Real rate{}, drate_dT{}; + // Evaluate partition function terms + + amrex::Real He4_log_pf, dHe4_log_pf_dT9; + + // setting He4 log(partition function) to 0.0 by default, independent of T + He4_log_pf = 0.0_rt; + dHe4_log_pf_dT9 = 0.0_rt; + + amrex::Real Mn53_log_pf, dMn53_log_pf_dT9; + + // interpolating Mn53 partition function + get_partition_function_cached(Mn53, tfactors.T9, pf_cache, Mn53_log_pf, dMn53_log_pf_dT9); + + amrex::Real Co57_log_pf, dCo57_log_pf_dT9; + + // interpolating Co57 partition function + get_partition_function_cached(Co57, tfactors.T9, pf_cache, Co57_log_pf, dCo57_log_pf_dT9); + + amrex::Real net_log_pf = He4_log_pf + Mn53_log_pf - Co57_log_pf; + [[maybe_unused]] amrex::Real net_dlog_pf_dT9 = dHe4_log_pf_dT9 + dMn53_log_pf_dT9 - dCo57_log_pf_dT9; + + amrex::Real ln_set_rate{0.0}; + amrex::Real dln_set_rate_dT9{0.0}; + amrex::Real set_rate{0.0}; + + // ReacLib set derived from ths8r + ln_set_rate = 87.00976353805295 + -82.16365381973904 * tfactors.T9i + -89.3558 * tfactors.T913i + 0.000882861 * tfactors.T913 + + -2.79327 * tfactors.T9 + 0.309057 * tfactors.T953 + 0.833333 * tfactors.lnT9; + + ln_set_rate += net_log_pf; + + if constexpr (std::is_same_v) { + dln_set_rate_dT9 = 82.16365381973904 * tfactors.T9i * tfactors.T9i + -(1.0/3.0) * -89.3558 * tfactors.T943i + (1.0/3.0) * 0.000882861 * tfactors.T923i + + -2.79327 + (5.0/3.0) * 0.309057 * tfactors.T923 + 0.833333 * tfactors.T9i; + + dln_set_rate_dT9 += net_dlog_pf_dT9; + } + + // avoid underflows by zeroing rates in [0.0, 1.e-100] + ln_set_rate = std::max(ln_set_rate, -230.0); + set_rate = std::exp(ln_set_rate); + rate += set_rate; + if constexpr (std::is_same_v) { + if (ln_set_rate > -230.0_rt) { + drate_dT += set_rate * dln_set_rate_dT9 * 1.0e-9_rt; + } + } + + rate_eval.screened_rates(k_Co57_to_He4_Mn53_derived) = rate; + if constexpr (std::is_same_v) { + rate_eval.dscreened_rates_dT(k_Co57_to_He4_Mn53_derived) = drate_dT; + } + } + + template + AMREX_GPU_DEVICE AMREX_INLINE + void rate_Ni56_to_p_Co55_derived(T& rate_eval, const tf_t& tfactors, [[maybe_unused]] part_fun::pf_cache_t& pf_cache) { + + // Ni56 --> p + Co55 + + amrex::Real rate{}, drate_dT{}; + // Evaluate partition function terms + + amrex::Real Ni56_log_pf, dNi56_log_pf_dT9; + + // interpolating Ni56 partition function + get_partition_function_cached(Ni56, tfactors.T9, pf_cache, Ni56_log_pf, dNi56_log_pf_dT9); + + amrex::Real p_log_pf, dp_log_pf_dT9; + + // setting p log(partition function) to 0.0 by default, independent of T + p_log_pf = 0.0_rt; + dp_log_pf_dT9 = 0.0_rt; + + amrex::Real Co55_log_pf, dCo55_log_pf_dT9; + + // interpolating Co55 partition function + get_partition_function_cached(Co55, tfactors.T9, pf_cache, Co55_log_pf, dCo55_log_pf_dT9); + + amrex::Real net_log_pf = p_log_pf + Co55_log_pf - Ni56_log_pf; + [[maybe_unused]] amrex::Real net_dlog_pf_dT9 = dp_log_pf_dT9 + dCo55_log_pf_dT9 - dNi56_log_pf_dT9; + + amrex::Real ln_set_rate{0.0}; + amrex::Real dln_set_rate_dT9{0.0}; + amrex::Real set_rate{0.0}; + + // ReacLib set derived from ths8r + ln_set_rate = 63.15120404192561 + -83.16460378149378 * tfactors.T9i + -38.1053 * tfactors.T913i + -0.210947 * tfactors.T913 + + -2.68377 * tfactors.T9 + 0.355814 * tfactors.T953 + 0.833333 * tfactors.lnT9; + + ln_set_rate += net_log_pf; + + if constexpr (std::is_same_v) { + dln_set_rate_dT9 = 83.16460378149378 * tfactors.T9i * tfactors.T9i + -(1.0/3.0) * -38.1053 * tfactors.T943i + (1.0/3.0) * -0.210947 * tfactors.T923i + + -2.68377 + (5.0/3.0) * 0.355814 * tfactors.T923 + 0.833333 * tfactors.T9i; + + dln_set_rate_dT9 += net_dlog_pf_dT9; + } + + // avoid underflows by zeroing rates in [0.0, 1.e-100] + ln_set_rate = std::max(ln_set_rate, -230.0); + set_rate = std::exp(ln_set_rate); + rate += set_rate; + if constexpr (std::is_same_v) { + if (ln_set_rate > -230.0_rt) { + drate_dT += set_rate * dln_set_rate_dT9 * 1.0e-9_rt; + } + } + + rate_eval.screened_rates(k_Ni56_to_p_Co55_derived) = rate; + if constexpr (std::is_same_v) { + rate_eval.dscreened_rates_dT(k_Ni56_to_p_Co55_derived) = drate_dT; + } + } + + template + AMREX_GPU_DEVICE AMREX_INLINE + void rate_Ni56_to_He4_Fe52_derived(T& rate_eval, const tf_t& tfactors, [[maybe_unused]] part_fun::pf_cache_t& pf_cache) { + + // Ni56 --> He4 + Fe52 + + amrex::Real rate{}, drate_dT{}; + // Evaluate partition function terms + + amrex::Real Ni56_log_pf, dNi56_log_pf_dT9; + + // interpolating Ni56 partition function + get_partition_function_cached(Ni56, tfactors.T9, pf_cache, Ni56_log_pf, dNi56_log_pf_dT9); + + amrex::Real He4_log_pf, dHe4_log_pf_dT9; + + // setting He4 log(partition function) to 0.0 by default, independent of T + He4_log_pf = 0.0_rt; + dHe4_log_pf_dT9 = 0.0_rt; + + amrex::Real Fe52_log_pf, dFe52_log_pf_dT9; + + // interpolating Fe52 partition function + get_partition_function_cached(Fe52, tfactors.T9, pf_cache, Fe52_log_pf, dFe52_log_pf_dT9); + + amrex::Real net_log_pf = He4_log_pf + Fe52_log_pf - Ni56_log_pf; + [[maybe_unused]] amrex::Real net_dlog_pf_dT9 = dHe4_log_pf_dT9 + dFe52_log_pf_dT9 - dNi56_log_pf_dT9; + + amrex::Real ln_set_rate{0.0}; + amrex::Real dln_set_rate_dT9{0.0}; + amrex::Real set_rate{0.0}; + + // ReacLib set derived from ths8r + ln_set_rate = 91.62430485073777 + -92.84097094326391 * tfactors.T9i + -91.6819 * tfactors.T913i + -9.51885 * tfactors.T913 + + -0.533014 * tfactors.T9 + 0.0892607 * tfactors.T953 + 0.833333 * tfactors.lnT9; + + ln_set_rate += net_log_pf; + + if constexpr (std::is_same_v) { + dln_set_rate_dT9 = 92.84097094326391 * tfactors.T9i * tfactors.T9i + -(1.0/3.0) * -91.6819 * tfactors.T943i + (1.0/3.0) * -9.51885 * tfactors.T923i + + -0.533014 + (5.0/3.0) * 0.0892607 * tfactors.T923 + 0.833333 * tfactors.T9i; + + dln_set_rate_dT9 += net_dlog_pf_dT9; + } + + // avoid underflows by zeroing rates in [0.0, 1.e-100] + ln_set_rate = std::max(ln_set_rate, -230.0); + set_rate = std::exp(ln_set_rate); + rate += set_rate; + if constexpr (std::is_same_v) { + if (ln_set_rate > -230.0_rt) { + drate_dT += set_rate * dln_set_rate_dT9 * 1.0e-9_rt; + } + } + + rate_eval.screened_rates(k_Ni56_to_He4_Fe52_derived) = rate; + if constexpr (std::is_same_v) { + rate_eval.dscreened_rates_dT(k_Ni56_to_He4_Fe52_derived) = drate_dT; + } + } + + template + AMREX_GPU_DEVICE AMREX_INLINE + void rate_Ni58_to_p_Co57_derived(T& rate_eval, const tf_t& tfactors, [[maybe_unused]] part_fun::pf_cache_t& pf_cache) { + + // Ni58 --> p + Co57 + + amrex::Real rate{}, drate_dT{}; + // Evaluate partition function terms + + amrex::Real p_log_pf, dp_log_pf_dT9; + + // setting p log(partition function) to 0.0 by default, independent of T + p_log_pf = 0.0_rt; + dp_log_pf_dT9 = 0.0_rt; + + amrex::Real Ni58_log_pf, dNi58_log_pf_dT9; + + // interpolating Ni58 partition function + get_partition_function_cached(Ni58, tfactors.T9, pf_cache, Ni58_log_pf, dNi58_log_pf_dT9); + + amrex::Real Co57_log_pf, dCo57_log_pf_dT9; + + // interpolating Co57 partition function + get_partition_function_cached(Co57, tfactors.T9, pf_cache, Co57_log_pf, dCo57_log_pf_dT9); + + amrex::Real net_log_pf = p_log_pf + Co57_log_pf - Ni58_log_pf; + [[maybe_unused]] amrex::Real net_dlog_pf_dT9 = dp_log_pf_dT9 + dCo57_log_pf_dT9 - dNi58_log_pf_dT9; + + amrex::Real ln_set_rate{0.0}; + amrex::Real dln_set_rate_dT9{0.0}; + amrex::Real set_rate{0.0}; + + // ReacLib set derived from ths8r + ln_set_rate = 61.794489871251855 + -94.83410720454592 * tfactors.T9i + -38.1133 * tfactors.T913i + 1.77414 * tfactors.T913 + + -1.48268 * tfactors.T9 + 0.121073 * tfactors.T953 + 0.833333 * tfactors.lnT9; + + ln_set_rate += net_log_pf; + + if constexpr (std::is_same_v) { + dln_set_rate_dT9 = 94.83410720454592 * tfactors.T9i * tfactors.T9i + -(1.0/3.0) * -38.1133 * tfactors.T943i + (1.0/3.0) * 1.77414 * tfactors.T923i + + -1.48268 + (5.0/3.0) * 0.121073 * tfactors.T923 + 0.833333 * tfactors.T9i; + + dln_set_rate_dT9 += net_dlog_pf_dT9; + } + + // avoid underflows by zeroing rates in [0.0, 1.e-100] + ln_set_rate = std::max(ln_set_rate, -230.0); + set_rate = std::exp(ln_set_rate); + rate += set_rate; + if constexpr (std::is_same_v) { + if (ln_set_rate > -230.0_rt) { + drate_dT += set_rate * dln_set_rate_dT9 * 1.0e-9_rt; + } + } + + rate_eval.screened_rates(k_Ni58_to_p_Co57_derived) = rate; + if constexpr (std::is_same_v) { + rate_eval.dscreened_rates_dT(k_Ni58_to_p_Co57_derived) = drate_dT; + } + } + + template + AMREX_GPU_DEVICE AMREX_INLINE + void rate_Ni58_to_He4_Fe54_derived(T& rate_eval, const tf_t& tfactors, [[maybe_unused]] part_fun::pf_cache_t& pf_cache) { + + // Ni58 --> He4 + Fe54 + + amrex::Real rate{}, drate_dT{}; + // Evaluate partition function terms + + amrex::Real He4_log_pf, dHe4_log_pf_dT9; + + // setting He4 log(partition function) to 0.0 by default, independent of T + He4_log_pf = 0.0_rt; + dHe4_log_pf_dT9 = 0.0_rt; + + amrex::Real Ni58_log_pf, dNi58_log_pf_dT9; + + // interpolating Ni58 partition function + get_partition_function_cached(Ni58, tfactors.T9, pf_cache, Ni58_log_pf, dNi58_log_pf_dT9); + + amrex::Real Fe54_log_pf, dFe54_log_pf_dT9; + + // interpolating Fe54 partition function + get_partition_function_cached(Fe54, tfactors.T9, pf_cache, Fe54_log_pf, dFe54_log_pf_dT9); + + amrex::Real net_log_pf = He4_log_pf + Fe54_log_pf - Ni58_log_pf; + [[maybe_unused]] amrex::Real net_dlog_pf_dT9 = dHe4_log_pf_dT9 + dFe54_log_pf_dT9 - dNi58_log_pf_dT9; + + amrex::Real ln_set_rate{0.0}; + amrex::Real dln_set_rate_dT9{0.0}; + amrex::Real set_rate{0.0}; + + // ReacLib set derived from ths8r + ln_set_rate = 85.23428031558652 + -74.25981652709197 * tfactors.T9i + -91.7628 * tfactors.T913i + 4.23027 * tfactors.T913 + + -3.31305 * tfactors.T9 + 0.271293 * tfactors.T953 + 0.833333 * tfactors.lnT9; + + ln_set_rate += net_log_pf; + + if constexpr (std::is_same_v) { + dln_set_rate_dT9 = 74.25981652709197 * tfactors.T9i * tfactors.T9i + -(1.0/3.0) * -91.7628 * tfactors.T943i + (1.0/3.0) * 4.23027 * tfactors.T923i + + -3.31305 + (5.0/3.0) * 0.271293 * tfactors.T923 + 0.833333 * tfactors.T9i; + + dln_set_rate_dT9 += net_dlog_pf_dT9; + } + + // avoid underflows by zeroing rates in [0.0, 1.e-100] + ln_set_rate = std::max(ln_set_rate, -230.0); + set_rate = std::exp(ln_set_rate); + rate += set_rate; + if constexpr (std::is_same_v) { + if (ln_set_rate > -230.0_rt) { + drate_dT += set_rate * dln_set_rate_dT9 * 1.0e-9_rt; + } + } + + rate_eval.screened_rates(k_Ni58_to_He4_Fe54_derived) = rate; + if constexpr (std::is_same_v) { + rate_eval.dscreened_rates_dT(k_Ni58_to_He4_Fe54_derived) = drate_dT; + } + } + + template + AMREX_GPU_DEVICE AMREX_INLINE + void rate_Cu59_to_p_Ni58_derived(T& rate_eval, const tf_t& tfactors, [[maybe_unused]] part_fun::pf_cache_t& pf_cache) { + + // Cu59 --> p + Ni58 + + amrex::Real rate{}, drate_dT{}; + // Evaluate partition function terms + + amrex::Real Cu59_log_pf, dCu59_log_pf_dT9; + + // interpolating Cu59 partition function + get_partition_function_cached(Cu59, tfactors.T9, pf_cache, Cu59_log_pf, dCu59_log_pf_dT9); + + amrex::Real p_log_pf, dp_log_pf_dT9; + + // setting p log(partition function) to 0.0 by default, independent of T + p_log_pf = 0.0_rt; + dp_log_pf_dT9 = 0.0_rt; + + amrex::Real Ni58_log_pf, dNi58_log_pf_dT9; + + // interpolating Ni58 partition function + get_partition_function_cached(Ni58, tfactors.T9, pf_cache, Ni58_log_pf, dNi58_log_pf_dT9); + + amrex::Real net_log_pf = p_log_pf + Ni58_log_pf - Cu59_log_pf; + [[maybe_unused]] amrex::Real net_dlog_pf_dT9 = dp_log_pf_dT9 + dNi58_log_pf_dT9 - dCu59_log_pf_dT9; + + amrex::Real ln_set_rate{0.0}; + amrex::Real dln_set_rate_dT9{0.0}; + amrex::Real set_rate{0.0}; + + // ReacLib set derived from si13n + ln_set_rate = 58.97928371193912 + -39.67086986195644 * tfactors.T9i + -39.0526 * tfactors.T913i + 1.0436 * tfactors.T913 + + -2.10834 * tfactors.T9 + 0.239559 * tfactors.T953 + 0.833333 * tfactors.lnT9; + + ln_set_rate += net_log_pf; + + if constexpr (std::is_same_v) { + dln_set_rate_dT9 = 39.67086986195644 * tfactors.T9i * tfactors.T9i + -(1.0/3.0) * -39.0526 * tfactors.T943i + (1.0/3.0) * 1.0436 * tfactors.T923i + + -2.10834 + (5.0/3.0) * 0.239559 * tfactors.T923 + 0.833333 * tfactors.T9i; + + dln_set_rate_dT9 += net_dlog_pf_dT9; + } + + // avoid underflows by zeroing rates in [0.0, 1.e-100] + ln_set_rate = std::max(ln_set_rate, -230.0); + set_rate = std::exp(ln_set_rate); + rate += set_rate; + if constexpr (std::is_same_v) { + if (ln_set_rate > -230.0_rt) { + drate_dT += set_rate * dln_set_rate_dT9 * 1.0e-9_rt; + } + } + + rate_eval.screened_rates(k_Cu59_to_p_Ni58_derived) = rate; + if constexpr (std::is_same_v) { + rate_eval.dscreened_rates_dT(k_Cu59_to_p_Ni58_derived) = drate_dT; + } + } + + template + AMREX_GPU_DEVICE AMREX_INLINE + void rate_Cu59_to_He4_Co55_derived(T& rate_eval, const tf_t& tfactors, [[maybe_unused]] part_fun::pf_cache_t& pf_cache) { + + // Cu59 --> He4 + Co55 + + amrex::Real rate{}, drate_dT{}; + // Evaluate partition function terms + + amrex::Real Cu59_log_pf, dCu59_log_pf_dT9; + + // interpolating Cu59 partition function + get_partition_function_cached(Cu59, tfactors.T9, pf_cache, Cu59_log_pf, dCu59_log_pf_dT9); + + amrex::Real He4_log_pf, dHe4_log_pf_dT9; + + // setting He4 log(partition function) to 0.0 by default, independent of T + He4_log_pf = 0.0_rt; + dHe4_log_pf_dT9 = 0.0_rt; + + amrex::Real Co55_log_pf, dCo55_log_pf_dT9; + + // interpolating Co55 partition function + get_partition_function_cached(Co55, tfactors.T9, pf_cache, Co55_log_pf, dCo55_log_pf_dT9); + + amrex::Real net_log_pf = He4_log_pf + Co55_log_pf - Cu59_log_pf; + [[maybe_unused]] amrex::Real net_dlog_pf_dT9 = dHe4_log_pf_dT9 + dCo55_log_pf_dT9 - dCu59_log_pf_dT9; + + amrex::Real ln_set_rate{0.0}; + amrex::Real dln_set_rate_dT9{0.0}; + amrex::Real set_rate{0.0}; + + // ReacLib set derived from ths8r + ln_set_rate = 90.97354557942113 + -55.1611006026015 * tfactors.T9i + -94.1404 * tfactors.T913i + -2.62786 * tfactors.T913 + + -2.12066 * tfactors.T9 + 0.237999 * tfactors.T953 + 0.833333 * tfactors.lnT9; + + ln_set_rate += net_log_pf; + + if constexpr (std::is_same_v) { + dln_set_rate_dT9 = 55.1611006026015 * tfactors.T9i * tfactors.T9i + -(1.0/3.0) * -94.1404 * tfactors.T943i + (1.0/3.0) * -2.62786 * tfactors.T923i + + -2.12066 + (5.0/3.0) * 0.237999 * tfactors.T923 + 0.833333 * tfactors.T9i; + + dln_set_rate_dT9 += net_dlog_pf_dT9; + } + + // avoid underflows by zeroing rates in [0.0, 1.e-100] + ln_set_rate = std::max(ln_set_rate, -230.0); + set_rate = std::exp(ln_set_rate); + rate += set_rate; + if constexpr (std::is_same_v) { + if (ln_set_rate > -230.0_rt) { + drate_dT += set_rate * dln_set_rate_dT9 * 1.0e-9_rt; + } + } + + rate_eval.screened_rates(k_Cu59_to_He4_Co55_derived) = rate; + if constexpr (std::is_same_v) { + rate_eval.dscreened_rates_dT(k_Cu59_to_He4_Co55_derived) = drate_dT; + } + } + + template + AMREX_GPU_DEVICE AMREX_INLINE + void rate_C12_to_3He4_derived(T& rate_eval, const tf_t& tfactors, [[maybe_unused]] part_fun::pf_cache_t& pf_cache) { + + // C12 --> 3 He4 + + amrex::Real rate{}, drate_dT{}; + // Evaluate partition function terms + + amrex::Real C12_log_pf, dC12_log_pf_dT9; + + // setting C12 log(partition function) to 0.0 by default, independent of T + C12_log_pf = 0.0_rt; + dC12_log_pf_dT9 = 0.0_rt; + + amrex::Real He4_log_pf, dHe4_log_pf_dT9; + + // setting He4 log(partition function) to 0.0 by default, independent of T + He4_log_pf = 0.0_rt; + dHe4_log_pf_dT9 = 0.0_rt; + + amrex::Real net_log_pf = He4_log_pf + He4_log_pf + He4_log_pf - C12_log_pf; + [[maybe_unused]] amrex::Real net_dlog_pf_dT9 = dHe4_log_pf_dT9 + dHe4_log_pf_dT9 + dHe4_log_pf_dT9 - dC12_log_pf_dT9; + + amrex::Real ln_set_rate{0.0}; + amrex::Real dln_set_rate_dT9{0.0}; + amrex::Real set_rate{0.0}; + + // ReacLib set derived from fy05r + ln_set_rate = 34.96090397991297 + -85.44440046993657 * tfactors.T9i + -23.57 * tfactors.T913i + 20.4886 * tfactors.T913 + + -12.9882 * tfactors.T9 + -20.0 * tfactors.T953 + 0.8333300000000001 * tfactors.lnT9; + + ln_set_rate += net_log_pf; + + if constexpr (std::is_same_v) { + dln_set_rate_dT9 = 85.44440046993657 * tfactors.T9i * tfactors.T9i + -(1.0/3.0) * -23.57 * tfactors.T943i + (1.0/3.0) * 20.4886 * tfactors.T923i + + -12.9882 + (5.0/3.0) * -20.0 * tfactors.T923 + 0.8333300000000001 * tfactors.T9i; + + dln_set_rate_dT9 += net_dlog_pf_dT9; + } + + // avoid underflows by zeroing rates in [0.0, 1.e-100] + ln_set_rate = std::max(ln_set_rate, -230.0); + set_rate = std::exp(ln_set_rate); + rate += set_rate; + if constexpr (std::is_same_v) { + if (ln_set_rate > -230.0_rt) { + drate_dT += set_rate * dln_set_rate_dT9 * 1.0e-9_rt; + } + } + + // ReacLib set derived from fy05n + ln_set_rate = 45.77825197991297 + -84.41994046993656 * tfactors.T9i + -37.06 * tfactors.T913i + 29.3493 * tfactors.T913 + + -115.507 * tfactors.T9 + -10.0 * tfactors.T953 + 1.66667 * tfactors.lnT9; + + ln_set_rate += net_log_pf; + + if constexpr (std::is_same_v) { + dln_set_rate_dT9 = 84.41994046993656 * tfactors.T9i * tfactors.T9i + -(1.0/3.0) * -37.06 * tfactors.T943i + (1.0/3.0) * 29.3493 * tfactors.T923i + + -115.507 + (5.0/3.0) * -10.0 * tfactors.T923 + 1.66667 * tfactors.T9i; + + dln_set_rate_dT9 += net_dlog_pf_dT9; + } + + // avoid underflows by zeroing rates in [0.0, 1.e-100] + ln_set_rate = std::max(ln_set_rate, -230.0); + set_rate = std::exp(ln_set_rate); + rate += set_rate; + if constexpr (std::is_same_v) { + if (ln_set_rate > -230.0_rt) { + drate_dT += set_rate * dln_set_rate_dT9 * 1.0e-9_rt; + } + } + + // ReacLib set derived from fy05r + ln_set_rate = 22.398803979912973 + -88.54650046993656 * tfactors.T9i + -13.49 * tfactors.T913i + 21.4259 * tfactors.T913 + + -1.34769 * tfactors.T9 + 0.0879816 * tfactors.T953 + -10.1653 * tfactors.lnT9; + + ln_set_rate += net_log_pf; + + if constexpr (std::is_same_v) { + dln_set_rate_dT9 = 88.54650046993656 * tfactors.T9i * tfactors.T9i + -(1.0/3.0) * -13.49 * tfactors.T943i + (1.0/3.0) * 21.4259 * tfactors.T923i + + -1.34769 + (5.0/3.0) * 0.0879816 * tfactors.T923 + -10.1653 * tfactors.T9i; + + dln_set_rate_dT9 += net_dlog_pf_dT9; + } + + // avoid underflows by zeroing rates in [0.0, 1.e-100] + ln_set_rate = std::max(ln_set_rate, -230.0); + set_rate = std::exp(ln_set_rate); + rate += set_rate; + if constexpr (std::is_same_v) { + if (ln_set_rate > -230.0_rt) { + drate_dT += set_rate * dln_set_rate_dT9 * 1.0e-9_rt; + } + } + + rate_eval.screened_rates(k_C12_to_3He4_derived) = rate; + if constexpr (std::is_same_v) { + rate_eval.dscreened_rates_dT(k_C12_to_3He4_derived) = drate_dT; + } + } + + template + AMREX_GPU_DEVICE AMREX_INLINE + void rate_C12_C12_to_n_Mg23_derived(T& rate_eval, const tf_t& tfactors, const amrex::Real log_scor, const amrex::Real dlog_scor_dT, [[maybe_unused]] part_fun::pf_cache_t& pf_cache) { + + // C12 + C12 --> n + Mg23 + + amrex::Real rate{}, drate_dT{}; + // Evaluate partition function terms + + amrex::Real n_log_pf, dn_log_pf_dT9; + + // setting n log(partition function) to 0.0 by default, independent of T + n_log_pf = 0.0_rt; + dn_log_pf_dT9 = 0.0_rt; + + amrex::Real Mg23_log_pf, dMg23_log_pf_dT9; + + // interpolating Mg23 partition function + get_partition_function_cached(Mg23, tfactors.T9, pf_cache, Mg23_log_pf, dMg23_log_pf_dT9); + + amrex::Real C12_log_pf, dC12_log_pf_dT9; + + // setting C12 log(partition function) to 0.0 by default, independent of T + C12_log_pf = 0.0_rt; + dC12_log_pf_dT9 = 0.0_rt; + + amrex::Real net_log_pf = n_log_pf + Mg23_log_pf - C12_log_pf - C12_log_pf; + [[maybe_unused]] amrex::Real net_dlog_pf_dT9 = dn_log_pf_dT9 + dMg23_log_pf_dT9 - dC12_log_pf_dT9 - dC12_log_pf_dT9; + + amrex::Real ln_set_rate{0.0}; + amrex::Real dln_set_rate_dT9{0.0}; + amrex::Real set_rate{0.0}; + + // ReacLib set derived from cf88r + ln_set_rate = -12.784659727528789 + -30.144454449865492 * tfactors.T9i + 11.4826 * tfactors.T913 + + 1.82849 * tfactors.T9 + -0.34844 * tfactors.T953; + + ln_set_rate += net_log_pf; + ln_set_rate += log_scor; + + if constexpr (std::is_same_v) { + dln_set_rate_dT9 = 30.144454449865492 * tfactors.T9i * tfactors.T9i + (1.0/3.0) * 11.4826 * tfactors.T923i + + 1.82849 + (5.0/3.0) * -0.34844 * tfactors.T923; + + dln_set_rate_dT9 += net_dlog_pf_dT9; + dln_set_rate_dT9 += dlog_scor_dT * 1.0e9_rt; + } + + // avoid underflows by zeroing rates in [0.0, 1.e-100] + ln_set_rate = std::max(ln_set_rate, -230.0); + set_rate = std::exp(ln_set_rate); + rate += set_rate; + if constexpr (std::is_same_v) { + if (ln_set_rate > -230.0_rt) { + drate_dT += set_rate * dln_set_rate_dT9 * 1.0e-9_rt; + } + } + + rate_eval.screened_rates(k_C12_C12_to_n_Mg23_derived) = rate; + if constexpr (std::is_same_v) { + rate_eval.dscreened_rates_dT(k_C12_C12_to_n_Mg23_derived) = drate_dT; + } + } + + template + AMREX_GPU_DEVICE AMREX_INLINE + void rate_O16_C12_to_n_Si27_derived(T& rate_eval, const tf_t& tfactors, const amrex::Real log_scor, const amrex::Real dlog_scor_dT, [[maybe_unused]] part_fun::pf_cache_t& pf_cache) { + + // O16 + C12 --> n + Si27 + + amrex::Real rate{}, drate_dT{}; + // Evaluate partition function terms + + amrex::Real n_log_pf, dn_log_pf_dT9; + + // setting n log(partition function) to 0.0 by default, independent of T + n_log_pf = 0.0_rt; + dn_log_pf_dT9 = 0.0_rt; + + amrex::Real O16_log_pf, dO16_log_pf_dT9; + + // interpolating O16 partition function + get_partition_function_cached(O16, tfactors.T9, pf_cache, O16_log_pf, dO16_log_pf_dT9); + + amrex::Real Si27_log_pf, dSi27_log_pf_dT9; + + // interpolating Si27 partition function + get_partition_function_cached(Si27, tfactors.T9, pf_cache, Si27_log_pf, dSi27_log_pf_dT9); + + amrex::Real C12_log_pf, dC12_log_pf_dT9; + + // setting C12 log(partition function) to 0.0 by default, independent of T + C12_log_pf = 0.0_rt; + dC12_log_pf_dT9 = 0.0_rt; + + amrex::Real net_log_pf = n_log_pf + Si27_log_pf - C12_log_pf - O16_log_pf; + [[maybe_unused]] amrex::Real net_dlog_pf_dT9 = dn_log_pf_dT9 + dSi27_log_pf_dT9 - dC12_log_pf_dT9 - dO16_log_pf_dT9; + + amrex::Real ln_set_rate{0.0}; + amrex::Real dln_set_rate_dT9{0.0}; + amrex::Real set_rate{0.0}; + + // ReacLib set derived from cf88r + ln_set_rate = -132.19144876580245 + -1.4742031459903027 * tfactors.T9i + -293.089 * tfactors.T913i + 414.404 * tfactors.T913 + + -28.0562 * tfactors.T9 + 1.61807 * tfactors.T953 + -178.28 * tfactors.lnT9; + + ln_set_rate += net_log_pf; + ln_set_rate += log_scor; + + if constexpr (std::is_same_v) { + dln_set_rate_dT9 = 1.4742031459903027 * tfactors.T9i * tfactors.T9i + -(1.0/3.0) * -293.089 * tfactors.T943i + (1.0/3.0) * 414.404 * tfactors.T923i + + -28.0562 + (5.0/3.0) * 1.61807 * tfactors.T923 + -178.28 * tfactors.T9i; + + dln_set_rate_dT9 += net_dlog_pf_dT9; + dln_set_rate_dT9 += dlog_scor_dT * 1.0e9_rt; + } + + // avoid underflows by zeroing rates in [0.0, 1.e-100] + ln_set_rate = std::max(ln_set_rate, -230.0); + set_rate = std::exp(ln_set_rate); + rate += set_rate; + if constexpr (std::is_same_v) { + if (ln_set_rate > -230.0_rt) { + drate_dT += set_rate * dln_set_rate_dT9 * 1.0e-9_rt; + } + } + + rate_eval.screened_rates(k_O16_C12_to_n_Si27_derived) = rate; + if constexpr (std::is_same_v) { + rate_eval.dscreened_rates_dT(k_O16_C12_to_n_Si27_derived) = drate_dT; + } + } + + template + AMREX_GPU_DEVICE AMREX_INLINE + void rate_Ne20_He4_to_n_Mg23_derived(T& rate_eval, const tf_t& tfactors, const amrex::Real log_scor, const amrex::Real dlog_scor_dT, [[maybe_unused]] part_fun::pf_cache_t& pf_cache) { + + // Ne20 + He4 --> n + Mg23 + + amrex::Real rate{}, drate_dT{}; + // Evaluate partition function terms + + amrex::Real n_log_pf, dn_log_pf_dT9; + + // setting n log(partition function) to 0.0 by default, independent of T + n_log_pf = 0.0_rt; + dn_log_pf_dT9 = 0.0_rt; + + amrex::Real He4_log_pf, dHe4_log_pf_dT9; + + // setting He4 log(partition function) to 0.0 by default, independent of T + He4_log_pf = 0.0_rt; + dHe4_log_pf_dT9 = 0.0_rt; + + amrex::Real Mg23_log_pf, dMg23_log_pf_dT9; + + // interpolating Mg23 partition function + get_partition_function_cached(Mg23, tfactors.T9, pf_cache, Mg23_log_pf, dMg23_log_pf_dT9); + + amrex::Real Ne20_log_pf, dNe20_log_pf_dT9; + + // interpolating Ne20 partition function + get_partition_function_cached(Ne20, tfactors.T9, pf_cache, Ne20_log_pf, dNe20_log_pf_dT9); + + amrex::Real net_log_pf = n_log_pf + Mg23_log_pf - He4_log_pf - Ne20_log_pf; + [[maybe_unused]] amrex::Real net_dlog_pf_dT9 = dn_log_pf_dT9 + dMg23_log_pf_dT9 - dHe4_log_pf_dT9 - dNe20_log_pf_dT9; + + amrex::Real ln_set_rate{0.0}; + amrex::Real dln_set_rate_dT9{0.0}; + amrex::Real set_rate{0.0}; + + // ReacLib set derived from ths8r + ln_set_rate = 17.974691741390394 + -83.72270411882882 * tfactors.T9i + 1.83199 * tfactors.T913 + + -0.290485 * tfactors.T9 + 0.0242929 * tfactors.T953; + + ln_set_rate += net_log_pf; + ln_set_rate += log_scor; + + if constexpr (std::is_same_v) { + dln_set_rate_dT9 = 83.72270411882882 * tfactors.T9i * tfactors.T9i + (1.0/3.0) * 1.83199 * tfactors.T923i + + -0.290485 + (5.0/3.0) * 0.0242929 * tfactors.T923; + + dln_set_rate_dT9 += net_dlog_pf_dT9; + dln_set_rate_dT9 += dlog_scor_dT * 1.0e9_rt; + } + + // avoid underflows by zeroing rates in [0.0, 1.e-100] + ln_set_rate = std::max(ln_set_rate, -230.0); + set_rate = std::exp(ln_set_rate); + rate += set_rate; + if constexpr (std::is_same_v) { + if (ln_set_rate > -230.0_rt) { + drate_dT += set_rate * dln_set_rate_dT9 * 1.0e-9_rt; + } + } + + rate_eval.screened_rates(k_Ne20_He4_to_n_Mg23_derived) = rate; + if constexpr (std::is_same_v) { + rate_eval.dscreened_rates_dT(k_Ne20_He4_to_n_Mg23_derived) = drate_dT; + } + } + + template + AMREX_GPU_DEVICE AMREX_INLINE + void rate_Mg24_He4_to_n_Si27_derived(T& rate_eval, const tf_t& tfactors, const amrex::Real log_scor, const amrex::Real dlog_scor_dT, [[maybe_unused]] part_fun::pf_cache_t& pf_cache) { + + // Mg24 + He4 --> n + Si27 + + amrex::Real rate{}, drate_dT{}; + // Evaluate partition function terms + + amrex::Real n_log_pf, dn_log_pf_dT9; + + // setting n log(partition function) to 0.0 by default, independent of T + n_log_pf = 0.0_rt; + dn_log_pf_dT9 = 0.0_rt; + + amrex::Real He4_log_pf, dHe4_log_pf_dT9; + + // setting He4 log(partition function) to 0.0 by default, independent of T + He4_log_pf = 0.0_rt; + dHe4_log_pf_dT9 = 0.0_rt; + + amrex::Real Mg24_log_pf, dMg24_log_pf_dT9; + + // interpolating Mg24 partition function + get_partition_function_cached(Mg24, tfactors.T9, pf_cache, Mg24_log_pf, dMg24_log_pf_dT9); + + amrex::Real Si27_log_pf, dSi27_log_pf_dT9; + + // interpolating Si27 partition function + get_partition_function_cached(Si27, tfactors.T9, pf_cache, Si27_log_pf, dSi27_log_pf_dT9); + + amrex::Real net_log_pf = n_log_pf + Si27_log_pf - He4_log_pf - Mg24_log_pf; + [[maybe_unused]] amrex::Real net_dlog_pf_dT9 = dn_log_pf_dT9 + dSi27_log_pf_dT9 - dHe4_log_pf_dT9 - dMg24_log_pf_dT9; + + amrex::Real ln_set_rate{0.0}; + amrex::Real dln_set_rate_dT9{0.0}; + amrex::Real set_rate{0.0}; + + // ReacLib set derived from ths8r + ln_set_rate = 18.680909426508013 + -83.49996467707591 * tfactors.T9i + 0.942981 * tfactors.T913 + + -0.104624 * tfactors.T9 + 0.00723421 * tfactors.T953; + + ln_set_rate += net_log_pf; + ln_set_rate += log_scor; + + if constexpr (std::is_same_v) { + dln_set_rate_dT9 = 83.49996467707591 * tfactors.T9i * tfactors.T9i + (1.0/3.0) * 0.942981 * tfactors.T923i + + -0.104624 + (5.0/3.0) * 0.00723421 * tfactors.T923; + + dln_set_rate_dT9 += net_dlog_pf_dT9; + dln_set_rate_dT9 += dlog_scor_dT * 1.0e9_rt; + } + + // avoid underflows by zeroing rates in [0.0, 1.e-100] + ln_set_rate = std::max(ln_set_rate, -230.0); + set_rate = std::exp(ln_set_rate); + rate += set_rate; + if constexpr (std::is_same_v) { + if (ln_set_rate > -230.0_rt) { + drate_dT += set_rate * dln_set_rate_dT9 * 1.0e-9_rt; + } + } + + rate_eval.screened_rates(k_Mg24_He4_to_n_Si27_derived) = rate; + if constexpr (std::is_same_v) { + rate_eval.dscreened_rates_dT(k_Mg24_He4_to_n_Si27_derived) = drate_dT; + } + } + + template + AMREX_GPU_DEVICE AMREX_INLINE + void rate_Mg24_He4_to_p_Al27_derived(T& rate_eval, const tf_t& tfactors, const amrex::Real log_scor, const amrex::Real dlog_scor_dT, [[maybe_unused]] part_fun::pf_cache_t& pf_cache) { + + // Mg24 + He4 --> p + Al27 + + amrex::Real rate{}, drate_dT{}; + // Evaluate partition function terms + + amrex::Real p_log_pf, dp_log_pf_dT9; + + // setting p log(partition function) to 0.0 by default, independent of T + p_log_pf = 0.0_rt; + dp_log_pf_dT9 = 0.0_rt; + + amrex::Real Al27_log_pf, dAl27_log_pf_dT9; + + // interpolating Al27 partition function + get_partition_function_cached(Al27, tfactors.T9, pf_cache, Al27_log_pf, dAl27_log_pf_dT9); + + amrex::Real Mg24_log_pf, dMg24_log_pf_dT9; + + // interpolating Mg24 partition function + get_partition_function_cached(Mg24, tfactors.T9, pf_cache, Mg24_log_pf, dMg24_log_pf_dT9); + + amrex::Real He4_log_pf, dHe4_log_pf_dT9; + + // setting He4 log(partition function) to 0.0 by default, independent of T + He4_log_pf = 0.0_rt; + dHe4_log_pf_dT9 = 0.0_rt; + + amrex::Real net_log_pf = p_log_pf + Al27_log_pf - He4_log_pf - Mg24_log_pf; + [[maybe_unused]] amrex::Real net_dlog_pf_dT9 = dp_log_pf_dT9 + dAl27_log_pf_dT9 - dHe4_log_pf_dT9 - dMg24_log_pf_dT9; + + amrex::Real ln_set_rate{0.0}; + amrex::Real dln_set_rate_dT9{0.0}; + amrex::Real set_rate{0.0}; + + // ReacLib set derived from il10r + ln_set_rate = -6.4280417530584835 + -22.818701538287602 * tfactors.T9i + 18.0416 * tfactors.T913 + + -1.54137 * tfactors.T9 + 0.0847506 * tfactors.T953 + -1.5 * tfactors.lnT9; + + ln_set_rate += net_log_pf; + ln_set_rate += log_scor; + + if constexpr (std::is_same_v) { + dln_set_rate_dT9 = 22.818701538287602 * tfactors.T9i * tfactors.T9i + (1.0/3.0) * 18.0416 * tfactors.T923i + + -1.54137 + (5.0/3.0) * 0.0847506 * tfactors.T923 + -1.5 * tfactors.T9i; + + dln_set_rate_dT9 += net_dlog_pf_dT9; + dln_set_rate_dT9 += dlog_scor_dT * 1.0e9_rt; + } + + // avoid underflows by zeroing rates in [0.0, 1.e-100] + ln_set_rate = std::max(ln_set_rate, -230.0); + set_rate = std::exp(ln_set_rate); + rate += set_rate; + if constexpr (std::is_same_v) { + if (ln_set_rate > -230.0_rt) { + drate_dT += set_rate * dln_set_rate_dT9 * 1.0e-9_rt; + } + } + + // ReacLib set derived from il10r + ln_set_rate = -26.268451753058486 + -19.5392135382876 * tfactors.T9i + 5.18642 * tfactors.T913i + -34.7936 * tfactors.T913 + + 168.225 * tfactors.T9 + -115.825 * tfactors.T953 + -1.5 * tfactors.lnT9; + + ln_set_rate += net_log_pf; + ln_set_rate += log_scor; + + if constexpr (std::is_same_v) { + dln_set_rate_dT9 = 19.5392135382876 * tfactors.T9i * tfactors.T9i + -(1.0/3.0) * 5.18642 * tfactors.T943i + (1.0/3.0) * -34.7936 * tfactors.T923i + + 168.225 + (5.0/3.0) * -115.825 * tfactors.T923 + -1.5 * tfactors.T9i; + + dln_set_rate_dT9 += net_dlog_pf_dT9; + dln_set_rate_dT9 += dlog_scor_dT * 1.0e9_rt; + } + + // avoid underflows by zeroing rates in [0.0, 1.e-100] + ln_set_rate = std::max(ln_set_rate, -230.0); + set_rate = std::exp(ln_set_rate); + rate += set_rate; + if constexpr (std::is_same_v) { + if (ln_set_rate > -230.0_rt) { + drate_dT += set_rate * dln_set_rate_dT9 * 1.0e-9_rt; + } + } + + // ReacLib set derived from il10n + ln_set_rate = 30.057448246941515 + -18.576201538287602 * tfactors.T9i + -26.4162 * tfactors.T913i + + -2.0 * tfactors.T953 + -0.666667 * tfactors.lnT9; + + ln_set_rate += net_log_pf; + ln_set_rate += log_scor; + + if constexpr (std::is_same_v) { + dln_set_rate_dT9 = 18.576201538287602 * tfactors.T9i * tfactors.T9i + -(1.0/3.0) * -26.4162 * tfactors.T943i + + (5.0/3.0) * -2.0 * tfactors.T923 + -0.666667 * tfactors.T9i; + + dln_set_rate_dT9 += net_dlog_pf_dT9; + dln_set_rate_dT9 += dlog_scor_dT * 1.0e9_rt; + } + + // avoid underflows by zeroing rates in [0.0, 1.e-100] + ln_set_rate = std::max(ln_set_rate, -230.0); + set_rate = std::exp(ln_set_rate); + rate += set_rate; + if constexpr (std::is_same_v) { + if (ln_set_rate > -230.0_rt) { + drate_dT += set_rate * dln_set_rate_dT9 * 1.0e-9_rt; + } + } + + rate_eval.screened_rates(k_Mg24_He4_to_p_Al27_derived) = rate; + if constexpr (std::is_same_v) { + rate_eval.dscreened_rates_dT(k_Mg24_He4_to_p_Al27_derived) = drate_dT; + } + } + + template + AMREX_GPU_DEVICE AMREX_INLINE + void rate_Mg24_He4_to_C12_O16_derived(T& rate_eval, const tf_t& tfactors, const amrex::Real log_scor, const amrex::Real dlog_scor_dT, [[maybe_unused]] part_fun::pf_cache_t& pf_cache) { + + // Mg24 + He4 --> C12 + O16 + + amrex::Real rate{}, drate_dT{}; + // Evaluate partition function terms + + amrex::Real C12_log_pf, dC12_log_pf_dT9; + + // setting C12 log(partition function) to 0.0 by default, independent of T + C12_log_pf = 0.0_rt; + dC12_log_pf_dT9 = 0.0_rt; + + amrex::Real He4_log_pf, dHe4_log_pf_dT9; + + // setting He4 log(partition function) to 0.0 by default, independent of T + He4_log_pf = 0.0_rt; + dHe4_log_pf_dT9 = 0.0_rt; + + amrex::Real Mg24_log_pf, dMg24_log_pf_dT9; + + // interpolating Mg24 partition function + get_partition_function_cached(Mg24, tfactors.T9, pf_cache, Mg24_log_pf, dMg24_log_pf_dT9); + + amrex::Real O16_log_pf, dO16_log_pf_dT9; + + // interpolating O16 partition function + get_partition_function_cached(O16, tfactors.T9, pf_cache, O16_log_pf, dO16_log_pf_dT9); + + amrex::Real net_log_pf = C12_log_pf + O16_log_pf - He4_log_pf - Mg24_log_pf; + [[maybe_unused]] amrex::Real net_dlog_pf_dT9 = dC12_log_pf_dT9 + dO16_log_pf_dT9 - dHe4_log_pf_dT9 - dMg24_log_pf_dT9; + + amrex::Real ln_set_rate{0.0}; + amrex::Real dln_set_rate_dT9{0.0}; + amrex::Real set_rate{0.0}; + + // ReacLib set derived from cf88r + ln_set_rate = 49.57295819231048 + -78.2098115311048 * tfactors.T9i + -133.413 * tfactors.T913i + 50.1572 * tfactors.T913 + + -3.15987 * tfactors.T9 + 0.0178251 * tfactors.T953 + -23.7027 * tfactors.lnT9; + + ln_set_rate += net_log_pf; + ln_set_rate += log_scor; + + if constexpr (std::is_same_v) { + dln_set_rate_dT9 = 78.2098115311048 * tfactors.T9i * tfactors.T9i + -(1.0/3.0) * -133.413 * tfactors.T943i + (1.0/3.0) * 50.1572 * tfactors.T923i + + -3.15987 + (5.0/3.0) * 0.0178251 * tfactors.T923 + -23.7027 * tfactors.T9i; + + dln_set_rate_dT9 += net_dlog_pf_dT9; + dln_set_rate_dT9 += dlog_scor_dT * 1.0e9_rt; + } + + // avoid underflows by zeroing rates in [0.0, 1.e-100] + ln_set_rate = std::max(ln_set_rate, -230.0); + set_rate = std::exp(ln_set_rate); + rate += set_rate; + if constexpr (std::is_same_v) { + if (ln_set_rate > -230.0_rt) { + drate_dT += set_rate * dln_set_rate_dT9 * 1.0e-9_rt; + } + } + + rate_eval.screened_rates(k_Mg24_He4_to_C12_O16_derived) = rate; + if constexpr (std::is_same_v) { + rate_eval.dscreened_rates_dT(k_Mg24_He4_to_C12_O16_derived) = drate_dT; + } + } + + template + AMREX_GPU_DEVICE AMREX_INLINE + void rate_Al27_p_to_n_Si27_derived(T& rate_eval, const tf_t& tfactors, const amrex::Real log_scor, const amrex::Real dlog_scor_dT, [[maybe_unused]] part_fun::pf_cache_t& pf_cache) { + + // Al27 + p --> n + Si27 + + amrex::Real rate{}, drate_dT{}; + // Evaluate partition function terms + + amrex::Real n_log_pf, dn_log_pf_dT9; + + // setting n log(partition function) to 0.0 by default, independent of T + n_log_pf = 0.0_rt; + dn_log_pf_dT9 = 0.0_rt; + + amrex::Real p_log_pf, dp_log_pf_dT9; + + // setting p log(partition function) to 0.0 by default, independent of T + p_log_pf = 0.0_rt; + dp_log_pf_dT9 = 0.0_rt; + + amrex::Real Al27_log_pf, dAl27_log_pf_dT9; + + // interpolating Al27 partition function + get_partition_function_cached(Al27, tfactors.T9, pf_cache, Al27_log_pf, dAl27_log_pf_dT9); + + amrex::Real Si27_log_pf, dSi27_log_pf_dT9; + + // interpolating Si27 partition function + get_partition_function_cached(Si27, tfactors.T9, pf_cache, Si27_log_pf, dSi27_log_pf_dT9); + + amrex::Real net_log_pf = n_log_pf + Si27_log_pf - p_log_pf - Al27_log_pf; + [[maybe_unused]] amrex::Real net_dlog_pf_dT9 = dn_log_pf_dT9 + dSi27_log_pf_dT9 - dp_log_pf_dT9 - dAl27_log_pf_dT9; + + amrex::Real ln_set_rate{0.0}; + amrex::Real dln_set_rate_dT9{0.0}; + amrex::Real set_rate{0.0}; + + // ReacLib set derived from ths8r + ln_set_rate = 17.8425611795665 + -64.9237631387883 * tfactors.T9i + 2.10552 * tfactors.T913 + + -0.318695 * tfactors.T9 + 0.0257496 * tfactors.T953; + + ln_set_rate += net_log_pf; + ln_set_rate += log_scor; + + if constexpr (std::is_same_v) { + dln_set_rate_dT9 = 64.9237631387883 * tfactors.T9i * tfactors.T9i + (1.0/3.0) * 2.10552 * tfactors.T923i + + -0.318695 + (5.0/3.0) * 0.0257496 * tfactors.T923; + + dln_set_rate_dT9 += net_dlog_pf_dT9; + dln_set_rate_dT9 += dlog_scor_dT * 1.0e9_rt; + } + + // avoid underflows by zeroing rates in [0.0, 1.e-100] + ln_set_rate = std::max(ln_set_rate, -230.0); + set_rate = std::exp(ln_set_rate); + rate += set_rate; + if constexpr (std::is_same_v) { + if (ln_set_rate > -230.0_rt) { + drate_dT += set_rate * dln_set_rate_dT9 * 1.0e-9_rt; + } + } + + rate_eval.screened_rates(k_Al27_p_to_n_Si27_derived) = rate; + if constexpr (std::is_same_v) { + rate_eval.dscreened_rates_dT(k_Al27_p_to_n_Si27_derived) = drate_dT; + } + } + + template + AMREX_GPU_DEVICE AMREX_INLINE + void rate_Al27_p_to_C12_O16_derived(T& rate_eval, const tf_t& tfactors, const amrex::Real log_scor, const amrex::Real dlog_scor_dT, [[maybe_unused]] part_fun::pf_cache_t& pf_cache) { + + // Al27 + p --> C12 + O16 + + amrex::Real rate{}, drate_dT{}; + // Evaluate partition function terms + + amrex::Real C12_log_pf, dC12_log_pf_dT9; + + // setting C12 log(partition function) to 0.0 by default, independent of T + C12_log_pf = 0.0_rt; + dC12_log_pf_dT9 = 0.0_rt; + + amrex::Real p_log_pf, dp_log_pf_dT9; + + // setting p log(partition function) to 0.0 by default, independent of T + p_log_pf = 0.0_rt; + dp_log_pf_dT9 = 0.0_rt; + + amrex::Real Al27_log_pf, dAl27_log_pf_dT9; + + // interpolating Al27 partition function + get_partition_function_cached(Al27, tfactors.T9, pf_cache, Al27_log_pf, dAl27_log_pf_dT9); + + amrex::Real O16_log_pf, dO16_log_pf_dT9; + + // interpolating O16 partition function + get_partition_function_cached(O16, tfactors.T9, pf_cache, O16_log_pf, dO16_log_pf_dT9); + + amrex::Real net_log_pf = C12_log_pf + O16_log_pf - p_log_pf - Al27_log_pf; + [[maybe_unused]] amrex::Real net_dlog_pf_dT9 = dC12_log_pf_dT9 + dO16_log_pf_dT9 - dp_log_pf_dT9 - dAl27_log_pf_dT9; + + amrex::Real ln_set_rate{0.0}; + amrex::Real dln_set_rate_dT9{0.0}; + amrex::Real set_rate{0.0}; + + // ReacLib set derived from cf88r + ln_set_rate = 68.96430994536895 + -59.8005159928172 * tfactors.T9i + -119.242 * tfactors.T913i + 13.3667 * tfactors.T913 + + 0.295425 * tfactors.T9 + -0.267288 * tfactors.T953 + -9.91729 * tfactors.lnT9; + + ln_set_rate += net_log_pf; + ln_set_rate += log_scor; + + if constexpr (std::is_same_v) { + dln_set_rate_dT9 = 59.8005159928172 * tfactors.T9i * tfactors.T9i + -(1.0/3.0) * -119.242 * tfactors.T943i + (1.0/3.0) * 13.3667 * tfactors.T923i + + 0.295425 + (5.0/3.0) * -0.267288 * tfactors.T923 + -9.91729 * tfactors.T9i; + + dln_set_rate_dT9 += net_dlog_pf_dT9; + dln_set_rate_dT9 += dlog_scor_dT * 1.0e9_rt; + } + + // avoid underflows by zeroing rates in [0.0, 1.e-100] + ln_set_rate = std::max(ln_set_rate, -230.0); + set_rate = std::exp(ln_set_rate); + rate += set_rate; + if constexpr (std::is_same_v) { + if (ln_set_rate > -230.0_rt) { + drate_dT += set_rate * dln_set_rate_dT9 * 1.0e-9_rt; + } + } + + rate_eval.screened_rates(k_Al27_p_to_C12_O16_derived) = rate; + if constexpr (std::is_same_v) { + rate_eval.dscreened_rates_dT(k_Al27_p_to_C12_O16_derived) = drate_dT; + } + } + + template + AMREX_GPU_DEVICE AMREX_INLINE + void rate_Si27_He4_to_n_S30_derived(T& rate_eval, const tf_t& tfactors, const amrex::Real log_scor, const amrex::Real dlog_scor_dT, [[maybe_unused]] part_fun::pf_cache_t& pf_cache) { + + // Si27 + He4 --> n + S30 + + amrex::Real rate{}, drate_dT{}; + // Evaluate partition function terms + + amrex::Real n_log_pf, dn_log_pf_dT9; + + // setting n log(partition function) to 0.0 by default, independent of T + n_log_pf = 0.0_rt; + dn_log_pf_dT9 = 0.0_rt; + + amrex::Real S30_log_pf, dS30_log_pf_dT9; + + // interpolating S30 partition function + get_partition_function_cached(S30, tfactors.T9, pf_cache, S30_log_pf, dS30_log_pf_dT9); + + amrex::Real He4_log_pf, dHe4_log_pf_dT9; + + // setting He4 log(partition function) to 0.0 by default, independent of T + He4_log_pf = 0.0_rt; + dHe4_log_pf_dT9 = 0.0_rt; + + amrex::Real Si27_log_pf, dSi27_log_pf_dT9; + + // interpolating Si27 partition function + get_partition_function_cached(Si27, tfactors.T9, pf_cache, Si27_log_pf, dSi27_log_pf_dT9); + + amrex::Real net_log_pf = n_log_pf + S30_log_pf - He4_log_pf - Si27_log_pf; + [[maybe_unused]] amrex::Real net_dlog_pf_dT9 = dn_log_pf_dT9 + dS30_log_pf_dT9 - dHe4_log_pf_dT9 - dSi27_log_pf_dT9; + + amrex::Real ln_set_rate{0.0}; + amrex::Real dln_set_rate_dT9{0.0}; + amrex::Real set_rate{0.0}; + + // ReacLib set derived from ths8r + ln_set_rate = 11.342202681948677 + -46.08922632071148 * tfactors.T9i + 1.55858 * tfactors.T913 + + -0.0243677 * tfactors.T9 + 0.00835247 * tfactors.T953; + + ln_set_rate += net_log_pf; + ln_set_rate += log_scor; + + if constexpr (std::is_same_v) { + dln_set_rate_dT9 = 46.08922632071148 * tfactors.T9i * tfactors.T9i + (1.0/3.0) * 1.55858 * tfactors.T923i + + -0.0243677 + (5.0/3.0) * 0.00835247 * tfactors.T923; + + dln_set_rate_dT9 += net_dlog_pf_dT9; + dln_set_rate_dT9 += dlog_scor_dT * 1.0e9_rt; + } + + // avoid underflows by zeroing rates in [0.0, 1.e-100] + ln_set_rate = std::max(ln_set_rate, -230.0); + set_rate = std::exp(ln_set_rate); + rate += set_rate; + if constexpr (std::is_same_v) { + if (ln_set_rate > -230.0_rt) { + drate_dT += set_rate * dln_set_rate_dT9 * 1.0e-9_rt; + } + } + + rate_eval.screened_rates(k_Si27_He4_to_n_S30_derived) = rate; + if constexpr (std::is_same_v) { + rate_eval.dscreened_rates_dT(k_Si27_He4_to_n_S30_derived) = drate_dT; + } + } + + template + AMREX_GPU_DEVICE AMREX_INLINE + void rate_Si28_He4_to_p_P31_derived(T& rate_eval, const tf_t& tfactors, const amrex::Real log_scor, const amrex::Real dlog_scor_dT, [[maybe_unused]] part_fun::pf_cache_t& pf_cache) { + + // Si28 + He4 --> p + P31 + + amrex::Real rate{}, drate_dT{}; + // Evaluate partition function terms + + amrex::Real p_log_pf, dp_log_pf_dT9; + + // setting p log(partition function) to 0.0 by default, independent of T + p_log_pf = 0.0_rt; + dp_log_pf_dT9 = 0.0_rt; + + amrex::Real He4_log_pf, dHe4_log_pf_dT9; + + // setting He4 log(partition function) to 0.0 by default, independent of T + He4_log_pf = 0.0_rt; + dHe4_log_pf_dT9 = 0.0_rt; + + amrex::Real P31_log_pf, dP31_log_pf_dT9; + + // interpolating P31 partition function + get_partition_function_cached(P31, tfactors.T9, pf_cache, P31_log_pf, dP31_log_pf_dT9); + + amrex::Real Si28_log_pf, dSi28_log_pf_dT9; + + // interpolating Si28 partition function + get_partition_function_cached(Si28, tfactors.T9, pf_cache, Si28_log_pf, dSi28_log_pf_dT9); + + amrex::Real net_log_pf = p_log_pf + P31_log_pf - He4_log_pf - Si28_log_pf; + [[maybe_unused]] amrex::Real net_dlog_pf_dT9 = dp_log_pf_dT9 + dP31_log_pf_dT9 - dHe4_log_pf_dT9 - dSi28_log_pf_dT9; + + amrex::Real ln_set_rate{0.0}; + amrex::Real dln_set_rate_dT9{0.0}; + amrex::Real set_rate{0.0}; + + // ReacLib set derived from il10r + ln_set_rate = -11.415669089666713 + -25.663579682396225 * tfactors.T9i + 21.521 * tfactors.T913 + + -1.90355 * tfactors.T9 + 0.092724 * tfactors.T953 + -1.5 * tfactors.lnT9; + + ln_set_rate += net_log_pf; + ln_set_rate += log_scor; + + if constexpr (std::is_same_v) { + dln_set_rate_dT9 = 25.663579682396225 * tfactors.T9i * tfactors.T9i + (1.0/3.0) * 21.521 * tfactors.T923i + + -1.90355 + (5.0/3.0) * 0.092724 * tfactors.T923 + -1.5 * tfactors.T9i; + + dln_set_rate_dT9 += net_dlog_pf_dT9; + dln_set_rate_dT9 += dlog_scor_dT * 1.0e9_rt; + } + + // avoid underflows by zeroing rates in [0.0, 1.e-100] + ln_set_rate = std::max(ln_set_rate, -230.0); + set_rate = std::exp(ln_set_rate); + rate += set_rate; + if constexpr (std::is_same_v) { + if (ln_set_rate > -230.0_rt) { + drate_dT += set_rate * dln_set_rate_dT9 * 1.0e-9_rt; + } + } + + // ReacLib set derived from il10r + ln_set_rate = -13.441669089666712 + -24.114989682396224 * tfactors.T9i + + -1.5 * tfactors.lnT9; + + ln_set_rate += net_log_pf; + ln_set_rate += log_scor; + + if constexpr (std::is_same_v) { + dln_set_rate_dT9 = 24.114989682396224 * tfactors.T9i * tfactors.T9i + + -1.5 * tfactors.T9i; + + dln_set_rate_dT9 += net_dlog_pf_dT9; + dln_set_rate_dT9 += dlog_scor_dT * 1.0e9_rt; + } + + // avoid underflows by zeroing rates in [0.0, 1.e-100] + ln_set_rate = std::max(ln_set_rate, -230.0); + set_rate = std::exp(ln_set_rate); + rate += set_rate; + if constexpr (std::is_same_v) { + if (ln_set_rate > -230.0_rt) { + drate_dT += set_rate * dln_set_rate_dT9 * 1.0e-9_rt; + } + } + + // ReacLib set derived from il10n + ln_set_rate = 60.360230910333286 + -22.237829682396224 * tfactors.T9i + -31.932 * tfactors.T913i + -77.0334 * tfactors.T913 + + -43.6847 * tfactors.T9 + -4.28955 * tfactors.T953 + -0.666667 * tfactors.lnT9; + + ln_set_rate += net_log_pf; + ln_set_rate += log_scor; + + if constexpr (std::is_same_v) { + dln_set_rate_dT9 = 22.237829682396224 * tfactors.T9i * tfactors.T9i + -(1.0/3.0) * -31.932 * tfactors.T943i + (1.0/3.0) * -77.0334 * tfactors.T923i + + -43.6847 + (5.0/3.0) * -4.28955 * tfactors.T923 + -0.666667 * tfactors.T9i; + + dln_set_rate_dT9 += net_dlog_pf_dT9; + dln_set_rate_dT9 += dlog_scor_dT * 1.0e9_rt; + } + + // avoid underflows by zeroing rates in [0.0, 1.e-100] + ln_set_rate = std::max(ln_set_rate, -230.0); + set_rate = std::exp(ln_set_rate); + rate += set_rate; + if constexpr (std::is_same_v) { + if (ln_set_rate > -230.0_rt) { + drate_dT += set_rate * dln_set_rate_dT9 * 1.0e-9_rt; + } + } + + rate_eval.screened_rates(k_Si28_He4_to_p_P31_derived) = rate; + if constexpr (std::is_same_v) { + rate_eval.dscreened_rates_dT(k_Si28_He4_to_p_P31_derived) = drate_dT; + } + } + + template + AMREX_GPU_DEVICE AMREX_INLINE + void rate_Si28_He4_to_C12_Ne20_derived(T& rate_eval, const tf_t& tfactors, const amrex::Real log_scor, const amrex::Real dlog_scor_dT, [[maybe_unused]] part_fun::pf_cache_t& pf_cache) { + + // Si28 + He4 --> C12 + Ne20 + + amrex::Real rate{}, drate_dT{}; + // Evaluate partition function terms + + amrex::Real C12_log_pf, dC12_log_pf_dT9; + + // setting C12 log(partition function) to 0.0 by default, independent of T + C12_log_pf = 0.0_rt; + dC12_log_pf_dT9 = 0.0_rt; + + amrex::Real He4_log_pf, dHe4_log_pf_dT9; + + // setting He4 log(partition function) to 0.0 by default, independent of T + He4_log_pf = 0.0_rt; + dHe4_log_pf_dT9 = 0.0_rt; + + amrex::Real Si28_log_pf, dSi28_log_pf_dT9; + + // interpolating Si28 partition function + get_partition_function_cached(Si28, tfactors.T9, pf_cache, Si28_log_pf, dSi28_log_pf_dT9); + + amrex::Real Ne20_log_pf, dNe20_log_pf_dT9; + + // interpolating Ne20 partition function + get_partition_function_cached(Ne20, tfactors.T9, pf_cache, Ne20_log_pf, dNe20_log_pf_dT9); + + amrex::Real net_log_pf = C12_log_pf + Ne20_log_pf - He4_log_pf - Si28_log_pf; + [[maybe_unused]] amrex::Real net_dlog_pf_dT9 = dC12_log_pf_dT9 + dNe20_log_pf_dT9 - dHe4_log_pf_dT9 - dSi28_log_pf_dT9; + + amrex::Real ln_set_rate{0.0}; + amrex::Real dln_set_rate_dT9{0.0}; + amrex::Real set_rate{0.0}; + + // ReacLib set derived from rolfr + ln_set_rate = -307.7623006031339 + -186.77284344745925 * tfactors.T9i + 514.197 * tfactors.T913i + -200.896 * tfactors.T913 + + -6.42713 * tfactors.T9 + 0.758256 * tfactors.T953 + 236.359 * tfactors.lnT9; + + ln_set_rate += net_log_pf; + ln_set_rate += log_scor; + + if constexpr (std::is_same_v) { + dln_set_rate_dT9 = 186.77284344745925 * tfactors.T9i * tfactors.T9i + -(1.0/3.0) * 514.197 * tfactors.T943i + (1.0/3.0) * -200.896 * tfactors.T923i + + -6.42713 + (5.0/3.0) * 0.758256 * tfactors.T923 + 236.359 * tfactors.T9i; + + dln_set_rate_dT9 += net_dlog_pf_dT9; + dln_set_rate_dT9 += dlog_scor_dT * 1.0e9_rt; + } + + // avoid underflows by zeroing rates in [0.0, 1.e-100] + ln_set_rate = std::max(ln_set_rate, -230.0); + set_rate = std::exp(ln_set_rate); + rate += set_rate; + if constexpr (std::is_same_v) { + if (ln_set_rate > -230.0_rt) { + drate_dT += set_rate * dln_set_rate_dT9 * 1.0e-9_rt; + } + } + + rate_eval.screened_rates(k_Si28_He4_to_C12_Ne20_derived) = rate; + if constexpr (std::is_same_v) { + rate_eval.dscreened_rates_dT(k_Si28_He4_to_C12_Ne20_derived) = drate_dT; + } + } + + template + AMREX_GPU_DEVICE AMREX_INLINE + void rate_Si28_He4_to_O16_O16_derived(T& rate_eval, const tf_t& tfactors, const amrex::Real log_scor, const amrex::Real dlog_scor_dT, [[maybe_unused]] part_fun::pf_cache_t& pf_cache) { + + // Si28 + He4 --> O16 + O16 + + amrex::Real rate{}, drate_dT{}; + // Evaluate partition function terms + + amrex::Real He4_log_pf, dHe4_log_pf_dT9; + + // setting He4 log(partition function) to 0.0 by default, independent of T + He4_log_pf = 0.0_rt; + dHe4_log_pf_dT9 = 0.0_rt; + + amrex::Real O16_log_pf, dO16_log_pf_dT9; + + // interpolating O16 partition function + get_partition_function_cached(O16, tfactors.T9, pf_cache, O16_log_pf, dO16_log_pf_dT9); + + amrex::Real Si28_log_pf, dSi28_log_pf_dT9; + + // interpolating Si28 partition function + get_partition_function_cached(Si28, tfactors.T9, pf_cache, Si28_log_pf, dSi28_log_pf_dT9); + + amrex::Real net_log_pf = O16_log_pf + O16_log_pf - He4_log_pf - Si28_log_pf; + [[maybe_unused]] amrex::Real net_dlog_pf_dT9 = dO16_log_pf_dT9 + dO16_log_pf_dT9 - dHe4_log_pf_dT9 - dSi28_log_pf_dT9; + + amrex::Real ln_set_rate{0.0}; + amrex::Real dln_set_rate_dT9{0.0}; + amrex::Real set_rate{0.0}; + + // ReacLib set derived from cf88r + ln_set_rate = 97.78921572069022 + -111.60083385054465 * tfactors.T9i + -119.324 * tfactors.T913i + -32.2497 * tfactors.T913 + + 1.46214 * tfactors.T9 + -0.200893 * tfactors.T953 + 13.2148 * tfactors.lnT9; + + ln_set_rate += net_log_pf; + ln_set_rate += log_scor; + + if constexpr (std::is_same_v) { + dln_set_rate_dT9 = 111.60083385054465 * tfactors.T9i * tfactors.T9i + -(1.0/3.0) * -119.324 * tfactors.T943i + (1.0/3.0) * -32.2497 * tfactors.T923i + + 1.46214 + (5.0/3.0) * -0.200893 * tfactors.T923 + 13.2148 * tfactors.T9i; + + dln_set_rate_dT9 += net_dlog_pf_dT9; + dln_set_rate_dT9 += dlog_scor_dT * 1.0e9_rt; + } + + // avoid underflows by zeroing rates in [0.0, 1.e-100] + ln_set_rate = std::max(ln_set_rate, -230.0); + set_rate = std::exp(ln_set_rate); + rate += set_rate; + if constexpr (std::is_same_v) { + if (ln_set_rate > -230.0_rt) { + drate_dT += set_rate * dln_set_rate_dT9 * 1.0e-9_rt; + } + } + + rate_eval.screened_rates(k_Si28_He4_to_O16_O16_derived) = rate; + if constexpr (std::is_same_v) { + rate_eval.dscreened_rates_dT(k_Si28_He4_to_O16_O16_derived) = drate_dT; + } + } + + template + AMREX_GPU_DEVICE AMREX_INLINE + void rate_Si30_p_to_He4_Al27_derived(T& rate_eval, const tf_t& tfactors, const amrex::Real log_scor, const amrex::Real dlog_scor_dT, [[maybe_unused]] part_fun::pf_cache_t& pf_cache) { + + // Si30 + p --> He4 + Al27 + + amrex::Real rate{}, drate_dT{}; + // Evaluate partition function terms + + amrex::Real p_log_pf, dp_log_pf_dT9; + + // setting p log(partition function) to 0.0 by default, independent of T + p_log_pf = 0.0_rt; + dp_log_pf_dT9 = 0.0_rt; + + amrex::Real Si30_log_pf, dSi30_log_pf_dT9; + + // interpolating Si30 partition function + get_partition_function_cached(Si30, tfactors.T9, pf_cache, Si30_log_pf, dSi30_log_pf_dT9); + + amrex::Real He4_log_pf, dHe4_log_pf_dT9; + + // setting He4 log(partition function) to 0.0 by default, independent of T + He4_log_pf = 0.0_rt; + dHe4_log_pf_dT9 = 0.0_rt; + + amrex::Real Al27_log_pf, dAl27_log_pf_dT9; + + // interpolating Al27 partition function + get_partition_function_cached(Al27, tfactors.T9, pf_cache, Al27_log_pf, dAl27_log_pf_dT9); + + amrex::Real net_log_pf = He4_log_pf + Al27_log_pf - p_log_pf - Si30_log_pf; + [[maybe_unused]] amrex::Real net_dlog_pf_dT9 = dHe4_log_pf_dT9 + dAl27_log_pf_dT9 - dp_log_pf_dT9 - dSi30_log_pf_dT9; + + amrex::Real ln_set_rate{0.0}; + amrex::Real dln_set_rate_dT9{0.0}; + amrex::Real set_rate{0.0}; + + // ReacLib set derived from ths8r + ln_set_rate = 50.48822991071769 + -27.52646014539429 * tfactors.T9i + -56.5351 * tfactors.T913i + 1.60477 * tfactors.T913 + + -1.40594 * tfactors.T9 + 0.127353 * tfactors.T953 + -0.666667 * tfactors.lnT9; + + ln_set_rate += net_log_pf; + ln_set_rate += log_scor; + + if constexpr (std::is_same_v) { + dln_set_rate_dT9 = 27.52646014539429 * tfactors.T9i * tfactors.T9i + -(1.0/3.0) * -56.5351 * tfactors.T943i + (1.0/3.0) * 1.60477 * tfactors.T923i + + -1.40594 + (5.0/3.0) * 0.127353 * tfactors.T923 + -0.666667 * tfactors.T9i; + + dln_set_rate_dT9 += net_dlog_pf_dT9; + dln_set_rate_dT9 += dlog_scor_dT * 1.0e9_rt; + } + + // avoid underflows by zeroing rates in [0.0, 1.e-100] + ln_set_rate = std::max(ln_set_rate, -230.0); + set_rate = std::exp(ln_set_rate); + rate += set_rate; + if constexpr (std::is_same_v) { + if (ln_set_rate > -230.0_rt) { + drate_dT += set_rate * dln_set_rate_dT9 * 1.0e-9_rt; + } + } + + rate_eval.screened_rates(k_Si30_p_to_He4_Al27_derived) = rate; + if constexpr (std::is_same_v) { + rate_eval.dscreened_rates_dT(k_Si30_p_to_He4_Al27_derived) = drate_dT; + } + } + + template + AMREX_GPU_DEVICE AMREX_INLINE + void rate_P31_p_to_C12_Ne20_derived(T& rate_eval, const tf_t& tfactors, const amrex::Real log_scor, const amrex::Real dlog_scor_dT, [[maybe_unused]] part_fun::pf_cache_t& pf_cache) { + + // P31 + p --> C12 + Ne20 + + amrex::Real rate{}, drate_dT{}; + // Evaluate partition function terms + + amrex::Real C12_log_pf, dC12_log_pf_dT9; + + // setting C12 log(partition function) to 0.0 by default, independent of T + C12_log_pf = 0.0_rt; + dC12_log_pf_dT9 = 0.0_rt; + + amrex::Real p_log_pf, dp_log_pf_dT9; + + // setting p log(partition function) to 0.0 by default, independent of T + p_log_pf = 0.0_rt; + dp_log_pf_dT9 = 0.0_rt; + + amrex::Real P31_log_pf, dP31_log_pf_dT9; + + // interpolating P31 partition function + get_partition_function_cached(P31, tfactors.T9, pf_cache, P31_log_pf, dP31_log_pf_dT9); + + amrex::Real Ne20_log_pf, dNe20_log_pf_dT9; + + // interpolating Ne20 partition function + get_partition_function_cached(Ne20, tfactors.T9, pf_cache, Ne20_log_pf, dNe20_log_pf_dT9); + + amrex::Real net_log_pf = C12_log_pf + Ne20_log_pf - p_log_pf - P31_log_pf; + [[maybe_unused]] amrex::Real net_dlog_pf_dT9 = dC12_log_pf_dT9 + dNe20_log_pf_dT9 - dp_log_pf_dT9 - dP31_log_pf_dT9; + + amrex::Real ln_set_rate{0.0}; + amrex::Real dln_set_rate_dT9{0.0}; + amrex::Real set_rate{0.0}; + + // ReacLib set derived from rolfr + ln_set_rate = -266.47063151346725 + -156.07991376506303 * tfactors.T9i + 361.154 * tfactors.T913i + -92.643 * tfactors.T913 + + -9.98738 * tfactors.T9 + 0.892737 * tfactors.T953 + 161.042 * tfactors.lnT9; + + ln_set_rate += net_log_pf; + ln_set_rate += log_scor; + + if constexpr (std::is_same_v) { + dln_set_rate_dT9 = 156.07991376506303 * tfactors.T9i * tfactors.T9i + -(1.0/3.0) * 361.154 * tfactors.T943i + (1.0/3.0) * -92.643 * tfactors.T923i + + -9.98738 + (5.0/3.0) * 0.892737 * tfactors.T923 + 161.042 * tfactors.T9i; + + dln_set_rate_dT9 += net_dlog_pf_dT9; + dln_set_rate_dT9 += dlog_scor_dT * 1.0e9_rt; + } + + // avoid underflows by zeroing rates in [0.0, 1.e-100] + ln_set_rate = std::max(ln_set_rate, -230.0); + set_rate = std::exp(ln_set_rate); + rate += set_rate; + if constexpr (std::is_same_v) { + if (ln_set_rate > -230.0_rt) { + drate_dT += set_rate * dln_set_rate_dT9 * 1.0e-9_rt; + } + } + + rate_eval.screened_rates(k_P31_p_to_C12_Ne20_derived) = rate; + if constexpr (std::is_same_v) { + rate_eval.dscreened_rates_dT(k_P31_p_to_C12_Ne20_derived) = drate_dT; + } + } + + template + AMREX_GPU_DEVICE AMREX_INLINE + void rate_P31_p_to_O16_O16_derived(T& rate_eval, const tf_t& tfactors, const amrex::Real log_scor, const amrex::Real dlog_scor_dT, [[maybe_unused]] part_fun::pf_cache_t& pf_cache) { + + // P31 + p --> O16 + O16 + + amrex::Real rate{}, drate_dT{}; + // Evaluate partition function terms + + amrex::Real p_log_pf, dp_log_pf_dT9; + + // setting p log(partition function) to 0.0 by default, independent of T + p_log_pf = 0.0_rt; + dp_log_pf_dT9 = 0.0_rt; + + amrex::Real O16_log_pf, dO16_log_pf_dT9; + + // interpolating O16 partition function + get_partition_function_cached(O16, tfactors.T9, pf_cache, O16_log_pf, dO16_log_pf_dT9); + + amrex::Real P31_log_pf, dP31_log_pf_dT9; + + // interpolating P31 partition function + get_partition_function_cached(P31, tfactors.T9, pf_cache, P31_log_pf, dP31_log_pf_dT9); + + amrex::Real net_log_pf = O16_log_pf + O16_log_pf - p_log_pf - P31_log_pf; + [[maybe_unused]] amrex::Real net_dlog_pf_dT9 = dO16_log_pf_dT9 + dO16_log_pf_dT9 - dp_log_pf_dT9 - dP31_log_pf_dT9; + + amrex::Real ln_set_rate{0.0}; + amrex::Real dln_set_rate_dT9{0.0}; + amrex::Real set_rate{0.0}; + + // ReacLib set derived from cf88r + ln_set_rate = 86.33118481035693 + -88.87103716814843 * tfactors.T9i + -145.844 * tfactors.T913i + 8.72612 * tfactors.T913 + + -0.554035 * tfactors.T9 + -0.137562 * tfactors.T953 + -6.88807 * tfactors.lnT9; + + ln_set_rate += net_log_pf; + ln_set_rate += log_scor; + + if constexpr (std::is_same_v) { + dln_set_rate_dT9 = 88.87103716814843 * tfactors.T9i * tfactors.T9i + -(1.0/3.0) * -145.844 * tfactors.T943i + (1.0/3.0) * 8.72612 * tfactors.T923i + + -0.554035 + (5.0/3.0) * -0.137562 * tfactors.T923 + -6.88807 * tfactors.T9i; + + dln_set_rate_dT9 += net_dlog_pf_dT9; + dln_set_rate_dT9 += dlog_scor_dT * 1.0e9_rt; + } + + // avoid underflows by zeroing rates in [0.0, 1.e-100] + ln_set_rate = std::max(ln_set_rate, -230.0); + set_rate = std::exp(ln_set_rate); + rate += set_rate; + if constexpr (std::is_same_v) { + if (ln_set_rate > -230.0_rt) { + drate_dT += set_rate * dln_set_rate_dT9 * 1.0e-9_rt; + } + } + + rate_eval.screened_rates(k_P31_p_to_O16_O16_derived) = rate; + if constexpr (std::is_same_v) { + rate_eval.dscreened_rates_dT(k_P31_p_to_O16_O16_derived) = drate_dT; + } + } + + template + AMREX_GPU_DEVICE AMREX_INLINE + void rate_S32_p_to_He4_P29_derived(T& rate_eval, const tf_t& tfactors, const amrex::Real log_scor, const amrex::Real dlog_scor_dT, [[maybe_unused]] part_fun::pf_cache_t& pf_cache) { + + // S32 + p --> He4 + P29 + + amrex::Real rate{}, drate_dT{}; + // Evaluate partition function terms + + amrex::Real p_log_pf, dp_log_pf_dT9; + + // setting p log(partition function) to 0.0 by default, independent of T + p_log_pf = 0.0_rt; + dp_log_pf_dT9 = 0.0_rt; + + amrex::Real He4_log_pf, dHe4_log_pf_dT9; + + // setting He4 log(partition function) to 0.0 by default, independent of T + He4_log_pf = 0.0_rt; + dHe4_log_pf_dT9 = 0.0_rt; + + amrex::Real P29_log_pf, dP29_log_pf_dT9; + + // interpolating P29 partition function + get_partition_function_cached(P29, tfactors.T9, pf_cache, P29_log_pf, dP29_log_pf_dT9); + + amrex::Real S32_log_pf, dS32_log_pf_dT9; + + // interpolating S32 partition function + get_partition_function_cached(S32, tfactors.T9, pf_cache, S32_log_pf, dS32_log_pf_dT9); + + amrex::Real net_log_pf = He4_log_pf + P29_log_pf - p_log_pf - S32_log_pf; + [[maybe_unused]] amrex::Real net_dlog_pf_dT9 = dHe4_log_pf_dT9 + dP29_log_pf_dT9 - dp_log_pf_dT9 - dS32_log_pf_dT9; + + amrex::Real ln_set_rate{0.0}; + amrex::Real dln_set_rate_dT9{0.0}; + amrex::Real set_rate{0.0}; + + // ReacLib set derived from ths8r + ln_set_rate = 52.19693496988301 + -48.723680264833554 * tfactors.T9i + -62.3802 * tfactors.T913i + 0.459085 * tfactors.T913 + + -0.870169 * tfactors.T9 + 0.0631143 * tfactors.T953 + -0.666667 * tfactors.lnT9; + + ln_set_rate += net_log_pf; + ln_set_rate += log_scor; + + if constexpr (std::is_same_v) { + dln_set_rate_dT9 = 48.723680264833554 * tfactors.T9i * tfactors.T9i + -(1.0/3.0) * -62.3802 * tfactors.T943i + (1.0/3.0) * 0.459085 * tfactors.T923i + + -0.870169 + (5.0/3.0) * 0.0631143 * tfactors.T923 + -0.666667 * tfactors.T9i; + + dln_set_rate_dT9 += net_dlog_pf_dT9; + dln_set_rate_dT9 += dlog_scor_dT * 1.0e9_rt; + } + + // avoid underflows by zeroing rates in [0.0, 1.e-100] + ln_set_rate = std::max(ln_set_rate, -230.0); + set_rate = std::exp(ln_set_rate); + rate += set_rate; + if constexpr (std::is_same_v) { + if (ln_set_rate > -230.0_rt) { + drate_dT += set_rate * dln_set_rate_dT9 * 1.0e-9_rt; + } + } + + rate_eval.screened_rates(k_S32_p_to_He4_P29_derived) = rate; + if constexpr (std::is_same_v) { + rate_eval.dscreened_rates_dT(k_S32_p_to_He4_P29_derived) = drate_dT; + } + } + + template + AMREX_GPU_DEVICE AMREX_INLINE + void rate_S32_He4_to_p_Cl35_derived(T& rate_eval, const tf_t& tfactors, const amrex::Real log_scor, const amrex::Real dlog_scor_dT, [[maybe_unused]] part_fun::pf_cache_t& pf_cache) { + + // S32 + He4 --> p + Cl35 + + amrex::Real rate{}, drate_dT{}; + // Evaluate partition function terms + + amrex::Real p_log_pf, dp_log_pf_dT9; + + // setting p log(partition function) to 0.0 by default, independent of T + p_log_pf = 0.0_rt; + dp_log_pf_dT9 = 0.0_rt; + + amrex::Real Cl35_log_pf, dCl35_log_pf_dT9; + + // interpolating Cl35 partition function + get_partition_function_cached(Cl35, tfactors.T9, pf_cache, Cl35_log_pf, dCl35_log_pf_dT9); + + amrex::Real S32_log_pf, dS32_log_pf_dT9; + + // interpolating S32 partition function + get_partition_function_cached(S32, tfactors.T9, pf_cache, S32_log_pf, dS32_log_pf_dT9); + + amrex::Real He4_log_pf, dHe4_log_pf_dT9; + + // setting He4 log(partition function) to 0.0 by default, independent of T + He4_log_pf = 0.0_rt; + dHe4_log_pf_dT9 = 0.0_rt; + + amrex::Real net_log_pf = p_log_pf + Cl35_log_pf - He4_log_pf - S32_log_pf; + [[maybe_unused]] amrex::Real net_dlog_pf_dT9 = dp_log_pf_dT9 + dCl35_log_pf_dT9 - dHe4_log_pf_dT9 - dS32_log_pf_dT9; + + amrex::Real ln_set_rate{0.0}; + amrex::Real dln_set_rate_dT9{0.0}; + amrex::Real set_rate{0.0}; + + // ReacLib set derived from il10r + ln_set_rate = -0.8597847344696254 + -25.589703706656966 * tfactors.T9i + + -1.5 * tfactors.lnT9; + + ln_set_rate += net_log_pf; + ln_set_rate += log_scor; + + if constexpr (std::is_same_v) { + dln_set_rate_dT9 = 25.589703706656966 * tfactors.T9i * tfactors.T9i + + -1.5 * tfactors.T9i; + + dln_set_rate_dT9 += net_dlog_pf_dT9; + dln_set_rate_dT9 += dlog_scor_dT * 1.0e9_rt; + } + + // avoid underflows by zeroing rates in [0.0, 1.e-100] + ln_set_rate = std::max(ln_set_rate, -230.0); + set_rate = std::exp(ln_set_rate); + rate += set_rate; + if constexpr (std::is_same_v) { + if (ln_set_rate > -230.0_rt) { + drate_dT += set_rate * dln_set_rate_dT9 * 1.0e-9_rt; + } + } + + // ReacLib set derived from il10r + ln_set_rate = -57.37716473446963 + -22.187684706656967 * tfactors.T9i + 25.5338 * tfactors.T913 + + 6.45824 * tfactors.T9 + -0.950294 * tfactors.T953 + -1.5 * tfactors.lnT9; + + ln_set_rate += net_log_pf; + ln_set_rate += log_scor; + + if constexpr (std::is_same_v) { + dln_set_rate_dT9 = 22.187684706656967 * tfactors.T9i * tfactors.T9i + (1.0/3.0) * 25.5338 * tfactors.T923i + + 6.45824 + (5.0/3.0) * -0.950294 * tfactors.T923 + -1.5 * tfactors.T9i; + + dln_set_rate_dT9 += net_dlog_pf_dT9; + dln_set_rate_dT9 += dlog_scor_dT * 1.0e9_rt; + } + + // avoid underflows by zeroing rates in [0.0, 1.e-100] + ln_set_rate = std::max(ln_set_rate, -230.0); + set_rate = std::exp(ln_set_rate); + rate += set_rate; + if constexpr (std::is_same_v) { + if (ln_set_rate > -230.0_rt) { + drate_dT += set_rate * dln_set_rate_dT9 * 1.0e-9_rt; + } + } + + // ReacLib set derived from il10n + ln_set_rate = 32.27223526553037 + -21.654753706656965 * tfactors.T9i + -30.9147 * tfactors.T913i + -1.2345 * tfactors.T913 + + 22.5118 * tfactors.T9 + -33.0589 * tfactors.T953 + -0.666667 * tfactors.lnT9; + + ln_set_rate += net_log_pf; + ln_set_rate += log_scor; + + if constexpr (std::is_same_v) { + dln_set_rate_dT9 = 21.654753706656965 * tfactors.T9i * tfactors.T9i + -(1.0/3.0) * -30.9147 * tfactors.T943i + (1.0/3.0) * -1.2345 * tfactors.T923i + + 22.5118 + (5.0/3.0) * -33.0589 * tfactors.T923 + -0.666667 * tfactors.T9i; + + dln_set_rate_dT9 += net_dlog_pf_dT9; + dln_set_rate_dT9 += dlog_scor_dT * 1.0e9_rt; + } + + // avoid underflows by zeroing rates in [0.0, 1.e-100] + ln_set_rate = std::max(ln_set_rate, -230.0); + set_rate = std::exp(ln_set_rate); + rate += set_rate; + if constexpr (std::is_same_v) { + if (ln_set_rate > -230.0_rt) { + drate_dT += set_rate * dln_set_rate_dT9 * 1.0e-9_rt; + } + } + + // ReacLib set derived from il10r + ln_set_rate = 2.4434452655303747 + -27.664513706656965 * tfactors.T9i + 5.33756 * tfactors.T913 + + 1.64418 * tfactors.T9 + -0.246167 * tfactors.T953 + -1.5 * tfactors.lnT9; + + ln_set_rate += net_log_pf; + ln_set_rate += log_scor; + + if constexpr (std::is_same_v) { + dln_set_rate_dT9 = 27.664513706656965 * tfactors.T9i * tfactors.T9i + (1.0/3.0) * 5.33756 * tfactors.T923i + + 1.64418 + (5.0/3.0) * -0.246167 * tfactors.T923 + -1.5 * tfactors.T9i; + + dln_set_rate_dT9 += net_dlog_pf_dT9; + dln_set_rate_dT9 += dlog_scor_dT * 1.0e9_rt; + } + + // avoid underflows by zeroing rates in [0.0, 1.e-100] + ln_set_rate = std::max(ln_set_rate, -230.0); + set_rate = std::exp(ln_set_rate); + rate += set_rate; + if constexpr (std::is_same_v) { + if (ln_set_rate > -230.0_rt) { + drate_dT += set_rate * dln_set_rate_dT9 * 1.0e-9_rt; + } + } + + rate_eval.screened_rates(k_S32_He4_to_p_Cl35_derived) = rate; + if constexpr (std::is_same_v) { + rate_eval.dscreened_rates_dT(k_S32_He4_to_p_Cl35_derived) = drate_dT; + } + } + + template + AMREX_GPU_DEVICE AMREX_INLINE + void rate_S34_p_to_He4_P31_derived(T& rate_eval, const tf_t& tfactors, const amrex::Real log_scor, const amrex::Real dlog_scor_dT, [[maybe_unused]] part_fun::pf_cache_t& pf_cache) { + + // S34 + p --> He4 + P31 + + amrex::Real rate{}, drate_dT{}; + // Evaluate partition function terms + + amrex::Real p_log_pf, dp_log_pf_dT9; + + // setting p log(partition function) to 0.0 by default, independent of T + p_log_pf = 0.0_rt; + dp_log_pf_dT9 = 0.0_rt; + + amrex::Real He4_log_pf, dHe4_log_pf_dT9; + + // setting He4 log(partition function) to 0.0 by default, independent of T + He4_log_pf = 0.0_rt; + dHe4_log_pf_dT9 = 0.0_rt; + + amrex::Real S34_log_pf, dS34_log_pf_dT9; + + // interpolating S34 partition function + get_partition_function_cached(S34, tfactors.T9, pf_cache, S34_log_pf, dS34_log_pf_dT9); + + amrex::Real P31_log_pf, dP31_log_pf_dT9; + + // interpolating P31 partition function + get_partition_function_cached(P31, tfactors.T9, pf_cache, P31_log_pf, dP31_log_pf_dT9); + + amrex::Real net_log_pf = He4_log_pf + P31_log_pf - p_log_pf - S34_log_pf; + [[maybe_unused]] amrex::Real net_dlog_pf_dT9 = dHe4_log_pf_dT9 + dP31_log_pf_dT9 - dp_log_pf_dT9 - dS34_log_pf_dT9; + + amrex::Real ln_set_rate{0.0}; + amrex::Real dln_set_rate_dT9{0.0}; + amrex::Real set_rate{0.0}; + + // ReacLib set derived from ths8r + ln_set_rate = 51.02256860140231 + -7.277081980312247 * tfactors.T9i + -62.5433 * tfactors.T913i + 1.69339 * tfactors.T913 + + -1.27872 * tfactors.T9 + 0.106616 * tfactors.T953 + -0.666667 * tfactors.lnT9; + + ln_set_rate += net_log_pf; + ln_set_rate += log_scor; + + if constexpr (std::is_same_v) { + dln_set_rate_dT9 = 7.277081980312247 * tfactors.T9i * tfactors.T9i + -(1.0/3.0) * -62.5433 * tfactors.T943i + (1.0/3.0) * 1.69339 * tfactors.T923i + + -1.27872 + (5.0/3.0) * 0.106616 * tfactors.T923 + -0.666667 * tfactors.T9i; + + dln_set_rate_dT9 += net_dlog_pf_dT9; + dln_set_rate_dT9 += dlog_scor_dT * 1.0e9_rt; + } + + // avoid underflows by zeroing rates in [0.0, 1.e-100] + ln_set_rate = std::max(ln_set_rate, -230.0); + set_rate = std::exp(ln_set_rate); + rate += set_rate; + if constexpr (std::is_same_v) { + if (ln_set_rate > -230.0_rt) { + drate_dT += set_rate * dln_set_rate_dT9 * 1.0e-9_rt; + } + } + + rate_eval.screened_rates(k_S34_p_to_He4_P31_derived) = rate; + if constexpr (std::is_same_v) { + rate_eval.dscreened_rates_dT(k_S34_p_to_He4_P31_derived) = drate_dT; + } + } + + template + AMREX_GPU_DEVICE AMREX_INLINE + void rate_Cl33_p_to_He4_S30_derived(T& rate_eval, const tf_t& tfactors, const amrex::Real log_scor, const amrex::Real dlog_scor_dT, [[maybe_unused]] part_fun::pf_cache_t& pf_cache) { + + // Cl33 + p --> He4 + S30 + + amrex::Real rate{}, drate_dT{}; + // Evaluate partition function terms + + amrex::Real p_log_pf, dp_log_pf_dT9; + + // setting p log(partition function) to 0.0 by default, independent of T + p_log_pf = 0.0_rt; + dp_log_pf_dT9 = 0.0_rt; + + amrex::Real S30_log_pf, dS30_log_pf_dT9; + + // interpolating S30 partition function + get_partition_function_cached(S30, tfactors.T9, pf_cache, S30_log_pf, dS30_log_pf_dT9); + + amrex::Real He4_log_pf, dHe4_log_pf_dT9; + + // setting He4 log(partition function) to 0.0 by default, independent of T + He4_log_pf = 0.0_rt; + dHe4_log_pf_dT9 = 0.0_rt; + + amrex::Real Cl33_log_pf, dCl33_log_pf_dT9; + + // interpolating Cl33 partition function + get_partition_function_cached(Cl33, tfactors.T9, pf_cache, Cl33_log_pf, dCl33_log_pf_dT9); + + amrex::Real net_log_pf = He4_log_pf + S30_log_pf - p_log_pf - Cl33_log_pf; + [[maybe_unused]] amrex::Real net_dlog_pf_dT9 = dHe4_log_pf_dT9 + dS30_log_pf_dT9 - dp_log_pf_dT9 - dCl33_log_pf_dT9; + + amrex::Real ln_set_rate{0.0}; + amrex::Real dln_set_rate_dT9{0.0}; + amrex::Real set_rate{0.0}; + + // ReacLib set derived from ths8r + ln_set_rate = 50.59092547517039 + -24.13733741901471 * tfactors.T9i + -65.211 * tfactors.T913i + 0.403887 * tfactors.T913 + + -0.808239 * tfactors.T9 + 0.0581461 * tfactors.T953 + -0.666667 * tfactors.lnT9; + + ln_set_rate += net_log_pf; + ln_set_rate += log_scor; + + if constexpr (std::is_same_v) { + dln_set_rate_dT9 = 24.13733741901471 * tfactors.T9i * tfactors.T9i + -(1.0/3.0) * -65.211 * tfactors.T943i + (1.0/3.0) * 0.403887 * tfactors.T923i + + -0.808239 + (5.0/3.0) * 0.0581461 * tfactors.T923 + -0.666667 * tfactors.T9i; + + dln_set_rate_dT9 += net_dlog_pf_dT9; + dln_set_rate_dT9 += dlog_scor_dT * 1.0e9_rt; + } + + // avoid underflows by zeroing rates in [0.0, 1.e-100] + ln_set_rate = std::max(ln_set_rate, -230.0); + set_rate = std::exp(ln_set_rate); + rate += set_rate; + if constexpr (std::is_same_v) { + if (ln_set_rate > -230.0_rt) { + drate_dT += set_rate * dln_set_rate_dT9 * 1.0e-9_rt; + } + } + + rate_eval.screened_rates(k_Cl33_p_to_He4_S30_derived) = rate; + if constexpr (std::is_same_v) { + rate_eval.dscreened_rates_dT(k_Cl33_p_to_He4_S30_derived) = drate_dT; + } + } + + template + AMREX_GPU_DEVICE AMREX_INLINE + void rate_Ar36_p_to_He4_Cl33_derived(T& rate_eval, const tf_t& tfactors, const amrex::Real log_scor, const amrex::Real dlog_scor_dT, [[maybe_unused]] part_fun::pf_cache_t& pf_cache) { + + // Ar36 + p --> He4 + Cl33 + + amrex::Real rate{}, drate_dT{}; + // Evaluate partition function terms + + amrex::Real Cl33_log_pf, dCl33_log_pf_dT9; + + // interpolating Cl33 partition function + get_partition_function_cached(Cl33, tfactors.T9, pf_cache, Cl33_log_pf, dCl33_log_pf_dT9); + + amrex::Real He4_log_pf, dHe4_log_pf_dT9; + + // setting He4 log(partition function) to 0.0 by default, independent of T + He4_log_pf = 0.0_rt; + dHe4_log_pf_dT9 = 0.0_rt; + + amrex::Real Ar36_log_pf, dAr36_log_pf_dT9; + + // interpolating Ar36 partition function + get_partition_function_cached(Ar36, tfactors.T9, pf_cache, Ar36_log_pf, dAr36_log_pf_dT9); + + amrex::Real p_log_pf, dp_log_pf_dT9; + + // setting p log(partition function) to 0.0 by default, independent of T + p_log_pf = 0.0_rt; + dp_log_pf_dT9 = 0.0_rt; + + amrex::Real net_log_pf = He4_log_pf + Cl33_log_pf - p_log_pf - Ar36_log_pf; + [[maybe_unused]] amrex::Real net_dlog_pf_dT9 = dHe4_log_pf_dT9 + dCl33_log_pf_dT9 - dp_log_pf_dT9 - dAr36_log_pf_dT9; + + amrex::Real ln_set_rate{0.0}; + amrex::Real dln_set_rate_dT9{0.0}; + amrex::Real set_rate{0.0}; + + // ReacLib set derived from ths8r + ln_set_rate = 54.783557788881225 + -50.64428487608636 * tfactors.T9i + -68.1442 * tfactors.T913i + 0.291238 * tfactors.T913 + + -0.791384 * tfactors.T9 + 0.0524823 * tfactors.T953 + -0.666667 * tfactors.lnT9; + + ln_set_rate += net_log_pf; + ln_set_rate += log_scor; + + if constexpr (std::is_same_v) { + dln_set_rate_dT9 = 50.64428487608636 * tfactors.T9i * tfactors.T9i + -(1.0/3.0) * -68.1442 * tfactors.T943i + (1.0/3.0) * 0.291238 * tfactors.T923i + + -0.791384 + (5.0/3.0) * 0.0524823 * tfactors.T923 + -0.666667 * tfactors.T9i; + + dln_set_rate_dT9 += net_dlog_pf_dT9; + dln_set_rate_dT9 += dlog_scor_dT * 1.0e9_rt; + } + + // avoid underflows by zeroing rates in [0.0, 1.e-100] + ln_set_rate = std::max(ln_set_rate, -230.0); + set_rate = std::exp(ln_set_rate); + rate += set_rate; + if constexpr (std::is_same_v) { + if (ln_set_rate > -230.0_rt) { + drate_dT += set_rate * dln_set_rate_dT9 * 1.0e-9_rt; + } + } + + rate_eval.screened_rates(k_Ar36_p_to_He4_Cl33_derived) = rate; + if constexpr (std::is_same_v) { + rate_eval.dscreened_rates_dT(k_Ar36_p_to_He4_Cl33_derived) = drate_dT; + } + } + + template + AMREX_GPU_DEVICE AMREX_INLINE + void rate_Ar36_He4_to_p_K39_derived(T& rate_eval, const tf_t& tfactors, const amrex::Real log_scor, const amrex::Real dlog_scor_dT, [[maybe_unused]] part_fun::pf_cache_t& pf_cache) { + + // Ar36 + He4 --> p + K39 + + amrex::Real rate{}, drate_dT{}; + // Evaluate partition function terms + + amrex::Real p_log_pf, dp_log_pf_dT9; + + // setting p log(partition function) to 0.0 by default, independent of T + p_log_pf = 0.0_rt; + dp_log_pf_dT9 = 0.0_rt; + + amrex::Real K39_log_pf, dK39_log_pf_dT9; + + // interpolating K39 partition function + get_partition_function_cached(K39, tfactors.T9, pf_cache, K39_log_pf, dK39_log_pf_dT9); + + amrex::Real Ar36_log_pf, dAr36_log_pf_dT9; + + // interpolating Ar36 partition function + get_partition_function_cached(Ar36, tfactors.T9, pf_cache, Ar36_log_pf, dAr36_log_pf_dT9); + + amrex::Real He4_log_pf, dHe4_log_pf_dT9; + + // setting He4 log(partition function) to 0.0 by default, independent of T + He4_log_pf = 0.0_rt; + dHe4_log_pf_dT9 = 0.0_rt; + + amrex::Real net_log_pf = p_log_pf + K39_log_pf - He4_log_pf - Ar36_log_pf; + [[maybe_unused]] amrex::Real net_dlog_pf_dT9 = dp_log_pf_dT9 + dK39_log_pf_dT9 - dHe4_log_pf_dT9 - dAr36_log_pf_dT9; + + amrex::Real ln_set_rate{0.0}; + amrex::Real dln_set_rate_dT9{0.0}; + amrex::Real set_rate{0.0}; + + // ReacLib set derived from ths8r + ln_set_rate = 20.654451232729432 + -14.951286608188834 * tfactors.T9i + -30.0732 * tfactors.T913i + 7.03263 * tfactors.T913 + + -1.10085 * tfactors.T9 + 0.133768 * tfactors.T953 + -0.666667 * tfactors.lnT9; + + ln_set_rate += net_log_pf; + ln_set_rate += log_scor; + + if constexpr (std::is_same_v) { + dln_set_rate_dT9 = 14.951286608188834 * tfactors.T9i * tfactors.T9i + -(1.0/3.0) * -30.0732 * tfactors.T943i + (1.0/3.0) * 7.03263 * tfactors.T923i + + -1.10085 + (5.0/3.0) * 0.133768 * tfactors.T923 + -0.666667 * tfactors.T9i; + + dln_set_rate_dT9 += net_dlog_pf_dT9; + dln_set_rate_dT9 += dlog_scor_dT * 1.0e9_rt; + } + + // avoid underflows by zeroing rates in [0.0, 1.e-100] + ln_set_rate = std::max(ln_set_rate, -230.0); + set_rate = std::exp(ln_set_rate); + rate += set_rate; + if constexpr (std::is_same_v) { + if (ln_set_rate > -230.0_rt) { + drate_dT += set_rate * dln_set_rate_dT9 * 1.0e-9_rt; + } + } + + rate_eval.screened_rates(k_Ar36_He4_to_p_K39_derived) = rate; + if constexpr (std::is_same_v) { + rate_eval.dscreened_rates_dT(k_Ar36_He4_to_p_K39_derived) = drate_dT; + } + } + + template + AMREX_GPU_DEVICE AMREX_INLINE + void rate_Ar38_p_to_He4_Cl35_derived(T& rate_eval, const tf_t& tfactors, const amrex::Real log_scor, const amrex::Real dlog_scor_dT, [[maybe_unused]] part_fun::pf_cache_t& pf_cache) { + + // Ar38 + p --> He4 + Cl35 + + amrex::Real rate{}, drate_dT{}; + // Evaluate partition function terms + + amrex::Real p_log_pf, dp_log_pf_dT9; + + // setting p log(partition function) to 0.0 by default, independent of T + p_log_pf = 0.0_rt; + dp_log_pf_dT9 = 0.0_rt; + + amrex::Real Ar38_log_pf, dAr38_log_pf_dT9; + + // interpolating Ar38 partition function + get_partition_function_cached(Ar38, tfactors.T9, pf_cache, Ar38_log_pf, dAr38_log_pf_dT9); + + amrex::Real He4_log_pf, dHe4_log_pf_dT9; + + // setting He4 log(partition function) to 0.0 by default, independent of T + He4_log_pf = 0.0_rt; + dHe4_log_pf_dT9 = 0.0_rt; + + amrex::Real Cl35_log_pf, dCl35_log_pf_dT9; + + // interpolating Cl35 partition function + get_partition_function_cached(Cl35, tfactors.T9, pf_cache, Cl35_log_pf, dCl35_log_pf_dT9); + + amrex::Real net_log_pf = He4_log_pf + Cl35_log_pf - p_log_pf - Ar38_log_pf; + [[maybe_unused]] amrex::Real net_dlog_pf_dT9 = dHe4_log_pf_dT9 + dCl35_log_pf_dT9 - dp_log_pf_dT9 - dAr38_log_pf_dT9; + + amrex::Real ln_set_rate{0.0}; + amrex::Real dln_set_rate_dT9{0.0}; + amrex::Real set_rate{0.0}; + + // ReacLib set derived from ths8r + ln_set_rate = 53.758798882415604 + -9.715822523380488 * tfactors.T9i + -68.2848 * tfactors.T913i + 2.5993 * tfactors.T913 + + -1.59144 * tfactors.T9 + 0.137745 * tfactors.T953 + -0.666667 * tfactors.lnT9; + + ln_set_rate += net_log_pf; + ln_set_rate += log_scor; + + if constexpr (std::is_same_v) { + dln_set_rate_dT9 = 9.715822523380488 * tfactors.T9i * tfactors.T9i + -(1.0/3.0) * -68.2848 * tfactors.T943i + (1.0/3.0) * 2.5993 * tfactors.T923i + + -1.59144 + (5.0/3.0) * 0.137745 * tfactors.T923 + -0.666667 * tfactors.T9i; + + dln_set_rate_dT9 += net_dlog_pf_dT9; + dln_set_rate_dT9 += dlog_scor_dT * 1.0e9_rt; + } + + // avoid underflows by zeroing rates in [0.0, 1.e-100] + ln_set_rate = std::max(ln_set_rate, -230.0); + set_rate = std::exp(ln_set_rate); + rate += set_rate; + if constexpr (std::is_same_v) { + if (ln_set_rate > -230.0_rt) { + drate_dT += set_rate * dln_set_rate_dT9 * 1.0e-9_rt; + } + } + + rate_eval.screened_rates(k_Ar38_p_to_He4_Cl35_derived) = rate; + if constexpr (std::is_same_v) { + rate_eval.dscreened_rates_dT(k_Ar38_p_to_He4_Cl35_derived) = drate_dT; + } + } + + template + AMREX_GPU_DEVICE AMREX_INLINE + void rate_K37_p_to_He4_Ar34_derived(T& rate_eval, const tf_t& tfactors, const amrex::Real log_scor, const amrex::Real dlog_scor_dT, [[maybe_unused]] part_fun::pf_cache_t& pf_cache) { + + // K37 + p --> He4 + Ar34 + + amrex::Real rate{}, drate_dT{}; + // Evaluate partition function terms + + amrex::Real p_log_pf, dp_log_pf_dT9; + + // setting p log(partition function) to 0.0 by default, independent of T + p_log_pf = 0.0_rt; + dp_log_pf_dT9 = 0.0_rt; + + amrex::Real He4_log_pf, dHe4_log_pf_dT9; + + // setting He4 log(partition function) to 0.0 by default, independent of T + He4_log_pf = 0.0_rt; + dHe4_log_pf_dT9 = 0.0_rt; + + amrex::Real Ar34_log_pf, dAr34_log_pf_dT9; + + // interpolating Ar34 partition function + get_partition_function_cached(Ar34, tfactors.T9, pf_cache, Ar34_log_pf, dAr34_log_pf_dT9); + + amrex::Real K37_log_pf, dK37_log_pf_dT9; + + // interpolating K37 partition function + get_partition_function_cached(K37, tfactors.T9, pf_cache, K37_log_pf, dK37_log_pf_dT9); + + amrex::Real net_log_pf = He4_log_pf + Ar34_log_pf - p_log_pf - K37_log_pf; + [[maybe_unused]] amrex::Real net_dlog_pf_dT9 = dHe4_log_pf_dT9 + dAr34_log_pf_dT9 - dp_log_pf_dT9 - dK37_log_pf_dT9; + + amrex::Real ln_set_rate{0.0}; + amrex::Real dln_set_rate_dT9{0.0}; + amrex::Real set_rate{0.0}; + + // ReacLib set derived from ths8r + ln_set_rate = 53.03935240918314 + -18.07815432695771 * tfactors.T9i + -70.8666 * tfactors.T913i + 0.263069 * tfactors.T913 + + -0.802985 * tfactors.T9 + 0.0550287 * tfactors.T953 + -0.666667 * tfactors.lnT9; + + ln_set_rate += net_log_pf; + ln_set_rate += log_scor; + + if constexpr (std::is_same_v) { + dln_set_rate_dT9 = 18.07815432695771 * tfactors.T9i * tfactors.T9i + -(1.0/3.0) * -70.8666 * tfactors.T943i + (1.0/3.0) * 0.263069 * tfactors.T923i + + -0.802985 + (5.0/3.0) * 0.0550287 * tfactors.T923 + -0.666667 * tfactors.T9i; + + dln_set_rate_dT9 += net_dlog_pf_dT9; + dln_set_rate_dT9 += dlog_scor_dT * 1.0e9_rt; + } + + // avoid underflows by zeroing rates in [0.0, 1.e-100] + ln_set_rate = std::max(ln_set_rate, -230.0); + set_rate = std::exp(ln_set_rate); + rate += set_rate; + if constexpr (std::is_same_v) { + if (ln_set_rate > -230.0_rt) { + drate_dT += set_rate * dln_set_rate_dT9 * 1.0e-9_rt; + } + } + + rate_eval.screened_rates(k_K37_p_to_He4_Ar34_derived) = rate; + if constexpr (std::is_same_v) { + rate_eval.dscreened_rates_dT(k_K37_p_to_He4_Ar34_derived) = drate_dT; + } + } + + template + AMREX_GPU_DEVICE AMREX_INLINE + void rate_K39_He4_to_p_Ca42_derived(T& rate_eval, const tf_t& tfactors, const amrex::Real log_scor, const amrex::Real dlog_scor_dT, [[maybe_unused]] part_fun::pf_cache_t& pf_cache) { + + // K39 + He4 --> p + Ca42 + + amrex::Real rate{}, drate_dT{}; + // Evaluate partition function terms + + amrex::Real p_log_pf, dp_log_pf_dT9; + + // setting p log(partition function) to 0.0 by default, independent of T + p_log_pf = 0.0_rt; + dp_log_pf_dT9 = 0.0_rt; + + amrex::Real K39_log_pf, dK39_log_pf_dT9; + + // interpolating K39 partition function + get_partition_function_cached(K39, tfactors.T9, pf_cache, K39_log_pf, dK39_log_pf_dT9); + + amrex::Real Ca42_log_pf, dCa42_log_pf_dT9; + + // interpolating Ca42 partition function + get_partition_function_cached(Ca42, tfactors.T9, pf_cache, Ca42_log_pf, dCa42_log_pf_dT9); + + amrex::Real He4_log_pf, dHe4_log_pf_dT9; + + // setting He4 log(partition function) to 0.0 by default, independent of T + He4_log_pf = 0.0_rt; + dHe4_log_pf_dT9 = 0.0_rt; + + amrex::Real net_log_pf = p_log_pf + Ca42_log_pf - He4_log_pf - K39_log_pf; + [[maybe_unused]] amrex::Real net_dlog_pf_dT9 = dp_log_pf_dT9 + dCa42_log_pf_dT9 - dHe4_log_pf_dT9 - dK39_log_pf_dT9; + + amrex::Real ln_set_rate{0.0}; + amrex::Real dln_set_rate_dT9{0.0}; + amrex::Real set_rate{0.0}; + + // ReacLib set derived from ths8r + ln_set_rate = -80.85570368170251 + -1.4384983175969779 * tfactors.T9i + -31.1381 * tfactors.T913i + 117.868 * tfactors.T913 + + -27.0455 * tfactors.T9 + 2.75661 * tfactors.T953 + -0.666667 * tfactors.lnT9; + + ln_set_rate += net_log_pf; + ln_set_rate += log_scor; + + if constexpr (std::is_same_v) { + dln_set_rate_dT9 = 1.4384983175969779 * tfactors.T9i * tfactors.T9i + -(1.0/3.0) * -31.1381 * tfactors.T943i + (1.0/3.0) * 117.868 * tfactors.T923i + + -27.0455 + (5.0/3.0) * 2.75661 * tfactors.T923 + -0.666667 * tfactors.T9i; + + dln_set_rate_dT9 += net_dlog_pf_dT9; + dln_set_rate_dT9 += dlog_scor_dT * 1.0e9_rt; + } + + // avoid underflows by zeroing rates in [0.0, 1.e-100] + ln_set_rate = std::max(ln_set_rate, -230.0); + set_rate = std::exp(ln_set_rate); + rate += set_rate; + if constexpr (std::is_same_v) { + if (ln_set_rate > -230.0_rt) { + drate_dT += set_rate * dln_set_rate_dT9 * 1.0e-9_rt; + } + } + + rate_eval.screened_rates(k_K39_He4_to_p_Ca42_derived) = rate; + if constexpr (std::is_same_v) { + rate_eval.dscreened_rates_dT(k_K39_He4_to_p_Ca42_derived) = drate_dT; + } + } + + template + AMREX_GPU_DEVICE AMREX_INLINE + void rate_Ca40_p_to_He4_K37_derived(T& rate_eval, const tf_t& tfactors, const amrex::Real log_scor, const amrex::Real dlog_scor_dT, [[maybe_unused]] part_fun::pf_cache_t& pf_cache) { + + // Ca40 + p --> He4 + K37 + + amrex::Real rate{}, drate_dT{}; + // Evaluate partition function terms + + amrex::Real p_log_pf, dp_log_pf_dT9; + + // setting p log(partition function) to 0.0 by default, independent of T + p_log_pf = 0.0_rt; + dp_log_pf_dT9 = 0.0_rt; + + amrex::Real He4_log_pf, dHe4_log_pf_dT9; + + // setting He4 log(partition function) to 0.0 by default, independent of T + He4_log_pf = 0.0_rt; + dHe4_log_pf_dT9 = 0.0_rt; + + amrex::Real K37_log_pf, dK37_log_pf_dT9; + + // interpolating K37 partition function + get_partition_function_cached(K37, tfactors.T9, pf_cache, K37_log_pf, dK37_log_pf_dT9); + + amrex::Real Ca40_log_pf, dCa40_log_pf_dT9; + + // interpolating Ca40 partition function + get_partition_function_cached(Ca40, tfactors.T9, pf_cache, Ca40_log_pf, dCa40_log_pf_dT9); + + amrex::Real net_log_pf = He4_log_pf + K37_log_pf - p_log_pf - Ca40_log_pf; + [[maybe_unused]] amrex::Real net_dlog_pf_dT9 = dHe4_log_pf_dT9 + dK37_log_pf_dT9 - dp_log_pf_dT9 - dCa40_log_pf_dT9; + + amrex::Real ln_set_rate{0.0}; + amrex::Real dln_set_rate_dT9{0.0}; + amrex::Real set_rate{0.0}; + + // ReacLib set derived from ths8r + ln_set_rate = 56.9349260689074 + -60.13631651881774 * tfactors.T9i + -73.6776 * tfactors.T913i + 0.493294 * tfactors.T913 + + -0.902307 * tfactors.T9 + 0.0641391 * tfactors.T953 + -0.666667 * tfactors.lnT9; + + ln_set_rate += net_log_pf; + ln_set_rate += log_scor; + + if constexpr (std::is_same_v) { + dln_set_rate_dT9 = 60.13631651881774 * tfactors.T9i * tfactors.T9i + -(1.0/3.0) * -73.6776 * tfactors.T943i + (1.0/3.0) * 0.493294 * tfactors.T923i + + -0.902307 + (5.0/3.0) * 0.0641391 * tfactors.T923 + -0.666667 * tfactors.T9i; + + dln_set_rate_dT9 += net_dlog_pf_dT9; + dln_set_rate_dT9 += dlog_scor_dT * 1.0e9_rt; + } + + // avoid underflows by zeroing rates in [0.0, 1.e-100] + ln_set_rate = std::max(ln_set_rate, -230.0); + set_rate = std::exp(ln_set_rate); + rate += set_rate; + if constexpr (std::is_same_v) { + if (ln_set_rate > -230.0_rt) { + drate_dT += set_rate * dln_set_rate_dT9 * 1.0e-9_rt; + } + } + + rate_eval.screened_rates(k_Ca40_p_to_He4_K37_derived) = rate; + if constexpr (std::is_same_v) { + rate_eval.dscreened_rates_dT(k_Ca40_p_to_He4_K37_derived) = drate_dT; + } + } + + template + AMREX_GPU_DEVICE AMREX_INLINE + void rate_Ca40_He4_to_p_Sc43_derived(T& rate_eval, const tf_t& tfactors, const amrex::Real log_scor, const amrex::Real dlog_scor_dT, [[maybe_unused]] part_fun::pf_cache_t& pf_cache) { + + // Ca40 + He4 --> p + Sc43 + + amrex::Real rate{}, drate_dT{}; + // Evaluate partition function terms + + amrex::Real p_log_pf, dp_log_pf_dT9; + + // setting p log(partition function) to 0.0 by default, independent of T + p_log_pf = 0.0_rt; + dp_log_pf_dT9 = 0.0_rt; + + amrex::Real Ca40_log_pf, dCa40_log_pf_dT9; + + // interpolating Ca40 partition function + get_partition_function_cached(Ca40, tfactors.T9, pf_cache, Ca40_log_pf, dCa40_log_pf_dT9); + + amrex::Real He4_log_pf, dHe4_log_pf_dT9; + + // setting He4 log(partition function) to 0.0 by default, independent of T + He4_log_pf = 0.0_rt; + dHe4_log_pf_dT9 = 0.0_rt; + + amrex::Real Sc43_log_pf, dSc43_log_pf_dT9; + + // interpolating Sc43 partition function + get_partition_function_cached(Sc43, tfactors.T9, pf_cache, Sc43_log_pf, dSc43_log_pf_dT9); + + amrex::Real net_log_pf = p_log_pf + Sc43_log_pf - He4_log_pf - Ca40_log_pf; + [[maybe_unused]] amrex::Real net_dlog_pf_dT9 = dp_log_pf_dT9 + dSc43_log_pf_dT9 - dHe4_log_pf_dT9 - dCa40_log_pf_dT9; + + amrex::Real ln_set_rate{0.0}; + amrex::Real dln_set_rate_dT9{0.0}; + amrex::Real set_rate{0.0}; + + // ReacLib set derived from ths8r + ln_set_rate = 35.67546755788414 + -40.87525788838128 * tfactors.T9i + -32.1734 * tfactors.T913i + 0.0296879 * tfactors.T913 + + -0.95232 * tfactors.T9 + 0.129022 * tfactors.T953 + -0.666667 * tfactors.lnT9; + + ln_set_rate += net_log_pf; + ln_set_rate += log_scor; + + if constexpr (std::is_same_v) { + dln_set_rate_dT9 = 40.87525788838128 * tfactors.T9i * tfactors.T9i + -(1.0/3.0) * -32.1734 * tfactors.T943i + (1.0/3.0) * 0.0296879 * tfactors.T923i + + -0.95232 + (5.0/3.0) * 0.129022 * tfactors.T923 + -0.666667 * tfactors.T9i; + + dln_set_rate_dT9 += net_dlog_pf_dT9; + dln_set_rate_dT9 += dlog_scor_dT * 1.0e9_rt; + } + + // avoid underflows by zeroing rates in [0.0, 1.e-100] + ln_set_rate = std::max(ln_set_rate, -230.0); + set_rate = std::exp(ln_set_rate); + rate += set_rate; + if constexpr (std::is_same_v) { + if (ln_set_rate > -230.0_rt) { + drate_dT += set_rate * dln_set_rate_dT9 * 1.0e-9_rt; + } + } + + rate_eval.screened_rates(k_Ca40_He4_to_p_Sc43_derived) = rate; + if constexpr (std::is_same_v) { + rate_eval.dscreened_rates_dT(k_Ca40_He4_to_p_Sc43_derived) = drate_dT; + } + } + + template + AMREX_GPU_DEVICE AMREX_INLINE + void rate_Sc41_p_to_He4_Ca38_derived(T& rate_eval, const tf_t& tfactors, const amrex::Real log_scor, const amrex::Real dlog_scor_dT, [[maybe_unused]] part_fun::pf_cache_t& pf_cache) { + + // Sc41 + p --> He4 + Ca38 + + amrex::Real rate{}, drate_dT{}; + // Evaluate partition function terms + + amrex::Real p_log_pf, dp_log_pf_dT9; + + // setting p log(partition function) to 0.0 by default, independent of T + p_log_pf = 0.0_rt; + dp_log_pf_dT9 = 0.0_rt; + + amrex::Real He4_log_pf, dHe4_log_pf_dT9; + + // setting He4 log(partition function) to 0.0 by default, independent of T + He4_log_pf = 0.0_rt; + dHe4_log_pf_dT9 = 0.0_rt; + + amrex::Real Sc41_log_pf, dSc41_log_pf_dT9; + + // interpolating Sc41 partition function + get_partition_function_cached(Sc41, tfactors.T9, pf_cache, Sc41_log_pf, dSc41_log_pf_dT9); + + amrex::Real Ca38_log_pf, dCa38_log_pf_dT9; + + // interpolating Ca38 partition function + get_partition_function_cached(Ca38, tfactors.T9, pf_cache, Ca38_log_pf, dCa38_log_pf_dT9); + + amrex::Real net_log_pf = He4_log_pf + Ca38_log_pf - p_log_pf - Sc41_log_pf; + [[maybe_unused]] amrex::Real net_dlog_pf_dT9 = dHe4_log_pf_dT9 + dCa38_log_pf_dT9 - dp_log_pf_dT9 - dSc41_log_pf_dT9; + + amrex::Real ln_set_rate{0.0}; + amrex::Real dln_set_rate_dT9{0.0}; + amrex::Real set_rate{0.0}; + + // ReacLib set derived from ths8r + ln_set_rate = 55.26173122707938 + -19.95750603673758 * tfactors.T9i + -76.3063 * tfactors.T913i + -0.741136 * tfactors.T913 + + -0.511467 * tfactors.T9 + 0.0171615 * tfactors.T953 + -0.666667 * tfactors.lnT9; + + ln_set_rate += net_log_pf; + ln_set_rate += log_scor; + + if constexpr (std::is_same_v) { + dln_set_rate_dT9 = 19.95750603673758 * tfactors.T9i * tfactors.T9i + -(1.0/3.0) * -76.3063 * tfactors.T943i + (1.0/3.0) * -0.741136 * tfactors.T923i + + -0.511467 + (5.0/3.0) * 0.0171615 * tfactors.T923 + -0.666667 * tfactors.T9i; + + dln_set_rate_dT9 += net_dlog_pf_dT9; + dln_set_rate_dT9 += dlog_scor_dT * 1.0e9_rt; + } + + // avoid underflows by zeroing rates in [0.0, 1.e-100] + ln_set_rate = std::max(ln_set_rate, -230.0); + set_rate = std::exp(ln_set_rate); + rate += set_rate; + if constexpr (std::is_same_v) { + if (ln_set_rate > -230.0_rt) { + drate_dT += set_rate * dln_set_rate_dT9 * 1.0e-9_rt; + } + } + + rate_eval.screened_rates(k_Sc41_p_to_He4_Ca38_derived) = rate; + if constexpr (std::is_same_v) { + rate_eval.dscreened_rates_dT(k_Sc41_p_to_He4_Ca38_derived) = drate_dT; + } + } + + template + AMREX_GPU_DEVICE AMREX_INLINE + void rate_Ti44_p_to_He4_Sc41_derived(T& rate_eval, const tf_t& tfactors, const amrex::Real log_scor, const amrex::Real dlog_scor_dT, [[maybe_unused]] part_fun::pf_cache_t& pf_cache) { + + // Ti44 + p --> He4 + Sc41 + + amrex::Real rate{}, drate_dT{}; + // Evaluate partition function terms + + amrex::Real p_log_pf, dp_log_pf_dT9; + + // setting p log(partition function) to 0.0 by default, independent of T + p_log_pf = 0.0_rt; + dp_log_pf_dT9 = 0.0_rt; + + amrex::Real He4_log_pf, dHe4_log_pf_dT9; + + // setting He4 log(partition function) to 0.0 by default, independent of T + He4_log_pf = 0.0_rt; + dHe4_log_pf_dT9 = 0.0_rt; + + amrex::Real Ti44_log_pf, dTi44_log_pf_dT9; + + // interpolating Ti44 partition function + get_partition_function_cached(Ti44, tfactors.T9, pf_cache, Ti44_log_pf, dTi44_log_pf_dT9); + + amrex::Real Sc41_log_pf, dSc41_log_pf_dT9; + + // interpolating Sc41 partition function + get_partition_function_cached(Sc41, tfactors.T9, pf_cache, Sc41_log_pf, dSc41_log_pf_dT9); + + amrex::Real net_log_pf = He4_log_pf + Sc41_log_pf - p_log_pf - Ti44_log_pf; + [[maybe_unused]] amrex::Real net_dlog_pf_dT9 = dHe4_log_pf_dT9 + dSc41_log_pf_dT9 - dp_log_pf_dT9 - dTi44_log_pf_dT9; + + amrex::Real ln_set_rate{0.0}; + amrex::Real dln_set_rate_dT9{0.0}; + amrex::Real set_rate{0.0}; + + // ReacLib set derived from ths8r + ln_set_rate = 60.827665381437605 + -46.90760683186659 * tfactors.T9i + -79.013 * tfactors.T913i + -0.989013 * tfactors.T913 + + -0.463943 * tfactors.T9 + 0.00902542 * tfactors.T953 + -0.666667 * tfactors.lnT9; + + ln_set_rate += net_log_pf; + ln_set_rate += log_scor; + + if constexpr (std::is_same_v) { + dln_set_rate_dT9 = 46.90760683186659 * tfactors.T9i * tfactors.T9i + -(1.0/3.0) * -79.013 * tfactors.T943i + (1.0/3.0) * -0.989013 * tfactors.T923i + + -0.463943 + (5.0/3.0) * 0.00902542 * tfactors.T923 + -0.666667 * tfactors.T9i; + + dln_set_rate_dT9 += net_dlog_pf_dT9; + dln_set_rate_dT9 += dlog_scor_dT * 1.0e9_rt; + } + + // avoid underflows by zeroing rates in [0.0, 1.e-100] + ln_set_rate = std::max(ln_set_rate, -230.0); + set_rate = std::exp(ln_set_rate); + rate += set_rate; + if constexpr (std::is_same_v) { + if (ln_set_rate > -230.0_rt) { + drate_dT += set_rate * dln_set_rate_dT9 * 1.0e-9_rt; + } + } + + rate_eval.screened_rates(k_Ti44_p_to_He4_Sc41_derived) = rate; + if constexpr (std::is_same_v) { + rate_eval.dscreened_rates_dT(k_Ti44_p_to_He4_Sc41_derived) = drate_dT; + } + } + + template + AMREX_GPU_DEVICE AMREX_INLINE + void rate_Ti46_p_to_He4_Sc43_derived(T& rate_eval, const tf_t& tfactors, const amrex::Real log_scor, const amrex::Real dlog_scor_dT, [[maybe_unused]] part_fun::pf_cache_t& pf_cache) { + + // Ti46 + p --> He4 + Sc43 + + amrex::Real rate{}, drate_dT{}; + // Evaluate partition function terms + + amrex::Real p_log_pf, dp_log_pf_dT9; + + // setting p log(partition function) to 0.0 by default, independent of T + p_log_pf = 0.0_rt; + dp_log_pf_dT9 = 0.0_rt; + + amrex::Real He4_log_pf, dHe4_log_pf_dT9; + + // setting He4 log(partition function) to 0.0 by default, independent of T + He4_log_pf = 0.0_rt; + dHe4_log_pf_dT9 = 0.0_rt; + + amrex::Real Ti46_log_pf, dTi46_log_pf_dT9; + + // interpolating Ti46 partition function + get_partition_function_cached(Ti46, tfactors.T9, pf_cache, Ti46_log_pf, dTi46_log_pf_dT9); + + amrex::Real Sc43_log_pf, dSc43_log_pf_dT9; + + // interpolating Sc43 partition function + get_partition_function_cached(Sc43, tfactors.T9, pf_cache, Sc43_log_pf, dSc43_log_pf_dT9); + + amrex::Real net_log_pf = He4_log_pf + Sc43_log_pf - p_log_pf - Ti46_log_pf; + [[maybe_unused]] amrex::Real net_dlog_pf_dT9 = dHe4_log_pf_dT9 + dSc43_log_pf_dT9 - dp_log_pf_dT9 - dTi46_log_pf_dT9; + + amrex::Real ln_set_rate{0.0}; + amrex::Real dln_set_rate_dT9{0.0}; + amrex::Real set_rate{0.0}; + + // ReacLib set derived from ths8r + ln_set_rate = 60.7193303156212 + -35.69683001018291 * tfactors.T9i + -79.122 * tfactors.T913i + -0.495539 * tfactors.T913 + + -0.618414 * tfactors.T9 + 0.0175873 * tfactors.T953 + -0.666667 * tfactors.lnT9; + + ln_set_rate += net_log_pf; + ln_set_rate += log_scor; + + if constexpr (std::is_same_v) { + dln_set_rate_dT9 = 35.69683001018291 * tfactors.T9i * tfactors.T9i + -(1.0/3.0) * -79.122 * tfactors.T943i + (1.0/3.0) * -0.495539 * tfactors.T923i + + -0.618414 + (5.0/3.0) * 0.0175873 * tfactors.T923 + -0.666667 * tfactors.T9i; + + dln_set_rate_dT9 += net_dlog_pf_dT9; + dln_set_rate_dT9 += dlog_scor_dT * 1.0e9_rt; + } + + // avoid underflows by zeroing rates in [0.0, 1.e-100] + ln_set_rate = std::max(ln_set_rate, -230.0); + set_rate = std::exp(ln_set_rate); + rate += set_rate; + if constexpr (std::is_same_v) { + if (ln_set_rate > -230.0_rt) { + drate_dT += set_rate * dln_set_rate_dT9 * 1.0e-9_rt; + } + } + + rate_eval.screened_rates(k_Ti46_p_to_He4_Sc43_derived) = rate; + if constexpr (std::is_same_v) { + rate_eval.dscreened_rates_dT(k_Ti46_p_to_He4_Sc43_derived) = drate_dT; + } + } + + template + AMREX_GPU_DEVICE AMREX_INLINE + void rate_Ti46_He4_to_p_V49_derived(T& rate_eval, const tf_t& tfactors, const amrex::Real log_scor, const amrex::Real dlog_scor_dT, [[maybe_unused]] part_fun::pf_cache_t& pf_cache) { + + // Ti46 + He4 --> p + V49 + + amrex::Real rate{}, drate_dT{}; + // Evaluate partition function terms + + amrex::Real V49_log_pf, dV49_log_pf_dT9; + + // interpolating V49 partition function + get_partition_function_cached(V49, tfactors.T9, pf_cache, V49_log_pf, dV49_log_pf_dT9); + + amrex::Real p_log_pf, dp_log_pf_dT9; + + // setting p log(partition function) to 0.0 by default, independent of T + p_log_pf = 0.0_rt; + dp_log_pf_dT9 = 0.0_rt; + + amrex::Real Ti46_log_pf, dTi46_log_pf_dT9; + + // interpolating Ti46 partition function + get_partition_function_cached(Ti46, tfactors.T9, pf_cache, Ti46_log_pf, dTi46_log_pf_dT9); + + amrex::Real He4_log_pf, dHe4_log_pf_dT9; + + // setting He4 log(partition function) to 0.0 by default, independent of T + He4_log_pf = 0.0_rt; + dHe4_log_pf_dT9 = 0.0_rt; + + amrex::Real net_log_pf = p_log_pf + V49_log_pf - He4_log_pf - Ti46_log_pf; + [[maybe_unused]] amrex::Real net_dlog_pf_dT9 = dp_log_pf_dT9 + dV49_log_pf_dT9 - dHe4_log_pf_dT9 - dTi46_log_pf_dT9; + + amrex::Real ln_set_rate{0.0}; + amrex::Real dln_set_rate_dT9{0.0}; + amrex::Real set_rate{0.0}; + + // ReacLib set derived from ths8r + ln_set_rate = -19.293876950988306 + -11.954106481261894 * tfactors.T9i + -34.217 * tfactors.T913i + 47.2584 * tfactors.T913 + + -9.18871 * tfactors.T9 + 0.87823 * tfactors.T953 + -0.666667 * tfactors.lnT9; + + ln_set_rate += net_log_pf; + ln_set_rate += log_scor; + + if constexpr (std::is_same_v) { + dln_set_rate_dT9 = 11.954106481261894 * tfactors.T9i * tfactors.T9i + -(1.0/3.0) * -34.217 * tfactors.T943i + (1.0/3.0) * 47.2584 * tfactors.T923i + + -9.18871 + (5.0/3.0) * 0.87823 * tfactors.T923 + -0.666667 * tfactors.T9i; + + dln_set_rate_dT9 += net_dlog_pf_dT9; + dln_set_rate_dT9 += dlog_scor_dT * 1.0e9_rt; + } + + // avoid underflows by zeroing rates in [0.0, 1.e-100] + ln_set_rate = std::max(ln_set_rate, -230.0); + set_rate = std::exp(ln_set_rate); + rate += set_rate; + if constexpr (std::is_same_v) { + if (ln_set_rate > -230.0_rt) { + drate_dT += set_rate * dln_set_rate_dT9 * 1.0e-9_rt; + } + } + + rate_eval.screened_rates(k_Ti46_He4_to_p_V49_derived) = rate; + if constexpr (std::is_same_v) { + rate_eval.dscreened_rates_dT(k_Ti46_He4_to_p_V49_derived) = drate_dT; + } + } + + template + AMREX_GPU_DEVICE AMREX_INLINE + void rate_V45_p_to_He4_Ti42_derived(T& rate_eval, const tf_t& tfactors, const amrex::Real log_scor, const amrex::Real dlog_scor_dT, [[maybe_unused]] part_fun::pf_cache_t& pf_cache) { + + // V45 + p --> He4 + Ti42 + + amrex::Real rate{}, drate_dT{}; + // Evaluate partition function terms + + amrex::Real p_log_pf, dp_log_pf_dT9; + + // setting p log(partition function) to 0.0 by default, independent of T + p_log_pf = 0.0_rt; + dp_log_pf_dT9 = 0.0_rt; + + amrex::Real He4_log_pf, dHe4_log_pf_dT9; + + // setting He4 log(partition function) to 0.0 by default, independent of T + He4_log_pf = 0.0_rt; + dHe4_log_pf_dT9 = 0.0_rt; + + amrex::Real Ti42_log_pf, dTi42_log_pf_dT9; + + // interpolating Ti42 partition function + get_partition_function_cached(Ti42, tfactors.T9, pf_cache, Ti42_log_pf, dTi42_log_pf_dT9); + + amrex::Real V45_log_pf, dV45_log_pf_dT9; + + // interpolating V45 partition function + get_partition_function_cached(V45, tfactors.T9, pf_cache, V45_log_pf, dV45_log_pf_dT9); + + amrex::Real net_log_pf = He4_log_pf + Ti42_log_pf - p_log_pf - V45_log_pf; + [[maybe_unused]] amrex::Real net_dlog_pf_dT9 = dHe4_log_pf_dT9 + dTi42_log_pf_dT9 - dp_log_pf_dT9 - dV45_log_pf_dT9; + + amrex::Real ln_set_rate{0.0}; + amrex::Real dln_set_rate_dT9{0.0}; + amrex::Real set_rate{0.0}; + + // ReacLib set derived from ths8r + ln_set_rate = 57.630501331425855 + -22.257405483263856 * tfactors.T9i + -81.5598 * tfactors.T913i + -1.03231 * tfactors.T913 + + -0.471149 * tfactors.T9 + 0.0112292 * tfactors.T953 + -0.666667 * tfactors.lnT9; + + ln_set_rate += net_log_pf; + ln_set_rate += log_scor; + + if constexpr (std::is_same_v) { + dln_set_rate_dT9 = 22.257405483263856 * tfactors.T9i * tfactors.T9i + -(1.0/3.0) * -81.5598 * tfactors.T943i + (1.0/3.0) * -1.03231 * tfactors.T923i + + -0.471149 + (5.0/3.0) * 0.0112292 * tfactors.T923 + -0.666667 * tfactors.T9i; + + dln_set_rate_dT9 += net_dlog_pf_dT9; + dln_set_rate_dT9 += dlog_scor_dT * 1.0e9_rt; + } + + // avoid underflows by zeroing rates in [0.0, 1.e-100] + ln_set_rate = std::max(ln_set_rate, -230.0); + set_rate = std::exp(ln_set_rate); + rate += set_rate; + if constexpr (std::is_same_v) { + if (ln_set_rate > -230.0_rt) { + drate_dT += set_rate * dln_set_rate_dT9 * 1.0e-9_rt; + } + } + + rate_eval.screened_rates(k_V45_p_to_He4_Ti42_derived) = rate; + if constexpr (std::is_same_v) { + rate_eval.dscreened_rates_dT(k_V45_p_to_He4_Ti42_derived) = drate_dT; + } + } + + template + AMREX_GPU_DEVICE AMREX_INLINE + void rate_V47_p_to_He4_Ti44_derived(T& rate_eval, const tf_t& tfactors, const amrex::Real log_scor, const amrex::Real dlog_scor_dT, [[maybe_unused]] part_fun::pf_cache_t& pf_cache) { + + // V47 + p --> He4 + Ti44 + + amrex::Real rate{}, drate_dT{}; + // Evaluate partition function terms + + amrex::Real p_log_pf, dp_log_pf_dT9; + + // setting p log(partition function) to 0.0 by default, independent of T + p_log_pf = 0.0_rt; + dp_log_pf_dT9 = 0.0_rt; + + amrex::Real He4_log_pf, dHe4_log_pf_dT9; + + // setting He4 log(partition function) to 0.0 by default, independent of T + He4_log_pf = 0.0_rt; + dHe4_log_pf_dT9 = 0.0_rt; + + amrex::Real V47_log_pf, dV47_log_pf_dT9; + + // interpolating V47 partition function + get_partition_function_cached(V47, tfactors.T9, pf_cache, V47_log_pf, dV47_log_pf_dT9); + + amrex::Real Ti44_log_pf, dTi44_log_pf_dT9; + + // interpolating Ti44 partition function + get_partition_function_cached(Ti44, tfactors.T9, pf_cache, Ti44_log_pf, dTi44_log_pf_dT9); + + amrex::Real net_log_pf = He4_log_pf + Ti44_log_pf - p_log_pf - V47_log_pf; + [[maybe_unused]] amrex::Real net_dlog_pf_dT9 = dHe4_log_pf_dT9 + dTi44_log_pf_dT9 - dp_log_pf_dT9 - dV47_log_pf_dT9; + + amrex::Real ln_set_rate{0.0}; + amrex::Real dln_set_rate_dT9{0.0}; + amrex::Real set_rate{0.0}; + + // ReacLib set derived from chw0r + ln_set_rate = -76.63208838152472 + -6.086479266444236 * tfactors.T9i + 70.2835 * tfactors.T913 + + -7.99061 * tfactors.T9 + 0.486213 * tfactors.T953 + -1.5 * tfactors.lnT9; + + ln_set_rate += net_log_pf; + ln_set_rate += log_scor; + + if constexpr (std::is_same_v) { + dln_set_rate_dT9 = 6.086479266444236 * tfactors.T9i * tfactors.T9i + (1.0/3.0) * 70.2835 * tfactors.T923i + + -7.99061 + (5.0/3.0) * 0.486213 * tfactors.T923 + -1.5 * tfactors.T9i; + + dln_set_rate_dT9 += net_dlog_pf_dT9; + dln_set_rate_dT9 += dlog_scor_dT * 1.0e9_rt; + } + + // avoid underflows by zeroing rates in [0.0, 1.e-100] + ln_set_rate = std::max(ln_set_rate, -230.0); + set_rate = std::exp(ln_set_rate); + rate += set_rate; + if constexpr (std::is_same_v) { + if (ln_set_rate > -230.0_rt) { + drate_dT += set_rate * dln_set_rate_dT9 * 1.0e-9_rt; + } + } + + rate_eval.screened_rates(k_V47_p_to_He4_Ti44_derived) = rate; + if constexpr (std::is_same_v) { + rate_eval.dscreened_rates_dT(k_V47_p_to_He4_Ti44_derived) = drate_dT; + } + } + + template + AMREX_GPU_DEVICE AMREX_INLINE + void rate_Cr48_p_to_He4_V45_derived(T& rate_eval, const tf_t& tfactors, const amrex::Real log_scor, const amrex::Real dlog_scor_dT, [[maybe_unused]] part_fun::pf_cache_t& pf_cache) { + + // Cr48 + p --> He4 + V45 + + amrex::Real rate{}, drate_dT{}; + // Evaluate partition function terms + + amrex::Real p_log_pf, dp_log_pf_dT9; + + // setting p log(partition function) to 0.0 by default, independent of T + p_log_pf = 0.0_rt; + dp_log_pf_dT9 = 0.0_rt; + + amrex::Real Cr48_log_pf, dCr48_log_pf_dT9; + + // interpolating Cr48 partition function + get_partition_function_cached(Cr48, tfactors.T9, pf_cache, Cr48_log_pf, dCr48_log_pf_dT9); + + amrex::Real He4_log_pf, dHe4_log_pf_dT9; + + // setting He4 log(partition function) to 0.0 by default, independent of T + He4_log_pf = 0.0_rt; + dHe4_log_pf_dT9 = 0.0_rt; + + amrex::Real V45_log_pf, dV45_log_pf_dT9; + + // interpolating V45 partition function + get_partition_function_cached(V45, tfactors.T9, pf_cache, V45_log_pf, dV45_log_pf_dT9); + + amrex::Real net_log_pf = He4_log_pf + V45_log_pf - p_log_pf - Cr48_log_pf; + [[maybe_unused]] amrex::Real net_dlog_pf_dT9 = dHe4_log_pf_dT9 + dV45_log_pf_dT9 - dp_log_pf_dT9 - dCr48_log_pf_dT9; + + amrex::Real ln_set_rate{0.0}; + amrex::Real dln_set_rate_dT9{0.0}; + amrex::Real set_rate{0.0}; + + // ReacLib set derived from ths8r + ln_set_rate = 63.03246114679632 + -70.44574720883793 * tfactors.T9i + -84.1758 * tfactors.T913i + -1.12403 * tfactors.T913 + + -0.469581 * tfactors.T9 + 0.00932056 * tfactors.T953 + -0.666667 * tfactors.lnT9; + + ln_set_rate += net_log_pf; + ln_set_rate += log_scor; + + if constexpr (std::is_same_v) { + dln_set_rate_dT9 = 70.44574720883793 * tfactors.T9i * tfactors.T9i + -(1.0/3.0) * -84.1758 * tfactors.T943i + (1.0/3.0) * -1.12403 * tfactors.T923i + + -0.469581 + (5.0/3.0) * 0.00932056 * tfactors.T923 + -0.666667 * tfactors.T9i; + + dln_set_rate_dT9 += net_dlog_pf_dT9; + dln_set_rate_dT9 += dlog_scor_dT * 1.0e9_rt; + } + + // avoid underflows by zeroing rates in [0.0, 1.e-100] + ln_set_rate = std::max(ln_set_rate, -230.0); + set_rate = std::exp(ln_set_rate); + rate += set_rate; + if constexpr (std::is_same_v) { + if (ln_set_rate > -230.0_rt) { + drate_dT += set_rate * dln_set_rate_dT9 * 1.0e-9_rt; + } + } + + rate_eval.screened_rates(k_Cr48_p_to_He4_V45_derived) = rate; + if constexpr (std::is_same_v) { + rate_eval.dscreened_rates_dT(k_Cr48_p_to_He4_V45_derived) = drate_dT; + } + } + + template + AMREX_GPU_DEVICE AMREX_INLINE + void rate_Cr50_p_to_He4_V47_derived(T& rate_eval, const tf_t& tfactors, const amrex::Real log_scor, const amrex::Real dlog_scor_dT, [[maybe_unused]] part_fun::pf_cache_t& pf_cache) { + + // Cr50 + p --> He4 + V47 + + amrex::Real rate{}, drate_dT{}; + // Evaluate partition function terms + + amrex::Real p_log_pf, dp_log_pf_dT9; + + // setting p log(partition function) to 0.0 by default, independent of T + p_log_pf = 0.0_rt; + dp_log_pf_dT9 = 0.0_rt; + + amrex::Real He4_log_pf, dHe4_log_pf_dT9; + + // setting He4 log(partition function) to 0.0 by default, independent of T + He4_log_pf = 0.0_rt; + dHe4_log_pf_dT9 = 0.0_rt; + + amrex::Real Cr50_log_pf, dCr50_log_pf_dT9; + + // interpolating Cr50 partition function + get_partition_function_cached(Cr50, tfactors.T9, pf_cache, Cr50_log_pf, dCr50_log_pf_dT9); + + amrex::Real V47_log_pf, dV47_log_pf_dT9; + + // interpolating V47 partition function + get_partition_function_cached(V47, tfactors.T9, pf_cache, V47_log_pf, dV47_log_pf_dT9); + + amrex::Real net_log_pf = He4_log_pf + V47_log_pf - p_log_pf - Cr50_log_pf; + [[maybe_unused]] amrex::Real net_dlog_pf_dT9 = dHe4_log_pf_dT9 + dV47_log_pf_dT9 - dp_log_pf_dT9 - dCr50_log_pf_dT9; + + amrex::Real ln_set_rate{0.0}; + amrex::Real dln_set_rate_dT9{0.0}; + amrex::Real set_rate{0.0}; + + // ReacLib set derived from ths8r + ln_set_rate = 62.57281513112344 + -39.342041242503285 * tfactors.T9i + -84.2732 * tfactors.T913i + -1.10027 * tfactors.T913 + + -0.487084 * tfactors.T9 + 0.00453269 * tfactors.T953 + -0.666667 * tfactors.lnT9; + + ln_set_rate += net_log_pf; + ln_set_rate += log_scor; + + if constexpr (std::is_same_v) { + dln_set_rate_dT9 = 39.342041242503285 * tfactors.T9i * tfactors.T9i + -(1.0/3.0) * -84.2732 * tfactors.T943i + (1.0/3.0) * -1.10027 * tfactors.T923i + + -0.487084 + (5.0/3.0) * 0.00453269 * tfactors.T923 + -0.666667 * tfactors.T9i; + + dln_set_rate_dT9 += net_dlog_pf_dT9; + dln_set_rate_dT9 += dlog_scor_dT * 1.0e9_rt; + } + + // avoid underflows by zeroing rates in [0.0, 1.e-100] + ln_set_rate = std::max(ln_set_rate, -230.0); + set_rate = std::exp(ln_set_rate); + rate += set_rate; + if constexpr (std::is_same_v) { + if (ln_set_rate > -230.0_rt) { + drate_dT += set_rate * dln_set_rate_dT9 * 1.0e-9_rt; + } + } + + rate_eval.screened_rates(k_Cr50_p_to_He4_V47_derived) = rate; + if constexpr (std::is_same_v) { + rate_eval.dscreened_rates_dT(k_Cr50_p_to_He4_V47_derived) = drate_dT; + } + } + + template + AMREX_GPU_DEVICE AMREX_INLINE + void rate_Cr50_He4_to_p_Mn53_derived(T& rate_eval, const tf_t& tfactors, const amrex::Real log_scor, const amrex::Real dlog_scor_dT, [[maybe_unused]] part_fun::pf_cache_t& pf_cache) { + + // Cr50 + He4 --> p + Mn53 + + amrex::Real rate{}, drate_dT{}; + // Evaluate partition function terms + + amrex::Real p_log_pf, dp_log_pf_dT9; + + // setting p log(partition function) to 0.0 by default, independent of T + p_log_pf = 0.0_rt; + dp_log_pf_dT9 = 0.0_rt; + + amrex::Real Mn53_log_pf, dMn53_log_pf_dT9; + + // interpolating Mn53 partition function + get_partition_function_cached(Mn53, tfactors.T9, pf_cache, Mn53_log_pf, dMn53_log_pf_dT9); + + amrex::Real He4_log_pf, dHe4_log_pf_dT9; + + // setting He4 log(partition function) to 0.0 by default, independent of T + He4_log_pf = 0.0_rt; + dHe4_log_pf_dT9 = 0.0_rt; + + amrex::Real Cr50_log_pf, dCr50_log_pf_dT9; + + // interpolating Cr50 partition function + get_partition_function_cached(Cr50, tfactors.T9, pf_cache, Cr50_log_pf, dCr50_log_pf_dT9); + + amrex::Real net_log_pf = p_log_pf + Mn53_log_pf - He4_log_pf - Cr50_log_pf; + [[maybe_unused]] amrex::Real net_dlog_pf_dT9 = dp_log_pf_dT9 + dMn53_log_pf_dT9 - dHe4_log_pf_dT9 - dCr50_log_pf_dT9; + + amrex::Real ln_set_rate{0.0}; + amrex::Real dln_set_rate_dT9{0.0}; + amrex::Real set_rate{0.0}; + + // ReacLib set derived from ths8r + ln_set_rate = -67.54406116823061 + -5.049302153785043 * tfactors.T9i + -36.1913 * tfactors.T913i + 99.0857 * tfactors.T913 + + -20.8943 * tfactors.T9 + 2.06209 * tfactors.T953 + -0.666667 * tfactors.lnT9; + + ln_set_rate += net_log_pf; + ln_set_rate += log_scor; + + if constexpr (std::is_same_v) { + dln_set_rate_dT9 = 5.049302153785043 * tfactors.T9i * tfactors.T9i + -(1.0/3.0) * -36.1913 * tfactors.T943i + (1.0/3.0) * 99.0857 * tfactors.T923i + + -20.8943 + (5.0/3.0) * 2.06209 * tfactors.T923 + -0.666667 * tfactors.T9i; + + dln_set_rate_dT9 += net_dlog_pf_dT9; + dln_set_rate_dT9 += dlog_scor_dT * 1.0e9_rt; + } + + // avoid underflows by zeroing rates in [0.0, 1.e-100] + ln_set_rate = std::max(ln_set_rate, -230.0); + set_rate = std::exp(ln_set_rate); + rate += set_rate; + if constexpr (std::is_same_v) { + if (ln_set_rate > -230.0_rt) { + drate_dT += set_rate * dln_set_rate_dT9 * 1.0e-9_rt; + } + } + + rate_eval.screened_rates(k_Cr50_He4_to_p_Mn53_derived) = rate; + if constexpr (std::is_same_v) { + rate_eval.dscreened_rates_dT(k_Cr50_He4_to_p_Mn53_derived) = drate_dT; + } + } + + template + AMREX_GPU_DEVICE AMREX_INLINE + void rate_Cr52_p_to_He4_V49_derived(T& rate_eval, const tf_t& tfactors, const amrex::Real log_scor, const amrex::Real dlog_scor_dT, [[maybe_unused]] part_fun::pf_cache_t& pf_cache) { + + // Cr52 + p --> He4 + V49 + + amrex::Real rate{}, drate_dT{}; + // Evaluate partition function terms + + amrex::Real V49_log_pf, dV49_log_pf_dT9; + + // interpolating V49 partition function + get_partition_function_cached(V49, tfactors.T9, pf_cache, V49_log_pf, dV49_log_pf_dT9); + + amrex::Real He4_log_pf, dHe4_log_pf_dT9; + + // setting He4 log(partition function) to 0.0 by default, independent of T + He4_log_pf = 0.0_rt; + dHe4_log_pf_dT9 = 0.0_rt; + + amrex::Real Cr52_log_pf, dCr52_log_pf_dT9; + + // interpolating Cr52 partition function + get_partition_function_cached(Cr52, tfactors.T9, pf_cache, Cr52_log_pf, dCr52_log_pf_dT9); + + amrex::Real p_log_pf, dp_log_pf_dT9; + + // setting p log(partition function) to 0.0 by default, independent of T + p_log_pf = 0.0_rt; + dp_log_pf_dT9 = 0.0_rt; + + amrex::Real net_log_pf = He4_log_pf + V49_log_pf - p_log_pf - Cr52_log_pf; + [[maybe_unused]] amrex::Real net_dlog_pf_dT9 = dHe4_log_pf_dT9 + dV49_log_pf_dT9 - dp_log_pf_dT9 - dCr52_log_pf_dT9; + + amrex::Real ln_set_rate{0.0}; + amrex::Real dln_set_rate_dT9{0.0}; + amrex::Real set_rate{0.0}; + + // ReacLib set derived from ths8r + ln_set_rate = 60.786974428474686 + -30.0934723900715 * tfactors.T9i + -84.3633 * tfactors.T913i + 2.73419 * tfactors.T913 + + -2.05655 * tfactors.T9 + 0.203834 * tfactors.T953 + -0.666667 * tfactors.lnT9; + + ln_set_rate += net_log_pf; + ln_set_rate += log_scor; + + if constexpr (std::is_same_v) { + dln_set_rate_dT9 = 30.0934723900715 * tfactors.T9i * tfactors.T9i + -(1.0/3.0) * -84.3633 * tfactors.T943i + (1.0/3.0) * 2.73419 * tfactors.T923i + + -2.05655 + (5.0/3.0) * 0.203834 * tfactors.T923 + -0.666667 * tfactors.T9i; + + dln_set_rate_dT9 += net_dlog_pf_dT9; + dln_set_rate_dT9 += dlog_scor_dT * 1.0e9_rt; + } + + // avoid underflows by zeroing rates in [0.0, 1.e-100] + ln_set_rate = std::max(ln_set_rate, -230.0); + set_rate = std::exp(ln_set_rate); + rate += set_rate; + if constexpr (std::is_same_v) { + if (ln_set_rate > -230.0_rt) { + drate_dT += set_rate * dln_set_rate_dT9 * 1.0e-9_rt; + } + } + + rate_eval.screened_rates(k_Cr52_p_to_He4_V49_derived) = rate; + if constexpr (std::is_same_v) { + rate_eval.dscreened_rates_dT(k_Cr52_p_to_He4_V49_derived) = drate_dT; + } + } + + template + AMREX_GPU_DEVICE AMREX_INLINE + void rate_Mn49_p_to_He4_Cr46_derived(T& rate_eval, const tf_t& tfactors, const amrex::Real log_scor, const amrex::Real dlog_scor_dT, [[maybe_unused]] part_fun::pf_cache_t& pf_cache) { + + // Mn49 + p --> He4 + Cr46 + + amrex::Real rate{}, drate_dT{}; + // Evaluate partition function terms + + amrex::Real p_log_pf, dp_log_pf_dT9; + + // setting p log(partition function) to 0.0 by default, independent of T + p_log_pf = 0.0_rt; + dp_log_pf_dT9 = 0.0_rt; + + amrex::Real He4_log_pf, dHe4_log_pf_dT9; + + // setting He4 log(partition function) to 0.0 by default, independent of T + He4_log_pf = 0.0_rt; + dHe4_log_pf_dT9 = 0.0_rt; + + amrex::Real Mn49_log_pf, dMn49_log_pf_dT9; + + // interpolating Mn49 partition function + get_partition_function_cached(Mn49, tfactors.T9, pf_cache, Mn49_log_pf, dMn49_log_pf_dT9); + + amrex::Real Cr46_log_pf, dCr46_log_pf_dT9; + + // interpolating Cr46 partition function + get_partition_function_cached(Cr46, tfactors.T9, pf_cache, Cr46_log_pf, dCr46_log_pf_dT9); + + amrex::Real net_log_pf = He4_log_pf + Cr46_log_pf - p_log_pf - Mn49_log_pf; + [[maybe_unused]] amrex::Real net_dlog_pf_dT9 = dHe4_log_pf_dT9 + dCr46_log_pf_dT9 - dp_log_pf_dT9 - dMn49_log_pf_dT9; + + amrex::Real ln_set_rate{0.0}; + amrex::Real dln_set_rate_dT9{0.0}; + amrex::Real set_rate{0.0}; + + // ReacLib set derived from ths8r + ln_set_rate = 60.051147868613754 + -38.10743655961044 * tfactors.T9i + -86.6499 * tfactors.T913i + -1.08241 * tfactors.T913 + + -0.516569 * tfactors.T9 + 0.0131721 * tfactors.T953 + -0.666667 * tfactors.lnT9; + + ln_set_rate += net_log_pf; + ln_set_rate += log_scor; + + if constexpr (std::is_same_v) { + dln_set_rate_dT9 = 38.10743655961044 * tfactors.T9i * tfactors.T9i + -(1.0/3.0) * -86.6499 * tfactors.T943i + (1.0/3.0) * -1.08241 * tfactors.T923i + + -0.516569 + (5.0/3.0) * 0.0131721 * tfactors.T923 + -0.666667 * tfactors.T9i; + + dln_set_rate_dT9 += net_dlog_pf_dT9; + dln_set_rate_dT9 += dlog_scor_dT * 1.0e9_rt; + } + + // avoid underflows by zeroing rates in [0.0, 1.e-100] + ln_set_rate = std::max(ln_set_rate, -230.0); + set_rate = std::exp(ln_set_rate); + rate += set_rate; + if constexpr (std::is_same_v) { + if (ln_set_rate > -230.0_rt) { + drate_dT += set_rate * dln_set_rate_dT9 * 1.0e-9_rt; + } + } + + rate_eval.screened_rates(k_Mn49_p_to_He4_Cr46_derived) = rate; + if constexpr (std::is_same_v) { + rate_eval.dscreened_rates_dT(k_Mn49_p_to_He4_Cr46_derived) = drate_dT; + } + } + + template + AMREX_GPU_DEVICE AMREX_INLINE + void rate_Mn51_p_to_He4_Cr48_derived(T& rate_eval, const tf_t& tfactors, const amrex::Real log_scor, const amrex::Real dlog_scor_dT, [[maybe_unused]] part_fun::pf_cache_t& pf_cache) { + + // Mn51 + p --> He4 + Cr48 + + amrex::Real rate{}, drate_dT{}; + // Evaluate partition function terms + + amrex::Real p_log_pf, dp_log_pf_dT9; + + // setting p log(partition function) to 0.0 by default, independent of T + p_log_pf = 0.0_rt; + dp_log_pf_dT9 = 0.0_rt; + + amrex::Real Cr48_log_pf, dCr48_log_pf_dT9; + + // interpolating Cr48 partition function + get_partition_function_cached(Cr48, tfactors.T9, pf_cache, Cr48_log_pf, dCr48_log_pf_dT9); + + amrex::Real He4_log_pf, dHe4_log_pf_dT9; + + // setting He4 log(partition function) to 0.0 by default, independent of T + He4_log_pf = 0.0_rt; + dHe4_log_pf_dT9 = 0.0_rt; + + amrex::Real Mn51_log_pf, dMn51_log_pf_dT9; + + // interpolating Mn51 partition function + get_partition_function_cached(Mn51, tfactors.T9, pf_cache, Mn51_log_pf, dMn51_log_pf_dT9); + + amrex::Real net_log_pf = He4_log_pf + Cr48_log_pf - p_log_pf - Mn51_log_pf; + [[maybe_unused]] amrex::Real net_dlog_pf_dT9 = dHe4_log_pf_dT9 + dCr48_log_pf_dT9 - dp_log_pf_dT9 - dMn51_log_pf_dT9; + + amrex::Real ln_set_rate{0.0}; + amrex::Real dln_set_rate_dT9{0.0}; + amrex::Real set_rate{0.0}; + + // ReacLib set derived from ths8r + ln_set_rate = 58.71348267023461 + -6.47700151570639 * tfactors.T9i + -86.7459 * tfactors.T913i + 1.05653 * tfactors.T913 + + -1.15757 * tfactors.T9 + 0.0877546 * tfactors.T953 + -0.666667 * tfactors.lnT9; + + ln_set_rate += net_log_pf; + ln_set_rate += log_scor; + + if constexpr (std::is_same_v) { + dln_set_rate_dT9 = 6.47700151570639 * tfactors.T9i * tfactors.T9i + -(1.0/3.0) * -86.7459 * tfactors.T943i + (1.0/3.0) * 1.05653 * tfactors.T923i + + -1.15757 + (5.0/3.0) * 0.0877546 * tfactors.T923 + -0.666667 * tfactors.T9i; + + dln_set_rate_dT9 += net_dlog_pf_dT9; + dln_set_rate_dT9 += dlog_scor_dT * 1.0e9_rt; + } + + // avoid underflows by zeroing rates in [0.0, 1.e-100] + ln_set_rate = std::max(ln_set_rate, -230.0); + set_rate = std::exp(ln_set_rate); + rate += set_rate; + if constexpr (std::is_same_v) { + if (ln_set_rate > -230.0_rt) { + drate_dT += set_rate * dln_set_rate_dT9 * 1.0e-9_rt; + } + } + + rate_eval.screened_rates(k_Mn51_p_to_He4_Cr48_derived) = rate; + if constexpr (std::is_same_v) { + rate_eval.dscreened_rates_dT(k_Mn51_p_to_He4_Cr48_derived) = drate_dT; + } + } + + template + AMREX_GPU_DEVICE AMREX_INLINE + void rate_Mn53_He4_to_n_Co56_derived(T& rate_eval, const tf_t& tfactors, const amrex::Real log_scor, const amrex::Real dlog_scor_dT, [[maybe_unused]] part_fun::pf_cache_t& pf_cache) { + + // Mn53 + He4 --> n + Co56 + + amrex::Real rate{}, drate_dT{}; + // Evaluate partition function terms + + amrex::Real n_log_pf, dn_log_pf_dT9; + + // setting n log(partition function) to 0.0 by default, independent of T + n_log_pf = 0.0_rt; + dn_log_pf_dT9 = 0.0_rt; + + amrex::Real He4_log_pf, dHe4_log_pf_dT9; + + // setting He4 log(partition function) to 0.0 by default, independent of T + He4_log_pf = 0.0_rt; + dHe4_log_pf_dT9 = 0.0_rt; + + amrex::Real Mn53_log_pf, dMn53_log_pf_dT9; + + // interpolating Mn53 partition function + get_partition_function_cached(Mn53, tfactors.T9, pf_cache, Mn53_log_pf, dMn53_log_pf_dT9); + + amrex::Real Co56_log_pf, dCo56_log_pf_dT9; + + // interpolating Co56 partition function + get_partition_function_cached(Co56, tfactors.T9, pf_cache, Co56_log_pf, dCo56_log_pf_dT9); + + amrex::Real net_log_pf = n_log_pf + Co56_log_pf - He4_log_pf - Mn53_log_pf; + [[maybe_unused]] amrex::Real net_dlog_pf_dT9 = dn_log_pf_dT9 + dCo56_log_pf_dT9 - dHe4_log_pf_dT9 - dMn53_log_pf_dT9; + + amrex::Real ln_set_rate{0.0}; + amrex::Real dln_set_rate_dT9{0.0}; + amrex::Real set_rate{0.0}; + + // ReacLib set derived from ths8r + ln_set_rate = 11.401304558489999 + -49.85535663187797 * tfactors.T9i + -2.81854 * tfactors.T913 + + 1.84188 * tfactors.T9 + -0.164509 * tfactors.T953; + + ln_set_rate += net_log_pf; + ln_set_rate += log_scor; + + if constexpr (std::is_same_v) { + dln_set_rate_dT9 = 49.85535663187797 * tfactors.T9i * tfactors.T9i + (1.0/3.0) * -2.81854 * tfactors.T923i + + 1.84188 + (5.0/3.0) * -0.164509 * tfactors.T923; + + dln_set_rate_dT9 += net_dlog_pf_dT9; + dln_set_rate_dT9 += dlog_scor_dT * 1.0e9_rt; + } + + // avoid underflows by zeroing rates in [0.0, 1.e-100] + ln_set_rate = std::max(ln_set_rate, -230.0); + set_rate = std::exp(ln_set_rate); + rate += set_rate; + if constexpr (std::is_same_v) { + if (ln_set_rate > -230.0_rt) { + drate_dT += set_rate * dln_set_rate_dT9 * 1.0e-9_rt; + } + } + + rate_eval.screened_rates(k_Mn53_He4_to_n_Co56_derived) = rate; + if constexpr (std::is_same_v) { + rate_eval.dscreened_rates_dT(k_Mn53_He4_to_n_Co56_derived) = drate_dT; + } + } + + template + AMREX_GPU_DEVICE AMREX_INLINE + void rate_Fe52_p_to_He4_Mn49_derived(T& rate_eval, const tf_t& tfactors, const amrex::Real log_scor, const amrex::Real dlog_scor_dT, [[maybe_unused]] part_fun::pf_cache_t& pf_cache) { + + // Fe52 + p --> He4 + Mn49 + + amrex::Real rate{}, drate_dT{}; + // Evaluate partition function terms + + amrex::Real p_log_pf, dp_log_pf_dT9; + + // setting p log(partition function) to 0.0 by default, independent of T + p_log_pf = 0.0_rt; + dp_log_pf_dT9 = 0.0_rt; + + amrex::Real He4_log_pf, dHe4_log_pf_dT9; + + // setting He4 log(partition function) to 0.0 by default, independent of T + He4_log_pf = 0.0_rt; + dHe4_log_pf_dT9 = 0.0_rt; + + amrex::Real Fe52_log_pf, dFe52_log_pf_dT9; + + // interpolating Fe52 partition function + get_partition_function_cached(Fe52, tfactors.T9, pf_cache, Fe52_log_pf, dFe52_log_pf_dT9); + + amrex::Real Mn49_log_pf, dMn49_log_pf_dT9; + + // interpolating Mn49 partition function + get_partition_function_cached(Mn49, tfactors.T9, pf_cache, Mn49_log_pf, dMn49_log_pf_dT9); + + amrex::Real net_log_pf = He4_log_pf + Mn49_log_pf - p_log_pf - Fe52_log_pf; + [[maybe_unused]] amrex::Real net_dlog_pf_dT9 = dHe4_log_pf_dT9 + dMn49_log_pf_dT9 - dp_log_pf_dT9 - dFe52_log_pf_dT9; + + amrex::Real ln_set_rate{0.0}; + amrex::Real dln_set_rate_dT9{0.0}; + amrex::Real set_rate{0.0}; + + // ReacLib set derived from ths8r + ln_set_rate = 65.50849317033268 + -67.86490237870495 * tfactors.T9i + -89.1861 * tfactors.T913i + -1.31711 * tfactors.T913 + + -0.507338 * tfactors.T9 + 0.0108137 * tfactors.T953 + -0.666667 * tfactors.lnT9; + + ln_set_rate += net_log_pf; + ln_set_rate += log_scor; + + if constexpr (std::is_same_v) { + dln_set_rate_dT9 = 67.86490237870495 * tfactors.T9i * tfactors.T9i + -(1.0/3.0) * -89.1861 * tfactors.T943i + (1.0/3.0) * -1.31711 * tfactors.T923i + + -0.507338 + (5.0/3.0) * 0.0108137 * tfactors.T923 + -0.666667 * tfactors.T9i; + + dln_set_rate_dT9 += net_dlog_pf_dT9; + dln_set_rate_dT9 += dlog_scor_dT * 1.0e9_rt; + } + + // avoid underflows by zeroing rates in [0.0, 1.e-100] + ln_set_rate = std::max(ln_set_rate, -230.0); + set_rate = std::exp(ln_set_rate); + rate += set_rate; + if constexpr (std::is_same_v) { + if (ln_set_rate > -230.0_rt) { + drate_dT += set_rate * dln_set_rate_dT9 * 1.0e-9_rt; + } + } + + rate_eval.screened_rates(k_Fe52_p_to_He4_Mn49_derived) = rate; + if constexpr (std::is_same_v) { + rate_eval.dscreened_rates_dT(k_Fe52_p_to_He4_Mn49_derived) = drate_dT; + } + } + + template + AMREX_GPU_DEVICE AMREX_INLINE + void rate_Fe54_p_to_He4_Mn51_derived(T& rate_eval, const tf_t& tfactors, const amrex::Real log_scor, const amrex::Real dlog_scor_dT, [[maybe_unused]] part_fun::pf_cache_t& pf_cache) { + + // Fe54 + p --> He4 + Mn51 + + amrex::Real rate{}, drate_dT{}; + // Evaluate partition function terms + + amrex::Real p_log_pf, dp_log_pf_dT9; + + // setting p log(partition function) to 0.0 by default, independent of T + p_log_pf = 0.0_rt; + dp_log_pf_dT9 = 0.0_rt; + + amrex::Real Mn51_log_pf, dMn51_log_pf_dT9; + + // interpolating Mn51 partition function + get_partition_function_cached(Mn51, tfactors.T9, pf_cache, Mn51_log_pf, dMn51_log_pf_dT9); + + amrex::Real He4_log_pf, dHe4_log_pf_dT9; + + // setting He4 log(partition function) to 0.0 by default, independent of T + He4_log_pf = 0.0_rt; + dHe4_log_pf_dT9 = 0.0_rt; + + amrex::Real Fe54_log_pf, dFe54_log_pf_dT9; + + // interpolating Fe54 partition function + get_partition_function_cached(Fe54, tfactors.T9, pf_cache, Fe54_log_pf, dFe54_log_pf_dT9); + + amrex::Real net_log_pf = He4_log_pf + Mn51_log_pf - p_log_pf - Fe54_log_pf; + [[maybe_unused]] amrex::Real net_dlog_pf_dT9 = dHe4_log_pf_dT9 + dMn51_log_pf_dT9 - dp_log_pf_dT9 - dFe54_log_pf_dT9; + + amrex::Real ln_set_rate{0.0}; + amrex::Real dln_set_rate_dT9{0.0}; + amrex::Real set_rate{0.0}; + + // ReacLib set derived from ths8r + ln_set_rate = 65.35241368298804 + -36.52341983603332 * tfactors.T9i + -89.274 * tfactors.T913i + -0.862452 * tfactors.T913 + + -0.635672 * tfactors.T9 + 0.0196464 * tfactors.T953 + -0.666667 * tfactors.lnT9; + + ln_set_rate += net_log_pf; + ln_set_rate += log_scor; + + if constexpr (std::is_same_v) { + dln_set_rate_dT9 = 36.52341983603332 * tfactors.T9i * tfactors.T9i + -(1.0/3.0) * -89.274 * tfactors.T943i + (1.0/3.0) * -0.862452 * tfactors.T923i + + -0.635672 + (5.0/3.0) * 0.0196464 * tfactors.T923 + -0.666667 * tfactors.T9i; + + dln_set_rate_dT9 += net_dlog_pf_dT9; + dln_set_rate_dT9 += dlog_scor_dT * 1.0e9_rt; + } + + // avoid underflows by zeroing rates in [0.0, 1.e-100] + ln_set_rate = std::max(ln_set_rate, -230.0); + set_rate = std::exp(ln_set_rate); + rate += set_rate; + if constexpr (std::is_same_v) { + if (ln_set_rate > -230.0_rt) { + drate_dT += set_rate * dln_set_rate_dT9 * 1.0e-9_rt; + } + } + + rate_eval.screened_rates(k_Fe54_p_to_He4_Mn51_derived) = rate; + if constexpr (std::is_same_v) { + rate_eval.dscreened_rates_dT(k_Fe54_p_to_He4_Mn51_derived) = drate_dT; + } + } + + template + AMREX_GPU_DEVICE AMREX_INLINE + void rate_Fe54_He4_to_p_Co57_derived(T& rate_eval, const tf_t& tfactors, const amrex::Real log_scor, const amrex::Real dlog_scor_dT, [[maybe_unused]] part_fun::pf_cache_t& pf_cache) { + + // Fe54 + He4 --> p + Co57 + + amrex::Real rate{}, drate_dT{}; + // Evaluate partition function terms + + amrex::Real p_log_pf, dp_log_pf_dT9; + + // setting p log(partition function) to 0.0 by default, independent of T + p_log_pf = 0.0_rt; + dp_log_pf_dT9 = 0.0_rt; + + amrex::Real He4_log_pf, dHe4_log_pf_dT9; + + // setting He4 log(partition function) to 0.0 by default, independent of T + He4_log_pf = 0.0_rt; + dHe4_log_pf_dT9 = 0.0_rt; + + amrex::Real Co57_log_pf, dCo57_log_pf_dT9; + + // interpolating Co57 partition function + get_partition_function_cached(Co57, tfactors.T9, pf_cache, Co57_log_pf, dCo57_log_pf_dT9); + + amrex::Real Fe54_log_pf, dFe54_log_pf_dT9; + + // interpolating Fe54 partition function + get_partition_function_cached(Fe54, tfactors.T9, pf_cache, Fe54_log_pf, dFe54_log_pf_dT9); + + amrex::Real net_log_pf = p_log_pf + Co57_log_pf - He4_log_pf - Fe54_log_pf; + [[maybe_unused]] amrex::Real net_dlog_pf_dT9 = dp_log_pf_dT9 + dCo57_log_pf_dT9 - dHe4_log_pf_dT9 - dFe54_log_pf_dT9; + + amrex::Real ln_set_rate{0.0}; + amrex::Real dln_set_rate_dT9{0.0}; + amrex::Real set_rate{0.0}; + + // ReacLib set derived from ths8r + ln_set_rate = -1.404090444334669 + -20.574290677453938 * tfactors.T9i + -38.1133 * tfactors.T913i + 29.3541 * tfactors.T913 + + -4.75966 * tfactors.T9 + 0.40418 * tfactors.T953 + -0.666667 * tfactors.lnT9; + + ln_set_rate += net_log_pf; + ln_set_rate += log_scor; + + if constexpr (std::is_same_v) { + dln_set_rate_dT9 = 20.574290677453938 * tfactors.T9i * tfactors.T9i + -(1.0/3.0) * -38.1133 * tfactors.T943i + (1.0/3.0) * 29.3541 * tfactors.T923i + + -4.75966 + (5.0/3.0) * 0.40418 * tfactors.T923 + -0.666667 * tfactors.T9i; + + dln_set_rate_dT9 += net_dlog_pf_dT9; + dln_set_rate_dT9 += dlog_scor_dT * 1.0e9_rt; + } + + // avoid underflows by zeroing rates in [0.0, 1.e-100] + ln_set_rate = std::max(ln_set_rate, -230.0); + set_rate = std::exp(ln_set_rate); + rate += set_rate; + if constexpr (std::is_same_v) { + if (ln_set_rate > -230.0_rt) { + drate_dT += set_rate * dln_set_rate_dT9 * 1.0e-9_rt; + } + } + + rate_eval.screened_rates(k_Fe54_He4_to_p_Co57_derived) = rate; + if constexpr (std::is_same_v) { + rate_eval.dscreened_rates_dT(k_Fe54_He4_to_p_Co57_derived) = drate_dT; + } + } + + template + AMREX_GPU_DEVICE AMREX_INLINE + void rate_Fe56_p_to_n_Co56_derived(T& rate_eval, const tf_t& tfactors, const amrex::Real log_scor, const amrex::Real dlog_scor_dT, [[maybe_unused]] part_fun::pf_cache_t& pf_cache) { + + // Fe56 + p --> n + Co56 + + amrex::Real rate{}, drate_dT{}; + // Evaluate partition function terms + + amrex::Real n_log_pf, dn_log_pf_dT9; + + // setting n log(partition function) to 0.0 by default, independent of T + n_log_pf = 0.0_rt; + dn_log_pf_dT9 = 0.0_rt; + + amrex::Real p_log_pf, dp_log_pf_dT9; + + // setting p log(partition function) to 0.0 by default, independent of T + p_log_pf = 0.0_rt; + dp_log_pf_dT9 = 0.0_rt; + + amrex::Real Fe56_log_pf, dFe56_log_pf_dT9; + + // interpolating Fe56 partition function + get_partition_function_cached(Fe56, tfactors.T9, pf_cache, Fe56_log_pf, dFe56_log_pf_dT9); + + amrex::Real Co56_log_pf, dCo56_log_pf_dT9; + + // interpolating Co56 partition function + get_partition_function_cached(Co56, tfactors.T9, pf_cache, Co56_log_pf, dCo56_log_pf_dT9); + + amrex::Real net_log_pf = n_log_pf + Co56_log_pf - p_log_pf - Fe56_log_pf; + [[maybe_unused]] amrex::Real net_dlog_pf_dT9 = dn_log_pf_dT9 + dCo56_log_pf_dT9 - dp_log_pf_dT9 - dFe56_log_pf_dT9; + + amrex::Real ln_set_rate{0.0}; + amrex::Real dln_set_rate_dT9{0.0}; + amrex::Real set_rate{0.0}; + + // ReacLib set derived from ths8r + ln_set_rate = 22.653426224164285 + -62.07264908160129 * tfactors.T9i + -1.13331 * tfactors.T913 + + 0.347185 * tfactors.T9 + -0.0328879 * tfactors.T953; + + ln_set_rate += net_log_pf; + ln_set_rate += log_scor; + + if constexpr (std::is_same_v) { + dln_set_rate_dT9 = 62.07264908160129 * tfactors.T9i * tfactors.T9i + (1.0/3.0) * -1.13331 * tfactors.T923i + + 0.347185 + (5.0/3.0) * -0.0328879 * tfactors.T923; + + dln_set_rate_dT9 += net_dlog_pf_dT9; + dln_set_rate_dT9 += dlog_scor_dT * 1.0e9_rt; + } + + // avoid underflows by zeroing rates in [0.0, 1.e-100] + ln_set_rate = std::max(ln_set_rate, -230.0); + set_rate = std::exp(ln_set_rate); + rate += set_rate; + if constexpr (std::is_same_v) { + if (ln_set_rate > -230.0_rt) { + drate_dT += set_rate * dln_set_rate_dT9 * 1.0e-9_rt; + } + } + + rate_eval.screened_rates(k_Fe56_p_to_n_Co56_derived) = rate; + if constexpr (std::is_same_v) { + rate_eval.dscreened_rates_dT(k_Fe56_p_to_n_Co56_derived) = drate_dT; + } + } + + template + AMREX_GPU_DEVICE AMREX_INLINE + void rate_Fe56_p_to_He4_Mn53_derived(T& rate_eval, const tf_t& tfactors, const amrex::Real log_scor, const amrex::Real dlog_scor_dT, [[maybe_unused]] part_fun::pf_cache_t& pf_cache) { + + // Fe56 + p --> He4 + Mn53 + + amrex::Real rate{}, drate_dT{}; + // Evaluate partition function terms + + amrex::Real p_log_pf, dp_log_pf_dT9; + + // setting p log(partition function) to 0.0 by default, independent of T + p_log_pf = 0.0_rt; + dp_log_pf_dT9 = 0.0_rt; + + amrex::Real He4_log_pf, dHe4_log_pf_dT9; + + // setting He4 log(partition function) to 0.0 by default, independent of T + He4_log_pf = 0.0_rt; + dHe4_log_pf_dT9 = 0.0_rt; + + amrex::Real Mn53_log_pf, dMn53_log_pf_dT9; + + // interpolating Mn53 partition function + get_partition_function_cached(Mn53, tfactors.T9, pf_cache, Mn53_log_pf, dMn53_log_pf_dT9); + + amrex::Real Fe56_log_pf, dFe56_log_pf_dT9; + + // interpolating Fe56 partition function + get_partition_function_cached(Fe56, tfactors.T9, pf_cache, Fe56_log_pf, dFe56_log_pf_dT9); + + amrex::Real net_log_pf = He4_log_pf + Mn53_log_pf - p_log_pf - Fe56_log_pf; + [[maybe_unused]] amrex::Real net_dlog_pf_dT9 = dHe4_log_pf_dT9 + dMn53_log_pf_dT9 - dp_log_pf_dT9 - dFe56_log_pf_dT9; + + amrex::Real ln_set_rate{0.0}; + amrex::Real dln_set_rate_dT9{0.0}; + amrex::Real set_rate{0.0}; + + // ReacLib set derived from ths8r + ln_set_rate = 57.383021665674285 + -12.217292449723331 * tfactors.T9i + -89.3558 * tfactors.T913i + 9.25287 * tfactors.T913 + + -3.70352 * tfactors.T9 + 0.372202 * tfactors.T953 + -0.666667 * tfactors.lnT9; + + ln_set_rate += net_log_pf; + ln_set_rate += log_scor; + + if constexpr (std::is_same_v) { + dln_set_rate_dT9 = 12.217292449723331 * tfactors.T9i * tfactors.T9i + -(1.0/3.0) * -89.3558 * tfactors.T943i + (1.0/3.0) * 9.25287 * tfactors.T923i + + -3.70352 + (5.0/3.0) * 0.372202 * tfactors.T923 + -0.666667 * tfactors.T9i; + + dln_set_rate_dT9 += net_dlog_pf_dT9; + dln_set_rate_dT9 += dlog_scor_dT * 1.0e9_rt; + } + + // avoid underflows by zeroing rates in [0.0, 1.e-100] + ln_set_rate = std::max(ln_set_rate, -230.0); + set_rate = std::exp(ln_set_rate); + rate += set_rate; + if constexpr (std::is_same_v) { + if (ln_set_rate > -230.0_rt) { + drate_dT += set_rate * dln_set_rate_dT9 * 1.0e-9_rt; + } + } + + rate_eval.screened_rates(k_Fe56_p_to_He4_Mn53_derived) = rate; + if constexpr (std::is_same_v) { + rate_eval.dscreened_rates_dT(k_Fe56_p_to_He4_Mn53_derived) = drate_dT; + } + } + + template + AMREX_GPU_DEVICE AMREX_INLINE + void rate_Co53_p_to_He4_Fe50_derived(T& rate_eval, const tf_t& tfactors, const amrex::Real log_scor, const amrex::Real dlog_scor_dT, [[maybe_unused]] part_fun::pf_cache_t& pf_cache) { + + // Co53 + p --> He4 + Fe50 + + amrex::Real rate{}, drate_dT{}; + // Evaluate partition function terms + + amrex::Real p_log_pf, dp_log_pf_dT9; + + // setting p log(partition function) to 0.0 by default, independent of T + p_log_pf = 0.0_rt; + dp_log_pf_dT9 = 0.0_rt; + + amrex::Real Fe50_log_pf, dFe50_log_pf_dT9; + + // interpolating Fe50 partition function + get_partition_function_cached(Fe50, tfactors.T9, pf_cache, Fe50_log_pf, dFe50_log_pf_dT9); + + amrex::Real He4_log_pf, dHe4_log_pf_dT9; + + // setting He4 log(partition function) to 0.0 by default, independent of T + He4_log_pf = 0.0_rt; + dHe4_log_pf_dT9 = 0.0_rt; + + amrex::Real Co53_log_pf, dCo53_log_pf_dT9; + + // interpolating Co53 partition function + get_partition_function_cached(Co53, tfactors.T9, pf_cache, Co53_log_pf, dCo53_log_pf_dT9); + + amrex::Real net_log_pf = He4_log_pf + Fe50_log_pf - p_log_pf - Co53_log_pf; + [[maybe_unused]] amrex::Real net_dlog_pf_dT9 = dHe4_log_pf_dT9 + dFe50_log_pf_dT9 - dp_log_pf_dT9 - dCo53_log_pf_dT9; + + amrex::Real ln_set_rate{0.0}; + amrex::Real dln_set_rate_dT9{0.0}; + amrex::Real set_rate{0.0}; + + // ReacLib set derived from ths8r + ln_set_rate = 61.93239942126981 + -38.51939695293296 * tfactors.T9i + -91.5952 * tfactors.T913i + -1.33713 * tfactors.T913 + + -0.465416 * tfactors.T9 + 0.00761392 * tfactors.T953 + -0.666667 * tfactors.lnT9; + + ln_set_rate += net_log_pf; + ln_set_rate += log_scor; + + if constexpr (std::is_same_v) { + dln_set_rate_dT9 = 38.51939695293296 * tfactors.T9i * tfactors.T9i + -(1.0/3.0) * -91.5952 * tfactors.T943i + (1.0/3.0) * -1.33713 * tfactors.T923i + + -0.465416 + (5.0/3.0) * 0.00761392 * tfactors.T923 + -0.666667 * tfactors.T9i; + + dln_set_rate_dT9 += net_dlog_pf_dT9; + dln_set_rate_dT9 += dlog_scor_dT * 1.0e9_rt; + } + + // avoid underflows by zeroing rates in [0.0, 1.e-100] + ln_set_rate = std::max(ln_set_rate, -230.0); + set_rate = std::exp(ln_set_rate); + rate += set_rate; + if constexpr (std::is_same_v) { + if (ln_set_rate > -230.0_rt) { + drate_dT += set_rate * dln_set_rate_dT9 * 1.0e-9_rt; + } + } + + rate_eval.screened_rates(k_Co53_p_to_He4_Fe50_derived) = rate; + if constexpr (std::is_same_v) { + rate_eval.dscreened_rates_dT(k_Co53_p_to_He4_Fe50_derived) = drate_dT; + } + } + + template + AMREX_GPU_DEVICE AMREX_INLINE + void rate_Co55_p_to_He4_Fe52_derived(T& rate_eval, const tf_t& tfactors, const amrex::Real log_scor, const amrex::Real dlog_scor_dT, [[maybe_unused]] part_fun::pf_cache_t& pf_cache) { + + // Co55 + p --> He4 + Fe52 + + amrex::Real rate{}, drate_dT{}; + // Evaluate partition function terms + + amrex::Real p_log_pf, dp_log_pf_dT9; + + // setting p log(partition function) to 0.0 by default, independent of T + p_log_pf = 0.0_rt; + dp_log_pf_dT9 = 0.0_rt; + + amrex::Real He4_log_pf, dHe4_log_pf_dT9; + + // setting He4 log(partition function) to 0.0 by default, independent of T + He4_log_pf = 0.0_rt; + dHe4_log_pf_dT9 = 0.0_rt; + + amrex::Real Co55_log_pf, dCo55_log_pf_dT9; + + // interpolating Co55 partition function + get_partition_function_cached(Co55, tfactors.T9, pf_cache, Co55_log_pf, dCo55_log_pf_dT9); + + amrex::Real Fe52_log_pf, dFe52_log_pf_dT9; + + // interpolating Fe52 partition function + get_partition_function_cached(Fe52, tfactors.T9, pf_cache, Fe52_log_pf, dFe52_log_pf_dT9); + + amrex::Real net_log_pf = He4_log_pf + Fe52_log_pf - p_log_pf - Co55_log_pf; + [[maybe_unused]] amrex::Real net_dlog_pf_dT9 = dHe4_log_pf_dT9 + dFe52_log_pf_dT9 - dp_log_pf_dT9 - dCo55_log_pf_dT9; + + amrex::Real ln_set_rate{0.0}; + amrex::Real dln_set_rate_dT9{0.0}; + amrex::Real set_rate{0.0}; + + // ReacLib set derived from ths8r + ln_set_rate = 61.42570080881217 + -9.676367161770125 * tfactors.T9i + -91.6819 * tfactors.T913i + -0.329235 * tfactors.T913 + + -0.780924 * tfactors.T9 + 0.0425179 * tfactors.T953 + -0.666667 * tfactors.lnT9; + + ln_set_rate += net_log_pf; + ln_set_rate += log_scor; + + if constexpr (std::is_same_v) { + dln_set_rate_dT9 = 9.676367161770125 * tfactors.T9i * tfactors.T9i + -(1.0/3.0) * -91.6819 * tfactors.T943i + (1.0/3.0) * -0.329235 * tfactors.T923i + + -0.780924 + (5.0/3.0) * 0.0425179 * tfactors.T923 + -0.666667 * tfactors.T9i; + + dln_set_rate_dT9 += net_dlog_pf_dT9; + dln_set_rate_dT9 += dlog_scor_dT * 1.0e9_rt; + } + + // avoid underflows by zeroing rates in [0.0, 1.e-100] + ln_set_rate = std::max(ln_set_rate, -230.0); + set_rate = std::exp(ln_set_rate); + rate += set_rate; + if constexpr (std::is_same_v) { + if (ln_set_rate > -230.0_rt) { + drate_dT += set_rate * dln_set_rate_dT9 * 1.0e-9_rt; + } + } + + rate_eval.screened_rates(k_Co55_p_to_He4_Fe52_derived) = rate; + if constexpr (std::is_same_v) { + rate_eval.dscreened_rates_dT(k_Co55_p_to_He4_Fe52_derived) = drate_dT; + } + } + + template + AMREX_GPU_DEVICE AMREX_INLINE + void rate_Co56_p_to_n_Ni56_derived(T& rate_eval, const tf_t& tfactors, const amrex::Real log_scor, const amrex::Real dlog_scor_dT, [[maybe_unused]] part_fun::pf_cache_t& pf_cache) { + + // Co56 + p --> n + Ni56 + + amrex::Real rate{}, drate_dT{}; + // Evaluate partition function terms + + amrex::Real n_log_pf, dn_log_pf_dT9; + + // setting n log(partition function) to 0.0 by default, independent of T + n_log_pf = 0.0_rt; + dn_log_pf_dT9 = 0.0_rt; + + amrex::Real Ni56_log_pf, dNi56_log_pf_dT9; + + // interpolating Ni56 partition function + get_partition_function_cached(Ni56, tfactors.T9, pf_cache, Ni56_log_pf, dNi56_log_pf_dT9); + + amrex::Real p_log_pf, dp_log_pf_dT9; + + // setting p log(partition function) to 0.0 by default, independent of T + p_log_pf = 0.0_rt; + dp_log_pf_dT9 = 0.0_rt; + + amrex::Real Co56_log_pf, dCo56_log_pf_dT9; + + // interpolating Co56 partition function + get_partition_function_cached(Co56, tfactors.T9, pf_cache, Co56_log_pf, dCo56_log_pf_dT9); + + amrex::Real net_log_pf = n_log_pf + Ni56_log_pf - p_log_pf - Co56_log_pf; + [[maybe_unused]] amrex::Real net_dlog_pf_dT9 = dn_log_pf_dT9 + dNi56_log_pf_dT9 - dp_log_pf_dT9 - dCo56_log_pf_dT9; + + amrex::Real ln_set_rate{0.0}; + amrex::Real dln_set_rate_dT9{0.0}; + amrex::Real set_rate{0.0}; + + // ReacLib set derived from ths8r + ln_set_rate = 13.374260291785419 + -33.830037058152215 * tfactors.T9i + 1.76846 * tfactors.T913 + + 0.197992 * tfactors.T9 + -0.017494 * tfactors.T953; + + ln_set_rate += net_log_pf; + ln_set_rate += log_scor; + + if constexpr (std::is_same_v) { + dln_set_rate_dT9 = 33.830037058152215 * tfactors.T9i * tfactors.T9i + (1.0/3.0) * 1.76846 * tfactors.T923i + + 0.197992 + (5.0/3.0) * -0.017494 * tfactors.T923; + + dln_set_rate_dT9 += net_dlog_pf_dT9; + dln_set_rate_dT9 += dlog_scor_dT * 1.0e9_rt; + } + + // avoid underflows by zeroing rates in [0.0, 1.e-100] + ln_set_rate = std::max(ln_set_rate, -230.0); + set_rate = std::exp(ln_set_rate); + rate += set_rate; + if constexpr (std::is_same_v) { + if (ln_set_rate > -230.0_rt) { + drate_dT += set_rate * dln_set_rate_dT9 * 1.0e-9_rt; + } + } + + rate_eval.screened_rates(k_Co56_p_to_n_Ni56_derived) = rate; + if constexpr (std::is_same_v) { + rate_eval.dscreened_rates_dT(k_Co56_p_to_n_Ni56_derived) = drate_dT; + } + } + + template + AMREX_GPU_DEVICE AMREX_INLINE + void rate_Co56_He4_to_n_Cu59_derived(T& rate_eval, const tf_t& tfactors, const amrex::Real log_scor, const amrex::Real dlog_scor_dT, [[maybe_unused]] part_fun::pf_cache_t& pf_cache) { + + // Co56 + He4 --> n + Cu59 + + amrex::Real rate{}, drate_dT{}; + // Evaluate partition function terms + + amrex::Real n_log_pf, dn_log_pf_dT9; + + // setting n log(partition function) to 0.0 by default, independent of T + n_log_pf = 0.0_rt; + dn_log_pf_dT9 = 0.0_rt; + + amrex::Real Cu59_log_pf, dCu59_log_pf_dT9; + + // interpolating Cu59 partition function + get_partition_function_cached(Cu59, tfactors.T9, pf_cache, Cu59_log_pf, dCu59_log_pf_dT9); + + amrex::Real He4_log_pf, dHe4_log_pf_dT9; + + // setting He4 log(partition function) to 0.0 by default, independent of T + He4_log_pf = 0.0_rt; + dHe4_log_pf_dT9 = 0.0_rt; + + amrex::Real Co56_log_pf, dCo56_log_pf_dT9; + + // interpolating Co56 partition function + get_partition_function_cached(Co56, tfactors.T9, pf_cache, Co56_log_pf, dCo56_log_pf_dT9); + + amrex::Real net_log_pf = n_log_pf + Cu59_log_pf - He4_log_pf - Co56_log_pf; + [[maybe_unused]] amrex::Real net_dlog_pf_dT9 = dn_log_pf_dT9 + dCu59_log_pf_dT9 - dHe4_log_pf_dT9 - dCo56_log_pf_dT9; + + amrex::Real ln_set_rate{0.0}; + amrex::Real dln_set_rate_dT9{0.0}; + amrex::Real set_rate{0.0}; + + // ReacLib set derived from ths8r + ln_set_rate = 8.911918754289905 + -61.8335402370445 * tfactors.T9i + -1.00882 * tfactors.T913 + + 1.88993 * tfactors.T9 + -0.202319 * tfactors.T953; + + ln_set_rate += net_log_pf; + ln_set_rate += log_scor; + + if constexpr (std::is_same_v) { + dln_set_rate_dT9 = 61.8335402370445 * tfactors.T9i * tfactors.T9i + (1.0/3.0) * -1.00882 * tfactors.T923i + + 1.88993 + (5.0/3.0) * -0.202319 * tfactors.T923; + + dln_set_rate_dT9 += net_dlog_pf_dT9; + dln_set_rate_dT9 += dlog_scor_dT * 1.0e9_rt; + } + + // avoid underflows by zeroing rates in [0.0, 1.e-100] + ln_set_rate = std::max(ln_set_rate, -230.0); + set_rate = std::exp(ln_set_rate); + rate += set_rate; + if constexpr (std::is_same_v) { + if (ln_set_rate > -230.0_rt) { + drate_dT += set_rate * dln_set_rate_dT9 * 1.0e-9_rt; + } + } + + rate_eval.screened_rates(k_Co56_He4_to_n_Cu59_derived) = rate; + if constexpr (std::is_same_v) { + rate_eval.dscreened_rates_dT(k_Co56_He4_to_n_Cu59_derived) = drate_dT; + } + } + + template + AMREX_GPU_DEVICE AMREX_INLINE + void rate_Ni56_p_to_He4_Co53_derived(T& rate_eval, const tf_t& tfactors, const amrex::Real log_scor, const amrex::Real dlog_scor_dT, [[maybe_unused]] part_fun::pf_cache_t& pf_cache) { + + // Ni56 + p --> He4 + Co53 + + amrex::Real rate{}, drate_dT{}; + // Evaluate partition function terms + + amrex::Real p_log_pf, dp_log_pf_dT9; + + // setting p log(partition function) to 0.0 by default, independent of T + p_log_pf = 0.0_rt; + dp_log_pf_dT9 = 0.0_rt; + + amrex::Real Co53_log_pf, dCo53_log_pf_dT9; + + // interpolating Co53 partition function + get_partition_function_cached(Co53, tfactors.T9, pf_cache, Co53_log_pf, dCo53_log_pf_dT9); + + amrex::Real He4_log_pf, dHe4_log_pf_dT9; + + // setting He4 log(partition function) to 0.0 by default, independent of T + He4_log_pf = 0.0_rt; + dHe4_log_pf_dT9 = 0.0_rt; + + amrex::Real Ni56_log_pf, dNi56_log_pf_dT9; + + // interpolating Ni56 partition function + get_partition_function_cached(Ni56, tfactors.T9, pf_cache, Ni56_log_pf, dNi56_log_pf_dT9); + + amrex::Real net_log_pf = He4_log_pf + Co53_log_pf - p_log_pf - Ni56_log_pf; + [[maybe_unused]] amrex::Real net_dlog_pf_dT9 = dHe4_log_pf_dT9 + dCo53_log_pf_dT9 - dp_log_pf_dT9 - dNi56_log_pf_dT9; + + amrex::Real ln_set_rate{0.0}; + amrex::Real dln_set_rate_dT9{0.0}; + amrex::Real set_rate{0.0}; + + // ReacLib set derived from ths8r + ln_set_rate = 67.61201006170074 + -74.08492409178784 * tfactors.T9i + -94.0605 * tfactors.T913i + -1.48203 * tfactors.T913 + + -0.476442 * tfactors.T9 + 0.00631587 * tfactors.T953 + -0.666667 * tfactors.lnT9; + + ln_set_rate += net_log_pf; + ln_set_rate += log_scor; + + if constexpr (std::is_same_v) { + dln_set_rate_dT9 = 74.08492409178784 * tfactors.T9i * tfactors.T9i + -(1.0/3.0) * -94.0605 * tfactors.T943i + (1.0/3.0) * -1.48203 * tfactors.T923i + + -0.476442 + (5.0/3.0) * 0.00631587 * tfactors.T923 + -0.666667 * tfactors.T9i; + + dln_set_rate_dT9 += net_dlog_pf_dT9; + dln_set_rate_dT9 += dlog_scor_dT * 1.0e9_rt; + } + + // avoid underflows by zeroing rates in [0.0, 1.e-100] + ln_set_rate = std::max(ln_set_rate, -230.0); + set_rate = std::exp(ln_set_rate); + rate += set_rate; + if constexpr (std::is_same_v) { + if (ln_set_rate > -230.0_rt) { + drate_dT += set_rate * dln_set_rate_dT9 * 1.0e-9_rt; + } + } + + rate_eval.screened_rates(k_Ni56_p_to_He4_Co53_derived) = rate; + if constexpr (std::is_same_v) { + rate_eval.dscreened_rates_dT(k_Ni56_p_to_He4_Co53_derived) = drate_dT; + } + } + + template + AMREX_GPU_DEVICE AMREX_INLINE + void rate_Ni56_He4_to_p_Cu59_derived(T& rate_eval, const tf_t& tfactors, const amrex::Real log_scor, const amrex::Real dlog_scor_dT, [[maybe_unused]] part_fun::pf_cache_t& pf_cache) { + + // Ni56 + He4 --> p + Cu59 + + amrex::Real rate{}, drate_dT{}; + // Evaluate partition function terms + + amrex::Real Cu59_log_pf, dCu59_log_pf_dT9; + + // interpolating Cu59 partition function + get_partition_function_cached(Cu59, tfactors.T9, pf_cache, Cu59_log_pf, dCu59_log_pf_dT9); + + amrex::Real Ni56_log_pf, dNi56_log_pf_dT9; + + // interpolating Ni56 partition function + get_partition_function_cached(Ni56, tfactors.T9, pf_cache, Ni56_log_pf, dNi56_log_pf_dT9); + + amrex::Real p_log_pf, dp_log_pf_dT9; + + // setting p log(partition function) to 0.0 by default, independent of T + p_log_pf = 0.0_rt; + dp_log_pf_dT9 = 0.0_rt; + + amrex::Real He4_log_pf, dHe4_log_pf_dT9; + + // setting He4 log(partition function) to 0.0 by default, independent of T + He4_log_pf = 0.0_rt; + dHe4_log_pf_dT9 = 0.0_rt; + + amrex::Real net_log_pf = p_log_pf + Cu59_log_pf - He4_log_pf - Ni56_log_pf; + [[maybe_unused]] amrex::Real net_dlog_pf_dT9 = dp_log_pf_dT9 + dCu59_log_pf_dT9 - dHe4_log_pf_dT9 - dNi56_log_pf_dT9; + + amrex::Real ln_set_rate{0.0}; + amrex::Real dln_set_rate_dT9{0.0}; + amrex::Real set_rate{0.0}; + + // ReacLib set derived from ths8r + ln_set_rate = 20.864958462504486 + -28.003503178913892 * tfactors.T9i + -39.9808 * tfactors.T913i + 13.6773 * tfactors.T913 + + -3.76429 * tfactors.T9 + 0.438096 * tfactors.T953 + -0.666667 * tfactors.lnT9; + + ln_set_rate += net_log_pf; + ln_set_rate += log_scor; + + if constexpr (std::is_same_v) { + dln_set_rate_dT9 = 28.003503178913892 * tfactors.T9i * tfactors.T9i + -(1.0/3.0) * -39.9808 * tfactors.T943i + (1.0/3.0) * 13.6773 * tfactors.T923i + + -3.76429 + (5.0/3.0) * 0.438096 * tfactors.T923 + -0.666667 * tfactors.T9i; + + dln_set_rate_dT9 += net_dlog_pf_dT9; + dln_set_rate_dT9 += dlog_scor_dT * 1.0e9_rt; + } + + // avoid underflows by zeroing rates in [0.0, 1.e-100] + ln_set_rate = std::max(ln_set_rate, -230.0); + set_rate = std::exp(ln_set_rate); + rate += set_rate; + if constexpr (std::is_same_v) { + if (ln_set_rate > -230.0_rt) { + drate_dT += set_rate * dln_set_rate_dT9 * 1.0e-9_rt; + } + } + + rate_eval.screened_rates(k_Ni56_He4_to_p_Cu59_derived) = rate; + if constexpr (std::is_same_v) { + rate_eval.dscreened_rates_dT(k_Ni56_He4_to_p_Cu59_derived) = drate_dT; + } + } + + template + AMREX_GPU_DEVICE AMREX_INLINE + void rate_Ni58_p_to_He4_Co55_derived(T& rate_eval, const tf_t& tfactors, const amrex::Real log_scor, const amrex::Real dlog_scor_dT, [[maybe_unused]] part_fun::pf_cache_t& pf_cache) { + + // Ni58 + p --> He4 + Co55 + + amrex::Real rate{}, drate_dT{}; + // Evaluate partition function terms + + amrex::Real p_log_pf, dp_log_pf_dT9; + + // setting p log(partition function) to 0.0 by default, independent of T + p_log_pf = 0.0_rt; + dp_log_pf_dT9 = 0.0_rt; + + amrex::Real He4_log_pf, dHe4_log_pf_dT9; + + // setting He4 log(partition function) to 0.0 by default, independent of T + He4_log_pf = 0.0_rt; + dHe4_log_pf_dT9 = 0.0_rt; + + amrex::Real Co55_log_pf, dCo55_log_pf_dT9; + + // interpolating Co55 partition function + get_partition_function_cached(Co55, tfactors.T9, pf_cache, Co55_log_pf, dCo55_log_pf_dT9); + + amrex::Real Ni58_log_pf, dNi58_log_pf_dT9; + + // interpolating Ni58 partition function + get_partition_function_cached(Ni58, tfactors.T9, pf_cache, Ni58_log_pf, dNi58_log_pf_dT9); + + amrex::Real net_log_pf = He4_log_pf + Co55_log_pf - p_log_pf - Ni58_log_pf; + [[maybe_unused]] amrex::Real net_dlog_pf_dT9 = dHe4_log_pf_dT9 + dCo55_log_pf_dT9 - dp_log_pf_dT9 - dNi58_log_pf_dT9; + + amrex::Real ln_set_rate{0.0}; + amrex::Real dln_set_rate_dT9{0.0}; + amrex::Real set_rate{0.0}; + + // ReacLib set derived from ths8r + ln_set_rate = 63.596461867482006 + -15.490230740645051 * tfactors.T9i + -94.1404 * tfactors.T913i + 3.39179 * tfactors.T913 + + -1.71062 * tfactors.T9 + 0.133003 * tfactors.T953 + -0.666667 * tfactors.lnT9; + + ln_set_rate += net_log_pf; + ln_set_rate += log_scor; + + if constexpr (std::is_same_v) { + dln_set_rate_dT9 = 15.490230740645051 * tfactors.T9i * tfactors.T9i + -(1.0/3.0) * -94.1404 * tfactors.T943i + (1.0/3.0) * 3.39179 * tfactors.T923i + + -1.71062 + (5.0/3.0) * 0.133003 * tfactors.T923 + -0.666667 * tfactors.T9i; + + dln_set_rate_dT9 += net_dlog_pf_dT9; + dln_set_rate_dT9 += dlog_scor_dT * 1.0e9_rt; + } + + // avoid underflows by zeroing rates in [0.0, 1.e-100] + ln_set_rate = std::max(ln_set_rate, -230.0); + set_rate = std::exp(ln_set_rate); + rate += set_rate; + if constexpr (std::is_same_v) { + if (ln_set_rate > -230.0_rt) { + drate_dT += set_rate * dln_set_rate_dT9 * 1.0e-9_rt; + } + } + + rate_eval.screened_rates(k_Ni58_p_to_He4_Co55_derived) = rate; + if constexpr (std::is_same_v) { + rate_eval.dscreened_rates_dT(k_Ni58_p_to_He4_Co55_derived) = drate_dT; + } + } + + template + AMREX_GPU_DEVICE AMREX_INLINE + void rate_Ni57_to_n_Ni56_derived(T& rate_eval, const tf_t& tfactors, [[maybe_unused]] part_fun::pf_cache_t& pf_cache) { + + // Ni57 --> n + Ni56 + + amrex::Real rate{}, drate_dT{}; + // Evaluate partition function terms + + amrex::Real n_log_pf, dn_log_pf_dT9; + + // setting n log(partition function) to 0.0 by default, independent of T + n_log_pf = 0.0_rt; + dn_log_pf_dT9 = 0.0_rt; + + amrex::Real Ni56_log_pf, dNi56_log_pf_dT9; + + // interpolating Ni56 partition function + get_partition_function_cached(Ni56, tfactors.T9, pf_cache, Ni56_log_pf, dNi56_log_pf_dT9); + + amrex::Real Ni57_log_pf, dNi57_log_pf_dT9; + + // interpolating Ni57 partition function + get_partition_function_cached(Ni57, tfactors.T9, pf_cache, Ni57_log_pf, dNi57_log_pf_dT9); + + amrex::Real net_log_pf = n_log_pf + Ni56_log_pf - Ni57_log_pf; + [[maybe_unused]] amrex::Real net_dlog_pf_dT9 = dn_log_pf_dT9 + dNi56_log_pf_dT9 - dNi57_log_pf_dT9; + + amrex::Real ln_set_rate{0.0}; + amrex::Real dln_set_rate_dT9{0.0}; + amrex::Real set_rate{0.0}; + + // ReacLib set derived from ths8r + ln_set_rate = 38.391039283996996 + -118.91983039605458 * tfactors.T9i + -1.19665 * tfactors.T913 + + 0.507179 * tfactors.T9 + -0.074604 * tfactors.T953 + 1.5 * tfactors.lnT9; + + ln_set_rate += net_log_pf; + + if constexpr (std::is_same_v) { + dln_set_rate_dT9 = 118.91983039605458 * tfactors.T9i * tfactors.T9i + (1.0/3.0) * -1.19665 * tfactors.T923i + + 0.507179 + (5.0/3.0) * -0.074604 * tfactors.T923 + 1.5 * tfactors.T9i; + + dln_set_rate_dT9 += net_dlog_pf_dT9; + } + + // avoid underflows by zeroing rates in [0.0, 1.e-100] + ln_set_rate = std::max(ln_set_rate, -230.0); + set_rate = std::exp(ln_set_rate); + rate += set_rate; + if constexpr (std::is_same_v) { + if (ln_set_rate > -230.0_rt) { + drate_dT += set_rate * dln_set_rate_dT9 * 1.0e-9_rt; + } + } + + rate_eval.screened_rates(k_Ni57_to_n_Ni56_derived) = rate; + if constexpr (std::is_same_v) { + rate_eval.dscreened_rates_dT(k_Ni57_to_n_Ni56_derived) = drate_dT; + } + } + + template + AMREX_GPU_DEVICE AMREX_INLINE + void rate_Ni58_to_n_Ni57_derived(T& rate_eval, const tf_t& tfactors, [[maybe_unused]] part_fun::pf_cache_t& pf_cache) { + + // Ni58 --> n + Ni57 + + amrex::Real rate{}, drate_dT{}; + // Evaluate partition function terms + + amrex::Real n_log_pf, dn_log_pf_dT9; + + // setting n log(partition function) to 0.0 by default, independent of T + n_log_pf = 0.0_rt; + dn_log_pf_dT9 = 0.0_rt; + + amrex::Real Ni57_log_pf, dNi57_log_pf_dT9; + + // interpolating Ni57 partition function + get_partition_function_cached(Ni57, tfactors.T9, pf_cache, Ni57_log_pf, dNi57_log_pf_dT9); + + amrex::Real Ni58_log_pf, dNi58_log_pf_dT9; + + // interpolating Ni58 partition function + get_partition_function_cached(Ni58, tfactors.T9, pf_cache, Ni58_log_pf, dNi58_log_pf_dT9); + + amrex::Real net_log_pf = n_log_pf + Ni57_log_pf - Ni58_log_pf; + [[maybe_unused]] amrex::Real net_dlog_pf_dT9 = dn_log_pf_dT9 + dNi57_log_pf_dT9 - dNi58_log_pf_dT9; + + amrex::Real ln_set_rate{0.0}; + amrex::Real dln_set_rate_dT9{0.0}; + amrex::Real set_rate{0.0}; + + // ReacLib set derived from ths8r + ln_set_rate = 42.36077897558323 + -141.76332431826057 * tfactors.T9i + -1.90814 * tfactors.T913 + + 0.493188 * tfactors.T9 + -0.0684633 * tfactors.T953 + 1.5 * tfactors.lnT9; + + ln_set_rate += net_log_pf; + + if constexpr (std::is_same_v) { + dln_set_rate_dT9 = 141.76332431826057 * tfactors.T9i * tfactors.T9i + (1.0/3.0) * -1.90814 * tfactors.T923i + + 0.493188 + (5.0/3.0) * -0.0684633 * tfactors.T923 + 1.5 * tfactors.T9i; + + dln_set_rate_dT9 += net_dlog_pf_dT9; + } + + // avoid underflows by zeroing rates in [0.0, 1.e-100] + ln_set_rate = std::max(ln_set_rate, -230.0); + set_rate = std::exp(ln_set_rate); + rate += set_rate; + if constexpr (std::is_same_v) { + if (ln_set_rate > -230.0_rt) { + drate_dT += set_rate * dln_set_rate_dT9 * 1.0e-9_rt; + } + } + + rate_eval.screened_rates(k_Ni58_to_n_Ni57_derived) = rate; + if constexpr (std::is_same_v) { + rate_eval.dscreened_rates_dT(k_Ni58_to_n_Ni57_derived) = drate_dT; + } + } + + template + AMREX_GPU_DEVICE AMREX_INLINE + void rate_Co54_to_n_Co53_derived(T& rate_eval, const tf_t& tfactors, [[maybe_unused]] part_fun::pf_cache_t& pf_cache) { + + // Co54 --> n + Co53 + + amrex::Real rate{}, drate_dT{}; + // Evaluate partition function terms + + amrex::Real n_log_pf, dn_log_pf_dT9; + + // setting n log(partition function) to 0.0 by default, independent of T + n_log_pf = 0.0_rt; + dn_log_pf_dT9 = 0.0_rt; + + amrex::Real Co53_log_pf, dCo53_log_pf_dT9; + + // interpolating Co53 partition function + get_partition_function_cached(Co53, tfactors.T9, pf_cache, Co53_log_pf, dCo53_log_pf_dT9); + + amrex::Real Co54_log_pf, dCo54_log_pf_dT9; + + // interpolating Co54 partition function + get_partition_function_cached(Co54, tfactors.T9, pf_cache, Co54_log_pf, dCo54_log_pf_dT9); + + amrex::Real net_log_pf = n_log_pf + Co53_log_pf - Co54_log_pf; + [[maybe_unused]] amrex::Real net_dlog_pf_dT9 = dn_log_pf_dT9 + dCo53_log_pf_dT9 - dCo54_log_pf_dT9; + + amrex::Real ln_set_rate{0.0}; + amrex::Real dln_set_rate_dT9{0.0}; + amrex::Real set_rate{0.0}; + + // ReacLib set derived from ths8r + ln_set_rate = 36.98265527996963 + -155.75605226924756 * tfactors.T9i + -1.14795 * tfactors.T913 + + 0.413083 * tfactors.T9 + -0.0515627 * tfactors.T953 + 1.5 * tfactors.lnT9; + + ln_set_rate += net_log_pf; + + if constexpr (std::is_same_v) { + dln_set_rate_dT9 = 155.75605226924756 * tfactors.T9i * tfactors.T9i + (1.0/3.0) * -1.14795 * tfactors.T923i + + 0.413083 + (5.0/3.0) * -0.0515627 * tfactors.T923 + 1.5 * tfactors.T9i; + + dln_set_rate_dT9 += net_dlog_pf_dT9; + } + + // avoid underflows by zeroing rates in [0.0, 1.e-100] + ln_set_rate = std::max(ln_set_rate, -230.0); + set_rate = std::exp(ln_set_rate); + rate += set_rate; + if constexpr (std::is_same_v) { + if (ln_set_rate > -230.0_rt) { + drate_dT += set_rate * dln_set_rate_dT9 * 1.0e-9_rt; + } + } + + rate_eval.screened_rates(k_Co54_to_n_Co53_derived) = rate; + if constexpr (std::is_same_v) { + rate_eval.dscreened_rates_dT(k_Co54_to_n_Co53_derived) = drate_dT; + } + } + + template + AMREX_GPU_DEVICE AMREX_INLINE + void rate_Co55_to_n_Co54_derived(T& rate_eval, const tf_t& tfactors, [[maybe_unused]] part_fun::pf_cache_t& pf_cache) { + + // Co55 --> n + Co54 + + amrex::Real rate{}, drate_dT{}; + // Evaluate partition function terms + + amrex::Real n_log_pf, dn_log_pf_dT9; + + // setting n log(partition function) to 0.0 by default, independent of T + n_log_pf = 0.0_rt; + dn_log_pf_dT9 = 0.0_rt; + + amrex::Real Co54_log_pf, dCo54_log_pf_dT9; + + // interpolating Co54 partition function + get_partition_function_cached(Co54, tfactors.T9, pf_cache, Co54_log_pf, dCo54_log_pf_dT9); + + amrex::Real Co55_log_pf, dCo55_log_pf_dT9; + + // interpolating Co55 partition function + get_partition_function_cached(Co55, tfactors.T9, pf_cache, Co55_log_pf, dCo55_log_pf_dT9); + + amrex::Real net_log_pf = n_log_pf + Co54_log_pf - Co55_log_pf; + [[maybe_unused]] amrex::Real net_dlog_pf_dT9 = dn_log_pf_dT9 + dCo54_log_pf_dT9 - dCo55_log_pf_dT9; + + amrex::Real ln_set_rate{0.0}; + amrex::Real dln_set_rate_dT9{0.0}; + amrex::Real set_rate{0.0}; + + // ReacLib set derived from ths8r + ln_set_rate = 35.99671117382933 + -163.52179579618158 * tfactors.T9i + 0.433187 * tfactors.T913 + + 0.0888642 * tfactors.T9 + -0.0315521 * tfactors.T953 + 1.5 * tfactors.lnT9; + + ln_set_rate += net_log_pf; + + if constexpr (std::is_same_v) { + dln_set_rate_dT9 = 163.52179579618158 * tfactors.T9i * tfactors.T9i + (1.0/3.0) * 0.433187 * tfactors.T923i + + 0.0888642 + (5.0/3.0) * -0.0315521 * tfactors.T923 + 1.5 * tfactors.T9i; + + dln_set_rate_dT9 += net_dlog_pf_dT9; + } + + // avoid underflows by zeroing rates in [0.0, 1.e-100] + ln_set_rate = std::max(ln_set_rate, -230.0); + set_rate = std::exp(ln_set_rate); + rate += set_rate; + if constexpr (std::is_same_v) { + if (ln_set_rate > -230.0_rt) { + drate_dT += set_rate * dln_set_rate_dT9 * 1.0e-9_rt; + } + } + + rate_eval.screened_rates(k_Co55_to_n_Co54_derived) = rate; + if constexpr (std::is_same_v) { + rate_eval.dscreened_rates_dT(k_Co55_to_n_Co54_derived) = drate_dT; + } + } + + template + AMREX_GPU_DEVICE AMREX_INLINE + void rate_Fe51_to_n_Fe50_derived(T& rate_eval, const tf_t& tfactors, [[maybe_unused]] part_fun::pf_cache_t& pf_cache) { + + // Fe51 --> n + Fe50 + + amrex::Real rate{}, drate_dT{}; + // Evaluate partition function terms + + amrex::Real n_log_pf, dn_log_pf_dT9; + + // setting n log(partition function) to 0.0 by default, independent of T + n_log_pf = 0.0_rt; + dn_log_pf_dT9 = 0.0_rt; + + amrex::Real Fe50_log_pf, dFe50_log_pf_dT9; + + // interpolating Fe50 partition function + get_partition_function_cached(Fe50, tfactors.T9, pf_cache, Fe50_log_pf, dFe50_log_pf_dT9); + + amrex::Real Fe51_log_pf, dFe51_log_pf_dT9; + + // interpolating Fe51 partition function + get_partition_function_cached(Fe51, tfactors.T9, pf_cache, Fe51_log_pf, dFe51_log_pf_dT9); + + amrex::Real net_log_pf = n_log_pf + Fe50_log_pf - Fe51_log_pf; + [[maybe_unused]] amrex::Real net_dlog_pf_dT9 = dn_log_pf_dT9 + dFe50_log_pf_dT9 - dFe51_log_pf_dT9; + + amrex::Real ln_set_rate{0.0}; + amrex::Real dln_set_rate_dT9{0.0}; + amrex::Real set_rate{0.0}; + + // ReacLib set derived from ths8r + ln_set_rate = 35.13682696994766 + -159.96269008828872 * tfactors.T9i + -1.43737 * tfactors.T913 + + 0.511909 * tfactors.T9 + -0.0531273 * tfactors.T953 + 1.5 * tfactors.lnT9; + + ln_set_rate += net_log_pf; + + if constexpr (std::is_same_v) { + dln_set_rate_dT9 = 159.96269008828872 * tfactors.T9i * tfactors.T9i + (1.0/3.0) * -1.43737 * tfactors.T923i + + 0.511909 + (5.0/3.0) * -0.0531273 * tfactors.T923 + 1.5 * tfactors.T9i; + + dln_set_rate_dT9 += net_dlog_pf_dT9; + } + + // avoid underflows by zeroing rates in [0.0, 1.e-100] + ln_set_rate = std::max(ln_set_rate, -230.0); + set_rate = std::exp(ln_set_rate); + rate += set_rate; + if constexpr (std::is_same_v) { + if (ln_set_rate > -230.0_rt) { + drate_dT += set_rate * dln_set_rate_dT9 * 1.0e-9_rt; + } + } + + rate_eval.screened_rates(k_Fe51_to_n_Fe50_derived) = rate; + if constexpr (std::is_same_v) { + rate_eval.dscreened_rates_dT(k_Fe51_to_n_Fe50_derived) = drate_dT; + } + } + + template + AMREX_GPU_DEVICE AMREX_INLINE + void rate_Fe52_to_n_Fe51_derived(T& rate_eval, const tf_t& tfactors, [[maybe_unused]] part_fun::pf_cache_t& pf_cache) { + + // Fe52 --> n + Fe51 + + amrex::Real rate{}, drate_dT{}; + // Evaluate partition function terms + + amrex::Real n_log_pf, dn_log_pf_dT9; + + // setting n log(partition function) to 0.0 by default, independent of T + n_log_pf = 0.0_rt; + dn_log_pf_dT9 = 0.0_rt; + + amrex::Real Fe51_log_pf, dFe51_log_pf_dT9; + + // interpolating Fe51 partition function + get_partition_function_cached(Fe51, tfactors.T9, pf_cache, Fe51_log_pf, dFe51_log_pf_dT9); + + amrex::Real Fe52_log_pf, dFe52_log_pf_dT9; + + // interpolating Fe52 partition function + get_partition_function_cached(Fe52, tfactors.T9, pf_cache, Fe52_log_pf, dFe52_log_pf_dT9); + + amrex::Real net_log_pf = n_log_pf + Fe51_log_pf - Fe52_log_pf; + [[maybe_unused]] amrex::Real net_dlog_pf_dT9 = dn_log_pf_dT9 + dFe51_log_pf_dT9 - dFe52_log_pf_dT9; + + amrex::Real ln_set_rate{0.0}; + amrex::Real dln_set_rate_dT9{0.0}; + amrex::Real set_rate{0.0}; + + // ReacLib set derived from ths8r + ln_set_rate = 36.49553809630894 + -188.15818776827444 * tfactors.T9i + -0.566649 * tfactors.T913 + + 0.19001 * tfactors.T9 + -0.0219395 * tfactors.T953 + 1.5 * tfactors.lnT9; + + ln_set_rate += net_log_pf; + + if constexpr (std::is_same_v) { + dln_set_rate_dT9 = 188.15818776827444 * tfactors.T9i * tfactors.T9i + (1.0/3.0) * -0.566649 * tfactors.T923i + + 0.19001 + (5.0/3.0) * -0.0219395 * tfactors.T923 + 1.5 * tfactors.T9i; + + dln_set_rate_dT9 += net_dlog_pf_dT9; + } + + // avoid underflows by zeroing rates in [0.0, 1.e-100] + ln_set_rate = std::max(ln_set_rate, -230.0); + set_rate = std::exp(ln_set_rate); + rate += set_rate; + if constexpr (std::is_same_v) { + if (ln_set_rate > -230.0_rt) { + drate_dT += set_rate * dln_set_rate_dT9 * 1.0e-9_rt; + } + } + + rate_eval.screened_rates(k_Fe52_to_n_Fe51_derived) = rate; + if constexpr (std::is_same_v) { + rate_eval.dscreened_rates_dT(k_Fe52_to_n_Fe51_derived) = drate_dT; + } + } + + template + AMREX_GPU_DEVICE AMREX_INLINE + void rate_Fe53_to_n_Fe52_derived(T& rate_eval, const tf_t& tfactors, [[maybe_unused]] part_fun::pf_cache_t& pf_cache) { + + // Fe53 --> n + Fe52 + + amrex::Real rate{}, drate_dT{}; + // Evaluate partition function terms + + amrex::Real n_log_pf, dn_log_pf_dT9; + + // setting n log(partition function) to 0.0 by default, independent of T + n_log_pf = 0.0_rt; + dn_log_pf_dT9 = 0.0_rt; + + amrex::Real Fe52_log_pf, dFe52_log_pf_dT9; + + // interpolating Fe52 partition function + get_partition_function_cached(Fe52, tfactors.T9, pf_cache, Fe52_log_pf, dFe52_log_pf_dT9); + + amrex::Real Fe53_log_pf, dFe53_log_pf_dT9; + + // interpolating Fe53 partition function + get_partition_function_cached(Fe53, tfactors.T9, pf_cache, Fe53_log_pf, dFe53_log_pf_dT9); + + amrex::Real net_log_pf = n_log_pf + Fe52_log_pf - Fe53_log_pf; + [[maybe_unused]] amrex::Real net_dlog_pf_dT9 = dn_log_pf_dT9 + dFe52_log_pf_dT9 - dFe53_log_pf_dT9; + + amrex::Real ln_set_rate{0.0}; + amrex::Real dln_set_rate_dT9{0.0}; + amrex::Real set_rate{0.0}; + + // ReacLib set derived from ths8r + ln_set_rate = 37.50789742709652 + -124.01421385132892 * tfactors.T9i + -0.344319 * tfactors.T913 + + 0.178277 * tfactors.T9 + -0.0334326 * tfactors.T953 + 1.5 * tfactors.lnT9; + + ln_set_rate += net_log_pf; + + if constexpr (std::is_same_v) { + dln_set_rate_dT9 = 124.01421385132892 * tfactors.T9i * tfactors.T9i + (1.0/3.0) * -0.344319 * tfactors.T923i + + 0.178277 + (5.0/3.0) * -0.0334326 * tfactors.T923 + 1.5 * tfactors.T9i; + + dln_set_rate_dT9 += net_dlog_pf_dT9; + } + + // avoid underflows by zeroing rates in [0.0, 1.e-100] + ln_set_rate = std::max(ln_set_rate, -230.0); + set_rate = std::exp(ln_set_rate); + rate += set_rate; + if constexpr (std::is_same_v) { + if (ln_set_rate > -230.0_rt) { + drate_dT += set_rate * dln_set_rate_dT9 * 1.0e-9_rt; + } + } + + rate_eval.screened_rates(k_Fe53_to_n_Fe52_derived) = rate; + if constexpr (std::is_same_v) { + rate_eval.dscreened_rates_dT(k_Fe53_to_n_Fe52_derived) = drate_dT; + } + } + + template + AMREX_GPU_DEVICE AMREX_INLINE + void rate_Fe54_to_n_Fe53_derived(T& rate_eval, const tf_t& tfactors, [[maybe_unused]] part_fun::pf_cache_t& pf_cache) { + + // Fe54 --> n + Fe53 + + amrex::Real rate{}, drate_dT{}; + // Evaluate partition function terms + + amrex::Real n_log_pf, dn_log_pf_dT9; + + // setting n log(partition function) to 0.0 by default, independent of T + n_log_pf = 0.0_rt; + dn_log_pf_dT9 = 0.0_rt; + + amrex::Real Fe53_log_pf, dFe53_log_pf_dT9; + + // interpolating Fe53 partition function + get_partition_function_cached(Fe53, tfactors.T9, pf_cache, Fe53_log_pf, dFe53_log_pf_dT9); + + amrex::Real Fe54_log_pf, dFe54_log_pf_dT9; + + // interpolating Fe54 partition function + get_partition_function_cached(Fe54, tfactors.T9, pf_cache, Fe54_log_pf, dFe54_log_pf_dT9); + + amrex::Real net_log_pf = n_log_pf + Fe53_log_pf - Fe54_log_pf; + [[maybe_unused]] amrex::Real net_dlog_pf_dT9 = dn_log_pf_dT9 + dFe53_log_pf_dT9 - dFe54_log_pf_dT9; + + amrex::Real ln_set_rate{0.0}; + amrex::Real dln_set_rate_dT9{0.0}; + amrex::Real set_rate{0.0}; + + // ReacLib set derived from ths8r + ln_set_rate = 42.23234536763494 + -155.25009527915816 * tfactors.T9i + -1.10421 * tfactors.T913 + + 0.379905 * tfactors.T9 + -0.0581878 * tfactors.T953 + 1.5 * tfactors.lnT9; + + ln_set_rate += net_log_pf; + + if constexpr (std::is_same_v) { + dln_set_rate_dT9 = 155.25009527915816 * tfactors.T9i * tfactors.T9i + (1.0/3.0) * -1.10421 * tfactors.T923i + + 0.379905 + (5.0/3.0) * -0.0581878 * tfactors.T923 + 1.5 * tfactors.T9i; + + dln_set_rate_dT9 += net_dlog_pf_dT9; + } + + // avoid underflows by zeroing rates in [0.0, 1.e-100] + ln_set_rate = std::max(ln_set_rate, -230.0); + set_rate = std::exp(ln_set_rate); + rate += set_rate; + if constexpr (std::is_same_v) { + if (ln_set_rate > -230.0_rt) { + drate_dT += set_rate * dln_set_rate_dT9 * 1.0e-9_rt; + } + } + + rate_eval.screened_rates(k_Fe54_to_n_Fe53_derived) = rate; + if constexpr (std::is_same_v) { + rate_eval.dscreened_rates_dT(k_Fe54_to_n_Fe53_derived) = drate_dT; + } + } + + template + AMREX_GPU_DEVICE AMREX_INLINE + void rate_Fe55_to_n_Fe54_derived(T& rate_eval, const tf_t& tfactors, [[maybe_unused]] part_fun::pf_cache_t& pf_cache) { + + // Fe55 --> n + Fe54 + + amrex::Real rate{}, drate_dT{}; + // Evaluate partition function terms + + amrex::Real n_log_pf, dn_log_pf_dT9; + + // setting n log(partition function) to 0.0 by default, independent of T + n_log_pf = 0.0_rt; + dn_log_pf_dT9 = 0.0_rt; + + amrex::Real Fe55_log_pf, dFe55_log_pf_dT9; + + // interpolating Fe55 partition function + get_partition_function_cached(Fe55, tfactors.T9, pf_cache, Fe55_log_pf, dFe55_log_pf_dT9); + + amrex::Real Fe54_log_pf, dFe54_log_pf_dT9; + + // interpolating Fe54 partition function + get_partition_function_cached(Fe54, tfactors.T9, pf_cache, Fe54_log_pf, dFe54_log_pf_dT9); + + amrex::Real net_log_pf = n_log_pf + Fe54_log_pf - Fe55_log_pf; + [[maybe_unused]] amrex::Real net_dlog_pf_dT9 = dn_log_pf_dT9 + dFe54_log_pf_dT9 - dFe55_log_pf_dT9; + + amrex::Real ln_set_rate{0.0}; + amrex::Real dln_set_rate_dT9{0.0}; + amrex::Real set_rate{0.0}; + + // ReacLib set derived from ks03 + ln_set_rate = 21.50487677145662 + -107.84100838776591 * tfactors.T9i + -8.66617 * tfactors.T913i + 26.4472 * tfactors.T913 + + -1.9222 * tfactors.T9 + 0.0986404 * tfactors.T953 + -8.28317 * tfactors.lnT9; + + ln_set_rate += net_log_pf; + + if constexpr (std::is_same_v) { + dln_set_rate_dT9 = 107.84100838776591 * tfactors.T9i * tfactors.T9i + -(1.0/3.0) * -8.66617 * tfactors.T943i + (1.0/3.0) * 26.4472 * tfactors.T923i + + -1.9222 + (5.0/3.0) * 0.0986404 * tfactors.T923 + -8.28317 * tfactors.T9i; + + dln_set_rate_dT9 += net_dlog_pf_dT9; + } + + // avoid underflows by zeroing rates in [0.0, 1.e-100] + ln_set_rate = std::max(ln_set_rate, -230.0); + set_rate = std::exp(ln_set_rate); + rate += set_rate; + if constexpr (std::is_same_v) { + if (ln_set_rate > -230.0_rt) { + drate_dT += set_rate * dln_set_rate_dT9 * 1.0e-9_rt; + } + } + + rate_eval.screened_rates(k_Fe55_to_n_Fe54_derived) = rate; + if constexpr (std::is_same_v) { + rate_eval.dscreened_rates_dT(k_Fe55_to_n_Fe54_derived) = drate_dT; + } + } + + template + AMREX_GPU_DEVICE AMREX_INLINE + void rate_Fe56_to_n_Fe55_derived(T& rate_eval, const tf_t& tfactors, [[maybe_unused]] part_fun::pf_cache_t& pf_cache) { + + // Fe56 --> n + Fe55 + + amrex::Real rate{}, drate_dT{}; + // Evaluate partition function terms + + amrex::Real n_log_pf, dn_log_pf_dT9; + + // setting n log(partition function) to 0.0 by default, independent of T + n_log_pf = 0.0_rt; + dn_log_pf_dT9 = 0.0_rt; + + amrex::Real Fe56_log_pf, dFe56_log_pf_dT9; + + // interpolating Fe56 partition function + get_partition_function_cached(Fe56, tfactors.T9, pf_cache, Fe56_log_pf, dFe56_log_pf_dT9); + + amrex::Real Fe55_log_pf, dFe55_log_pf_dT9; + + // interpolating Fe55 partition function + get_partition_function_cached(Fe55, tfactors.T9, pf_cache, Fe55_log_pf, dFe55_log_pf_dT9); + + amrex::Real net_log_pf = n_log_pf + Fe55_log_pf - Fe56_log_pf; + [[maybe_unused]] amrex::Real net_dlog_pf_dT9 = dn_log_pf_dT9 + dFe55_log_pf_dT9 - dFe56_log_pf_dT9; + + amrex::Real ln_set_rate{0.0}; + amrex::Real dln_set_rate_dT9{0.0}; + amrex::Real set_rate{0.0}; + + // ReacLib set derived from ks03 + ln_set_rate = 46.806892234523204 + -130.0322634199283 * tfactors.T9i + 8.06062 * tfactors.T913i + -14.4809 * tfactors.T913 + + 0.94252 * tfactors.T9 + -0.0776007 * tfactors.T953 + 7.97093 * tfactors.lnT9; + + ln_set_rate += net_log_pf; + + if constexpr (std::is_same_v) { + dln_set_rate_dT9 = 130.0322634199283 * tfactors.T9i * tfactors.T9i + -(1.0/3.0) * 8.06062 * tfactors.T943i + (1.0/3.0) * -14.4809 * tfactors.T923i + + 0.94252 + (5.0/3.0) * -0.0776007 * tfactors.T923 + 7.97093 * tfactors.T9i; + + dln_set_rate_dT9 += net_dlog_pf_dT9; + } + + // avoid underflows by zeroing rates in [0.0, 1.e-100] + ln_set_rate = std::max(ln_set_rate, -230.0); + set_rate = std::exp(ln_set_rate); + rate += set_rate; + if constexpr (std::is_same_v) { + if (ln_set_rate > -230.0_rt) { + drate_dT += set_rate * dln_set_rate_dT9 * 1.0e-9_rt; + } + } + + rate_eval.screened_rates(k_Fe56_to_n_Fe55_derived) = rate; + if constexpr (std::is_same_v) { + rate_eval.dscreened_rates_dT(k_Fe56_to_n_Fe55_derived) = drate_dT; + } + } + + template + AMREX_GPU_DEVICE AMREX_INLINE + void rate_Mn50_to_n_Mn49_derived(T& rate_eval, const tf_t& tfactors, [[maybe_unused]] part_fun::pf_cache_t& pf_cache) { + + // Mn50 --> n + Mn49 + + amrex::Real rate{}, drate_dT{}; + // Evaluate partition function terms + + amrex::Real n_log_pf, dn_log_pf_dT9; + + // setting n log(partition function) to 0.0 by default, independent of T + n_log_pf = 0.0_rt; + dn_log_pf_dT9 = 0.0_rt; + + amrex::Real Mn50_log_pf, dMn50_log_pf_dT9; + + // interpolating Mn50 partition function + get_partition_function_cached(Mn50, tfactors.T9, pf_cache, Mn50_log_pf, dMn50_log_pf_dT9); + + amrex::Real Mn49_log_pf, dMn49_log_pf_dT9; + + // interpolating Mn49 partition function + get_partition_function_cached(Mn49, tfactors.T9, pf_cache, Mn49_log_pf, dMn49_log_pf_dT9); + + amrex::Real net_log_pf = n_log_pf + Mn49_log_pf - Mn50_log_pf; + [[maybe_unused]] amrex::Real net_dlog_pf_dT9 = dn_log_pf_dT9 + dMn49_log_pf_dT9 - dMn50_log_pf_dT9; + + amrex::Real ln_set_rate{0.0}; + amrex::Real dln_set_rate_dT9{0.0}; + amrex::Real set_rate{0.0}; + + // ReacLib set derived from ths8r + ln_set_rate = 36.75800895729457 + -151.7674633456902 * tfactors.T9i + -0.759512 * tfactors.T913 + + 0.246336 * tfactors.T9 + -0.0261234 * tfactors.T953 + 1.5 * tfactors.lnT9; + + ln_set_rate += net_log_pf; + + if constexpr (std::is_same_v) { + dln_set_rate_dT9 = 151.7674633456902 * tfactors.T9i * tfactors.T9i + (1.0/3.0) * -0.759512 * tfactors.T923i + + 0.246336 + (5.0/3.0) * -0.0261234 * tfactors.T923 + 1.5 * tfactors.T9i; + + dln_set_rate_dT9 += net_dlog_pf_dT9; + } + + // avoid underflows by zeroing rates in [0.0, 1.e-100] + ln_set_rate = std::max(ln_set_rate, -230.0); + set_rate = std::exp(ln_set_rate); + rate += set_rate; + if constexpr (std::is_same_v) { + if (ln_set_rate > -230.0_rt) { + drate_dT += set_rate * dln_set_rate_dT9 * 1.0e-9_rt; + } + } + + rate_eval.screened_rates(k_Mn50_to_n_Mn49_derived) = rate; + if constexpr (std::is_same_v) { + rate_eval.dscreened_rates_dT(k_Mn50_to_n_Mn49_derived) = drate_dT; + } + } + + template + AMREX_GPU_DEVICE AMREX_INLINE + void rate_Mn51_to_n_Mn50_derived(T& rate_eval, const tf_t& tfactors, [[maybe_unused]] part_fun::pf_cache_t& pf_cache) { + + // Mn51 --> n + Mn50 + + amrex::Real rate{}, drate_dT{}; + // Evaluate partition function terms + + amrex::Real n_log_pf, dn_log_pf_dT9; + + // setting n log(partition function) to 0.0 by default, independent of T + n_log_pf = 0.0_rt; + dn_log_pf_dT9 = 0.0_rt; + + amrex::Real Mn50_log_pf, dMn50_log_pf_dT9; + + // interpolating Mn50 partition function + get_partition_function_cached(Mn50, tfactors.T9, pf_cache, Mn50_log_pf, dMn50_log_pf_dT9); + + amrex::Real Mn51_log_pf, dMn51_log_pf_dT9; + + // interpolating Mn51 partition function + get_partition_function_cached(Mn51, tfactors.T9, pf_cache, Mn51_log_pf, dMn51_log_pf_dT9); + + amrex::Real net_log_pf = n_log_pf + Mn50_log_pf - Mn51_log_pf; + [[maybe_unused]] amrex::Real net_dlog_pf_dT9 = dn_log_pf_dT9 + dMn50_log_pf_dT9 - dMn51_log_pf_dT9; + + amrex::Real ln_set_rate{0.0}; + amrex::Real dln_set_rate_dT9{0.0}; + amrex::Real set_rate{0.0}; + + // ReacLib set derived from ths8r + ln_set_rate = 37.34951332478154 + -158.83832832749732 * tfactors.T9i + -0.538879 * tfactors.T913 + + 0.284528 * tfactors.T9 + -0.0459849 * tfactors.T953 + 1.5 * tfactors.lnT9; + + ln_set_rate += net_log_pf; + + if constexpr (std::is_same_v) { + dln_set_rate_dT9 = 158.83832832749732 * tfactors.T9i * tfactors.T9i + (1.0/3.0) * -0.538879 * tfactors.T923i + + 0.284528 + (5.0/3.0) * -0.0459849 * tfactors.T923 + 1.5 * tfactors.T9i; + + dln_set_rate_dT9 += net_dlog_pf_dT9; + } + + // avoid underflows by zeroing rates in [0.0, 1.e-100] + ln_set_rate = std::max(ln_set_rate, -230.0); + set_rate = std::exp(ln_set_rate); + rate += set_rate; + if constexpr (std::is_same_v) { + if (ln_set_rate > -230.0_rt) { + drate_dT += set_rate * dln_set_rate_dT9 * 1.0e-9_rt; + } + } + + rate_eval.screened_rates(k_Mn51_to_n_Mn50_derived) = rate; + if constexpr (std::is_same_v) { + rate_eval.dscreened_rates_dT(k_Mn51_to_n_Mn50_derived) = drate_dT; + } + } + + template + AMREX_GPU_DEVICE AMREX_INLINE + void rate_Mn52_to_n_Mn51_derived(T& rate_eval, const tf_t& tfactors, [[maybe_unused]] part_fun::pf_cache_t& pf_cache) { + + // Mn52 --> n + Mn51 + + amrex::Real rate{}, drate_dT{}; + // Evaluate partition function terms + + amrex::Real n_log_pf, dn_log_pf_dT9; + + // setting n log(partition function) to 0.0 by default, independent of T + n_log_pf = 0.0_rt; + dn_log_pf_dT9 = 0.0_rt; + + amrex::Real Mn51_log_pf, dMn51_log_pf_dT9; + + // interpolating Mn51 partition function + get_partition_function_cached(Mn51, tfactors.T9, pf_cache, Mn51_log_pf, dMn51_log_pf_dT9); + + amrex::Real Mn52_log_pf, dMn52_log_pf_dT9; + + // interpolating Mn52 partition function + get_partition_function_cached(Mn52, tfactors.T9, pf_cache, Mn52_log_pf, dMn52_log_pf_dT9); + + amrex::Real net_log_pf = n_log_pf + Mn51_log_pf - Mn52_log_pf; + [[maybe_unused]] amrex::Real net_dlog_pf_dT9 = dn_log_pf_dT9 + dMn51_log_pf_dT9 - dMn52_log_pf_dT9; + + amrex::Real ln_set_rate{0.0}; + amrex::Real dln_set_rate_dT9{0.0}; + amrex::Real set_rate{0.0}; + + // ReacLib set derived from ths8r + ln_set_rate = 40.130587431823315 + -122.30591273875024 * tfactors.T9i + -1.83611 * tfactors.T913 + + 0.460384 * tfactors.T9 + -0.0584947 * tfactors.T953 + 1.5 * tfactors.lnT9; + + ln_set_rate += net_log_pf; + + if constexpr (std::is_same_v) { + dln_set_rate_dT9 = 122.30591273875024 * tfactors.T9i * tfactors.T9i + (1.0/3.0) * -1.83611 * tfactors.T923i + + 0.460384 + (5.0/3.0) * -0.0584947 * tfactors.T923 + 1.5 * tfactors.T9i; + + dln_set_rate_dT9 += net_dlog_pf_dT9; + } + + // avoid underflows by zeroing rates in [0.0, 1.e-100] + ln_set_rate = std::max(ln_set_rate, -230.0); + set_rate = std::exp(ln_set_rate); + rate += set_rate; + if constexpr (std::is_same_v) { + if (ln_set_rate > -230.0_rt) { + drate_dT += set_rate * dln_set_rate_dT9 * 1.0e-9_rt; + } + } + + rate_eval.screened_rates(k_Mn52_to_n_Mn51_derived) = rate; + if constexpr (std::is_same_v) { + rate_eval.dscreened_rates_dT(k_Mn52_to_n_Mn51_derived) = drate_dT; + } + } + + template + AMREX_GPU_DEVICE AMREX_INLINE + void rate_Mn53_to_n_Mn52_derived(T& rate_eval, const tf_t& tfactors, [[maybe_unused]] part_fun::pf_cache_t& pf_cache) { + + // Mn53 --> n + Mn52 + + amrex::Real rate{}, drate_dT{}; + // Evaluate partition function terms + + amrex::Real n_log_pf, dn_log_pf_dT9; + + // setting n log(partition function) to 0.0 by default, independent of T + n_log_pf = 0.0_rt; + dn_log_pf_dT9 = 0.0_rt; + + amrex::Real Mn52_log_pf, dMn52_log_pf_dT9; + + // interpolating Mn52 partition function + get_partition_function_cached(Mn52, tfactors.T9, pf_cache, Mn52_log_pf, dMn52_log_pf_dT9); + + amrex::Real Mn53_log_pf, dMn53_log_pf_dT9; + + // interpolating Mn53 partition function + get_partition_function_cached(Mn53, tfactors.T9, pf_cache, Mn53_log_pf, dMn53_log_pf_dT9); + + amrex::Real net_log_pf = n_log_pf + Mn52_log_pf - Mn53_log_pf; + [[maybe_unused]] amrex::Real net_dlog_pf_dT9 = dn_log_pf_dT9 + dMn52_log_pf_dT9 - dMn53_log_pf_dT9; + + amrex::Real ln_set_rate{0.0}; + amrex::Real dln_set_rate_dT9{0.0}; + amrex::Real set_rate{0.0}; + + // ReacLib set derived from ths8r + ln_set_rate = 41.278513591470265 + -139.8370903552252 * tfactors.T9i + -0.91084 * tfactors.T913 + + 0.162511 * tfactors.T9 + -0.0279619 * tfactors.T953 + 1.5 * tfactors.lnT9; + + ln_set_rate += net_log_pf; + + if constexpr (std::is_same_v) { + dln_set_rate_dT9 = 139.8370903552252 * tfactors.T9i * tfactors.T9i + (1.0/3.0) * -0.91084 * tfactors.T923i + + 0.162511 + (5.0/3.0) * -0.0279619 * tfactors.T923 + 1.5 * tfactors.T9i; + + dln_set_rate_dT9 += net_dlog_pf_dT9; + } + + // avoid underflows by zeroing rates in [0.0, 1.e-100] + ln_set_rate = std::max(ln_set_rate, -230.0); + set_rate = std::exp(ln_set_rate); + rate += set_rate; + if constexpr (std::is_same_v) { + if (ln_set_rate > -230.0_rt) { + drate_dT += set_rate * dln_set_rate_dT9 * 1.0e-9_rt; + } + } + + rate_eval.screened_rates(k_Mn53_to_n_Mn52_derived) = rate; + if constexpr (std::is_same_v) { + rate_eval.dscreened_rates_dT(k_Mn53_to_n_Mn52_derived) = drate_dT; + } + } + + template + AMREX_GPU_DEVICE AMREX_INLINE + void rate_Cr47_to_n_Cr46_derived(T& rate_eval, const tf_t& tfactors, [[maybe_unused]] part_fun::pf_cache_t& pf_cache) { + + // Cr47 --> n + Cr46 + + amrex::Real rate{}, drate_dT{}; + // Evaluate partition function terms + + amrex::Real n_log_pf, dn_log_pf_dT9; + + // setting n log(partition function) to 0.0 by default, independent of T + n_log_pf = 0.0_rt; + dn_log_pf_dT9 = 0.0_rt; + + amrex::Real Cr47_log_pf, dCr47_log_pf_dT9; + + // interpolating Cr47 partition function + get_partition_function_cached(Cr47, tfactors.T9, pf_cache, Cr47_log_pf, dCr47_log_pf_dT9); + + amrex::Real Cr46_log_pf, dCr46_log_pf_dT9; + + // interpolating Cr46 partition function + get_partition_function_cached(Cr46, tfactors.T9, pf_cache, Cr46_log_pf, dCr46_log_pf_dT9); + + amrex::Real net_log_pf = n_log_pf + Cr46_log_pf - Cr47_log_pf; + [[maybe_unused]] amrex::Real net_dlog_pf_dT9 = dn_log_pf_dT9 + dCr46_log_pf_dT9 - dCr47_log_pf_dT9; + + amrex::Real ln_set_rate{0.0}; + amrex::Real dln_set_rate_dT9{0.0}; + amrex::Real set_rate{0.0}; + + // ReacLib set derived from ths8r + ln_set_rate = 37.791226447021984 + -152.74235891313134 * tfactors.T9i + -1.5945 * tfactors.T913 + + 0.39528 * tfactors.T9 + -0.0372417 * tfactors.T953 + 1.5 * tfactors.lnT9; + + ln_set_rate += net_log_pf; + + if constexpr (std::is_same_v) { + dln_set_rate_dT9 = 152.74235891313134 * tfactors.T9i * tfactors.T9i + (1.0/3.0) * -1.5945 * tfactors.T923i + + 0.39528 + (5.0/3.0) * -0.0372417 * tfactors.T923 + 1.5 * tfactors.T9i; + + dln_set_rate_dT9 += net_dlog_pf_dT9; + } + + // avoid underflows by zeroing rates in [0.0, 1.e-100] + ln_set_rate = std::max(ln_set_rate, -230.0); + set_rate = std::exp(ln_set_rate); + rate += set_rate; + if constexpr (std::is_same_v) { + if (ln_set_rate > -230.0_rt) { + drate_dT += set_rate * dln_set_rate_dT9 * 1.0e-9_rt; + } + } + + rate_eval.screened_rates(k_Cr47_to_n_Cr46_derived) = rate; + if constexpr (std::is_same_v) { + rate_eval.dscreened_rates_dT(k_Cr47_to_n_Cr46_derived) = drate_dT; + } + } + + template + AMREX_GPU_DEVICE AMREX_INLINE + void rate_Cr48_to_n_Cr47_derived(T& rate_eval, const tf_t& tfactors, [[maybe_unused]] part_fun::pf_cache_t& pf_cache) { + + // Cr48 --> n + Cr47 + + amrex::Real rate{}, drate_dT{}; + // Evaluate partition function terms + + amrex::Real n_log_pf, dn_log_pf_dT9; + + // setting n log(partition function) to 0.0 by default, independent of T + n_log_pf = 0.0_rt; + dn_log_pf_dT9 = 0.0_rt; + + amrex::Real Cr48_log_pf, dCr48_log_pf_dT9; + + // interpolating Cr48 partition function + get_partition_function_cached(Cr48, tfactors.T9, pf_cache, Cr48_log_pf, dCr48_log_pf_dT9); + + amrex::Real Cr47_log_pf, dCr47_log_pf_dT9; + + // interpolating Cr47 partition function + get_partition_function_cached(Cr47, tfactors.T9, pf_cache, Cr47_log_pf, dCr47_log_pf_dT9); + + amrex::Real net_log_pf = n_log_pf + Cr47_log_pf - Cr48_log_pf; + [[maybe_unused]] amrex::Real net_dlog_pf_dT9 = dn_log_pf_dT9 + dCr47_log_pf_dT9 - dCr48_log_pf_dT9; + + amrex::Real ln_set_rate{0.0}; + amrex::Real dln_set_rate_dT9{0.0}; + amrex::Real set_rate{0.0}; + + // ReacLib set derived from ths8r + ln_set_rate = 37.66466103343327 + -189.49386780398908 * tfactors.T9i + -1.36332 * tfactors.T913 + + 0.288027 * tfactors.T9 + -0.0333017 * tfactors.T953 + 1.5 * tfactors.lnT9; + + ln_set_rate += net_log_pf; + + if constexpr (std::is_same_v) { + dln_set_rate_dT9 = 189.49386780398908 * tfactors.T9i * tfactors.T9i + (1.0/3.0) * -1.36332 * tfactors.T923i + + 0.288027 + (5.0/3.0) * -0.0333017 * tfactors.T923 + 1.5 * tfactors.T9i; + + dln_set_rate_dT9 += net_dlog_pf_dT9; + } + + // avoid underflows by zeroing rates in [0.0, 1.e-100] + ln_set_rate = std::max(ln_set_rate, -230.0); + set_rate = std::exp(ln_set_rate); + rate += set_rate; + if constexpr (std::is_same_v) { + if (ln_set_rate > -230.0_rt) { + drate_dT += set_rate * dln_set_rate_dT9 * 1.0e-9_rt; + } + } + + rate_eval.screened_rates(k_Cr48_to_n_Cr47_derived) = rate; + if constexpr (std::is_same_v) { + rate_eval.dscreened_rates_dT(k_Cr48_to_n_Cr47_derived) = drate_dT; + } + } + + template + AMREX_GPU_DEVICE AMREX_INLINE + void rate_Cr49_to_n_Cr48_derived(T& rate_eval, const tf_t& tfactors, [[maybe_unused]] part_fun::pf_cache_t& pf_cache) { + + // Cr49 --> n + Cr48 + + amrex::Real rate{}, drate_dT{}; + // Evaluate partition function terms + + amrex::Real n_log_pf, dn_log_pf_dT9; + + // setting n log(partition function) to 0.0 by default, independent of T + n_log_pf = 0.0_rt; + dn_log_pf_dT9 = 0.0_rt; + + amrex::Real Cr48_log_pf, dCr48_log_pf_dT9; + + // interpolating Cr48 partition function + get_partition_function_cached(Cr48, tfactors.T9, pf_cache, Cr48_log_pf, dCr48_log_pf_dT9); + + amrex::Real Cr49_log_pf, dCr49_log_pf_dT9; + + // interpolating Cr49 partition function + get_partition_function_cached(Cr49, tfactors.T9, pf_cache, Cr49_log_pf, dCr49_log_pf_dT9); + + amrex::Real net_log_pf = n_log_pf + Cr48_log_pf - Cr49_log_pf; + [[maybe_unused]] amrex::Real net_dlog_pf_dT9 = dn_log_pf_dT9 + dCr48_log_pf_dT9 - dCr49_log_pf_dT9; + + amrex::Real ln_set_rate{0.0}; + amrex::Real dln_set_rate_dT9{0.0}; + amrex::Real set_rate{0.0}; + + // ReacLib set derived from ths8r + ln_set_rate = 37.75912618027852 + -122.80734396679019 * tfactors.T9i + -0.000452357 * tfactors.T913 + + 0.0412838 * tfactors.T9 + -0.0160865 * tfactors.T953 + 1.5 * tfactors.lnT9; + + ln_set_rate += net_log_pf; + + if constexpr (std::is_same_v) { + dln_set_rate_dT9 = 122.80734396679019 * tfactors.T9i * tfactors.T9i + (1.0/3.0) * -0.000452357 * tfactors.T923i + + 0.0412838 + (5.0/3.0) * -0.0160865 * tfactors.T923 + 1.5 * tfactors.T9i; + + dln_set_rate_dT9 += net_dlog_pf_dT9; + } + + // avoid underflows by zeroing rates in [0.0, 1.e-100] + ln_set_rate = std::max(ln_set_rate, -230.0); + set_rate = std::exp(ln_set_rate); + rate += set_rate; + if constexpr (std::is_same_v) { + if (ln_set_rate > -230.0_rt) { + drate_dT += set_rate * dln_set_rate_dT9 * 1.0e-9_rt; + } + } + + rate_eval.screened_rates(k_Cr49_to_n_Cr48_derived) = rate; + if constexpr (std::is_same_v) { + rate_eval.dscreened_rates_dT(k_Cr49_to_n_Cr48_derived) = drate_dT; + } + } + + template + AMREX_GPU_DEVICE AMREX_INLINE + void rate_Cr50_to_n_Cr49_derived(T& rate_eval, const tf_t& tfactors, [[maybe_unused]] part_fun::pf_cache_t& pf_cache) { + + // Cr50 --> n + Cr49 + + amrex::Real rate{}, drate_dT{}; + // Evaluate partition function terms + + amrex::Real n_log_pf, dn_log_pf_dT9; + + // setting n log(partition function) to 0.0 by default, independent of T + n_log_pf = 0.0_rt; + dn_log_pf_dT9 = 0.0_rt; + + amrex::Real Cr49_log_pf, dCr49_log_pf_dT9; + + // interpolating Cr49 partition function + get_partition_function_cached(Cr49, tfactors.T9, pf_cache, Cr49_log_pf, dCr49_log_pf_dT9); + + amrex::Real Cr50_log_pf, dCr50_log_pf_dT9; + + // interpolating Cr50 partition function + get_partition_function_cached(Cr50, tfactors.T9, pf_cache, Cr50_log_pf, dCr50_log_pf_dT9); + + amrex::Real net_log_pf = n_log_pf + Cr49_log_pf - Cr50_log_pf; + [[maybe_unused]] amrex::Real net_dlog_pf_dT9 = dn_log_pf_dT9 + dCr49_log_pf_dT9 - dCr50_log_pf_dT9; + + amrex::Real ln_set_rate{0.0}; + amrex::Real dln_set_rate_dT9{0.0}; + amrex::Real set_rate{0.0}; + + // ReacLib set derived from ths8r + ln_set_rate = 43.324496345019064 + -150.86196279664787 * tfactors.T9i + -1.98927 * tfactors.T913 + + 0.465124 * tfactors.T9 + -0.0582249 * tfactors.T953 + 1.5 * tfactors.lnT9; + + ln_set_rate += net_log_pf; + + if constexpr (std::is_same_v) { + dln_set_rate_dT9 = 150.86196279664787 * tfactors.T9i * tfactors.T9i + (1.0/3.0) * -1.98927 * tfactors.T923i + + 0.465124 + (5.0/3.0) * -0.0582249 * tfactors.T923 + 1.5 * tfactors.T9i; + + dln_set_rate_dT9 += net_dlog_pf_dT9; + } + + // avoid underflows by zeroing rates in [0.0, 1.e-100] + ln_set_rate = std::max(ln_set_rate, -230.0); + set_rate = std::exp(ln_set_rate); + rate += set_rate; + if constexpr (std::is_same_v) { + if (ln_set_rate > -230.0_rt) { + drate_dT += set_rate * dln_set_rate_dT9 * 1.0e-9_rt; + } + } + + rate_eval.screened_rates(k_Cr50_to_n_Cr49_derived) = rate; + if constexpr (std::is_same_v) { + rate_eval.dscreened_rates_dT(k_Cr50_to_n_Cr49_derived) = drate_dT; + } + } + + template + AMREX_GPU_DEVICE AMREX_INLINE + void rate_Cr51_to_n_Cr50_derived(T& rate_eval, const tf_t& tfactors, [[maybe_unused]] part_fun::pf_cache_t& pf_cache) { + + // Cr51 --> n + Cr50 + + amrex::Real rate{}, drate_dT{}; + // Evaluate partition function terms + + amrex::Real n_log_pf, dn_log_pf_dT9; + + // setting n log(partition function) to 0.0 by default, independent of T + n_log_pf = 0.0_rt; + dn_log_pf_dT9 = 0.0_rt; + + amrex::Real Cr50_log_pf, dCr50_log_pf_dT9; + + // interpolating Cr50 partition function + get_partition_function_cached(Cr50, tfactors.T9, pf_cache, Cr50_log_pf, dCr50_log_pf_dT9); + + amrex::Real Cr51_log_pf, dCr51_log_pf_dT9; + + // interpolating Cr51 partition function + get_partition_function_cached(Cr51, tfactors.T9, pf_cache, Cr51_log_pf, dCr51_log_pf_dT9); + + amrex::Real net_log_pf = n_log_pf + Cr50_log_pf - Cr51_log_pf; + [[maybe_unused]] amrex::Real net_dlog_pf_dT9 = dn_log_pf_dT9 + dCr50_log_pf_dT9 - dCr51_log_pf_dT9; + + amrex::Real ln_set_rate{0.0}; + amrex::Real dln_set_rate_dT9{0.0}; + amrex::Real set_rate{0.0}; + + // ReacLib set derived from ks03 + ln_set_rate = 36.724790017844484 + -107.48815208414811 * tfactors.T9i + 0.815037 * tfactors.T913i + -0.708732 * tfactors.T913 + + 0.386295 * tfactors.T9 + -0.0615661 * tfactors.T953 + 1.5454627 * tfactors.lnT9; + + ln_set_rate += net_log_pf; + + if constexpr (std::is_same_v) { + dln_set_rate_dT9 = 107.48815208414811 * tfactors.T9i * tfactors.T9i + -(1.0/3.0) * 0.815037 * tfactors.T943i + (1.0/3.0) * -0.708732 * tfactors.T923i + + 0.386295 + (5.0/3.0) * -0.0615661 * tfactors.T923 + 1.5454627 * tfactors.T9i; + + dln_set_rate_dT9 += net_dlog_pf_dT9; + } + + // avoid underflows by zeroing rates in [0.0, 1.e-100] + ln_set_rate = std::max(ln_set_rate, -230.0); + set_rate = std::exp(ln_set_rate); + rate += set_rate; + if constexpr (std::is_same_v) { + if (ln_set_rate > -230.0_rt) { + drate_dT += set_rate * dln_set_rate_dT9 * 1.0e-9_rt; + } + } + + rate_eval.screened_rates(k_Cr51_to_n_Cr50_derived) = rate; + if constexpr (std::is_same_v) { + rate_eval.dscreened_rates_dT(k_Cr51_to_n_Cr50_derived) = drate_dT; + } + } + + template + AMREX_GPU_DEVICE AMREX_INLINE + void rate_Cr52_to_n_Cr51_derived(T& rate_eval, const tf_t& tfactors, [[maybe_unused]] part_fun::pf_cache_t& pf_cache) { + + // Cr52 --> n + Cr51 + + amrex::Real rate{}, drate_dT{}; + // Evaluate partition function terms + + amrex::Real n_log_pf, dn_log_pf_dT9; + + // setting n log(partition function) to 0.0 by default, independent of T + n_log_pf = 0.0_rt; + dn_log_pf_dT9 = 0.0_rt; + + amrex::Real Cr51_log_pf, dCr51_log_pf_dT9; + + // interpolating Cr51 partition function + get_partition_function_cached(Cr51, tfactors.T9, pf_cache, Cr51_log_pf, dCr51_log_pf_dT9); + + amrex::Real Cr52_log_pf, dCr52_log_pf_dT9; + + // interpolating Cr52 partition function + get_partition_function_cached(Cr52, tfactors.T9, pf_cache, Cr52_log_pf, dCr52_log_pf_dT9); + + amrex::Real net_log_pf = n_log_pf + Cr51_log_pf - Cr52_log_pf; + [[maybe_unused]] amrex::Real net_dlog_pf_dT9 = dn_log_pf_dT9 + dCr51_log_pf_dT9 - dCr52_log_pf_dT9; + + amrex::Real ln_set_rate{0.0}; + amrex::Real dln_set_rate_dT9{0.0}; + amrex::Real set_rate{0.0}; + + // ReacLib set derived from ks03 + ln_set_rate = 45.90309315543206 + -139.8057853770977 * tfactors.T9i + 6.95563 * tfactors.T913i + -11.4485 * tfactors.T913 + + 0.736956 * tfactors.T9 + -0.0695323 * tfactors.T953 + 6.81244 * tfactors.lnT9; + + ln_set_rate += net_log_pf; + + if constexpr (std::is_same_v) { + dln_set_rate_dT9 = 139.8057853770977 * tfactors.T9i * tfactors.T9i + -(1.0/3.0) * 6.95563 * tfactors.T943i + (1.0/3.0) * -11.4485 * tfactors.T923i + + 0.736956 + (5.0/3.0) * -0.0695323 * tfactors.T923 + 6.81244 * tfactors.T9i; + + dln_set_rate_dT9 += net_dlog_pf_dT9; + } + + // avoid underflows by zeroing rates in [0.0, 1.e-100] + ln_set_rate = std::max(ln_set_rate, -230.0); + set_rate = std::exp(ln_set_rate); + rate += set_rate; + if constexpr (std::is_same_v) { + if (ln_set_rate > -230.0_rt) { + drate_dT += set_rate * dln_set_rate_dT9 * 1.0e-9_rt; + } + } + + rate_eval.screened_rates(k_Cr52_to_n_Cr51_derived) = rate; + if constexpr (std::is_same_v) { + rate_eval.dscreened_rates_dT(k_Cr52_to_n_Cr51_derived) = drate_dT; + } + } + + template + AMREX_GPU_DEVICE AMREX_INLINE + void rate_V46_to_n_V45_derived(T& rate_eval, const tf_t& tfactors, [[maybe_unused]] part_fun::pf_cache_t& pf_cache) { + + // V46 --> n + V45 + + amrex::Real rate{}, drate_dT{}; + // Evaluate partition function terms + + amrex::Real n_log_pf, dn_log_pf_dT9; + + // setting n log(partition function) to 0.0 by default, independent of T + n_log_pf = 0.0_rt; + dn_log_pf_dT9 = 0.0_rt; + + amrex::Real V45_log_pf, dV45_log_pf_dT9; + + // interpolating V45 partition function + get_partition_function_cached(V45, tfactors.T9, pf_cache, V45_log_pf, dV45_log_pf_dT9); + + amrex::Real V46_log_pf, dV46_log_pf_dT9; + + // interpolating V46 partition function + get_partition_function_cached(V46, tfactors.T9, pf_cache, V46_log_pf, dV46_log_pf_dT9); + + amrex::Real net_log_pf = n_log_pf + V45_log_pf - V46_log_pf; + [[maybe_unused]] amrex::Real net_dlog_pf_dT9 = dn_log_pf_dT9 + dV45_log_pf_dT9 - dV46_log_pf_dT9; + + amrex::Real ln_set_rate{0.0}; + amrex::Real dln_set_rate_dT9{0.0}; + amrex::Real set_rate{0.0}; + + // ReacLib set derived from ths8r + ln_set_rate = 38.338260632832615 + -153.88540394802433 * tfactors.T9i + -1.62632 * tfactors.T913 + + 0.391829 * tfactors.T9 + -0.0403093 * tfactors.T953 + 1.5 * tfactors.lnT9; + + ln_set_rate += net_log_pf; + + if constexpr (std::is_same_v) { + dln_set_rate_dT9 = 153.88540394802433 * tfactors.T9i * tfactors.T9i + (1.0/3.0) * -1.62632 * tfactors.T923i + + 0.391829 + (5.0/3.0) * -0.0403093 * tfactors.T923 + 1.5 * tfactors.T9i; + + dln_set_rate_dT9 += net_dlog_pf_dT9; + } + + // avoid underflows by zeroing rates in [0.0, 1.e-100] + ln_set_rate = std::max(ln_set_rate, -230.0); + set_rate = std::exp(ln_set_rate); + rate += set_rate; + if constexpr (std::is_same_v) { + if (ln_set_rate > -230.0_rt) { + drate_dT += set_rate * dln_set_rate_dT9 * 1.0e-9_rt; + } + } + + rate_eval.screened_rates(k_V46_to_n_V45_derived) = rate; + if constexpr (std::is_same_v) { + rate_eval.dscreened_rates_dT(k_V46_to_n_V45_derived) = drate_dT; + } + } + + template + AMREX_GPU_DEVICE AMREX_INLINE + void rate_V47_to_n_V46_derived(T& rate_eval, const tf_t& tfactors, [[maybe_unused]] part_fun::pf_cache_t& pf_cache) { + + // V47 --> n + V46 + + amrex::Real rate{}, drate_dT{}; + // Evaluate partition function terms + + amrex::Real n_log_pf, dn_log_pf_dT9; + + // setting n log(partition function) to 0.0 by default, independent of T + n_log_pf = 0.0_rt; + dn_log_pf_dT9 = 0.0_rt; + + amrex::Real V46_log_pf, dV46_log_pf_dT9; + + // interpolating V46 partition function + get_partition_function_cached(V46, tfactors.T9, pf_cache, V46_log_pf, dV46_log_pf_dT9); + + amrex::Real V47_log_pf, dV47_log_pf_dT9; + + // interpolating V47 partition function + get_partition_function_cached(V47, tfactors.T9, pf_cache, V47_log_pf, dV47_log_pf_dT9); + + amrex::Real net_log_pf = n_log_pf + V46_log_pf - V47_log_pf; + [[maybe_unused]] amrex::Real net_dlog_pf_dT9 = dn_log_pf_dT9 + dV46_log_pf_dT9 - dV47_log_pf_dT9; + + amrex::Real ln_set_rate{0.0}; + amrex::Real dln_set_rate_dT9{0.0}; + amrex::Real set_rate{0.0}; + + // ReacLib set derived from ths8r + ln_set_rate = 38.04950790813785 + -150.88760878174838 * tfactors.T9i + -0.692996 * tfactors.T913 + + 0.316873 * tfactors.T9 + -0.0417235 * tfactors.T953 + 1.5 * tfactors.lnT9; + + ln_set_rate += net_log_pf; + + if constexpr (std::is_same_v) { + dln_set_rate_dT9 = 150.88760878174838 * tfactors.T9i * tfactors.T9i + (1.0/3.0) * -0.692996 * tfactors.T923i + + 0.316873 + (5.0/3.0) * -0.0417235 * tfactors.T923 + 1.5 * tfactors.T9i; + + dln_set_rate_dT9 += net_dlog_pf_dT9; + } + + // avoid underflows by zeroing rates in [0.0, 1.e-100] + ln_set_rate = std::max(ln_set_rate, -230.0); + set_rate = std::exp(ln_set_rate); + rate += set_rate; + if constexpr (std::is_same_v) { + if (ln_set_rate > -230.0_rt) { + drate_dT += set_rate * dln_set_rate_dT9 * 1.0e-9_rt; + } + } + + rate_eval.screened_rates(k_V47_to_n_V46_derived) = rate; + if constexpr (std::is_same_v) { + rate_eval.dscreened_rates_dT(k_V47_to_n_V46_derived) = drate_dT; + } + } + + template + AMREX_GPU_DEVICE AMREX_INLINE + void rate_V48_to_n_V47_derived(T& rate_eval, const tf_t& tfactors, [[maybe_unused]] part_fun::pf_cache_t& pf_cache) { + + // V48 --> n + V47 + + amrex::Real rate{}, drate_dT{}; + // Evaluate partition function terms + + amrex::Real n_log_pf, dn_log_pf_dT9; + + // setting n log(partition function) to 0.0 by default, independent of T + n_log_pf = 0.0_rt; + dn_log_pf_dT9 = 0.0_rt; + + amrex::Real V47_log_pf, dV47_log_pf_dT9; + + // interpolating V47 partition function + get_partition_function_cached(V47, tfactors.T9, pf_cache, V47_log_pf, dV47_log_pf_dT9); + + amrex::Real V48_log_pf, dV48_log_pf_dT9; + + // interpolating V48 partition function + get_partition_function_cached(V48, tfactors.T9, pf_cache, V48_log_pf, dV48_log_pf_dT9); + + amrex::Real net_log_pf = n_log_pf + V47_log_pf - V48_log_pf; + [[maybe_unused]] amrex::Real net_dlog_pf_dT9 = dn_log_pf_dT9 + dV47_log_pf_dT9 - dV48_log_pf_dT9; + + amrex::Real ln_set_rate{0.0}; + amrex::Real dln_set_rate_dT9{0.0}; + amrex::Real set_rate{0.0}; + + // ReacLib set derived from ths8r + ln_set_rate = 40.436203741894104 + -122.33770911835394 * tfactors.T9i + -2.40159 * tfactors.T913 + + 0.594573 * tfactors.T9 + -0.0682896 * tfactors.T953 + 1.5 * tfactors.lnT9; + + ln_set_rate += net_log_pf; + + if constexpr (std::is_same_v) { + dln_set_rate_dT9 = 122.33770911835394 * tfactors.T9i * tfactors.T9i + (1.0/3.0) * -2.40159 * tfactors.T923i + + 0.594573 + (5.0/3.0) * -0.0682896 * tfactors.T923 + 1.5 * tfactors.T9i; + + dln_set_rate_dT9 += net_dlog_pf_dT9; + } + + // avoid underflows by zeroing rates in [0.0, 1.e-100] + ln_set_rate = std::max(ln_set_rate, -230.0); + set_rate = std::exp(ln_set_rate); + rate += set_rate; + if constexpr (std::is_same_v) { + if (ln_set_rate > -230.0_rt) { + drate_dT += set_rate * dln_set_rate_dT9 * 1.0e-9_rt; + } + } + + rate_eval.screened_rates(k_V48_to_n_V47_derived) = rate; + if constexpr (std::is_same_v) { + rate_eval.dscreened_rates_dT(k_V48_to_n_V47_derived) = drate_dT; + } + } + + template + AMREX_GPU_DEVICE AMREX_INLINE + void rate_V49_to_n_V48_derived(T& rate_eval, const tf_t& tfactors, [[maybe_unused]] part_fun::pf_cache_t& pf_cache) { + + // V49 --> n + V48 + + amrex::Real rate{}, drate_dT{}; + // Evaluate partition function terms + + amrex::Real n_log_pf, dn_log_pf_dT9; + + // setting n log(partition function) to 0.0 by default, independent of T + n_log_pf = 0.0_rt; + dn_log_pf_dT9 = 0.0_rt; + + amrex::Real V49_log_pf, dV49_log_pf_dT9; + + // interpolating V49 partition function + get_partition_function_cached(V49, tfactors.T9, pf_cache, V49_log_pf, dV49_log_pf_dT9); + + amrex::Real V48_log_pf, dV48_log_pf_dT9; + + // interpolating V48 partition function + get_partition_function_cached(V48, tfactors.T9, pf_cache, V48_log_pf, dV48_log_pf_dT9); + + amrex::Real net_log_pf = n_log_pf + V48_log_pf - V49_log_pf; + [[maybe_unused]] amrex::Real net_dlog_pf_dT9 = dn_log_pf_dT9 + dV48_log_pf_dT9 - dV49_log_pf_dT9; + + amrex::Real ln_set_rate{0.0}; + amrex::Real dln_set_rate_dT9{0.0}; + amrex::Real set_rate{0.0}; + + // ReacLib set derived from ths8r + ln_set_rate = 41.69782013403119 + -134.0962191953525 * tfactors.T9i + -0.917026 * tfactors.T913 + + -0.109162 * tfactors.T9 + 0.0127488 * tfactors.T953 + 1.5 * tfactors.lnT9; + + ln_set_rate += net_log_pf; + + if constexpr (std::is_same_v) { + dln_set_rate_dT9 = 134.0962191953525 * tfactors.T9i * tfactors.T9i + (1.0/3.0) * -0.917026 * tfactors.T923i + + -0.109162 + (5.0/3.0) * 0.0127488 * tfactors.T923 + 1.5 * tfactors.T9i; + + dln_set_rate_dT9 += net_dlog_pf_dT9; + } + + // avoid underflows by zeroing rates in [0.0, 1.e-100] + ln_set_rate = std::max(ln_set_rate, -230.0); + set_rate = std::exp(ln_set_rate); + rate += set_rate; + if constexpr (std::is_same_v) { + if (ln_set_rate > -230.0_rt) { + drate_dT += set_rate * dln_set_rate_dT9 * 1.0e-9_rt; + } + } + + rate_eval.screened_rates(k_V49_to_n_V48_derived) = rate; + if constexpr (std::is_same_v) { + rate_eval.dscreened_rates_dT(k_V49_to_n_V48_derived) = drate_dT; + } + } + + template + AMREX_GPU_DEVICE AMREX_INLINE + void rate_Ti43_to_n_Ti42_derived(T& rate_eval, const tf_t& tfactors, [[maybe_unused]] part_fun::pf_cache_t& pf_cache) { + + // Ti43 --> n + Ti42 + + amrex::Real rate{}, drate_dT{}; + // Evaluate partition function terms + + amrex::Real n_log_pf, dn_log_pf_dT9; + + // setting n log(partition function) to 0.0 by default, independent of T + n_log_pf = 0.0_rt; + dn_log_pf_dT9 = 0.0_rt; + + amrex::Real Ti42_log_pf, dTi42_log_pf_dT9; + + // interpolating Ti42 partition function + get_partition_function_cached(Ti42, tfactors.T9, pf_cache, Ti42_log_pf, dTi42_log_pf_dT9); + + amrex::Real Ti43_log_pf, dTi43_log_pf_dT9; + + // interpolating Ti43 partition function + get_partition_function_cached(Ti43, tfactors.T9, pf_cache, Ti43_log_pf, dTi43_log_pf_dT9); + + amrex::Real net_log_pf = n_log_pf + Ti42_log_pf - Ti43_log_pf; + [[maybe_unused]] amrex::Real net_dlog_pf_dT9 = dn_log_pf_dT9 + dTi42_log_pf_dT9 - dTi43_log_pf_dT9; + + amrex::Real ln_set_rate{0.0}; + amrex::Real dln_set_rate_dT9{0.0}; + amrex::Real set_rate{0.0}; + + // ReacLib set derived from ths8r + ln_set_rate = 35.246514232360624 + -142.53792590287344 * tfactors.T9i + -1.00856 * tfactors.T913 + + 0.342738 * tfactors.T9 + -0.0367066 * tfactors.T953 + 1.5 * tfactors.lnT9; + + ln_set_rate += net_log_pf; + + if constexpr (std::is_same_v) { + dln_set_rate_dT9 = 142.53792590287344 * tfactors.T9i * tfactors.T9i + (1.0/3.0) * -1.00856 * tfactors.T923i + + 0.342738 + (5.0/3.0) * -0.0367066 * tfactors.T923 + 1.5 * tfactors.T9i; + + dln_set_rate_dT9 += net_dlog_pf_dT9; + } + + // avoid underflows by zeroing rates in [0.0, 1.e-100] + ln_set_rate = std::max(ln_set_rate, -230.0); + set_rate = std::exp(ln_set_rate); + rate += set_rate; + if constexpr (std::is_same_v) { + if (ln_set_rate > -230.0_rt) { + drate_dT += set_rate * dln_set_rate_dT9 * 1.0e-9_rt; + } + } + + rate_eval.screened_rates(k_Ti43_to_n_Ti42_derived) = rate; + if constexpr (std::is_same_v) { + rate_eval.dscreened_rates_dT(k_Ti43_to_n_Ti42_derived) = drate_dT; + } + } + + template + AMREX_GPU_DEVICE AMREX_INLINE + void rate_Ti44_to_n_Ti43_derived(T& rate_eval, const tf_t& tfactors, [[maybe_unused]] part_fun::pf_cache_t& pf_cache) { + + // Ti44 --> n + Ti43 + + amrex::Real rate{}, drate_dT{}; + // Evaluate partition function terms + + amrex::Real n_log_pf, dn_log_pf_dT9; + + // setting n log(partition function) to 0.0 by default, independent of T + n_log_pf = 0.0_rt; + dn_log_pf_dT9 = 0.0_rt; + + amrex::Real Ti43_log_pf, dTi43_log_pf_dT9; + + // interpolating Ti43 partition function + get_partition_function_cached(Ti43, tfactors.T9, pf_cache, Ti43_log_pf, dTi43_log_pf_dT9); + + amrex::Real Ti44_log_pf, dTi44_log_pf_dT9; + + // interpolating Ti44 partition function + get_partition_function_cached(Ti44, tfactors.T9, pf_cache, Ti44_log_pf, dTi44_log_pf_dT9); + + amrex::Real net_log_pf = n_log_pf + Ti43_log_pf - Ti44_log_pf; + [[maybe_unused]] amrex::Real net_dlog_pf_dT9 = dn_log_pf_dT9 + dTi43_log_pf_dT9 - dTi44_log_pf_dT9; + + amrex::Real ln_set_rate{0.0}; + amrex::Real dln_set_rate_dT9{0.0}; + amrex::Real set_rate{0.0}; + + // ReacLib set derived from ths8r + ln_set_rate = 37.32554402156041 + -189.19911304371885 * tfactors.T9i + -1.09388 * tfactors.T913 + + 0.248209 * tfactors.T9 + -0.02653 * tfactors.T953 + 1.5 * tfactors.lnT9; + + ln_set_rate += net_log_pf; + + if constexpr (std::is_same_v) { + dln_set_rate_dT9 = 189.19911304371885 * tfactors.T9i * tfactors.T9i + (1.0/3.0) * -1.09388 * tfactors.T923i + + 0.248209 + (5.0/3.0) * -0.02653 * tfactors.T923 + 1.5 * tfactors.T9i; + + dln_set_rate_dT9 += net_dlog_pf_dT9; + } + + // avoid underflows by zeroing rates in [0.0, 1.e-100] + ln_set_rate = std::max(ln_set_rate, -230.0); + set_rate = std::exp(ln_set_rate); + rate += set_rate; + if constexpr (std::is_same_v) { + if (ln_set_rate > -230.0_rt) { + drate_dT += set_rate * dln_set_rate_dT9 * 1.0e-9_rt; + } + } + + rate_eval.screened_rates(k_Ti44_to_n_Ti43_derived) = rate; + if constexpr (std::is_same_v) { + rate_eval.dscreened_rates_dT(k_Ti44_to_n_Ti43_derived) = drate_dT; + } + } + + template + AMREX_GPU_DEVICE AMREX_INLINE + void rate_Ti45_to_n_Ti44_derived(T& rate_eval, const tf_t& tfactors, [[maybe_unused]] part_fun::pf_cache_t& pf_cache) { + + // Ti45 --> n + Ti44 + + amrex::Real rate{}, drate_dT{}; + // Evaluate partition function terms + + amrex::Real n_log_pf, dn_log_pf_dT9; + + // setting n log(partition function) to 0.0 by default, independent of T + n_log_pf = 0.0_rt; + dn_log_pf_dT9 = 0.0_rt; + + amrex::Real Ti44_log_pf, dTi44_log_pf_dT9; + + // interpolating Ti44 partition function + get_partition_function_cached(Ti44, tfactors.T9, pf_cache, Ti44_log_pf, dTi44_log_pf_dT9); + + amrex::Real Ti45_log_pf, dTi45_log_pf_dT9; + + // interpolating Ti45 partition function + get_partition_function_cached(Ti45, tfactors.T9, pf_cache, Ti45_log_pf, dTi45_log_pf_dT9); + + amrex::Real net_log_pf = n_log_pf + Ti44_log_pf - Ti45_log_pf; + [[maybe_unused]] amrex::Real net_dlog_pf_dT9 = dn_log_pf_dT9 + dTi44_log_pf_dT9 - dTi45_log_pf_dT9; + + amrex::Real ln_set_rate{0.0}; + amrex::Real dln_set_rate_dT9{0.0}; + amrex::Real set_rate{0.0}; + + // ReacLib set derived from ths8r + ln_set_rate = 36.864811289829866 + -110.62608129453406 * tfactors.T9i + 1.01203 * tfactors.T913 + + -0.201174 * tfactors.T9 + 0.00360954 * tfactors.T953 + 1.5 * tfactors.lnT9; + + ln_set_rate += net_log_pf; + + if constexpr (std::is_same_v) { + dln_set_rate_dT9 = 110.62608129453406 * tfactors.T9i * tfactors.T9i + (1.0/3.0) * 1.01203 * tfactors.T923i + + -0.201174 + (5.0/3.0) * 0.00360954 * tfactors.T923 + 1.5 * tfactors.T9i; + + dln_set_rate_dT9 += net_dlog_pf_dT9; + } + + // avoid underflows by zeroing rates in [0.0, 1.e-100] + ln_set_rate = std::max(ln_set_rate, -230.0); + set_rate = std::exp(ln_set_rate); + rate += set_rate; + if constexpr (std::is_same_v) { + if (ln_set_rate > -230.0_rt) { + drate_dT += set_rate * dln_set_rate_dT9 * 1.0e-9_rt; + } + } + + rate_eval.screened_rates(k_Ti45_to_n_Ti44_derived) = rate; + if constexpr (std::is_same_v) { + rate_eval.dscreened_rates_dT(k_Ti45_to_n_Ti44_derived) = drate_dT; + } + } + + template + AMREX_GPU_DEVICE AMREX_INLINE + void rate_Ti46_to_n_Ti45_derived(T& rate_eval, const tf_t& tfactors, [[maybe_unused]] part_fun::pf_cache_t& pf_cache) { + + // Ti46 --> n + Ti45 + + amrex::Real rate{}, drate_dT{}; + // Evaluate partition function terms + + amrex::Real n_log_pf, dn_log_pf_dT9; + + // setting n log(partition function) to 0.0 by default, independent of T + n_log_pf = 0.0_rt; + dn_log_pf_dT9 = 0.0_rt; + + amrex::Real Ti46_log_pf, dTi46_log_pf_dT9; + + // interpolating Ti46 partition function + get_partition_function_cached(Ti46, tfactors.T9, pf_cache, Ti46_log_pf, dTi46_log_pf_dT9); + + amrex::Real Ti45_log_pf, dTi45_log_pf_dT9; + + // interpolating Ti45 partition function + get_partition_function_cached(Ti45, tfactors.T9, pf_cache, Ti45_log_pf, dTi45_log_pf_dT9); + + amrex::Real net_log_pf = n_log_pf + Ti45_log_pf - Ti46_log_pf; + [[maybe_unused]] amrex::Real net_dlog_pf_dT9 = dn_log_pf_dT9 + dTi45_log_pf_dT9 - dTi46_log_pf_dT9; + + amrex::Real ln_set_rate{0.0}; + amrex::Real dln_set_rate_dT9{0.0}; + amrex::Real set_rate{0.0}; + + // ReacLib set derived from ths8r + ln_set_rate = 42.907047253582405 + -153.05533276685685 * tfactors.T9i + -1.55633 * tfactors.T913 + + 0.300783 * tfactors.T9 + -0.0373696 * tfactors.T953 + 1.5 * tfactors.lnT9; + + ln_set_rate += net_log_pf; + + if constexpr (std::is_same_v) { + dln_set_rate_dT9 = 153.05533276685685 * tfactors.T9i * tfactors.T9i + (1.0/3.0) * -1.55633 * tfactors.T923i + + 0.300783 + (5.0/3.0) * -0.0373696 * tfactors.T923 + 1.5 * tfactors.T9i; + + dln_set_rate_dT9 += net_dlog_pf_dT9; + } + + // avoid underflows by zeroing rates in [0.0, 1.e-100] + ln_set_rate = std::max(ln_set_rate, -230.0); + set_rate = std::exp(ln_set_rate); + rate += set_rate; + if constexpr (std::is_same_v) { + if (ln_set_rate > -230.0_rt) { + drate_dT += set_rate * dln_set_rate_dT9 * 1.0e-9_rt; + } + } + + rate_eval.screened_rates(k_Ti46_to_n_Ti45_derived) = rate; + if constexpr (std::is_same_v) { + rate_eval.dscreened_rates_dT(k_Ti46_to_n_Ti45_derived) = drate_dT; + } + } + + template + AMREX_GPU_DEVICE AMREX_INLINE + void rate_Sc42_to_n_Sc41_derived(T& rate_eval, const tf_t& tfactors, [[maybe_unused]] part_fun::pf_cache_t& pf_cache) { + + // Sc42 --> n + Sc41 + + amrex::Real rate{}, drate_dT{}; + // Evaluate partition function terms + + amrex::Real n_log_pf, dn_log_pf_dT9; + + // setting n log(partition function) to 0.0 by default, independent of T + n_log_pf = 0.0_rt; + dn_log_pf_dT9 = 0.0_rt; + + amrex::Real Sc42_log_pf, dSc42_log_pf_dT9; + + // interpolating Sc42 partition function + get_partition_function_cached(Sc42, tfactors.T9, pf_cache, Sc42_log_pf, dSc42_log_pf_dT9); + + amrex::Real Sc41_log_pf, dSc41_log_pf_dT9; + + // interpolating Sc41 partition function + get_partition_function_cached(Sc41, tfactors.T9, pf_cache, Sc41_log_pf, dSc41_log_pf_dT9); + + amrex::Real net_log_pf = n_log_pf + Sc41_log_pf - Sc42_log_pf; + [[maybe_unused]] amrex::Real net_dlog_pf_dT9 = dn_log_pf_dT9 + dSc41_log_pf_dT9 - dSc42_log_pf_dT9; + + amrex::Real ln_set_rate{0.0}; + amrex::Real dln_set_rate_dT9{0.0}; + amrex::Real set_rate{0.0}; + + // ReacLib set derived from ths8r + ln_set_rate = 36.372198803455944 + -134.0316980746222 * tfactors.T9i + -1.01509 * tfactors.T913 + + 0.362316 * tfactors.T9 + -0.0412181 * tfactors.T953 + 1.5 * tfactors.lnT9; + + ln_set_rate += net_log_pf; + + if constexpr (std::is_same_v) { + dln_set_rate_dT9 = 134.0316980746222 * tfactors.T9i * tfactors.T9i + (1.0/3.0) * -1.01509 * tfactors.T923i + + 0.362316 + (5.0/3.0) * -0.0412181 * tfactors.T923 + 1.5 * tfactors.T9i; + + dln_set_rate_dT9 += net_dlog_pf_dT9; + } + + // avoid underflows by zeroing rates in [0.0, 1.e-100] + ln_set_rate = std::max(ln_set_rate, -230.0); + set_rate = std::exp(ln_set_rate); + rate += set_rate; + if constexpr (std::is_same_v) { + if (ln_set_rate > -230.0_rt) { + drate_dT += set_rate * dln_set_rate_dT9 * 1.0e-9_rt; + } + } + + rate_eval.screened_rates(k_Sc42_to_n_Sc41_derived) = rate; + if constexpr (std::is_same_v) { + rate_eval.dscreened_rates_dT(k_Sc42_to_n_Sc41_derived) = drate_dT; + } + } + + template + AMREX_GPU_DEVICE AMREX_INLINE + void rate_Sc43_to_n_Sc42_derived(T& rate_eval, const tf_t& tfactors, [[maybe_unused]] part_fun::pf_cache_t& pf_cache) { + + // Sc43 --> n + Sc42 + + amrex::Real rate{}, drate_dT{}; + // Evaluate partition function terms + + amrex::Real n_log_pf, dn_log_pf_dT9; + + // setting n log(partition function) to 0.0 by default, independent of T + n_log_pf = 0.0_rt; + dn_log_pf_dT9 = 0.0_rt; + + amrex::Real Sc42_log_pf, dSc42_log_pf_dT9; + + // interpolating Sc42 partition function + get_partition_function_cached(Sc42, tfactors.T9, pf_cache, Sc42_log_pf, dSc42_log_pf_dT9); + + amrex::Real Sc43_log_pf, dSc43_log_pf_dT9; + + // interpolating Sc43 partition function + get_partition_function_cached(Sc43, tfactors.T9, pf_cache, Sc43_log_pf, dSc43_log_pf_dT9); + + amrex::Real net_log_pf = n_log_pf + Sc42_log_pf - Sc43_log_pf; + [[maybe_unused]] amrex::Real net_dlog_pf_dT9 = dn_log_pf_dT9 + dSc42_log_pf_dT9 - dSc43_log_pf_dT9; + + amrex::Real ln_set_rate{0.0}; + amrex::Real dln_set_rate_dT9{0.0}; + amrex::Real set_rate{0.0}; + + // ReacLib set derived from ths8r + ln_set_rate = 36.55709480577273 + -140.8604928084524 * tfactors.T9i + -0.921604 * tfactors.T913 + + 0.333782 * tfactors.T9 + -0.0404241 * tfactors.T953 + 1.5 * tfactors.lnT9; + + ln_set_rate += net_log_pf; + + if constexpr (std::is_same_v) { + dln_set_rate_dT9 = 140.8604928084524 * tfactors.T9i * tfactors.T9i + (1.0/3.0) * -0.921604 * tfactors.T923i + + 0.333782 + (5.0/3.0) * -0.0404241 * tfactors.T923 + 1.5 * tfactors.T9i; + + dln_set_rate_dT9 += net_dlog_pf_dT9; + } + + // avoid underflows by zeroing rates in [0.0, 1.e-100] + ln_set_rate = std::max(ln_set_rate, -230.0); + set_rate = std::exp(ln_set_rate); + rate += set_rate; + if constexpr (std::is_same_v) { + if (ln_set_rate > -230.0_rt) { + drate_dT += set_rate * dln_set_rate_dT9 * 1.0e-9_rt; + } + } + + rate_eval.screened_rates(k_Sc43_to_n_Sc42_derived) = rate; + if constexpr (std::is_same_v) { + rate_eval.dscreened_rates_dT(k_Sc43_to_n_Sc42_derived) = drate_dT; + } + } + + template + AMREX_GPU_DEVICE AMREX_INLINE + void rate_Ca39_to_n_Ca38_derived(T& rate_eval, const tf_t& tfactors, [[maybe_unused]] part_fun::pf_cache_t& pf_cache) { + + // Ca39 --> n + Ca38 + + amrex::Real rate{}, drate_dT{}; + // Evaluate partition function terms + + amrex::Real n_log_pf, dn_log_pf_dT9; + + // setting n log(partition function) to 0.0 by default, independent of T + n_log_pf = 0.0_rt; + dn_log_pf_dT9 = 0.0_rt; + + amrex::Real Ca39_log_pf, dCa39_log_pf_dT9; + + // interpolating Ca39 partition function + get_partition_function_cached(Ca39, tfactors.T9, pf_cache, Ca39_log_pf, dCa39_log_pf_dT9); + + amrex::Real Ca38_log_pf, dCa38_log_pf_dT9; + + // interpolating Ca38 partition function + get_partition_function_cached(Ca38, tfactors.T9, pf_cache, Ca38_log_pf, dCa38_log_pf_dT9); + + amrex::Real net_log_pf = n_log_pf + Ca38_log_pf - Ca39_log_pf; + [[maybe_unused]] amrex::Real net_dlog_pf_dT9 = dn_log_pf_dT9 + dCa38_log_pf_dT9 - dCa39_log_pf_dT9; + + amrex::Real ln_set_rate{0.0}; + amrex::Real dln_set_rate_dT9{0.0}; + amrex::Real set_rate{0.0}; + + // ReacLib set derived from ths8r + ln_set_rate = 34.369887995652356 + -154.28808072685763 * tfactors.T9i + -0.418748 * tfactors.T913 + + 0.243656 * tfactors.T9 + -0.0268305 * tfactors.T953 + 1.5 * tfactors.lnT9; + + ln_set_rate += net_log_pf; + + if constexpr (std::is_same_v) { + dln_set_rate_dT9 = 154.28808072685763 * tfactors.T9i * tfactors.T9i + (1.0/3.0) * -0.418748 * tfactors.T923i + + 0.243656 + (5.0/3.0) * -0.0268305 * tfactors.T923 + 1.5 * tfactors.T9i; + + dln_set_rate_dT9 += net_dlog_pf_dT9; + } + + // avoid underflows by zeroing rates in [0.0, 1.e-100] + ln_set_rate = std::max(ln_set_rate, -230.0); + set_rate = std::exp(ln_set_rate); + rate += set_rate; + if constexpr (std::is_same_v) { + if (ln_set_rate > -230.0_rt) { + drate_dT += set_rate * dln_set_rate_dT9 * 1.0e-9_rt; + } + } + + rate_eval.screened_rates(k_Ca39_to_n_Ca38_derived) = rate; + if constexpr (std::is_same_v) { + rate_eval.dscreened_rates_dT(k_Ca39_to_n_Ca38_derived) = drate_dT; + } + } + + template + AMREX_GPU_DEVICE AMREX_INLINE + void rate_Ca40_to_n_Ca39_derived(T& rate_eval, const tf_t& tfactors, [[maybe_unused]] part_fun::pf_cache_t& pf_cache) { + + // Ca40 --> n + Ca39 + + amrex::Real rate{}, drate_dT{}; + // Evaluate partition function terms + + amrex::Real n_log_pf, dn_log_pf_dT9; + + // setting n log(partition function) to 0.0 by default, independent of T + n_log_pf = 0.0_rt; + dn_log_pf_dT9 = 0.0_rt; + + amrex::Real Ca40_log_pf, dCa40_log_pf_dT9; + + // interpolating Ca40 partition function + get_partition_function_cached(Ca40, tfactors.T9, pf_cache, Ca40_log_pf, dCa40_log_pf_dT9); + + amrex::Real Ca39_log_pf, dCa39_log_pf_dT9; + + // interpolating Ca39 partition function + get_partition_function_cached(Ca39, tfactors.T9, pf_cache, Ca39_log_pf, dCa39_log_pf_dT9); + + amrex::Real net_log_pf = n_log_pf + Ca39_log_pf - Ca40_log_pf; + [[maybe_unused]] amrex::Real net_dlog_pf_dT9 = dn_log_pf_dT9 + dCa39_log_pf_dT9 - dCa40_log_pf_dT9; + + amrex::Real ln_set_rate{0.0}; + amrex::Real dln_set_rate_dT9{0.0}; + amrex::Real set_rate{0.0}; + + // ReacLib set derived from ths8r + ln_set_rate = 34.41095439853984 + -181.43687408133584 * tfactors.T9i + 0.436603 * tfactors.T913 + + 0.098368 * tfactors.T9 + -0.0226294 * tfactors.T953 + 1.5 * tfactors.lnT9; + + ln_set_rate += net_log_pf; + + if constexpr (std::is_same_v) { + dln_set_rate_dT9 = 181.43687408133584 * tfactors.T9i * tfactors.T9i + (1.0/3.0) * 0.436603 * tfactors.T923i + + 0.098368 + (5.0/3.0) * -0.0226294 * tfactors.T923 + 1.5 * tfactors.T9i; + + dln_set_rate_dT9 += net_dlog_pf_dT9; + } + + // avoid underflows by zeroing rates in [0.0, 1.e-100] + ln_set_rate = std::max(ln_set_rate, -230.0); + set_rate = std::exp(ln_set_rate); + rate += set_rate; + if constexpr (std::is_same_v) { + if (ln_set_rate > -230.0_rt) { + drate_dT += set_rate * dln_set_rate_dT9 * 1.0e-9_rt; + } + } + + rate_eval.screened_rates(k_Ca40_to_n_Ca39_derived) = rate; + if constexpr (std::is_same_v) { + rate_eval.dscreened_rates_dT(k_Ca40_to_n_Ca39_derived) = drate_dT; + } + } + + template + AMREX_GPU_DEVICE AMREX_INLINE + void rate_Ca41_to_n_Ca40_derived(T& rate_eval, const tf_t& tfactors, [[maybe_unused]] part_fun::pf_cache_t& pf_cache) { + + // Ca41 --> n + Ca40 + + amrex::Real rate{}, drate_dT{}; + // Evaluate partition function terms + + amrex::Real n_log_pf, dn_log_pf_dT9; + + // setting n log(partition function) to 0.0 by default, independent of T + n_log_pf = 0.0_rt; + dn_log_pf_dT9 = 0.0_rt; + + amrex::Real Ca40_log_pf, dCa40_log_pf_dT9; + + // interpolating Ca40 partition function + get_partition_function_cached(Ca40, tfactors.T9, pf_cache, Ca40_log_pf, dCa40_log_pf_dT9); + + amrex::Real Ca41_log_pf, dCa41_log_pf_dT9; + + // interpolating Ca41 partition function + get_partition_function_cached(Ca41, tfactors.T9, pf_cache, Ca41_log_pf, dCa41_log_pf_dT9); + + amrex::Real net_log_pf = n_log_pf + Ca40_log_pf - Ca41_log_pf; + [[maybe_unused]] amrex::Real net_dlog_pf_dT9 = dn_log_pf_dT9 + dCa40_log_pf_dT9 - dCa41_log_pf_dT9; + + amrex::Real ln_set_rate{0.0}; + amrex::Real dln_set_rate_dT9{0.0}; + amrex::Real set_rate{0.0}; + + // ReacLib set derived from ks03 + ln_set_rate = 24.6568173607497 + -96.96102952477759 * tfactors.T9i + -9.18636 * tfactors.T913i + 21.0095 * tfactors.T913 + + -1.33326 * tfactors.T9 + 0.0769347 * tfactors.T953 + -7.16245 * tfactors.lnT9; + + ln_set_rate += net_log_pf; + + if constexpr (std::is_same_v) { + dln_set_rate_dT9 = 96.96102952477759 * tfactors.T9i * tfactors.T9i + -(1.0/3.0) * -9.18636 * tfactors.T943i + (1.0/3.0) * 21.0095 * tfactors.T923i + + -1.33326 + (5.0/3.0) * 0.0769347 * tfactors.T923 + -7.16245 * tfactors.T9i; + + dln_set_rate_dT9 += net_dlog_pf_dT9; + } + + // avoid underflows by zeroing rates in [0.0, 1.e-100] + ln_set_rate = std::max(ln_set_rate, -230.0); + set_rate = std::exp(ln_set_rate); + rate += set_rate; + if constexpr (std::is_same_v) { + if (ln_set_rate > -230.0_rt) { + drate_dT += set_rate * dln_set_rate_dT9 * 1.0e-9_rt; + } + } + + rate_eval.screened_rates(k_Ca41_to_n_Ca40_derived) = rate; + if constexpr (std::is_same_v) { + rate_eval.dscreened_rates_dT(k_Ca41_to_n_Ca40_derived) = drate_dT; + } + } + + template + AMREX_GPU_DEVICE AMREX_INLINE + void rate_Ca42_to_n_Ca41_derived(T& rate_eval, const tf_t& tfactors, [[maybe_unused]] part_fun::pf_cache_t& pf_cache) { + + // Ca42 --> n + Ca41 + + amrex::Real rate{}, drate_dT{}; + // Evaluate partition function terms + + amrex::Real n_log_pf, dn_log_pf_dT9; + + // setting n log(partition function) to 0.0 by default, independent of T + n_log_pf = 0.0_rt; + dn_log_pf_dT9 = 0.0_rt; + + amrex::Real Ca41_log_pf, dCa41_log_pf_dT9; + + // interpolating Ca41 partition function + get_partition_function_cached(Ca41, tfactors.T9, pf_cache, Ca41_log_pf, dCa41_log_pf_dT9); + + amrex::Real Ca42_log_pf, dCa42_log_pf_dT9; + + // interpolating Ca42 partition function + get_partition_function_cached(Ca42, tfactors.T9, pf_cache, Ca42_log_pf, dCa42_log_pf_dT9); + + amrex::Real net_log_pf = n_log_pf + Ca41_log_pf - Ca42_log_pf; + [[maybe_unused]] amrex::Real net_dlog_pf_dT9 = dn_log_pf_dT9 + dCa41_log_pf_dT9 - dCa42_log_pf_dT9; + + amrex::Real ln_set_rate{0.0}; + amrex::Real dln_set_rate_dT9{0.0}; + amrex::Real set_rate{0.0}; + + // ReacLib set derived from ks03 + ln_set_rate = 46.216884269737946 + -133.26891724956297 * tfactors.T9i + 3.7037 * tfactors.T913i + -9.99246 * tfactors.T913 + + 1.05894 * tfactors.T9 + -0.0978564 * tfactors.T953 + 4.93604 * tfactors.lnT9; + + ln_set_rate += net_log_pf; + + if constexpr (std::is_same_v) { + dln_set_rate_dT9 = 133.26891724956297 * tfactors.T9i * tfactors.T9i + -(1.0/3.0) * 3.7037 * tfactors.T943i + (1.0/3.0) * -9.99246 * tfactors.T923i + + 1.05894 + (5.0/3.0) * -0.0978564 * tfactors.T923 + 4.93604 * tfactors.T9i; + + dln_set_rate_dT9 += net_dlog_pf_dT9; + } + + // avoid underflows by zeroing rates in [0.0, 1.e-100] + ln_set_rate = std::max(ln_set_rate, -230.0); + set_rate = std::exp(ln_set_rate); + rate += set_rate; + if constexpr (std::is_same_v) { + if (ln_set_rate > -230.0_rt) { + drate_dT += set_rate * dln_set_rate_dT9 * 1.0e-9_rt; + } + } + + rate_eval.screened_rates(k_Ca42_to_n_Ca41_derived) = rate; + if constexpr (std::is_same_v) { + rate_eval.dscreened_rates_dT(k_Ca42_to_n_Ca41_derived) = drate_dT; + } + } + + template + AMREX_GPU_DEVICE AMREX_INLINE + void rate_Ar35_to_n_Ar34_derived(T& rate_eval, const tf_t& tfactors, [[maybe_unused]] part_fun::pf_cache_t& pf_cache) { + + // Ar35 --> n + Ar34 + + amrex::Real rate{}, drate_dT{}; + // Evaluate partition function terms + + amrex::Real n_log_pf, dn_log_pf_dT9; + + // setting n log(partition function) to 0.0 by default, independent of T + n_log_pf = 0.0_rt; + dn_log_pf_dT9 = 0.0_rt; + + amrex::Real Ar34_log_pf, dAr34_log_pf_dT9; + + // interpolating Ar34 partition function + get_partition_function_cached(Ar34, tfactors.T9, pf_cache, Ar34_log_pf, dAr34_log_pf_dT9); + + amrex::Real Ar35_log_pf, dAr35_log_pf_dT9; + + // interpolating Ar35 partition function + get_partition_function_cached(Ar35, tfactors.T9, pf_cache, Ar35_log_pf, dAr35_log_pf_dT9); + + amrex::Real net_log_pf = n_log_pf + Ar34_log_pf - Ar35_log_pf; + [[maybe_unused]] amrex::Real net_dlog_pf_dT9 = dn_log_pf_dT9 + dAr34_log_pf_dT9 - dAr35_log_pf_dT9; + + amrex::Real ln_set_rate{0.0}; + amrex::Real dln_set_rate_dT9{0.0}; + amrex::Real set_rate{0.0}; + + // ReacLib set derived from ths8r + ln_set_rate = 32.997766916371916 + -147.84536831101275 * tfactors.T9i + 1.14834 * tfactors.T913 + + -0.142306 * tfactors.T9 + 0.00918793 * tfactors.T953 + 1.5 * tfactors.lnT9; + + ln_set_rate += net_log_pf; + + if constexpr (std::is_same_v) { + dln_set_rate_dT9 = 147.84536831101275 * tfactors.T9i * tfactors.T9i + (1.0/3.0) * 1.14834 * tfactors.T923i + + -0.142306 + (5.0/3.0) * 0.00918793 * tfactors.T923 + 1.5 * tfactors.T9i; + + dln_set_rate_dT9 += net_dlog_pf_dT9; + } + + // avoid underflows by zeroing rates in [0.0, 1.e-100] + ln_set_rate = std::max(ln_set_rate, -230.0); + set_rate = std::exp(ln_set_rate); + rate += set_rate; + if constexpr (std::is_same_v) { + if (ln_set_rate > -230.0_rt) { + drate_dT += set_rate * dln_set_rate_dT9 * 1.0e-9_rt; + } + } + + rate_eval.screened_rates(k_Ar35_to_n_Ar34_derived) = rate; + if constexpr (std::is_same_v) { + rate_eval.dscreened_rates_dT(k_Ar35_to_n_Ar34_derived) = drate_dT; + } + } + + template + AMREX_GPU_DEVICE AMREX_INLINE + void rate_Ar36_to_n_Ar35_derived(T& rate_eval, const tf_t& tfactors, [[maybe_unused]] part_fun::pf_cache_t& pf_cache) { + + // Ar36 --> n + Ar35 + + amrex::Real rate{}, drate_dT{}; + // Evaluate partition function terms + + amrex::Real n_log_pf, dn_log_pf_dT9; + + // setting n log(partition function) to 0.0 by default, independent of T + n_log_pf = 0.0_rt; + dn_log_pf_dT9 = 0.0_rt; + + amrex::Real Ar35_log_pf, dAr35_log_pf_dT9; + + // interpolating Ar35 partition function + get_partition_function_cached(Ar35, tfactors.T9, pf_cache, Ar35_log_pf, dAr35_log_pf_dT9); + + amrex::Real Ar36_log_pf, dAr36_log_pf_dT9; + + // interpolating Ar36 partition function + get_partition_function_cached(Ar36, tfactors.T9, pf_cache, Ar36_log_pf, dAr36_log_pf_dT9); + + amrex::Real net_log_pf = n_log_pf + Ar35_log_pf - Ar36_log_pf; + [[maybe_unused]] amrex::Real net_dlog_pf_dT9 = dn_log_pf_dT9 + dAr35_log_pf_dT9 - dAr36_log_pf_dT9; + + amrex::Real ln_set_rate{0.0}; + amrex::Real dln_set_rate_dT9{0.0}; + amrex::Real set_rate{0.0}; + + // ReacLib set derived from ths8r + ln_set_rate = 33.8372707432332 + -177.03342363488906 * tfactors.T9i + 0.542023 * tfactors.T913 + + 0.0223868 * tfactors.T9 + -0.0120062 * tfactors.T953 + 1.5 * tfactors.lnT9; + + ln_set_rate += net_log_pf; + + if constexpr (std::is_same_v) { + dln_set_rate_dT9 = 177.03342363488906 * tfactors.T9i * tfactors.T9i + (1.0/3.0) * 0.542023 * tfactors.T923i + + 0.0223868 + (5.0/3.0) * -0.0120062 * tfactors.T923 + 1.5 * tfactors.T9i; + + dln_set_rate_dT9 += net_dlog_pf_dT9; + } + + // avoid underflows by zeroing rates in [0.0, 1.e-100] + ln_set_rate = std::max(ln_set_rate, -230.0); + set_rate = std::exp(ln_set_rate); + rate += set_rate; + if constexpr (std::is_same_v) { + if (ln_set_rate > -230.0_rt) { + drate_dT += set_rate * dln_set_rate_dT9 * 1.0e-9_rt; + } + } + + rate_eval.screened_rates(k_Ar36_to_n_Ar35_derived) = rate; + if constexpr (std::is_same_v) { + rate_eval.dscreened_rates_dT(k_Ar36_to_n_Ar35_derived) = drate_dT; + } + } + + template + AMREX_GPU_DEVICE AMREX_INLINE + void rate_Ar37_to_n_Ar36_derived(T& rate_eval, const tf_t& tfactors, [[maybe_unused]] part_fun::pf_cache_t& pf_cache) { + + // Ar37 --> n + Ar36 + + amrex::Real rate{}, drate_dT{}; + // Evaluate partition function terms + + amrex::Real n_log_pf, dn_log_pf_dT9; + + // setting n log(partition function) to 0.0 by default, independent of T + n_log_pf = 0.0_rt; + dn_log_pf_dT9 = 0.0_rt; + + amrex::Real Ar37_log_pf, dAr37_log_pf_dT9; + + // interpolating Ar37 partition function + get_partition_function_cached(Ar37, tfactors.T9, pf_cache, Ar37_log_pf, dAr37_log_pf_dT9); + + amrex::Real Ar36_log_pf, dAr36_log_pf_dT9; + + // interpolating Ar36 partition function + get_partition_function_cached(Ar36, tfactors.T9, pf_cache, Ar36_log_pf, dAr36_log_pf_dT9); + + amrex::Real net_log_pf = n_log_pf + Ar36_log_pf - Ar37_log_pf; + [[maybe_unused]] amrex::Real net_dlog_pf_dT9 = dn_log_pf_dT9 + dAr36_log_pf_dT9 - dAr37_log_pf_dT9; + + amrex::Real ln_set_rate{0.0}; + amrex::Real dln_set_rate_dT9{0.0}; + amrex::Real set_rate{0.0}; + + // ReacLib set derived from ks03 + ln_set_rate = 34.31482400258879 + -101.94248915476915 * tfactors.T9i + -3.1764 * tfactors.T913i + 5.13191 * tfactors.T913 + + -0.00639688 * tfactors.T9 + -0.0292833 * tfactors.T953 + -1.24683 * tfactors.lnT9; + + ln_set_rate += net_log_pf; + + if constexpr (std::is_same_v) { + dln_set_rate_dT9 = 101.94248915476915 * tfactors.T9i * tfactors.T9i + -(1.0/3.0) * -3.1764 * tfactors.T943i + (1.0/3.0) * 5.13191 * tfactors.T923i + + -0.00639688 + (5.0/3.0) * -0.0292833 * tfactors.T923 + -1.24683 * tfactors.T9i; + + dln_set_rate_dT9 += net_dlog_pf_dT9; + } + + // avoid underflows by zeroing rates in [0.0, 1.e-100] + ln_set_rate = std::max(ln_set_rate, -230.0); + set_rate = std::exp(ln_set_rate); + rate += set_rate; + if constexpr (std::is_same_v) { + if (ln_set_rate > -230.0_rt) { + drate_dT += set_rate * dln_set_rate_dT9 * 1.0e-9_rt; + } + } + + rate_eval.screened_rates(k_Ar37_to_n_Ar36_derived) = rate; + if constexpr (std::is_same_v) { + rate_eval.dscreened_rates_dT(k_Ar37_to_n_Ar36_derived) = drate_dT; + } + } + + template + AMREX_GPU_DEVICE AMREX_INLINE + void rate_Ar38_to_n_Ar37_derived(T& rate_eval, const tf_t& tfactors, [[maybe_unused]] part_fun::pf_cache_t& pf_cache) { + + // Ar38 --> n + Ar37 + + amrex::Real rate{}, drate_dT{}; + // Evaluate partition function terms + + amrex::Real n_log_pf, dn_log_pf_dT9; + + // setting n log(partition function) to 0.0 by default, independent of T + n_log_pf = 0.0_rt; + dn_log_pf_dT9 = 0.0_rt; + + amrex::Real Ar38_log_pf, dAr38_log_pf_dT9; + + // interpolating Ar38 partition function + get_partition_function_cached(Ar38, tfactors.T9, pf_cache, Ar38_log_pf, dAr38_log_pf_dT9); + + amrex::Real Ar37_log_pf, dAr37_log_pf_dT9; + + // interpolating Ar37 partition function + get_partition_function_cached(Ar37, tfactors.T9, pf_cache, Ar37_log_pf, dAr37_log_pf_dT9); + + amrex::Real net_log_pf = n_log_pf + Ar37_log_pf - Ar38_log_pf; + [[maybe_unused]] amrex::Real net_dlog_pf_dT9 = dn_log_pf_dT9 + dAr37_log_pf_dT9 - dAr38_log_pf_dT9; + + amrex::Real ln_set_rate{0.0}; + amrex::Real dln_set_rate_dT9{0.0}; + amrex::Real set_rate{0.0}; + + // ReacLib set derived from ths8r + ln_set_rate = 39.86712497672913 + -137.37971759787655 * tfactors.T9i + -0.825362 * tfactors.T913 + + 0.336634 * tfactors.T9 + -0.0509617 * tfactors.T953 + 1.5 * tfactors.lnT9; + + ln_set_rate += net_log_pf; + + if constexpr (std::is_same_v) { + dln_set_rate_dT9 = 137.37971759787655 * tfactors.T9i * tfactors.T9i + (1.0/3.0) * -0.825362 * tfactors.T923i + + 0.336634 + (5.0/3.0) * -0.0509617 * tfactors.T923 + 1.5 * tfactors.T9i; + + dln_set_rate_dT9 += net_dlog_pf_dT9; + } + + // avoid underflows by zeroing rates in [0.0, 1.e-100] + ln_set_rate = std::max(ln_set_rate, -230.0); + set_rate = std::exp(ln_set_rate); + rate += set_rate; + if constexpr (std::is_same_v) { + if (ln_set_rate > -230.0_rt) { + drate_dT += set_rate * dln_set_rate_dT9 * 1.0e-9_rt; + } + } + + rate_eval.screened_rates(k_Ar38_to_n_Ar37_derived) = rate; + if constexpr (std::is_same_v) { + rate_eval.dscreened_rates_dT(k_Ar38_to_n_Ar37_derived) = drate_dT; + } + } + + template + AMREX_GPU_DEVICE AMREX_INLINE + void rate_Si29_to_n_Si28_derived(T& rate_eval, const tf_t& tfactors, [[maybe_unused]] part_fun::pf_cache_t& pf_cache) { + + // Si29 --> n + Si28 + + amrex::Real rate{}, drate_dT{}; + // Evaluate partition function terms + + amrex::Real n_log_pf, dn_log_pf_dT9; + + // setting n log(partition function) to 0.0 by default, independent of T + n_log_pf = 0.0_rt; + dn_log_pf_dT9 = 0.0_rt; + + amrex::Real Si29_log_pf, dSi29_log_pf_dT9; + + // interpolating Si29 partition function + get_partition_function_cached(Si29, tfactors.T9, pf_cache, Si29_log_pf, dSi29_log_pf_dT9); + + amrex::Real Si28_log_pf, dSi28_log_pf_dT9; + + // interpolating Si28 partition function + get_partition_function_cached(Si28, tfactors.T9, pf_cache, Si28_log_pf, dSi28_log_pf_dT9); + + amrex::Real net_log_pf = n_log_pf + Si28_log_pf - Si29_log_pf; + [[maybe_unused]] amrex::Real net_dlog_pf_dT9 = dn_log_pf_dT9 + dSi28_log_pf_dT9 - dSi29_log_pf_dT9; + + amrex::Real ln_set_rate{0.0}; + amrex::Real dln_set_rate_dT9{0.0}; + amrex::Real set_rate{0.0}; + + // ReacLib set derived from ka02r + ln_set_rate = 29.897307803823217 + -98.71207376605948 * tfactors.T9i + 7.68863 * tfactors.T913 + + -1.7991 * tfactors.T9; + + ln_set_rate += net_log_pf; + + if constexpr (std::is_same_v) { + dln_set_rate_dT9 = 98.71207376605948 * tfactors.T9i * tfactors.T9i + (1.0/3.0) * 7.68863 * tfactors.T923i + + -1.7991; + + dln_set_rate_dT9 += net_dlog_pf_dT9; + } + + // avoid underflows by zeroing rates in [0.0, 1.e-100] + ln_set_rate = std::max(ln_set_rate, -230.0); + set_rate = std::exp(ln_set_rate); + rate += set_rate; + if constexpr (std::is_same_v) { + if (ln_set_rate > -230.0_rt) { + drate_dT += set_rate * dln_set_rate_dT9 * 1.0e-9_rt; + } + } + + // ReacLib set derived from ka02 + ln_set_rate = 31.757037803823216 + -98.33207376605948 * tfactors.T9i + + 1.5 * tfactors.lnT9; + + ln_set_rate += net_log_pf; + + if constexpr (std::is_same_v) { + dln_set_rate_dT9 = 98.33207376605948 * tfactors.T9i * tfactors.T9i + + 1.5 * tfactors.T9i; + + dln_set_rate_dT9 += net_dlog_pf_dT9; + } + + // avoid underflows by zeroing rates in [0.0, 1.e-100] + ln_set_rate = std::max(ln_set_rate, -230.0); + set_rate = std::exp(ln_set_rate); + rate += set_rate; + if constexpr (std::is_same_v) { + if (ln_set_rate > -230.0_rt) { + drate_dT += set_rate * dln_set_rate_dT9 * 1.0e-9_rt; + } + } + + rate_eval.screened_rates(k_Si29_to_n_Si28_derived) = rate; + if constexpr (std::is_same_v) { + rate_eval.dscreened_rates_dT(k_Si29_to_n_Si28_derived) = drate_dT; + } + } + + template + AMREX_GPU_DEVICE AMREX_INLINE + void rate_Si30_to_n_Si29_derived(T& rate_eval, const tf_t& tfactors, [[maybe_unused]] part_fun::pf_cache_t& pf_cache) { + + // Si30 --> n + Si29 + + amrex::Real rate{}, drate_dT{}; + // Evaluate partition function terms + + amrex::Real n_log_pf, dn_log_pf_dT9; + + // setting n log(partition function) to 0.0 by default, independent of T + n_log_pf = 0.0_rt; + dn_log_pf_dT9 = 0.0_rt; + + amrex::Real Si30_log_pf, dSi30_log_pf_dT9; + + // interpolating Si30 partition function + get_partition_function_cached(Si30, tfactors.T9, pf_cache, Si30_log_pf, dSi30_log_pf_dT9); + + amrex::Real Si29_log_pf, dSi29_log_pf_dT9; + + // interpolating Si29 partition function + get_partition_function_cached(Si29, tfactors.T9, pf_cache, Si29_log_pf, dSi29_log_pf_dT9); + + amrex::Real net_log_pf = n_log_pf + Si29_log_pf - Si30_log_pf; + [[maybe_unused]] amrex::Real net_dlog_pf_dT9 = dn_log_pf_dT9 + dSi29_log_pf_dT9 - dSi30_log_pf_dT9; + + amrex::Real ln_set_rate{0.0}; + amrex::Real dln_set_rate_dT9{0.0}; + amrex::Real set_rate{0.0}; + + // ReacLib set derived from ka02r + ln_set_rate = 33.97093028791906 + -123.2940034088064 * tfactors.T9i + 5.50678 * tfactors.T913 + + -2.85656 * tfactors.T9; + + ln_set_rate += net_log_pf; + + if constexpr (std::is_same_v) { + dln_set_rate_dT9 = 123.2940034088064 * tfactors.T9i * tfactors.T9i + (1.0/3.0) * 5.50678 * tfactors.T923i + + -2.85656; + + dln_set_rate_dT9 += net_dlog_pf_dT9; + } + + // avoid underflows by zeroing rates in [0.0, 1.e-100] + ln_set_rate = std::max(ln_set_rate, -230.0); + set_rate = std::exp(ln_set_rate); + rate += set_rate; + if constexpr (std::is_same_v) { + if (ln_set_rate > -230.0_rt) { + drate_dT += set_rate * dln_set_rate_dT9 * 1.0e-9_rt; + } + } + + // ReacLib set derived from ka02n + ln_set_rate = 36.17208028791906 + -123.1146374088064 * tfactors.T9i + 0.650904 * tfactors.T913 + + 1.5 * tfactors.lnT9; + + ln_set_rate += net_log_pf; + + if constexpr (std::is_same_v) { + dln_set_rate_dT9 = 123.1146374088064 * tfactors.T9i * tfactors.T9i + (1.0/3.0) * 0.650904 * tfactors.T923i + + 1.5 * tfactors.T9i; + + dln_set_rate_dT9 += net_dlog_pf_dT9; + } + + // avoid underflows by zeroing rates in [0.0, 1.e-100] + ln_set_rate = std::max(ln_set_rate, -230.0); + set_rate = std::exp(ln_set_rate); + rate += set_rate; + if constexpr (std::is_same_v) { + if (ln_set_rate > -230.0_rt) { + drate_dT += set_rate * dln_set_rate_dT9 * 1.0e-9_rt; + } + } + + rate_eval.screened_rates(k_Si30_to_n_Si29_derived) = rate; + if constexpr (std::is_same_v) { + rate_eval.dscreened_rates_dT(k_Si30_to_n_Si29_derived) = drate_dT; + } + } + + template + AMREX_GPU_DEVICE AMREX_INLINE + void rate_S31_to_n_S30_derived(T& rate_eval, const tf_t& tfactors, [[maybe_unused]] part_fun::pf_cache_t& pf_cache) { + + // S31 --> n + S30 + + amrex::Real rate{}, drate_dT{}; + // Evaluate partition function terms + + amrex::Real n_log_pf, dn_log_pf_dT9; + + // setting n log(partition function) to 0.0 by default, independent of T + n_log_pf = 0.0_rt; + dn_log_pf_dT9 = 0.0_rt; + + amrex::Real S30_log_pf, dS30_log_pf_dT9; + + // interpolating S30 partition function + get_partition_function_cached(S30, tfactors.T9, pf_cache, S30_log_pf, dS30_log_pf_dT9); + + amrex::Real S31_log_pf, dS31_log_pf_dT9; + + // interpolating S31 partition function + get_partition_function_cached(S31, tfactors.T9, pf_cache, S31_log_pf, dS31_log_pf_dT9); + + amrex::Real net_log_pf = n_log_pf + S30_log_pf - S31_log_pf; + [[maybe_unused]] amrex::Real net_dlog_pf_dT9 = dn_log_pf_dT9 + dS30_log_pf_dT9 - dS31_log_pf_dT9; + + amrex::Real ln_set_rate{0.0}; + amrex::Real dln_set_rate_dT9{0.0}; + amrex::Real set_rate{0.0}; + + // ReacLib set derived from ths8r + ln_set_rate = 33.31388497305849 + -151.49232022100603 * tfactors.T9i + 1.62298 * tfactors.T913 + + -0.278802 * tfactors.T9 + 0.0210647 * tfactors.T953 + 1.5 * tfactors.lnT9; + + ln_set_rate += net_log_pf; + + if constexpr (std::is_same_v) { + dln_set_rate_dT9 = 151.49232022100603 * tfactors.T9i * tfactors.T9i + (1.0/3.0) * 1.62298 * tfactors.T923i + + -0.278802 + (5.0/3.0) * 0.0210647 * tfactors.T923 + 1.5 * tfactors.T9i; + + dln_set_rate_dT9 += net_dlog_pf_dT9; + } + + // avoid underflows by zeroing rates in [0.0, 1.e-100] + ln_set_rate = std::max(ln_set_rate, -230.0); + set_rate = std::exp(ln_set_rate); + rate += set_rate; + if constexpr (std::is_same_v) { + if (ln_set_rate > -230.0_rt) { + drate_dT += set_rate * dln_set_rate_dT9 * 1.0e-9_rt; + } + } + + rate_eval.screened_rates(k_S31_to_n_S30_derived) = rate; + if constexpr (std::is_same_v) { + rate_eval.dscreened_rates_dT(k_S31_to_n_S30_derived) = drate_dT; + } + } + + template + AMREX_GPU_DEVICE AMREX_INLINE + void rate_S32_to_n_S31_derived(T& rate_eval, const tf_t& tfactors, [[maybe_unused]] part_fun::pf_cache_t& pf_cache) { + + // S32 --> n + S31 + + amrex::Real rate{}, drate_dT{}; + // Evaluate partition function terms + + amrex::Real n_log_pf, dn_log_pf_dT9; + + // setting n log(partition function) to 0.0 by default, independent of T + n_log_pf = 0.0_rt; + dn_log_pf_dT9 = 0.0_rt; + + amrex::Real S31_log_pf, dS31_log_pf_dT9; + + // interpolating S31 partition function + get_partition_function_cached(S31, tfactors.T9, pf_cache, S31_log_pf, dS31_log_pf_dT9); + + amrex::Real S32_log_pf, dS32_log_pf_dT9; + + // interpolating S32 partition function + get_partition_function_cached(S32, tfactors.T9, pf_cache, S32_log_pf, dS32_log_pf_dT9); + + amrex::Real net_log_pf = n_log_pf + S31_log_pf - S32_log_pf; + [[maybe_unused]] amrex::Real net_dlog_pf_dT9 = dn_log_pf_dT9 + dS31_log_pf_dT9 - dS32_log_pf_dT9; + + amrex::Real ln_set_rate{0.0}; + amrex::Real dln_set_rate_dT9{0.0}; + amrex::Real set_rate{0.0}; + + // ReacLib set derived from ths8r + ln_set_rate = 31.939203653425814 + -174.58214440988277 * tfactors.T9i + 1.71463 * tfactors.T913 + + -0.221804 * tfactors.T9 + 0.00880104 * tfactors.T953 + 1.5 * tfactors.lnT9; + + ln_set_rate += net_log_pf; + + if constexpr (std::is_same_v) { + dln_set_rate_dT9 = 174.58214440988277 * tfactors.T9i * tfactors.T9i + (1.0/3.0) * 1.71463 * tfactors.T923i + + -0.221804 + (5.0/3.0) * 0.00880104 * tfactors.T923 + 1.5 * tfactors.T9i; + + dln_set_rate_dT9 += net_dlog_pf_dT9; + } + + // avoid underflows by zeroing rates in [0.0, 1.e-100] + ln_set_rate = std::max(ln_set_rate, -230.0); + set_rate = std::exp(ln_set_rate); + rate += set_rate; + if constexpr (std::is_same_v) { + if (ln_set_rate > -230.0_rt) { + drate_dT += set_rate * dln_set_rate_dT9 * 1.0e-9_rt; + } + } + + rate_eval.screened_rates(k_S32_to_n_S31_derived) = rate; + if constexpr (std::is_same_v) { + rate_eval.dscreened_rates_dT(k_S32_to_n_S31_derived) = drate_dT; + } + } + + template + AMREX_GPU_DEVICE AMREX_INLINE + void rate_S33_to_n_S32_derived(T& rate_eval, const tf_t& tfactors, [[maybe_unused]] part_fun::pf_cache_t& pf_cache) { + + // S33 --> n + S32 + + amrex::Real rate{}, drate_dT{}; + // Evaluate partition function terms + + amrex::Real n_log_pf, dn_log_pf_dT9; + + // setting n log(partition function) to 0.0 by default, independent of T + n_log_pf = 0.0_rt; + dn_log_pf_dT9 = 0.0_rt; + + amrex::Real S32_log_pf, dS32_log_pf_dT9; + + // interpolating S32 partition function + get_partition_function_cached(S32, tfactors.T9, pf_cache, S32_log_pf, dS32_log_pf_dT9); + + amrex::Real S33_log_pf, dS33_log_pf_dT9; + + // interpolating S33 partition function + get_partition_function_cached(S33, tfactors.T9, pf_cache, S33_log_pf, dS33_log_pf_dT9); + + amrex::Real net_log_pf = n_log_pf + S32_log_pf - S33_log_pf; + [[maybe_unused]] amrex::Real net_dlog_pf_dT9 = dn_log_pf_dT9 + dS32_log_pf_dT9 - dS33_log_pf_dT9; + + amrex::Real ln_set_rate{0.0}; + amrex::Real dln_set_rate_dT9{0.0}; + amrex::Real set_rate{0.0}; + + // ReacLib set derived from ks03 + ln_set_rate = 34.741454198619536 + -100.0832318567133 * tfactors.T9i + -15.0178 * tfactors.T913i + 16.3567 * tfactors.T913 + + -0.436839 * tfactors.T9 + -0.00574462 * tfactors.T953 + -8.28034 * tfactors.lnT9; + + ln_set_rate += net_log_pf; + + if constexpr (std::is_same_v) { + dln_set_rate_dT9 = 100.0832318567133 * tfactors.T9i * tfactors.T9i + -(1.0/3.0) * -15.0178 * tfactors.T943i + (1.0/3.0) * 16.3567 * tfactors.T923i + + -0.436839 + (5.0/3.0) * -0.00574462 * tfactors.T923 + -8.28034 * tfactors.T9i; + + dln_set_rate_dT9 += net_dlog_pf_dT9; + } + + // avoid underflows by zeroing rates in [0.0, 1.e-100] + ln_set_rate = std::max(ln_set_rate, -230.0); + set_rate = std::exp(ln_set_rate); + rate += set_rate; + if constexpr (std::is_same_v) { + if (ln_set_rate > -230.0_rt) { + drate_dT += set_rate * dln_set_rate_dT9 * 1.0e-9_rt; + } + } + + rate_eval.screened_rates(k_S33_to_n_S32_derived) = rate; + if constexpr (std::is_same_v) { + rate_eval.dscreened_rates_dT(k_S33_to_n_S32_derived) = drate_dT; + } + } + + template + AMREX_GPU_DEVICE AMREX_INLINE + void rate_S34_to_n_S33_derived(T& rate_eval, const tf_t& tfactors, [[maybe_unused]] part_fun::pf_cache_t& pf_cache) { + + // S34 --> n + S33 + + amrex::Real rate{}, drate_dT{}; + // Evaluate partition function terms + + amrex::Real n_log_pf, dn_log_pf_dT9; + + // setting n log(partition function) to 0.0 by default, independent of T + n_log_pf = 0.0_rt; + dn_log_pf_dT9 = 0.0_rt; + + amrex::Real S33_log_pf, dS33_log_pf_dT9; + + // interpolating S33 partition function + get_partition_function_cached(S33, tfactors.T9, pf_cache, S33_log_pf, dS33_log_pf_dT9); + + amrex::Real S34_log_pf, dS34_log_pf_dT9; + + // interpolating S34 partition function + get_partition_function_cached(S34, tfactors.T9, pf_cache, S34_log_pf, dS34_log_pf_dT9); + + amrex::Real net_log_pf = n_log_pf + S33_log_pf - S34_log_pf; + [[maybe_unused]] amrex::Real net_dlog_pf_dT9 = dn_log_pf_dT9 + dS33_log_pf_dT9 - dS34_log_pf_dT9; + + amrex::Real ln_set_rate{0.0}; + amrex::Real dln_set_rate_dT9{0.0}; + amrex::Real set_rate{0.0}; + + // ReacLib set derived from ks03 + ln_set_rate = 20.889721414503413 + -132.24411175059305 * tfactors.T9i + -23.1351 * tfactors.T913i + 43.3623 * tfactors.T913 + + -2.74733 * tfactors.T9 + 0.159045 * tfactors.T953 + -18.1332 * tfactors.lnT9; + + ln_set_rate += net_log_pf; + + if constexpr (std::is_same_v) { + dln_set_rate_dT9 = 132.24411175059305 * tfactors.T9i * tfactors.T9i + -(1.0/3.0) * -23.1351 * tfactors.T943i + (1.0/3.0) * 43.3623 * tfactors.T923i + + -2.74733 + (5.0/3.0) * 0.159045 * tfactors.T923 + -18.1332 * tfactors.T9i; + + dln_set_rate_dT9 += net_dlog_pf_dT9; + } + + // avoid underflows by zeroing rates in [0.0, 1.e-100] + ln_set_rate = std::max(ln_set_rate, -230.0); + set_rate = std::exp(ln_set_rate); + rate += set_rate; + if constexpr (std::is_same_v) { + if (ln_set_rate > -230.0_rt) { + drate_dT += set_rate * dln_set_rate_dT9 * 1.0e-9_rt; + } + } + + rate_eval.screened_rates(k_S34_to_n_S33_derived) = rate; + if constexpr (std::is_same_v) { + rate_eval.dscreened_rates_dT(k_S34_to_n_S33_derived) = drate_dT; + } + } + + template + AMREX_GPU_DEVICE AMREX_INLINE + void rate_Na23_p_to_C12_C12_derived(T& rate_eval, const tf_t& tfactors, const amrex::Real log_scor, const amrex::Real dlog_scor_dT, [[maybe_unused]] part_fun::pf_cache_t& pf_cache) { + + // Na23 + p --> C12 + C12 + + amrex::Real rate{}, drate_dT{}; + // Evaluate partition function terms + + amrex::Real C12_log_pf, dC12_log_pf_dT9; + + // setting C12 log(partition function) to 0.0 by default, independent of T + C12_log_pf = 0.0_rt; + dC12_log_pf_dT9 = 0.0_rt; + + amrex::Real Na23_log_pf, dNa23_log_pf_dT9; + + // interpolating Na23 partition function + get_partition_function_cached(Na23, tfactors.T9, pf_cache, Na23_log_pf, dNa23_log_pf_dT9); + + amrex::Real p_log_pf, dp_log_pf_dT9; + + // setting p log(partition function) to 0.0 by default, independent of T + p_log_pf = 0.0_rt; + dp_log_pf_dT9 = 0.0_rt; + + amrex::Real net_log_pf = C12_log_pf + C12_log_pf - p_log_pf - Na23_log_pf; + [[maybe_unused]] amrex::Real net_dlog_pf_dT9 = dC12_log_pf_dT9 + dC12_log_pf_dT9 - dp_log_pf_dT9 - dNa23_log_pf_dT9; + + amrex::Real ln_set_rate{0.0}; + amrex::Real dln_set_rate_dT9{0.0}; + amrex::Real set_rate{0.0}; + + // ReacLib set derived from cf88r + ln_set_rate = 60.92541574740554 + -26.004360836807496 * tfactors.T9i + -84.165 * tfactors.T913i + -1.4191 * tfactors.T913 + + -0.114619 * tfactors.T9 + -0.070307 * tfactors.T953 + -0.666667 * tfactors.lnT9; + + ln_set_rate += net_log_pf; + ln_set_rate += log_scor; + + if constexpr (std::is_same_v) { + dln_set_rate_dT9 = 26.004360836807496 * tfactors.T9i * tfactors.T9i + -(1.0/3.0) * -84.165 * tfactors.T943i + (1.0/3.0) * -1.4191 * tfactors.T923i + + -0.114619 + (5.0/3.0) * -0.070307 * tfactors.T923 + -0.666667 * tfactors.T9i; + + dln_set_rate_dT9 += net_dlog_pf_dT9; + dln_set_rate_dT9 += dlog_scor_dT * 1.0e9_rt; + } + + // avoid underflows by zeroing rates in [0.0, 1.e-100] + ln_set_rate = std::max(ln_set_rate, -230.0); + set_rate = std::exp(ln_set_rate); + rate += set_rate; + if constexpr (std::is_same_v) { + if (ln_set_rate > -230.0_rt) { + drate_dT += set_rate * dln_set_rate_dT9 * 1.0e-9_rt; + } + } + + rate_eval.screened_rates(k_Na23_p_to_C12_C12_derived) = rate; + if constexpr (std::is_same_v) { + rate_eval.dscreened_rates_dT(k_Na23_p_to_C12_C12_derived) = drate_dT; + } + } + + template + AMREX_GPU_DEVICE AMREX_INLINE + void rate_Mg24_to_p_Na23_derived(T& rate_eval, const tf_t& tfactors, [[maybe_unused]] part_fun::pf_cache_t& pf_cache) { + + // Mg24 --> p + Na23 + + amrex::Real rate{}, drate_dT{}; + // Evaluate partition function terms + + amrex::Real Na23_log_pf, dNa23_log_pf_dT9; + + // interpolating Na23 partition function + get_partition_function_cached(Na23, tfactors.T9, pf_cache, Na23_log_pf, dNa23_log_pf_dT9); + + amrex::Real p_log_pf, dp_log_pf_dT9; + + // setting p log(partition function) to 0.0 by default, independent of T + p_log_pf = 0.0_rt; + dp_log_pf_dT9 = 0.0_rt; + + amrex::Real Mg24_log_pf, dMg24_log_pf_dT9; + + // interpolating Mg24 partition function + get_partition_function_cached(Mg24, tfactors.T9, pf_cache, Mg24_log_pf, dMg24_log_pf_dT9); + + amrex::Real net_log_pf = p_log_pf + Na23_log_pf - Mg24_log_pf; + [[maybe_unused]] amrex::Real net_dlog_pf_dT9 = dp_log_pf_dT9 + dNa23_log_pf_dT9 - dMg24_log_pf_dT9; + + amrex::Real ln_set_rate{0.0}; + amrex::Real dln_set_rate_dT9{0.0}; + amrex::Real set_rate{0.0}; + + // ReacLib set derived from il10r + ln_set_rate = 34.107544561463015 + -138.96838756220697 * tfactors.T9i + -0.360588 * tfactors.T913 + + 1.4187 * tfactors.T9 + -0.184061 * tfactors.T953; + + ln_set_rate += net_log_pf; + + if constexpr (std::is_same_v) { + dln_set_rate_dT9 = 138.96838756220697 * tfactors.T9i * tfactors.T9i + (1.0/3.0) * -0.360588 * tfactors.T923i + + 1.4187 + (5.0/3.0) * -0.184061 * tfactors.T923; + + dln_set_rate_dT9 += net_dlog_pf_dT9; + } + + // avoid underflows by zeroing rates in [0.0, 1.e-100] + ln_set_rate = std::max(ln_set_rate, -230.0); + set_rate = std::exp(ln_set_rate); + rate += set_rate; + if constexpr (std::is_same_v) { + if (ln_set_rate > -230.0_rt) { + drate_dT += set_rate * dln_set_rate_dT9 * 1.0e-9_rt; + } + } + + // ReacLib set derived from il10r + ln_set_rate = 20.02229456146302 + -137.30028756220696 * tfactors.T9i; + + ln_set_rate += net_log_pf; + + if constexpr (std::is_same_v) { + dln_set_rate_dT9 = 137.30028756220696 * tfactors.T9i * tfactors.T9i; + + dln_set_rate_dT9 += net_dlog_pf_dT9; + } + + // avoid underflows by zeroing rates in [0.0, 1.e-100] + ln_set_rate = std::max(ln_set_rate, -230.0); + set_rate = std::exp(ln_set_rate); + rate += set_rate; + if constexpr (std::is_same_v) { + if (ln_set_rate > -230.0_rt) { + drate_dT += set_rate * dln_set_rate_dT9 * 1.0e-9_rt; + } + } + + // ReacLib set derived from il10n + ln_set_rate = 43.95564456146302 + -135.68809756220696 * tfactors.T9i + -20.6428 * tfactors.T913i + 1.52954 * tfactors.T913 + + 2.7487 * tfactors.T9 + -1.0 * tfactors.T953 + 0.833333 * tfactors.lnT9; + + ln_set_rate += net_log_pf; + + if constexpr (std::is_same_v) { + dln_set_rate_dT9 = 135.68809756220696 * tfactors.T9i * tfactors.T9i + -(1.0/3.0) * -20.6428 * tfactors.T943i + (1.0/3.0) * 1.52954 * tfactors.T923i + + 2.7487 + (5.0/3.0) * -1.0 * tfactors.T923 + 0.833333 * tfactors.T9i; + + dln_set_rate_dT9 += net_dlog_pf_dT9; + } + + // avoid underflows by zeroing rates in [0.0, 1.e-100] + ln_set_rate = std::max(ln_set_rate, -230.0); + set_rate = std::exp(ln_set_rate); + rate += set_rate; + if constexpr (std::is_same_v) { + if (ln_set_rate > -230.0_rt) { + drate_dT += set_rate * dln_set_rate_dT9 * 1.0e-9_rt; + } + } + + rate_eval.screened_rates(k_Mg24_to_p_Na23_derived) = rate; + if constexpr (std::is_same_v) { + rate_eval.dscreened_rates_dT(k_Mg24_to_p_Na23_derived) = drate_dT; + } + } + + template + AMREX_GPU_DEVICE AMREX_INLINE + void rate_Ne20_He4_to_C12_C12_derived(T& rate_eval, const tf_t& tfactors, const amrex::Real log_scor, const amrex::Real dlog_scor_dT, [[maybe_unused]] part_fun::pf_cache_t& pf_cache) { + + // Ne20 + He4 --> C12 + C12 + + amrex::Real rate{}, drate_dT{}; + // Evaluate partition function terms + + amrex::Real C12_log_pf, dC12_log_pf_dT9; + + // setting C12 log(partition function) to 0.0 by default, independent of T + C12_log_pf = 0.0_rt; + dC12_log_pf_dT9 = 0.0_rt; + + amrex::Real He4_log_pf, dHe4_log_pf_dT9; + + // setting He4 log(partition function) to 0.0 by default, independent of T + He4_log_pf = 0.0_rt; + dHe4_log_pf_dT9 = 0.0_rt; + + amrex::Real Ne20_log_pf, dNe20_log_pf_dT9; + + // interpolating Ne20 partition function + get_partition_function_cached(Ne20, tfactors.T9, pf_cache, Ne20_log_pf, dNe20_log_pf_dT9); + + amrex::Real net_log_pf = C12_log_pf + C12_log_pf - He4_log_pf - Ne20_log_pf; + [[maybe_unused]] amrex::Real net_dlog_pf_dT9 = dC12_log_pf_dT9 + dC12_log_pf_dT9 - dHe4_log_pf_dT9 - dNe20_log_pf_dT9; + + amrex::Real ln_set_rate{0.0}; + amrex::Real dln_set_rate_dT9{0.0}; + amrex::Real set_rate{0.0}; + + // ReacLib set derived from cf88r + ln_set_rate = 61.474151468919175 + -53.57824966896331 * tfactors.T9i + -84.165 * tfactors.T913i + -1.56627 * tfactors.T913 + + -0.0736084 * tfactors.T9 + -0.072797 * tfactors.T953 + -0.666667 * tfactors.lnT9; + + ln_set_rate += net_log_pf; + ln_set_rate += log_scor; + + if constexpr (std::is_same_v) { + dln_set_rate_dT9 = 53.57824966896331 * tfactors.T9i * tfactors.T9i + -(1.0/3.0) * -84.165 * tfactors.T943i + (1.0/3.0) * -1.56627 * tfactors.T923i + + -0.0736084 + (5.0/3.0) * -0.072797 * tfactors.T923 + -0.666667 * tfactors.T9i; + + dln_set_rate_dT9 += net_dlog_pf_dT9; + dln_set_rate_dT9 += dlog_scor_dT * 1.0e9_rt; + } + + // avoid underflows by zeroing rates in [0.0, 1.e-100] + ln_set_rate = std::max(ln_set_rate, -230.0); + set_rate = std::exp(ln_set_rate); + rate += set_rate; + if constexpr (std::is_same_v) { + if (ln_set_rate > -230.0_rt) { + drate_dT += set_rate * dln_set_rate_dT9 * 1.0e-9_rt; + } + } + + rate_eval.screened_rates(k_Ne20_He4_to_C12_C12_derived) = rate; + if constexpr (std::is_same_v) { + rate_eval.dscreened_rates_dT(k_Ne20_He4_to_C12_C12_derived) = drate_dT; + } + } + + template + AMREX_GPU_DEVICE AMREX_INLINE + void rate_Ne20_He4_to_p_Na23_derived(T& rate_eval, const tf_t& tfactors, const amrex::Real log_scor, const amrex::Real dlog_scor_dT, [[maybe_unused]] part_fun::pf_cache_t& pf_cache) { + + // Ne20 + He4 --> p + Na23 + + amrex::Real rate{}, drate_dT{}; + // Evaluate partition function terms + + amrex::Real Na23_log_pf, dNa23_log_pf_dT9; + + // interpolating Na23 partition function + get_partition_function_cached(Na23, tfactors.T9, pf_cache, Na23_log_pf, dNa23_log_pf_dT9); + + amrex::Real p_log_pf, dp_log_pf_dT9; + + // setting p log(partition function) to 0.0 by default, independent of T + p_log_pf = 0.0_rt; + dp_log_pf_dT9 = 0.0_rt; + + amrex::Real He4_log_pf, dHe4_log_pf_dT9; + + // setting He4 log(partition function) to 0.0 by default, independent of T + He4_log_pf = 0.0_rt; + dHe4_log_pf_dT9 = 0.0_rt; + + amrex::Real Ne20_log_pf, dNe20_log_pf_dT9; + + // interpolating Ne20 partition function + get_partition_function_cached(Ne20, tfactors.T9, pf_cache, Ne20_log_pf, dNe20_log_pf_dT9); + + amrex::Real net_log_pf = p_log_pf + Na23_log_pf - He4_log_pf - Ne20_log_pf; + [[maybe_unused]] amrex::Real net_dlog_pf_dT9 = dp_log_pf_dT9 + dNa23_log_pf_dT9 - dHe4_log_pf_dT9 - dNe20_log_pf_dT9; + + amrex::Real ln_set_rate{0.0}; + amrex::Real dln_set_rate_dT9{0.0}; + amrex::Real set_rate{0.0}; + + // ReacLib set derived from il10r + ln_set_rate = -6.360024278486355 + -29.889658832139027 * tfactors.T9i + 19.7297 * tfactors.T913 + + -2.20987 * tfactors.T9 + 0.153374 * tfactors.T953 + -1.5 * tfactors.lnT9; + + ln_set_rate += net_log_pf; + ln_set_rate += log_scor; + + if constexpr (std::is_same_v) { + dln_set_rate_dT9 = 29.889658832139027 * tfactors.T9i * tfactors.T9i + (1.0/3.0) * 19.7297 * tfactors.T923i + + -2.20987 + (5.0/3.0) * 0.153374 * tfactors.T923 + -1.5 * tfactors.T9i; + + dln_set_rate_dT9 += net_dlog_pf_dT9; + dln_set_rate_dT9 += dlog_scor_dT * 1.0e9_rt; + } + + // avoid underflows by zeroing rates in [0.0, 1.e-100] + ln_set_rate = std::max(ln_set_rate, -230.0); + set_rate = std::exp(ln_set_rate); + rate += set_rate; + if constexpr (std::is_same_v) { + if (ln_set_rate > -230.0_rt) { + drate_dT += set_rate * dln_set_rate_dT9 * 1.0e-9_rt; + } + } + + // ReacLib set derived from il10r + ln_set_rate = 0.24516522151364528 + -29.434918832139026 * tfactors.T9i + + -1.5 * tfactors.lnT9; + + ln_set_rate += net_log_pf; + ln_set_rate += log_scor; + + if constexpr (std::is_same_v) { + dln_set_rate_dT9 = 29.434918832139026 * tfactors.T9i * tfactors.T9i + + -1.5 * tfactors.T9i; + + dln_set_rate_dT9 += net_dlog_pf_dT9; + dln_set_rate_dT9 += dlog_scor_dT * 1.0e9_rt; + } + + // avoid underflows by zeroing rates in [0.0, 1.e-100] + ln_set_rate = std::max(ln_set_rate, -230.0); + set_rate = std::exp(ln_set_rate); + rate += set_rate; + if constexpr (std::is_same_v) { + if (ln_set_rate > -230.0_rt) { + drate_dT += set_rate * dln_set_rate_dT9 * 1.0e-9_rt; + } + } + + // ReacLib set derived from il10n + ln_set_rate = 19.202935721513644 + -27.573888832139026 * tfactors.T9i + -20.0024 * tfactors.T913i + 11.5988 * tfactors.T913 + + -1.37398 * tfactors.T9 + -1.0 * tfactors.T953 + -0.666667 * tfactors.lnT9; + + ln_set_rate += net_log_pf; + ln_set_rate += log_scor; + + if constexpr (std::is_same_v) { + dln_set_rate_dT9 = 27.573888832139026 * tfactors.T9i * tfactors.T9i + -(1.0/3.0) * -20.0024 * tfactors.T943i + (1.0/3.0) * 11.5988 * tfactors.T923i + + -1.37398 + (5.0/3.0) * -1.0 * tfactors.T923 + -0.666667 * tfactors.T9i; + + dln_set_rate_dT9 += net_dlog_pf_dT9; + dln_set_rate_dT9 += dlog_scor_dT * 1.0e9_rt; + } + + // avoid underflows by zeroing rates in [0.0, 1.e-100] + ln_set_rate = std::max(ln_set_rate, -230.0); + set_rate = std::exp(ln_set_rate); + rate += set_rate; + if constexpr (std::is_same_v) { + if (ln_set_rate > -230.0_rt) { + drate_dT += set_rate * dln_set_rate_dT9 * 1.0e-9_rt; + } + } + + rate_eval.screened_rates(k_Ne20_He4_to_p_Na23_derived) = rate; + if constexpr (std::is_same_v) { + rate_eval.dscreened_rates_dT(k_Ne20_He4_to_p_Na23_derived) = drate_dT; + } + } + + template + AMREX_GPU_DEVICE AMREX_INLINE + void rate_Mg24_to_He4_Ne20_derived(T& rate_eval, const tf_t& tfactors, [[maybe_unused]] part_fun::pf_cache_t& pf_cache) { + + // Mg24 --> He4 + Ne20 + + amrex::Real rate{}, drate_dT{}; + // Evaluate partition function terms + + amrex::Real He4_log_pf, dHe4_log_pf_dT9; + + // setting He4 log(partition function) to 0.0 by default, independent of T + He4_log_pf = 0.0_rt; + dHe4_log_pf_dT9 = 0.0_rt; + + amrex::Real Mg24_log_pf, dMg24_log_pf_dT9; + + // interpolating Mg24 partition function + get_partition_function_cached(Mg24, tfactors.T9, pf_cache, Mg24_log_pf, dMg24_log_pf_dT9); + + amrex::Real Ne20_log_pf, dNe20_log_pf_dT9; + + // interpolating Ne20 partition function + get_partition_function_cached(Ne20, tfactors.T9, pf_cache, Ne20_log_pf, dNe20_log_pf_dT9); + + amrex::Real net_log_pf = He4_log_pf + Ne20_log_pf - Mg24_log_pf; + [[maybe_unused]] amrex::Real net_dlog_pf_dT9 = dHe4_log_pf_dT9 + dNe20_log_pf_dT9 - dMg24_log_pf_dT9; + + amrex::Real ln_set_rate{0.0}; + amrex::Real dln_set_rate_dT9{0.0}; + amrex::Real set_rate{0.0}; + + // ReacLib set derived from il10r + ln_set_rate = 16.022538839949377 + -120.89510873006793 * tfactors.T9i + 16.9229 * tfactors.T913 + + -2.57325 * tfactors.T9 + 0.208997 * tfactors.T953; + + ln_set_rate += net_log_pf; + + if constexpr (std::is_same_v) { + dln_set_rate_dT9 = 120.89510873006793 * tfactors.T9i * tfactors.T9i + (1.0/3.0) * 16.9229 * tfactors.T923i + + -2.57325 + (5.0/3.0) * 0.208997 * tfactors.T923; + + dln_set_rate_dT9 += net_dlog_pf_dT9; + } + + // avoid underflows by zeroing rates in [0.0, 1.e-100] + ln_set_rate = std::max(ln_set_rate, -230.0); + set_rate = std::exp(ln_set_rate); + rate += set_rate; + if constexpr (std::is_same_v) { + if (ln_set_rate > -230.0_rt) { + drate_dT += set_rate * dln_set_rate_dT9 * 1.0e-9_rt; + } + } + + // ReacLib set derived from il10r + ln_set_rate = 26.803878839949377 + -117.33446873006793 * tfactors.T9i; + + ln_set_rate += net_log_pf; + + if constexpr (std::is_same_v) { + dln_set_rate_dT9 = 117.33446873006793 * tfactors.T9i * tfactors.T9i; + + dln_set_rate_dT9 += net_dlog_pf_dT9; + } + + // avoid underflows by zeroing rates in [0.0, 1.e-100] + ln_set_rate = std::max(ln_set_rate, -230.0); + set_rate = std::exp(ln_set_rate); + rate += set_rate; + if constexpr (std::is_same_v) { + if (ln_set_rate > -230.0_rt) { + drate_dT += set_rate * dln_set_rate_dT9 * 1.0e-9_rt; + } + } + + // ReacLib set derived from il10r + ln_set_rate = -13.884691160050625 + -110.62025873006793 * tfactors.T9i; + + ln_set_rate += net_log_pf; + + if constexpr (std::is_same_v) { + dln_set_rate_dT9 = 110.62025873006793 * tfactors.T9i * tfactors.T9i; + + dln_set_rate_dT9 += net_dlog_pf_dT9; + } + + // avoid underflows by zeroing rates in [0.0, 1.e-100] + ln_set_rate = std::max(ln_set_rate, -230.0); + set_rate = std::exp(ln_set_rate); + rate += set_rate; + if constexpr (std::is_same_v) { + if (ln_set_rate > -230.0_rt) { + drate_dT += set_rate * dln_set_rate_dT9 * 1.0e-9_rt; + } + } + + // ReacLib set derived from il10n + ln_set_rate = 49.32660883994937 + -108.11420873006793 * tfactors.T9i + -46.2525 * tfactors.T913i + 5.58901 * tfactors.T913 + + 7.61843 * tfactors.T9 + -3.683 * tfactors.T953 + 0.833333 * tfactors.lnT9; + + ln_set_rate += net_log_pf; + + if constexpr (std::is_same_v) { + dln_set_rate_dT9 = 108.11420873006793 * tfactors.T9i * tfactors.T9i + -(1.0/3.0) * -46.2525 * tfactors.T943i + (1.0/3.0) * 5.58901 * tfactors.T923i + + 7.61843 + (5.0/3.0) * -3.683 * tfactors.T923 + 0.833333 * tfactors.T9i; + + dln_set_rate_dT9 += net_dlog_pf_dT9; + } + + // avoid underflows by zeroing rates in [0.0, 1.e-100] + ln_set_rate = std::max(ln_set_rate, -230.0); + set_rate = std::exp(ln_set_rate); + rate += set_rate; + if constexpr (std::is_same_v) { + if (ln_set_rate > -230.0_rt) { + drate_dT += set_rate * dln_set_rate_dT9 * 1.0e-9_rt; + } + } + + rate_eval.screened_rates(k_Mg24_to_He4_Ne20_derived) = rate; + if constexpr (std::is_same_v) { + rate_eval.dscreened_rates_dT(k_Mg24_to_He4_Ne20_derived) = drate_dT; + } + } + + + template + AMREX_GPU_DEVICE AMREX_INLINE + void + fill_rates([[maybe_unused]] const tf_t& tfactors, + [[maybe_unused]] T& rate_eval) + { + + [[maybe_unused]] amrex::Real rate; + [[maybe_unused]] amrex::Real drate_dT; + + part_fun::pf_cache_t pf_cache{}; + + pf_cache.index_temp_array_1 = interp_net::find_index(tfactors.T9, part_fun::temp_array_1); + + { + // O16_to_He4_C12_derived + rate_O16_to_He4_C12_derived(rate_eval, tfactors, pf_cache); + } + + { + // Ne20_to_He4_O16_derived + rate_Ne20_to_He4_O16_derived(rate_eval, tfactors, pf_cache); + } + + { + // Mg24_to_n_Mg23_derived + rate_Mg24_to_n_Mg23_derived(rate_eval, tfactors, pf_cache); + } + + { + // Si27_to_He4_Mg23_derived + rate_Si27_to_He4_Mg23_derived(rate_eval, tfactors, pf_cache); + } + + { + // Si28_to_n_Si27_derived + rate_Si28_to_n_Si27_derived(rate_eval, tfactors, pf_cache); + } + + { + // Si28_to_p_Al27_derived + rate_Si28_to_p_Al27_derived(rate_eval, tfactors, pf_cache); + } + + { + // Si28_to_He4_Mg24_derived + rate_Si28_to_He4_Mg24_derived(rate_eval, tfactors, pf_cache); + } + + { + // P29_to_p_Si28_derived + rate_P29_to_p_Si28_derived(rate_eval, tfactors, pf_cache); + } + + { + // P31_to_p_Si30_derived + rate_P31_to_p_Si30_derived(rate_eval, tfactors, pf_cache); + } + + { + // P31_to_He4_Al27_derived + rate_P31_to_He4_Al27_derived(rate_eval, tfactors, pf_cache); + } + + { + // S30_to_p_P29_derived + rate_S30_to_p_P29_derived(rate_eval, tfactors, pf_cache); + } + + { + // S32_to_p_P31_derived + rate_S32_to_p_P31_derived(rate_eval, tfactors, pf_cache); + } + + { + // S32_to_He4_Si28_derived + rate_S32_to_He4_Si28_derived(rate_eval, tfactors, pf_cache); + } + + { + // S34_to_He4_Si30_derived + rate_S34_to_He4_Si30_derived(rate_eval, tfactors, pf_cache); + } + + { + // Cl33_to_p_S32_derived + rate_Cl33_to_p_S32_derived(rate_eval, tfactors, pf_cache); + } + + { + // Cl33_to_He4_P29_derived + rate_Cl33_to_He4_P29_derived(rate_eval, tfactors, pf_cache); + } + + { + // Cl35_to_p_S34_derived + rate_Cl35_to_p_S34_derived(rate_eval, tfactors, pf_cache); + } + + { + // Cl35_to_He4_P31_derived + rate_Cl35_to_He4_P31_derived(rate_eval, tfactors, pf_cache); + } + + { + // Ar34_to_p_Cl33_derived + rate_Ar34_to_p_Cl33_derived(rate_eval, tfactors, pf_cache); + } + + { + // Ar34_to_He4_S30_derived + rate_Ar34_to_He4_S30_derived(rate_eval, tfactors, pf_cache); + } + + { + // Ar36_to_p_Cl35_derived + rate_Ar36_to_p_Cl35_derived(rate_eval, tfactors, pf_cache); + } + + { + // Ar36_to_He4_S32_derived + rate_Ar36_to_He4_S32_derived(rate_eval, tfactors, pf_cache); + } + + { + // Ar38_to_He4_S34_derived + rate_Ar38_to_He4_S34_derived(rate_eval, tfactors, pf_cache); + } + + { + // K37_to_p_Ar36_derived + rate_K37_to_p_Ar36_derived(rate_eval, tfactors, pf_cache); + } + + { + // K37_to_He4_Cl33_derived + rate_K37_to_He4_Cl33_derived(rate_eval, tfactors, pf_cache); + } + + { + // K39_to_p_Ar38_derived + rate_K39_to_p_Ar38_derived(rate_eval, tfactors, pf_cache); + } + + { + // K39_to_He4_Cl35_derived + rate_K39_to_He4_Cl35_derived(rate_eval, tfactors, pf_cache); + } + + { + // Ca38_to_p_K37_derived + rate_Ca38_to_p_K37_derived(rate_eval, tfactors, pf_cache); + } + + { + // Ca38_to_He4_Ar34_derived + rate_Ca38_to_He4_Ar34_derived(rate_eval, tfactors, pf_cache); + } + + { + // Ca40_to_p_K39_derived + rate_Ca40_to_p_K39_derived(rate_eval, tfactors, pf_cache); + } + + { + // Ca40_to_He4_Ar36_derived + rate_Ca40_to_He4_Ar36_derived(rate_eval, tfactors, pf_cache); + } + + { + // Ca42_to_He4_Ar38_derived + rate_Ca42_to_He4_Ar38_derived(rate_eval, tfactors, pf_cache); + } + + { + // Sc41_to_p_Ca40_derived + rate_Sc41_to_p_Ca40_derived(rate_eval, tfactors, pf_cache); + } + + { + // Sc41_to_He4_K37_derived + rate_Sc41_to_He4_K37_derived(rate_eval, tfactors, pf_cache); + } + + { + // Sc43_to_p_Ca42_derived + rate_Sc43_to_p_Ca42_derived(rate_eval, tfactors, pf_cache); + } + + { + // Sc43_to_He4_K39_derived + rate_Sc43_to_He4_K39_derived(rate_eval, tfactors, pf_cache); + } + + { + // Ti42_to_p_Sc41_derived + rate_Ti42_to_p_Sc41_derived(rate_eval, tfactors, pf_cache); + } + + { + // Ti42_to_He4_Ca38_derived + rate_Ti42_to_He4_Ca38_derived(rate_eval, tfactors, pf_cache); + } + + { + // Ti44_to_p_Sc43_derived + rate_Ti44_to_p_Sc43_derived(rate_eval, tfactors, pf_cache); + } + + { + // Ti44_to_He4_Ca40_derived + rate_Ti44_to_He4_Ca40_derived(rate_eval, tfactors, pf_cache); + } + + { + // Ti46_to_He4_Ca42_derived + rate_Ti46_to_He4_Ca42_derived(rate_eval, tfactors, pf_cache); + } + + { + // V45_to_p_Ti44_derived + rate_V45_to_p_Ti44_derived(rate_eval, tfactors, pf_cache); + } + + { + // V45_to_He4_Sc41_derived + rate_V45_to_He4_Sc41_derived(rate_eval, tfactors, pf_cache); + } + + { + // V47_to_p_Ti46_derived + rate_V47_to_p_Ti46_derived(rate_eval, tfactors, pf_cache); + } + + { + // V47_to_He4_Sc43_derived + rate_V47_to_He4_Sc43_derived(rate_eval, tfactors, pf_cache); + } + + { + // Cr46_to_p_V45_derived + rate_Cr46_to_p_V45_derived(rate_eval, tfactors, pf_cache); + } + + { + // Cr46_to_He4_Ti42_derived + rate_Cr46_to_He4_Ti42_derived(rate_eval, tfactors, pf_cache); + } + + { + // Cr48_to_p_V47_derived + rate_Cr48_to_p_V47_derived(rate_eval, tfactors, pf_cache); + } + + { + // Cr48_to_He4_Ti44_derived + rate_Cr48_to_He4_Ti44_derived(rate_eval, tfactors, pf_cache); + } + + { + // Cr50_to_p_V49_derived + rate_Cr50_to_p_V49_derived(rate_eval, tfactors, pf_cache); + } + + { + // Cr50_to_He4_Ti46_derived + rate_Cr50_to_He4_Ti46_derived(rate_eval, tfactors, pf_cache); + } + + { + // Mn49_to_p_Cr48_derived + rate_Mn49_to_p_Cr48_derived(rate_eval, tfactors, pf_cache); + } + + { + // Mn49_to_He4_V45_derived + rate_Mn49_to_He4_V45_derived(rate_eval, tfactors, pf_cache); + } + + { + // Mn51_to_p_Cr50_derived + rate_Mn51_to_p_Cr50_derived(rate_eval, tfactors, pf_cache); + } + + { + // Mn51_to_He4_V47_derived + rate_Mn51_to_He4_V47_derived(rate_eval, tfactors, pf_cache); + } + + { + // Mn53_to_p_Cr52_derived + rate_Mn53_to_p_Cr52_derived(rate_eval, tfactors, pf_cache); + } + + { + // Mn53_to_He4_V49_derived + rate_Mn53_to_He4_V49_derived(rate_eval, tfactors, pf_cache); + } + + { + // Fe50_to_p_Mn49_derived + rate_Fe50_to_p_Mn49_derived(rate_eval, tfactors, pf_cache); + } + + { + // Fe50_to_He4_Cr46_derived + rate_Fe50_to_He4_Cr46_derived(rate_eval, tfactors, pf_cache); + } + + { + // Fe52_to_p_Mn51_derived + rate_Fe52_to_p_Mn51_derived(rate_eval, tfactors, pf_cache); + } + + { + // Fe52_to_He4_Cr48_derived + rate_Fe52_to_He4_Cr48_derived(rate_eval, tfactors, pf_cache); + } + + { + // Fe54_to_p_Mn53_derived + rate_Fe54_to_p_Mn53_derived(rate_eval, tfactors, pf_cache); + } + + { + // Fe54_to_He4_Cr50_derived + rate_Fe54_to_He4_Cr50_derived(rate_eval, tfactors, pf_cache); + } + + { + // Fe56_to_He4_Cr52_derived + rate_Fe56_to_He4_Cr52_derived(rate_eval, tfactors, pf_cache); + } + + { + // Co53_to_p_Fe52_derived + rate_Co53_to_p_Fe52_derived(rate_eval, tfactors, pf_cache); + } + + { + // Co53_to_He4_Mn49_derived + rate_Co53_to_He4_Mn49_derived(rate_eval, tfactors, pf_cache); + } + + { + // Co55_to_p_Fe54_derived + rate_Co55_to_p_Fe54_derived(rate_eval, tfactors, pf_cache); + } + + { + // Co55_to_He4_Mn51_derived + rate_Co55_to_He4_Mn51_derived(rate_eval, tfactors, pf_cache); + } + + { + // Co56_to_n_Co55_derived + rate_Co56_to_n_Co55_derived(rate_eval, tfactors, pf_cache); + } + + { + // Co57_to_n_Co56_derived + rate_Co57_to_n_Co56_derived(rate_eval, tfactors, pf_cache); + } + + { + // Co57_to_p_Fe56_derived + rate_Co57_to_p_Fe56_derived(rate_eval, tfactors, pf_cache); + } + + { + // Co57_to_He4_Mn53_derived + rate_Co57_to_He4_Mn53_derived(rate_eval, tfactors, pf_cache); + } + + { + // Ni56_to_p_Co55_derived + rate_Ni56_to_p_Co55_derived(rate_eval, tfactors, pf_cache); + } + + { + // Ni56_to_He4_Fe52_derived + rate_Ni56_to_He4_Fe52_derived(rate_eval, tfactors, pf_cache); + } + + { + // Ni58_to_p_Co57_derived + rate_Ni58_to_p_Co57_derived(rate_eval, tfactors, pf_cache); + } + + { + // Ni58_to_He4_Fe54_derived + rate_Ni58_to_He4_Fe54_derived(rate_eval, tfactors, pf_cache); + } + + { + // Cu59_to_p_Ni58_derived + rate_Cu59_to_p_Ni58_derived(rate_eval, tfactors, pf_cache); + } + + { + // Cu59_to_He4_Co55_derived + rate_Cu59_to_He4_Co55_derived(rate_eval, tfactors, pf_cache); + } + + { + // C12_to_3He4_derived + rate_C12_to_3He4_derived(rate_eval, tfactors, pf_cache); + } + + { + // C12_C12_to_n_Mg23_derived + amrex::Real log_scor {0.0_rt}; + amrex::Real dlog_scor_dT {0.0_rt}; +#ifdef SCREENING + log_scor = rate_eval.log_screen(k_C12_C12); + if constexpr (std::is_same_v) { + dlog_scor_dT = rate_eval.dlog_screen_dT(k_C12_C12); + } +#endif + rate_C12_C12_to_n_Mg23_derived(rate_eval, tfactors, log_scor, dlog_scor_dT, pf_cache); + } + + { + // O16_C12_to_n_Si27_derived + amrex::Real log_scor {0.0_rt}; + amrex::Real dlog_scor_dT {0.0_rt}; +#ifdef SCREENING + log_scor = rate_eval.log_screen(k_C12_O16); + if constexpr (std::is_same_v) { + dlog_scor_dT = rate_eval.dlog_screen_dT(k_C12_O16); + } +#endif + rate_O16_C12_to_n_Si27_derived(rate_eval, tfactors, log_scor, dlog_scor_dT, pf_cache); + } + + { + // Ne20_He4_to_n_Mg23_derived + amrex::Real log_scor {0.0_rt}; + amrex::Real dlog_scor_dT {0.0_rt}; +#ifdef SCREENING + log_scor = rate_eval.log_screen(k_He4_Ne20); + if constexpr (std::is_same_v) { + dlog_scor_dT = rate_eval.dlog_screen_dT(k_He4_Ne20); + } +#endif + rate_Ne20_He4_to_n_Mg23_derived(rate_eval, tfactors, log_scor, dlog_scor_dT, pf_cache); + } + + { + // Mg24_He4_to_n_Si27_derived + amrex::Real log_scor {0.0_rt}; + amrex::Real dlog_scor_dT {0.0_rt}; +#ifdef SCREENING + log_scor = rate_eval.log_screen(k_He4_Mg24); + if constexpr (std::is_same_v) { + dlog_scor_dT = rate_eval.dlog_screen_dT(k_He4_Mg24); + } +#endif + rate_Mg24_He4_to_n_Si27_derived(rate_eval, tfactors, log_scor, dlog_scor_dT, pf_cache); + } + + { + // Mg24_He4_to_p_Al27_derived + amrex::Real log_scor {0.0_rt}; + amrex::Real dlog_scor_dT {0.0_rt}; +#ifdef SCREENING + log_scor = rate_eval.log_screen(k_He4_Mg24); + if constexpr (std::is_same_v) { + dlog_scor_dT = rate_eval.dlog_screen_dT(k_He4_Mg24); + } +#endif + rate_Mg24_He4_to_p_Al27_derived(rate_eval, tfactors, log_scor, dlog_scor_dT, pf_cache); + } + + { + // Mg24_He4_to_C12_O16_derived + amrex::Real log_scor {0.0_rt}; + amrex::Real dlog_scor_dT {0.0_rt}; +#ifdef SCREENING + log_scor = rate_eval.log_screen(k_He4_Mg24); + if constexpr (std::is_same_v) { + dlog_scor_dT = rate_eval.dlog_screen_dT(k_He4_Mg24); + } +#endif + rate_Mg24_He4_to_C12_O16_derived(rate_eval, tfactors, log_scor, dlog_scor_dT, pf_cache); + } + + { + // Al27_p_to_n_Si27_derived + amrex::Real log_scor {0.0_rt}; + amrex::Real dlog_scor_dT {0.0_rt}; +#ifdef SCREENING + log_scor = rate_eval.log_screen(k_p_Al27); + if constexpr (std::is_same_v) { + dlog_scor_dT = rate_eval.dlog_screen_dT(k_p_Al27); + } +#endif + rate_Al27_p_to_n_Si27_derived(rate_eval, tfactors, log_scor, dlog_scor_dT, pf_cache); + } + + { + // Al27_p_to_C12_O16_derived + amrex::Real log_scor {0.0_rt}; + amrex::Real dlog_scor_dT {0.0_rt}; +#ifdef SCREENING + log_scor = rate_eval.log_screen(k_p_Al27); + if constexpr (std::is_same_v) { + dlog_scor_dT = rate_eval.dlog_screen_dT(k_p_Al27); + } +#endif + rate_Al27_p_to_C12_O16_derived(rate_eval, tfactors, log_scor, dlog_scor_dT, pf_cache); + } + + { + // Si27_He4_to_n_S30_derived + amrex::Real log_scor {0.0_rt}; + amrex::Real dlog_scor_dT {0.0_rt}; +#ifdef SCREENING + log_scor = rate_eval.log_screen(k_He4_Si27); + if constexpr (std::is_same_v) { + dlog_scor_dT = rate_eval.dlog_screen_dT(k_He4_Si27); + } +#endif + rate_Si27_He4_to_n_S30_derived(rate_eval, tfactors, log_scor, dlog_scor_dT, pf_cache); + } + + { + // Si28_He4_to_p_P31_derived + amrex::Real log_scor {0.0_rt}; + amrex::Real dlog_scor_dT {0.0_rt}; +#ifdef SCREENING + log_scor = rate_eval.log_screen(k_He4_Si28); + if constexpr (std::is_same_v) { + dlog_scor_dT = rate_eval.dlog_screen_dT(k_He4_Si28); + } +#endif + rate_Si28_He4_to_p_P31_derived(rate_eval, tfactors, log_scor, dlog_scor_dT, pf_cache); + } + + { + // Si28_He4_to_C12_Ne20_derived + amrex::Real log_scor {0.0_rt}; + amrex::Real dlog_scor_dT {0.0_rt}; +#ifdef SCREENING + log_scor = rate_eval.log_screen(k_He4_Si28); + if constexpr (std::is_same_v) { + dlog_scor_dT = rate_eval.dlog_screen_dT(k_He4_Si28); + } +#endif + rate_Si28_He4_to_C12_Ne20_derived(rate_eval, tfactors, log_scor, dlog_scor_dT, pf_cache); + } + + { + // Si28_He4_to_O16_O16_derived + amrex::Real log_scor {0.0_rt}; + amrex::Real dlog_scor_dT {0.0_rt}; +#ifdef SCREENING + log_scor = rate_eval.log_screen(k_He4_Si28); + if constexpr (std::is_same_v) { + dlog_scor_dT = rate_eval.dlog_screen_dT(k_He4_Si28); + } +#endif + rate_Si28_He4_to_O16_O16_derived(rate_eval, tfactors, log_scor, dlog_scor_dT, pf_cache); + } + + { + // Si30_p_to_He4_Al27_derived + amrex::Real log_scor {0.0_rt}; + amrex::Real dlog_scor_dT {0.0_rt}; +#ifdef SCREENING + log_scor = rate_eval.log_screen(k_p_Si30); + if constexpr (std::is_same_v) { + dlog_scor_dT = rate_eval.dlog_screen_dT(k_p_Si30); + } +#endif + rate_Si30_p_to_He4_Al27_derived(rate_eval, tfactors, log_scor, dlog_scor_dT, pf_cache); + } + + { + // P31_p_to_C12_Ne20_derived + amrex::Real log_scor {0.0_rt}; + amrex::Real dlog_scor_dT {0.0_rt}; +#ifdef SCREENING + log_scor = rate_eval.log_screen(k_p_P31); + if constexpr (std::is_same_v) { + dlog_scor_dT = rate_eval.dlog_screen_dT(k_p_P31); + } +#endif + rate_P31_p_to_C12_Ne20_derived(rate_eval, tfactors, log_scor, dlog_scor_dT, pf_cache); + } + + { + // P31_p_to_O16_O16_derived + amrex::Real log_scor {0.0_rt}; + amrex::Real dlog_scor_dT {0.0_rt}; +#ifdef SCREENING + log_scor = rate_eval.log_screen(k_p_P31); + if constexpr (std::is_same_v) { + dlog_scor_dT = rate_eval.dlog_screen_dT(k_p_P31); + } +#endif + rate_P31_p_to_O16_O16_derived(rate_eval, tfactors, log_scor, dlog_scor_dT, pf_cache); + } + + { + // S32_p_to_He4_P29_derived + amrex::Real log_scor {0.0_rt}; + amrex::Real dlog_scor_dT {0.0_rt}; +#ifdef SCREENING + log_scor = rate_eval.log_screen(k_p_S32); + if constexpr (std::is_same_v) { + dlog_scor_dT = rate_eval.dlog_screen_dT(k_p_S32); + } +#endif + rate_S32_p_to_He4_P29_derived(rate_eval, tfactors, log_scor, dlog_scor_dT, pf_cache); + } + + { + // S32_He4_to_p_Cl35_derived + amrex::Real log_scor {0.0_rt}; + amrex::Real dlog_scor_dT {0.0_rt}; +#ifdef SCREENING + log_scor = rate_eval.log_screen(k_He4_S32); + if constexpr (std::is_same_v) { + dlog_scor_dT = rate_eval.dlog_screen_dT(k_He4_S32); + } +#endif + rate_S32_He4_to_p_Cl35_derived(rate_eval, tfactors, log_scor, dlog_scor_dT, pf_cache); + } + + { + // S34_p_to_He4_P31_derived + amrex::Real log_scor {0.0_rt}; + amrex::Real dlog_scor_dT {0.0_rt}; +#ifdef SCREENING + log_scor = rate_eval.log_screen(k_p_S34); + if constexpr (std::is_same_v) { + dlog_scor_dT = rate_eval.dlog_screen_dT(k_p_S34); + } +#endif + rate_S34_p_to_He4_P31_derived(rate_eval, tfactors, log_scor, dlog_scor_dT, pf_cache); + } + + { + // Cl33_p_to_He4_S30_derived + amrex::Real log_scor {0.0_rt}; + amrex::Real dlog_scor_dT {0.0_rt}; +#ifdef SCREENING + log_scor = rate_eval.log_screen(k_p_Cl33); + if constexpr (std::is_same_v) { + dlog_scor_dT = rate_eval.dlog_screen_dT(k_p_Cl33); + } +#endif + rate_Cl33_p_to_He4_S30_derived(rate_eval, tfactors, log_scor, dlog_scor_dT, pf_cache); + } + + { + // Ar36_p_to_He4_Cl33_derived + amrex::Real log_scor {0.0_rt}; + amrex::Real dlog_scor_dT {0.0_rt}; +#ifdef SCREENING + log_scor = rate_eval.log_screen(k_p_Ar36); + if constexpr (std::is_same_v) { + dlog_scor_dT = rate_eval.dlog_screen_dT(k_p_Ar36); + } +#endif + rate_Ar36_p_to_He4_Cl33_derived(rate_eval, tfactors, log_scor, dlog_scor_dT, pf_cache); + } + + { + // Ar36_He4_to_p_K39_derived + amrex::Real log_scor {0.0_rt}; + amrex::Real dlog_scor_dT {0.0_rt}; +#ifdef SCREENING + log_scor = rate_eval.log_screen(k_He4_Ar36); + if constexpr (std::is_same_v) { + dlog_scor_dT = rate_eval.dlog_screen_dT(k_He4_Ar36); + } +#endif + rate_Ar36_He4_to_p_K39_derived(rate_eval, tfactors, log_scor, dlog_scor_dT, pf_cache); + } + + { + // Ar38_p_to_He4_Cl35_derived + amrex::Real log_scor {0.0_rt}; + amrex::Real dlog_scor_dT {0.0_rt}; +#ifdef SCREENING + log_scor = rate_eval.log_screen(k_p_Ar38); + if constexpr (std::is_same_v) { + dlog_scor_dT = rate_eval.dlog_screen_dT(k_p_Ar38); + } +#endif + rate_Ar38_p_to_He4_Cl35_derived(rate_eval, tfactors, log_scor, dlog_scor_dT, pf_cache); + } + + { + // K37_p_to_He4_Ar34_derived + amrex::Real log_scor {0.0_rt}; + amrex::Real dlog_scor_dT {0.0_rt}; +#ifdef SCREENING + log_scor = rate_eval.log_screen(k_p_K37); + if constexpr (std::is_same_v) { + dlog_scor_dT = rate_eval.dlog_screen_dT(k_p_K37); + } +#endif + rate_K37_p_to_He4_Ar34_derived(rate_eval, tfactors, log_scor, dlog_scor_dT, pf_cache); + } + + { + // K39_He4_to_p_Ca42_derived + amrex::Real log_scor {0.0_rt}; + amrex::Real dlog_scor_dT {0.0_rt}; +#ifdef SCREENING + log_scor = rate_eval.log_screen(k_He4_K39); + if constexpr (std::is_same_v) { + dlog_scor_dT = rate_eval.dlog_screen_dT(k_He4_K39); + } +#endif + rate_K39_He4_to_p_Ca42_derived(rate_eval, tfactors, log_scor, dlog_scor_dT, pf_cache); + } + + { + // Ca40_p_to_He4_K37_derived + amrex::Real log_scor {0.0_rt}; + amrex::Real dlog_scor_dT {0.0_rt}; +#ifdef SCREENING + log_scor = rate_eval.log_screen(k_p_Ca40); + if constexpr (std::is_same_v) { + dlog_scor_dT = rate_eval.dlog_screen_dT(k_p_Ca40); + } +#endif + rate_Ca40_p_to_He4_K37_derived(rate_eval, tfactors, log_scor, dlog_scor_dT, pf_cache); + } + + { + // Ca40_He4_to_p_Sc43_derived + amrex::Real log_scor {0.0_rt}; + amrex::Real dlog_scor_dT {0.0_rt}; +#ifdef SCREENING + log_scor = rate_eval.log_screen(k_He4_Ca40); + if constexpr (std::is_same_v) { + dlog_scor_dT = rate_eval.dlog_screen_dT(k_He4_Ca40); + } +#endif + rate_Ca40_He4_to_p_Sc43_derived(rate_eval, tfactors, log_scor, dlog_scor_dT, pf_cache); + } + + { + // Sc41_p_to_He4_Ca38_derived + amrex::Real log_scor {0.0_rt}; + amrex::Real dlog_scor_dT {0.0_rt}; +#ifdef SCREENING + log_scor = rate_eval.log_screen(k_p_Sc41); + if constexpr (std::is_same_v) { + dlog_scor_dT = rate_eval.dlog_screen_dT(k_p_Sc41); + } +#endif + rate_Sc41_p_to_He4_Ca38_derived(rate_eval, tfactors, log_scor, dlog_scor_dT, pf_cache); + } + + { + // Ti44_p_to_He4_Sc41_derived + amrex::Real log_scor {0.0_rt}; + amrex::Real dlog_scor_dT {0.0_rt}; +#ifdef SCREENING + log_scor = rate_eval.log_screen(k_p_Ti44); + if constexpr (std::is_same_v) { + dlog_scor_dT = rate_eval.dlog_screen_dT(k_p_Ti44); + } +#endif + rate_Ti44_p_to_He4_Sc41_derived(rate_eval, tfactors, log_scor, dlog_scor_dT, pf_cache); + } + + { + // Ti46_p_to_He4_Sc43_derived + amrex::Real log_scor {0.0_rt}; + amrex::Real dlog_scor_dT {0.0_rt}; +#ifdef SCREENING + log_scor = rate_eval.log_screen(k_p_Ti46); + if constexpr (std::is_same_v) { + dlog_scor_dT = rate_eval.dlog_screen_dT(k_p_Ti46); + } +#endif + rate_Ti46_p_to_He4_Sc43_derived(rate_eval, tfactors, log_scor, dlog_scor_dT, pf_cache); + } + + { + // Ti46_He4_to_p_V49_derived + amrex::Real log_scor {0.0_rt}; + amrex::Real dlog_scor_dT {0.0_rt}; +#ifdef SCREENING + log_scor = rate_eval.log_screen(k_He4_Ti46); + if constexpr (std::is_same_v) { + dlog_scor_dT = rate_eval.dlog_screen_dT(k_He4_Ti46); + } +#endif + rate_Ti46_He4_to_p_V49_derived(rate_eval, tfactors, log_scor, dlog_scor_dT, pf_cache); + } + + { + // V45_p_to_He4_Ti42_derived + amrex::Real log_scor {0.0_rt}; + amrex::Real dlog_scor_dT {0.0_rt}; +#ifdef SCREENING + log_scor = rate_eval.log_screen(k_p_V45); + if constexpr (std::is_same_v) { + dlog_scor_dT = rate_eval.dlog_screen_dT(k_p_V45); + } +#endif + rate_V45_p_to_He4_Ti42_derived(rate_eval, tfactors, log_scor, dlog_scor_dT, pf_cache); + } + + { + // V47_p_to_He4_Ti44_derived + amrex::Real log_scor {0.0_rt}; + amrex::Real dlog_scor_dT {0.0_rt}; +#ifdef SCREENING + log_scor = rate_eval.log_screen(k_p_V47); + if constexpr (std::is_same_v) { + dlog_scor_dT = rate_eval.dlog_screen_dT(k_p_V47); + } +#endif + rate_V47_p_to_He4_Ti44_derived(rate_eval, tfactors, log_scor, dlog_scor_dT, pf_cache); + } + + { + // Cr48_p_to_He4_V45_derived + amrex::Real log_scor {0.0_rt}; + amrex::Real dlog_scor_dT {0.0_rt}; +#ifdef SCREENING + log_scor = rate_eval.log_screen(k_p_Cr48); + if constexpr (std::is_same_v) { + dlog_scor_dT = rate_eval.dlog_screen_dT(k_p_Cr48); + } +#endif + rate_Cr48_p_to_He4_V45_derived(rate_eval, tfactors, log_scor, dlog_scor_dT, pf_cache); + } + + { + // Cr50_p_to_He4_V47_derived + amrex::Real log_scor {0.0_rt}; + amrex::Real dlog_scor_dT {0.0_rt}; +#ifdef SCREENING + log_scor = rate_eval.log_screen(k_p_Cr50); + if constexpr (std::is_same_v) { + dlog_scor_dT = rate_eval.dlog_screen_dT(k_p_Cr50); + } +#endif + rate_Cr50_p_to_He4_V47_derived(rate_eval, tfactors, log_scor, dlog_scor_dT, pf_cache); + } + + { + // Cr50_He4_to_p_Mn53_derived + amrex::Real log_scor {0.0_rt}; + amrex::Real dlog_scor_dT {0.0_rt}; +#ifdef SCREENING + log_scor = rate_eval.log_screen(k_He4_Cr50); + if constexpr (std::is_same_v) { + dlog_scor_dT = rate_eval.dlog_screen_dT(k_He4_Cr50); + } +#endif + rate_Cr50_He4_to_p_Mn53_derived(rate_eval, tfactors, log_scor, dlog_scor_dT, pf_cache); + } + + { + // Cr52_p_to_He4_V49_derived + amrex::Real log_scor {0.0_rt}; + amrex::Real dlog_scor_dT {0.0_rt}; +#ifdef SCREENING + log_scor = rate_eval.log_screen(k_p_Cr52); + if constexpr (std::is_same_v) { + dlog_scor_dT = rate_eval.dlog_screen_dT(k_p_Cr52); + } +#endif + rate_Cr52_p_to_He4_V49_derived(rate_eval, tfactors, log_scor, dlog_scor_dT, pf_cache); + } + + { + // Mn49_p_to_He4_Cr46_derived + amrex::Real log_scor {0.0_rt}; + amrex::Real dlog_scor_dT {0.0_rt}; +#ifdef SCREENING + log_scor = rate_eval.log_screen(k_p_Mn49); + if constexpr (std::is_same_v) { + dlog_scor_dT = rate_eval.dlog_screen_dT(k_p_Mn49); + } +#endif + rate_Mn49_p_to_He4_Cr46_derived(rate_eval, tfactors, log_scor, dlog_scor_dT, pf_cache); + } + + { + // Mn51_p_to_He4_Cr48_derived + amrex::Real log_scor {0.0_rt}; + amrex::Real dlog_scor_dT {0.0_rt}; +#ifdef SCREENING + log_scor = rate_eval.log_screen(k_p_Mn51); + if constexpr (std::is_same_v) { + dlog_scor_dT = rate_eval.dlog_screen_dT(k_p_Mn51); + } +#endif + rate_Mn51_p_to_He4_Cr48_derived(rate_eval, tfactors, log_scor, dlog_scor_dT, pf_cache); + } + + { + // Mn53_He4_to_n_Co56_derived + amrex::Real log_scor {0.0_rt}; + amrex::Real dlog_scor_dT {0.0_rt}; +#ifdef SCREENING + log_scor = rate_eval.log_screen(k_He4_Mn53); + if constexpr (std::is_same_v) { + dlog_scor_dT = rate_eval.dlog_screen_dT(k_He4_Mn53); + } +#endif + rate_Mn53_He4_to_n_Co56_derived(rate_eval, tfactors, log_scor, dlog_scor_dT, pf_cache); + } + + { + // Fe52_p_to_He4_Mn49_derived + amrex::Real log_scor {0.0_rt}; + amrex::Real dlog_scor_dT {0.0_rt}; +#ifdef SCREENING + log_scor = rate_eval.log_screen(k_p_Fe52); + if constexpr (std::is_same_v) { + dlog_scor_dT = rate_eval.dlog_screen_dT(k_p_Fe52); + } +#endif + rate_Fe52_p_to_He4_Mn49_derived(rate_eval, tfactors, log_scor, dlog_scor_dT, pf_cache); + } + + { + // Fe54_p_to_He4_Mn51_derived + amrex::Real log_scor {0.0_rt}; + amrex::Real dlog_scor_dT {0.0_rt}; +#ifdef SCREENING + log_scor = rate_eval.log_screen(k_p_Fe54); + if constexpr (std::is_same_v) { + dlog_scor_dT = rate_eval.dlog_screen_dT(k_p_Fe54); + } +#endif + rate_Fe54_p_to_He4_Mn51_derived(rate_eval, tfactors, log_scor, dlog_scor_dT, pf_cache); + } + + { + // Fe54_He4_to_p_Co57_derived + amrex::Real log_scor {0.0_rt}; + amrex::Real dlog_scor_dT {0.0_rt}; +#ifdef SCREENING + log_scor = rate_eval.log_screen(k_He4_Fe54); + if constexpr (std::is_same_v) { + dlog_scor_dT = rate_eval.dlog_screen_dT(k_He4_Fe54); + } +#endif + rate_Fe54_He4_to_p_Co57_derived(rate_eval, tfactors, log_scor, dlog_scor_dT, pf_cache); + } + + { + // Fe56_p_to_n_Co56_derived + amrex::Real log_scor {0.0_rt}; + amrex::Real dlog_scor_dT {0.0_rt}; +#ifdef SCREENING + log_scor = rate_eval.log_screen(k_p_Fe56); + if constexpr (std::is_same_v) { + dlog_scor_dT = rate_eval.dlog_screen_dT(k_p_Fe56); + } +#endif + rate_Fe56_p_to_n_Co56_derived(rate_eval, tfactors, log_scor, dlog_scor_dT, pf_cache); + } + + { + // Fe56_p_to_He4_Mn53_derived + amrex::Real log_scor {0.0_rt}; + amrex::Real dlog_scor_dT {0.0_rt}; +#ifdef SCREENING + log_scor = rate_eval.log_screen(k_p_Fe56); + if constexpr (std::is_same_v) { + dlog_scor_dT = rate_eval.dlog_screen_dT(k_p_Fe56); + } +#endif + rate_Fe56_p_to_He4_Mn53_derived(rate_eval, tfactors, log_scor, dlog_scor_dT, pf_cache); + } + + { + // Co53_p_to_He4_Fe50_derived + amrex::Real log_scor {0.0_rt}; + amrex::Real dlog_scor_dT {0.0_rt}; +#ifdef SCREENING + log_scor = rate_eval.log_screen(k_p_Co53); + if constexpr (std::is_same_v) { + dlog_scor_dT = rate_eval.dlog_screen_dT(k_p_Co53); + } +#endif + rate_Co53_p_to_He4_Fe50_derived(rate_eval, tfactors, log_scor, dlog_scor_dT, pf_cache); + } + + { + // Co55_p_to_He4_Fe52_derived + amrex::Real log_scor {0.0_rt}; + amrex::Real dlog_scor_dT {0.0_rt}; +#ifdef SCREENING + log_scor = rate_eval.log_screen(k_p_Co55); + if constexpr (std::is_same_v) { + dlog_scor_dT = rate_eval.dlog_screen_dT(k_p_Co55); + } +#endif + rate_Co55_p_to_He4_Fe52_derived(rate_eval, tfactors, log_scor, dlog_scor_dT, pf_cache); + } + + { + // Co56_p_to_n_Ni56_derived + amrex::Real log_scor {0.0_rt}; + amrex::Real dlog_scor_dT {0.0_rt}; +#ifdef SCREENING + log_scor = rate_eval.log_screen(k_p_Co56); + if constexpr (std::is_same_v) { + dlog_scor_dT = rate_eval.dlog_screen_dT(k_p_Co56); + } +#endif + rate_Co56_p_to_n_Ni56_derived(rate_eval, tfactors, log_scor, dlog_scor_dT, pf_cache); + } + + { + // Co56_He4_to_n_Cu59_derived + amrex::Real log_scor {0.0_rt}; + amrex::Real dlog_scor_dT {0.0_rt}; +#ifdef SCREENING + log_scor = rate_eval.log_screen(k_He4_Co56); + if constexpr (std::is_same_v) { + dlog_scor_dT = rate_eval.dlog_screen_dT(k_He4_Co56); + } +#endif + rate_Co56_He4_to_n_Cu59_derived(rate_eval, tfactors, log_scor, dlog_scor_dT, pf_cache); + } + + { + // Ni56_p_to_He4_Co53_derived + amrex::Real log_scor {0.0_rt}; + amrex::Real dlog_scor_dT {0.0_rt}; +#ifdef SCREENING + log_scor = rate_eval.log_screen(k_p_Ni56); + if constexpr (std::is_same_v) { + dlog_scor_dT = rate_eval.dlog_screen_dT(k_p_Ni56); + } +#endif + rate_Ni56_p_to_He4_Co53_derived(rate_eval, tfactors, log_scor, dlog_scor_dT, pf_cache); + } + + { + // Ni56_He4_to_p_Cu59_derived + amrex::Real log_scor {0.0_rt}; + amrex::Real dlog_scor_dT {0.0_rt}; +#ifdef SCREENING + log_scor = rate_eval.log_screen(k_He4_Ni56); + if constexpr (std::is_same_v) { + dlog_scor_dT = rate_eval.dlog_screen_dT(k_He4_Ni56); + } +#endif + rate_Ni56_He4_to_p_Cu59_derived(rate_eval, tfactors, log_scor, dlog_scor_dT, pf_cache); + } + + { + // Ni58_p_to_He4_Co55_derived + amrex::Real log_scor {0.0_rt}; + amrex::Real dlog_scor_dT {0.0_rt}; +#ifdef SCREENING + log_scor = rate_eval.log_screen(k_p_Ni58); + if constexpr (std::is_same_v) { + dlog_scor_dT = rate_eval.dlog_screen_dT(k_p_Ni58); + } +#endif + rate_Ni58_p_to_He4_Co55_derived(rate_eval, tfactors, log_scor, dlog_scor_dT, pf_cache); + } + + { + // Ni57_to_n_Ni56_derived + rate_Ni57_to_n_Ni56_derived(rate_eval, tfactors, pf_cache); + } + + { + // Ni58_to_n_Ni57_derived + rate_Ni58_to_n_Ni57_derived(rate_eval, tfactors, pf_cache); + } + + { + // Co54_to_n_Co53_derived + rate_Co54_to_n_Co53_derived(rate_eval, tfactors, pf_cache); + } + + { + // Co55_to_n_Co54_derived + rate_Co55_to_n_Co54_derived(rate_eval, tfactors, pf_cache); + } + + { + // Fe51_to_n_Fe50_derived + rate_Fe51_to_n_Fe50_derived(rate_eval, tfactors, pf_cache); + } + + { + // Fe52_to_n_Fe51_derived + rate_Fe52_to_n_Fe51_derived(rate_eval, tfactors, pf_cache); + } + + { + // Fe53_to_n_Fe52_derived + rate_Fe53_to_n_Fe52_derived(rate_eval, tfactors, pf_cache); + } + + { + // Fe54_to_n_Fe53_derived + rate_Fe54_to_n_Fe53_derived(rate_eval, tfactors, pf_cache); + } + + { + // Fe55_to_n_Fe54_derived + rate_Fe55_to_n_Fe54_derived(rate_eval, tfactors, pf_cache); + } + + { + // Fe56_to_n_Fe55_derived + rate_Fe56_to_n_Fe55_derived(rate_eval, tfactors, pf_cache); + } + + { + // Mn50_to_n_Mn49_derived + rate_Mn50_to_n_Mn49_derived(rate_eval, tfactors, pf_cache); + } + + { + // Mn51_to_n_Mn50_derived + rate_Mn51_to_n_Mn50_derived(rate_eval, tfactors, pf_cache); + } + + { + // Mn52_to_n_Mn51_derived + rate_Mn52_to_n_Mn51_derived(rate_eval, tfactors, pf_cache); + } + + { + // Mn53_to_n_Mn52_derived + rate_Mn53_to_n_Mn52_derived(rate_eval, tfactors, pf_cache); + } + + { + // Cr47_to_n_Cr46_derived + rate_Cr47_to_n_Cr46_derived(rate_eval, tfactors, pf_cache); + } + + { + // Cr48_to_n_Cr47_derived + rate_Cr48_to_n_Cr47_derived(rate_eval, tfactors, pf_cache); + } + + { + // Cr49_to_n_Cr48_derived + rate_Cr49_to_n_Cr48_derived(rate_eval, tfactors, pf_cache); + } + + { + // Cr50_to_n_Cr49_derived + rate_Cr50_to_n_Cr49_derived(rate_eval, tfactors, pf_cache); + } + + { + // Cr51_to_n_Cr50_derived + rate_Cr51_to_n_Cr50_derived(rate_eval, tfactors, pf_cache); + } + + { + // Cr52_to_n_Cr51_derived + rate_Cr52_to_n_Cr51_derived(rate_eval, tfactors, pf_cache); + } + + { + // V46_to_n_V45_derived + rate_V46_to_n_V45_derived(rate_eval, tfactors, pf_cache); + } + + { + // V47_to_n_V46_derived + rate_V47_to_n_V46_derived(rate_eval, tfactors, pf_cache); + } + + { + // V48_to_n_V47_derived + rate_V48_to_n_V47_derived(rate_eval, tfactors, pf_cache); + } + + { + // V49_to_n_V48_derived + rate_V49_to_n_V48_derived(rate_eval, tfactors, pf_cache); + } + + { + // Ti43_to_n_Ti42_derived + rate_Ti43_to_n_Ti42_derived(rate_eval, tfactors, pf_cache); + } + + { + // Ti44_to_n_Ti43_derived + rate_Ti44_to_n_Ti43_derived(rate_eval, tfactors, pf_cache); + } + + { + // Ti45_to_n_Ti44_derived + rate_Ti45_to_n_Ti44_derived(rate_eval, tfactors, pf_cache); + } + + { + // Ti46_to_n_Ti45_derived + rate_Ti46_to_n_Ti45_derived(rate_eval, tfactors, pf_cache); + } + + { + // Sc42_to_n_Sc41_derived + rate_Sc42_to_n_Sc41_derived(rate_eval, tfactors, pf_cache); + } + + { + // Sc43_to_n_Sc42_derived + rate_Sc43_to_n_Sc42_derived(rate_eval, tfactors, pf_cache); + } + + { + // Ca39_to_n_Ca38_derived + rate_Ca39_to_n_Ca38_derived(rate_eval, tfactors, pf_cache); + } + + { + // Ca40_to_n_Ca39_derived + rate_Ca40_to_n_Ca39_derived(rate_eval, tfactors, pf_cache); + } + + { + // Ca41_to_n_Ca40_derived + rate_Ca41_to_n_Ca40_derived(rate_eval, tfactors, pf_cache); + } + + { + // Ca42_to_n_Ca41_derived + rate_Ca42_to_n_Ca41_derived(rate_eval, tfactors, pf_cache); + } + + { + // Ar35_to_n_Ar34_derived + rate_Ar35_to_n_Ar34_derived(rate_eval, tfactors, pf_cache); + } + + { + // Ar36_to_n_Ar35_derived + rate_Ar36_to_n_Ar35_derived(rate_eval, tfactors, pf_cache); + } + + { + // Ar37_to_n_Ar36_derived + rate_Ar37_to_n_Ar36_derived(rate_eval, tfactors, pf_cache); + } + + { + // Ar38_to_n_Ar37_derived + rate_Ar38_to_n_Ar37_derived(rate_eval, tfactors, pf_cache); + } + + { + // Si29_to_n_Si28_derived + rate_Si29_to_n_Si28_derived(rate_eval, tfactors, pf_cache); + } + + { + // Si30_to_n_Si29_derived + rate_Si30_to_n_Si29_derived(rate_eval, tfactors, pf_cache); + } + + { + // S31_to_n_S30_derived + rate_S31_to_n_S30_derived(rate_eval, tfactors, pf_cache); + } + + { + // S32_to_n_S31_derived + rate_S32_to_n_S31_derived(rate_eval, tfactors, pf_cache); + } + + { + // S33_to_n_S32_derived + rate_S33_to_n_S32_derived(rate_eval, tfactors, pf_cache); + } + + { + // S34_to_n_S33_derived + rate_S34_to_n_S33_derived(rate_eval, tfactors, pf_cache); + } + + { + // Na23_p_to_C12_C12_derived + amrex::Real log_scor {0.0_rt}; + amrex::Real dlog_scor_dT {0.0_rt}; +#ifdef SCREENING + log_scor = rate_eval.log_screen(k_p_Na23); + if constexpr (std::is_same_v) { + dlog_scor_dT = rate_eval.dlog_screen_dT(k_p_Na23); + } +#endif + rate_Na23_p_to_C12_C12_derived(rate_eval, tfactors, log_scor, dlog_scor_dT, pf_cache); + } + + { + // Mg24_to_p_Na23_derived + rate_Mg24_to_p_Na23_derived(rate_eval, tfactors, pf_cache); + } + + { + // Ne20_He4_to_C12_C12_derived + amrex::Real log_scor {0.0_rt}; + amrex::Real dlog_scor_dT {0.0_rt}; +#ifdef SCREENING + log_scor = rate_eval.log_screen(k_He4_Ne20); + if constexpr (std::is_same_v) { + dlog_scor_dT = rate_eval.dlog_screen_dT(k_He4_Ne20); + } +#endif + rate_Ne20_He4_to_C12_C12_derived(rate_eval, tfactors, log_scor, dlog_scor_dT, pf_cache); + } + + { + // Ne20_He4_to_p_Na23_derived + amrex::Real log_scor {0.0_rt}; + amrex::Real dlog_scor_dT {0.0_rt}; +#ifdef SCREENING + log_scor = rate_eval.log_screen(k_He4_Ne20); + if constexpr (std::is_same_v) { + dlog_scor_dT = rate_eval.dlog_screen_dT(k_He4_Ne20); + } +#endif + rate_Ne20_He4_to_p_Na23_derived(rate_eval, tfactors, log_scor, dlog_scor_dT, pf_cache); + } + + { + // Mg24_to_He4_Ne20_derived + rate_Mg24_to_He4_Ne20_derived(rate_eval, tfactors, pf_cache); + } + + + } + +} +#endif diff --git a/networks/massive-star-medium/flycheck_massive_star_medium.py b/networks/massive-star-medium/flycheck_massive_star_medium.py new file mode 100644 index 0000000000..44fd92e6c4 --- /dev/null +++ b/networks/massive-star-medium/flycheck_massive_star_medium.py @@ -0,0 +1,46 @@ +import pynucastro as pyna + + +def create_network(network_type="amrex"): + + nuc = ["n", "h1", "he4", "c12", "o16", + "ne20", "na23", "mg23-24", "al27", + "si27-30", "p29,31", "s30-34", "cl33,35", + "ar34-38", "k37,39", "ca38-42", "sc41-43", + "ti42-46", "v45-49", "cr46-52", "mn49-53", + "fe50-56", "co53-57", "ni56-58", "cu59"] + + net = pyna.network_helper(nuc, network_type=network_type) + + intermediate_n_nuc = ["ni57", "co54", "fe51", "fe53", "fe55", + "mn50", "mn52", "cr47", "cr49", "cr51", + "v46", "v48", "ti43", "ti45", "sc42", + "ca39", "ca41", "ar35", "ar37", + "si29", "s31", "s33"] + + net.make_nn_g_approx(intermediate_nuclei=intermediate_n_nuc) + net.remove_nuclei(intermediate_n_nuc) + + net.make_CO_burning_approx("C") + net.remove_nuclei(["na23"]) + + return net + + +def doit(): + + net = create_network() + + net.summary() + + fig = net.plot(rotated=True, size=(1300, 700), + node_size=500, node_font_size="9", + legend_coord=(4, 3), + highlight_filter_function=lambda r: isinstance(r, pyna.rates.TabularWeakRate)) + + fig.savefig("massive-star-medium.png") + + net.write_network() + +if __name__ == "__main__": + doit() diff --git a/networks/massive-star-medium/interp_tools.H b/networks/massive-star-medium/interp_tools.H new file mode 100644 index 0000000000..e35235bfe1 --- /dev/null +++ b/networks/massive-star-medium/interp_tools.H @@ -0,0 +1,222 @@ +#ifndef INTERP_TOOLS_H +#define INTERP_TOOLS_H + +#include + +using namespace amrex::literals; + +namespace interp_net { + + // index locator + // return the index i such that x_array[i] <= x0 < x_array[i+1] + + template + AMREX_GPU_HOST_DEVICE AMREX_INLINE + int + find_index(const amrex::Real x0, const T& x_array) { + + int left = x_array.lo(); + int right = x_array.hi(); + + int idx = -1; + + if (x0 >= x_array(left) && x0 < x_array(right)) { + + // find the largest x element <= x0 using a + // binary search + + while (left < right) { + int mid = (left + right) / 2; + if (x_array(mid) > x0) { + right = mid; + } else { + left = mid + 1; + } + } + + idx = right - 1; + } + + return idx; + } + + // an index locator that extrapolates at the boundaries instead + // of returning -1 + + template + AMREX_GPU_HOST_DEVICE AMREX_INLINE + int + find_index_extrap(const amrex::Real x0, const T& x_array) { + + int left = x_array.lo(); + int right = x_array.hi(); + + int idx; + + if (x0 < x_array(left)) { + idx = left; + } else if (x0 >= x_array(right)) { + idx = right - 1; + } else { + idx = find_index(x0, x_array); + } + + return idx; + } + + template + AMREX_GPU_HOST_DEVICE AMREX_INLINE + std::pair + linear_extrap(const amrex::Real xv, const int idx0, const int idx1, + const T& x_array, const T& f_array) { + + const auto x0 = x_array(idx0); + const auto x1 = x_array(idx1); + + const auto f0 = f_array(idx0); + const auto f1 = f_array(idx1); + + const amrex::Real slope = (f1 - f0) / (x1 - x0); + const amrex::Real f = f0 + slope * (xv - x0); + + amrex::Real dfdx {0.0_rt}; + if constexpr (do_derivative) { + dfdx = slope; + } + + return {f, dfdx}; + } + + AMREX_GPU_HOST_DEVICE AMREX_INLINE + amrex::Real + limit_slope(const amrex::Real hm, const amrex::Real hp, + const amrex::Real dm, const amrex::Real dp) { + // Slope Limiter to preserve monotonicity + // See C. Moler, Numerical Computing with Matlab, 2004. + // :doi:`10.1137/1.9780898717952`, Chapter 3.4 + + if (dm * dp <= 0.0_rt) { + return 0.0_rt; + } + + const amrex::Real w1 = 2.0_rt * hp + hm; + const amrex::Real w2 = hp + 2.0_rt * hm; + return (w1 + w2) / (w1 / dm + w2 / dp); + } + + // Monotone cubic Hermite interpolation + // Uses Hermite polynomials as basis to construct the cubic interpolant + // + // H(x) = f0 H_{1,0}(x) + f1 H_{1,1}(x) + f'0 Ĥ_{1,0}(x) + f'1 Ĥ_{1,0}(x) + // + // The slope f' is limited to preserve monotonicity. + // Also use simple one-sided slope for edge cases + // this version works for unevenly spaced data points + // it will return f and f' at x = xv + // + // See C. Moler, Numerical Computing with Matlab, 2004. + // :doi:`10.1137/1.9780898717952`, Chapter 3.4 and 3.6 + + template + AMREX_GPU_HOST_DEVICE AMREX_INLINE + std::pair + monotone_cubic_interp(const amrex::Real xv, const int idx, + const T& x_array, const T& f_array) { + + const int ilo = x_array.lo(); + const int ihi = x_array.hi(); + + // Clamp index within table boundary + // Note idx should already be clamped within [ilo, ihi-1] + AMREX_ASSERT(idx >= ilo && idx < ihi); + + const int im1 = amrex::max(idx - 1, ilo); + const int ip1 = idx + 1; + const int ip2 = amrex::min(idx + 2, ihi); + + const auto x_im1 = x_array(im1); + const auto x_idx = x_array(idx); + const auto x_ip1 = x_array(ip1); + const auto x_ip2 = x_array(ip2); + + const auto f_im1 = f_array(im1); + const auto f_idx = f_array(idx); + const auto f_ip1 = f_array(ip1); + const auto f_ip2 = f_array(ip2); + + // the main interval we are working with + const amrex::Real h = x_ip1 - x_idx; + const amrex::Real h_inv = 1.0_rt / h; + + // Compute the slope at i0 and i0 + 1 + amrex::Real m0, m1; + m1 = m0 = (f_ip1 - f_idx) * h_inv; + + // If NOT on the edge, compute the slope from the other side + // and limit the slope to preserve monotonicity + if (idx != ilo) { + amrex::Real d_im1 = (f_idx - f_im1) / (x_idx - x_im1); + m0 = limit_slope(x_idx - x_im1, x_ip1 - x_idx, d_im1, m0); + } + + if (ip1 != ihi) { + amrex::Real d_ip1 = (f_ip2 - f_ip1) / (x_ip2 - x_ip1); + m1 = limit_slope(x_ip1 - x_idx, x_ip2 - x_ip1, m1, d_ip1); + } + + // Compute cubic Hermite polynomial basis + const amrex::Real t = (xv - x_idx) * h_inv; + const amrex::Real t2 = t * t; + const amrex::Real t3 = t2 * t; + + const amrex::Real H1 = -2.0_rt * t3 + 3.0_rt * t2; + const amrex::Real H0 = -H1 + 1.0_rt; + const amrex::Real Hhat1 = h * (t3 - t2); + const amrex::Real Hhat0 = h * (t3 - 2.0_rt * t2 + t); + + // Construct the interpolant + // H_3(x) = f0 H_{1,0}(x) + f1 H_{1,1}(x) + f'0 Ĥ_{1,0}(x) + f'1 Ĥ_{1,0}(x) + + const amrex::Real fv = f_idx * H0 + f_ip1 * H1 + m0 * Hhat0 + m1 * Hhat1; + + // Compute the derivative if necessary + amrex::Real dfdx {0.0_rt}; + if constexpr (do_derivative) { + const amrex::Real dH1dx = -6.0_rt * (t2 - t) * h_inv; + const amrex::Real dH0dx = -dH1dx; + const amrex::Real dHhat1dx = 3.0_rt * t2 - 2.0_rt * t; + const amrex::Real dHhat0dx = 3.0_rt * t2 - 4.0_rt * t + 1.0_rt; + dfdx = f_idx * dH0dx + f_ip1 * dH1dx + m0 * dHhat0dx + m1 * dHhat1dx; + } + + return {fv, dfdx}; + } + + template + AMREX_GPU_HOST_DEVICE AMREX_INLINE + std::pair + monotone_1d_interp(const amrex::Real xv, const T& x_array, const T& f_array) { + // Main driver for interpolating and extrapolating 1D table data. + // Uses monotone Hermite cubic interpolation and linear extrapolation + // to preserve monotonicity. + + // find the index such that x_array[idx] <= xv < x_array[idx+1] + // We already ensure that ilo <= i <= ihi - 1 + const int idx = interp_net::find_index_extrap(xv, x_array); + + const int ilo = x_array.lo(); + const int ihi = x_array.hi(); + + if (xv < x_array(ilo)) { + return linear_extrap(xv, ilo, ilo+1, x_array, f_array); + } + + if (xv > x_array(ihi)){ + return linear_extrap(xv, ihi, ihi-1, x_array, f_array); + } + + return monotone_cubic_interp(xv, idx, x_array, f_array); + } + +} +#endif diff --git a/networks/massive-star-medium/massive-star-medium.png b/networks/massive-star-medium/massive-star-medium.png new file mode 100644 index 0000000000000000000000000000000000000000..69a26892d91f895cfd052c370ab0918dfda2479c GIT binary patch literal 216845 zcmbTeW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