GridFire 0.6.0
General Purpose Nuclear Network
Loading...
Searching...
No Matches
gridfire::solver::DirectNetworkSolver::JacobianFunctor Struct Reference

Functor for calculating the Jacobian matrix. More...

Public Member Functions

 JacobianFunctor (DynamicEngine &engine, const double T9, const double rho)
 Constructor for the JacobianFunctor.
 
void operator() (const boost::numeric::ublas::vector< double > &Y, boost::numeric::ublas::matrix< double > &J, double t, boost::numeric::ublas::vector< double > &dfdt) const
 Calculates the Jacobian matrix.
 

Public Attributes

DynamicEnginem_engine
 The engine used to evaluate the network.
 
const double m_T9
 Temperature in units of 10^9 K.
 
const double m_rho
 Density in g/cm^3.
 

Detailed Description

Functor for calculating the Jacobian matrix.

This functor is used by the ODE solver to calculate the Jacobian matrix of the ODEs. It takes the current abundances as input and returns the Jacobian matrix.

Constructor & Destructor Documentation

◆ JacobianFunctor()

gridfire::solver::DirectNetworkSolver::JacobianFunctor::JacobianFunctor ( DynamicEngine & engine,
const double T9,
const double rho )
inline

Constructor for the JacobianFunctor.

Parameters
engineThe engine used to evaluate the network.
T9Temperature in units of 10^9 K.
rhoDensity in g/cm^3.

Member Function Documentation

◆ operator()()

void gridfire::solver::DirectNetworkSolver::JacobianFunctor::operator() ( const boost::numeric::ublas::vector< double > & Y,
boost::numeric::ublas::matrix< double > & J,
double t,
boost::numeric::ublas::vector< double > & dfdt ) const

Calculates the Jacobian matrix.

Parameters
YVector of current abundances.
JMatrix to store the Jacobian matrix.
tCurrent time.
dfdtVector to store the time derivatives (not used).

Member Data Documentation

◆ m_engine

DynamicEngine& gridfire::solver::DirectNetworkSolver::JacobianFunctor::m_engine

The engine used to evaluate the network.

◆ m_rho

const double gridfire::solver::DirectNetworkSolver::JacobianFunctor::m_rho

Density in g/cm^3.

◆ m_T9

const double gridfire::solver::DirectNetworkSolver::JacobianFunctor::m_T9

Temperature in units of 10^9 K.


The documentation for this struct was generated from the following files: