24#ifndef OPM_ACTION_HANDLER_HPP
25#define OPM_ACTION_HANDLER_HPP
27#include <opm/simulators/utils/ParallelCommunication.hpp>
31#include <unordered_map>
34namespace Opm::Action {
42struct SimulatorUpdate;
50template<
typename Scalar,
typename IndexTraits>
75 Action::State& actionState,
76 SummaryState& summaryState,
78 Parallel::Communication comm);
100 UDQState& udq_state);
123 const SimulatorUpdate& sim_update,
125 bool& commit_wellstate);
129 EclipseState& ecl_state_;
135 Action::State& actionState_;
138 SummaryState& summaryState_;
144 Parallel::Communication comm_;
ActionHandler(EclipseState &ecl_state, Schedule &schedule, Action::State &actionState, SummaryState &summaryState, BlackoilWellModelGeneric< Scalar, IndexTraits > &wellModel, Parallel::Communication comm)
Constructor.
Definition ActionHandler.cpp:173
std::function< void(bool)> TransFunc
Function handle to update transmissiblities.
Definition ActionHandler.hpp:55
void applyActions(int reportStep, double sim_time, const TransFunc &updateTrans)
Run all pending actions.
Definition ActionHandler.cpp:189
void evalUDQAssignments(const unsigned episodeIdx, UDQState &udq_state)
Evaluates UDQ assign statements.
Definition ActionHandler.cpp:297
void applySimulatorUpdate(int report_step, const SimulatorUpdate &sim_update, const TransFunc &updateTrans, bool &commit_wellstate)
Convey dynamic updates triggered by an action block back to the running simulator.
Definition ActionHandler.cpp:272
Class for handling the blackoil well model.
Definition BlackoilWellModelGeneric.hpp:95
This file contains a set of helper functions used by VFPProd / VFPInj.
Definition blackoilbioeffectsmodules.hh:43