GridFire v0.7.0-alpha
General Purpose Nuclear Network
Loading...
Searching...
No Matches
gridfire::policy::CNOChainPolicy Class Referencefinal

A ReactionChainPolicy for the Carbon-Nitrogen-Oxygen (CNO) cycle. More...

#include <chains.h>

Inheritance diagram for gridfire::policy::CNOChainPolicy:
[legend]
Collaboration diagram for gridfire::policy::CNOChainPolicy:
[legend]

Public Member Functions

 CNOChainPolicy ()
 Constructs the policy and initializes its reaction set from REACLIB.
 
const reaction::ReactionSet & get_reactions () const override
 Returns the set of reactions in the CNO cycle.
 
- Public Member Functions inherited from gridfire::policy::ReactionChainPolicy
virtual ~ReactionChainPolicy ()=default
 

Private Attributes

std::set< std::string > m_reactionIDs
 
reaction::ReactionSet m_reactions
 

Detailed Description

A ReactionChainPolicy for the Carbon-Nitrogen-Oxygen (CNO) cycle.

Encapsulates the reactions of the CNO cycle, a catalytic cycle that is the dominant source of energy in massive stars.

Exceptions
gridfire::exceptions::MissingBaseReactionErrorif a required reaction for the CNO cycle is not found in the REACLIB database during construction.

Constructor & Destructor Documentation

◆ CNOChainPolicy()

gridfire::policy::CNOChainPolicy::CNOChainPolicy ( )
inline

Constructs the policy and initializes its reaction set from REACLIB.

Member Function Documentation

◆ get_reactions()

const reaction::ReactionSet & gridfire::policy::CNOChainPolicy::get_reactions ( ) const
inlinenodiscardoverridevirtual

Returns the set of reactions in the CNO cycle.

Returns
const reaction::ReactionSet&
Example
CNOChainPolicy cno_policy;
const auto& reactions = cno_policy.get_reactions();
assert(reactions.contains("c12(p,g)n13"));
CNOChainPolicy()
Constructs the policy and initializes its reaction set from REACLIB.
Definition chains.h:233
const reaction::ReactionSet & get_reactions() const override
Returns the set of reactions in the CNO cycle.
Definition chains.h:101

Implements gridfire::policy::ReactionChainPolicy.

Member Data Documentation

◆ m_reactionIDs

std::set<std::string> gridfire::policy::CNOChainPolicy::m_reactionIDs
private
Initial value:
= {
"c12(p,g)n13",
"n13(,e+)c13",
"c13(p,g)n14",
"n14(p,g)o15",
"o15(,e+)n15",
"n15(p,a)c12",
"n15(p,g)o16",
"o16(p,g)f17",
"f17(,e+)o17",
"o17(p,a)n14",
"n14(p,g)o15",
"o15(,e+)n15",
"o17(p,g)f18",
"f18(,e+)o18",
"o18(p,a)n15",
"n15(p,g)o16",
"o16(p,g)f17",
"f17(,e+)o17",
"o18(p,g)f19",
"f19(p,a)o16",
"o16(p,g)f17",
"f17(,e+)o17",
"o17(p,g)f18",
"f18(,e+)o18"
}

◆ m_reactions

reaction::ReactionSet gridfire::policy::CNOChainPolicy::m_reactions
private

The documentation for this class was generated from the following file: