GridFire 0.0.1a General Purpose Nuclear Network

Loading...
Searching...
No Matches
engine_priming.h
Go to the documentation of this file.
1#pragma once
2
3#include "gridfire/engine/engine_abstract.h"
4#include "gridfire/engine/views/engine_defined.h"
5
6#include "gridfire/network.h"
7
8#include "fourdst/logging/logging.h"
9#include "fourdst/composition/atomicSpecies.h"
10#include "fourdst/composition/composition.h"
11
12#include "quill/Logger.h"
13
14#include <vector>
15#include <string>
16
17 namespace gridfire {
18
30 class NetworkPrimingEngineView final : public DefinedEngineView {
31 public:
42 NetworkPrimingEngineView(const std::string& primingSymbol, DynamicEngine& baseEngine);
52 NetworkPrimingEngineView(const fourdst::atomic::Species& primingSpecies, DynamicEngine& baseEngine);
53
54
55 private:
56 quill::Logger* m_logger = fourdst::logging::LogManager::getInstance().getLogger("log");
57 fourdst::atomic::Species m_primingSpecies;
58 private:
69 std::vector<std::string> constructPrimingReactionSet(
70 const fourdst::atomic::Species& primingSpecies,
71 const DynamicEngine& baseEngine
72 ) const;
73 };
74
75}
gridfire::DefinedEngineView::DefinedEngineView
DefinedEngineView(const std::vector< std::string > &peNames, DynamicEngine &baseEngine)
Definition engine_defined.cpp:17
gridfire::DynamicEngine
Abstract class for engines supporting Jacobian and stoichiometry operations.
Definition engine_abstract.h:130
gridfire::NetworkPrimingEngineView::m_logger
quill::Logger * m_logger
Definition engine_priming.h:56
gridfire::NetworkPrimingEngineView::constructPrimingReactionSet
std::vector< std::string > constructPrimingReactionSet(const fourdst::atomic::Species &primingSpecies, const DynamicEngine &baseEngine) const
Constructs the set of reaction names that involve the priming species.
Definition engine_priming.cpp:51
gridfire::NetworkPrimingEngineView::NetworkPrimingEngineView
NetworkPrimingEngineView(const std::string &primingSymbol, DynamicEngine &baseEngine)
Constructs the view by looking up the priming species by symbol.
Definition engine_priming.cpp:23
gridfire::NetworkPrimingEngineView::m_primingSpecies
fourdst::atomic::Species m_primingSpecies
The priming species, if specified.
Definition engine_priming.h:57
engine_abstract.h
Abstract interfaces for reaction network engines in GridFire.
engine_defined.h
gridfire
Definition engine_abstract.h:31
network.h