A MultiReactionChainPolicy for low-mass main-sequence stars.
More...
#include <chains.h>
A MultiReactionChainPolicy for low-mass main-sequence stars.
This policy composes the ProtonProtonChainPolicy and CNOChainPolicy to represent the key energy-generating reaction chains active in low-mass stars like the Sun.
◆ LowMassMainSequenceReactionChainPolicy()
| gridfire::policy::LowMassMainSequenceReactionChainPolicy::LowMassMainSequenceReactionChainPolicy |
( |
| ) |
|
|
inline |
Constructs the policy and initializes its child policies.
◆ get_chain_policies()
| const std::vector< std::unique_ptr< ReactionChainPolicy > > & gridfire::policy::LowMassMainSequenceReactionChainPolicy::get_chain_policies |
( |
| ) |
const |
|
inlinenodiscardoverridevirtual |
Returns the vector of child policies.
- Returns
- const std::vector<std::unique_ptr<ReactionChainPolicy>>&
- Example
std::cout << "Low-mass policy has " << child_policies.size() << " child policies." << std::endl;
const std::vector< std::unique_ptr< ReactionChainPolicy > > & get_chain_policies() const override
Returns the vector of child policies.
Definition chains.h:268
LowMassMainSequenceReactionChainPolicy()
Constructs the policy and initializes its child policies.
Definition chains.h:256
Implements gridfire::policy::MultiReactionChainPolicy.
◆ get_reactions()
| const reaction::ReactionSet & gridfire::policy::LowMassMainSequenceReactionChainPolicy::get_reactions |
( |
| ) |
const |
|
inlinenodiscardoverridevirtual |
◆ m_chain_policies
| std::vector<std::unique_ptr<ReactionChainPolicy> > gridfire::policy::LowMassMainSequenceReactionChainPolicy::m_chain_policies |
|
private |
◆ m_reactions
The documentation for this class was generated from the following file: