Loading...
Searching...
No Matches
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/partition/composite/partition_composite.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...

## 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.