Loading...
Searching...
No Matches
engine_priming.h
Go to the documentation of this file.
#pragma once
#include "gridfire/engine/engine_abstract.h"
#include "gridfire/engine/views/engine_defined.h"
#include "gridfire/network.h"
#include "fourdst/logging/logging.h"
#include "fourdst/composition/atomicSpecies.h"
#include "fourdst/composition/composition.h"
#include "quill/Logger.h"
#include <vector>
#include <string>
namespace gridfire {
class NetworkPrimingEngineView final : public DefinedEngineView {
public:
NetworkPrimingEngineView(const std::string& primingSymbol, DynamicEngine& baseEngine);
NetworkPrimingEngineView(const fourdst::atomic::Species& primingSpecies, DynamicEngine& baseEngine);
private:
quill::Logger* m_logger = fourdst::logging::LogManager::getInstance().getLogger("log");
fourdst::atomic::Species m_primingSpecies;
private:
std::vector<std::string> constructPrimingReactionSet(
const fourdst::atomic::Species& primingSpecies,
const DynamicEngine& baseEngine
) const;
};
}
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