GridFire v0.7.6rc4.0 General Purpose Nuclear Network

Loading...
Searching...
No Matches
Classes | Namespaces
stellar_policy.h File Reference

High-level concrete NetworkPolicy for specific stellar environments. More...

`#include <vector>`
`#include <set>`
`#include "gridfire/policy/policy_abstract.h"`
`#include "gridfire/engine/engine_abstract.h"`
`#include "gridfire/reaction/reaction.h"`
`#include "fourdst/composition/composition.h"`
`#include "fourdst/atomic/atomicSpecies.h"`
`#include "gridfire/policy/chains.h"`
Include dependency graph for stellar_policy.h:
This graph shows which files directly or indirectly include this file:

## Classes
class | gridfire::policy::MainSequencePolicy
| A NetworkPolicy for building reaction networks suitable for low-mass main-sequence stars. More...
struct | std::formatter< gridfire::policy::MainSequencePolicy >

## Namespaces
namespace | gridfire
namespace | gridfire::policy

## Detailed Description

High-level concrete NetworkPolicy for specific stellar environments.

This file defines the `MainSequencePolicy`, a concrete implementation of the `NetworkPolicy` interface. This policy is designed to construct a reaction network suitable for simulating nucleosynthesis in low-mass main-sequence stars (like the Sun).

It serves as a practical example of how to create a high-level policy by:

1. Defining a set of required seed species.
2. Composing lower-level `ReactionChainPolicy` instances (from `chains.h`) to specify the necessary reactions (e.g., PP-chain and CNO-cycle).
3. Implementing the `construct()` method to build a sophisticated, multi-layered `DynamicEngine` stack, ready for use with a solver.