SERiF 0.0.1a
3+1D Stellar Structure and Evolution
Loading...
Searching...
No Matches
approx8.h File Reference

Header file for the Approx8 nuclear reaction network. More...

#include <array>
#include <boost/numeric/odeint.hpp>
#include "network.h"

Go to the source code of this file.

Classes

struct  serif::network::approx8::Approx8Net
 Contains constants and arrays related to the nuclear network. More...
 
struct  serif::network::approx8::Jacobian
 Functor to calculate the Jacobian matrix for implicit solvers. More...
 
struct  serif::network::approx8::ODE
 Functor to calculate the derivatives for the ODE solver. More...
 
class  serif::network::approx8::Approx8Network
 Class for the Approx8 nuclear reaction network. More...
 

Namespaces

namespace  serif
 
namespace  serif::network
 
namespace  serif::network::approx8
 

Typedefs

typedef boost::numeric::ublas::vector< double > serif::network::approx8::vector_type
 Alias for a vector of doubles using Boost uBLAS.
 
typedef boost::numeric::ublas::matrix< double > serif::network::approx8::matrix_type
 Alias for a matrix of doubles using Boost uBLAS.
 
typedef std::array< double, 7 > serif::network::approx8::vec7
 Alias for a std::array of 7 doubles.
 

Functions

double serif::network::approx8::sum_product (const vec7 &a, const vec7 &b)
 
vec7 serif::network::approx8::get_T9_array (const double &T)
 
double serif::network::approx8::rate_fit (const vec7 &T9, const vec7 &coef)
 
double serif::network::approx8::pp_rate (const vec7 &T9)
 Calculates the rate for the reaction p + p -> d.
 
double serif::network::approx8::dp_rate (const vec7 &T9)
 Calculates the rate for the reaction p + d -> he3.
 
double serif::network::approx8::he3he3_rate (const vec7 &T9)
 Calculates the rate for the reaction he3 + he3 -> he4 + 2p.
 
double serif::network::approx8::he3he4_rate (const vec7 &T9)
 Calculates the rate for the reaction he3(he3,2p)he4.
 
double serif::network::approx8::triple_alpha_rate (const vec7 &T9)
 Calculates the rate for the reaction he4 + he4 + he4 -> c12.
 
double serif::network::approx8::c12p_rate (const vec7 &T9)
 Calculates the rate for the reaction c12 + p -> n13.
 
double serif::network::approx8::c12a_rate (const vec7 &T9)
 Calculates the rate for the reaction c12 + he4 -> o16.
 
double serif::network::approx8::n14p_rate (const vec7 &T9)
 Calculates the rate for the reaction n14(p,g)o15 - o15 + p -> c12 + he4.
 
double serif::network::approx8::n14a_rate (const vec7 &T9)
 Calculates the rate for the reaction n14(a,g)f18 assumed to go on to ne20.
 
double serif::network::approx8::n15pa_rate (const vec7 &T9)
 Calculates the rate for the reaction n15(p,a)c12 (CNO I).
 
double serif::network::approx8::n15pg_rate (const vec7 &T9)
 Calculates the rate for the reaction n15(p,g)o16 (CNO II).
 
double serif::network::approx8::n15pg_frac (const vec7 &T9)
 Calculates the fraction for the reaction n15(p,g)o16.
 
double serif::network::approx8::o16p_rate (const vec7 &T9)
 Calculates the rate for the reaction o16(p,g)f17 then f17 -> o17(p,a)n14.
 
double serif::network::approx8::o16a_rate (const vec7 &T9)
 Calculates the rate for the reaction o16(a,g)ne20.
 
double serif::network::approx8::ne20a_rate (const vec7 &T9)
 Calculates the rate for the reaction ne20(a,g)mg24.
 
double serif::network::approx8::c12c12_rate (const vec7 &T9)
 Calculates the rate for the reaction c12(c12,a)ne20.
 
double serif::network::approx8::c12o16_rate (const vec7 &T9)
 Calculates the rate for the reaction c12(o16,a)mg24.
 

Detailed Description

Header file for the Approx8 nuclear reaction network.

This file contains the definitions and declarations for the Approx8 nuclear reaction network. The network is based on Frank Timmes' "approx8" and includes 8 isotopes and various nuclear reactions. The rates are evaluated using a fitting function with coefficients from reaclib.jinaweb.org.

Definition in file approx8.h.