|
GridFire 0.0.1a
General Purpose Nuclear Network
|
Functor for calculating the Jacobian matrix of the ODEs for the dynamic species. More...
Public Member Functions | |
| JacobianFunctor (DynamicEngine &engine, const std::vector< size_t > &dynamicSpeciesIndices, const std::vector< size_t > &QSESpeciesIndices, const double T9, const double rho) | |
| Constructor for the JacobianFunctor. | |
| void | operator() (const boost::numeric::ublas::vector< double > &YDynamic, boost::numeric::ublas::matrix< double > &JDynamic, double t, boost::numeric::ublas::vector< double > &dfdt) const |
| Calculates the Jacobian matrix of the ODEs for the dynamic species. | |
Public Attributes | |
| DynamicEngine & | m_engine |
| The engine used to evaluate the network. | |
| const std::vector< size_t > & | m_dynamicSpeciesIndices |
| Indices of the dynamic species. | |
| const std::vector< size_t > & | m_QSESpeciesIndices |
| Indices of the QSE species. | |
| const double | m_T9 |
| Temperature in units of 10^9 K. | |
| const double | m_rho |
| Density in g/cm^3. | |
Functor for calculating the Jacobian matrix of the ODEs for the dynamic species.
This functor is used by the ODE solver to calculate the Jacobian matrix of the ODEs for the dynamic species. It takes the current abundances of the dynamic species as input and returns the Jacobian matrix.
|
inline |
Constructor for the JacobianFunctor.
| engine | The engine used to evaluate the network. |
| dynamicSpeciesIndices | Indices of the dynamic species. |
| QSESpeciesIndices | Indices of the QSE species. |
| T9 | Temperature in units of 10^9 K. |
| rho | Density in g/cm^3. |
| void gridfire::solver::QSENetworkSolver::JacobianFunctor::operator() | ( | const boost::numeric::ublas::vector< double > & | YDynamic, |
| boost::numeric::ublas::matrix< double > & | JDynamic, | ||
| double | t, | ||
| boost::numeric::ublas::vector< double > & | dfdt ) const |
Calculates the Jacobian matrix of the ODEs for the dynamic species.
| YDynamic | Vector of current abundances for the dynamic species. |
| JDynamic | Matrix to store the Jacobian matrix. |
| t | Current time. |
| dfdt | Vector to store the time derivatives of the dynamic species (not used). |
| const std::vector<size_t>& gridfire::solver::QSENetworkSolver::JacobianFunctor::m_dynamicSpeciesIndices |
| DynamicEngine& gridfire::solver::QSENetworkSolver::JacobianFunctor::m_engine |
| const std::vector<size_t>& gridfire::solver::QSENetworkSolver::JacobianFunctor::m_QSESpeciesIndices |
| const double gridfire::solver::QSENetworkSolver::JacobianFunctor::m_rho |
| const double gridfire::solver::QSENetworkSolver::JacobianFunctor::m_T9 |