move getGroupInjectionTargetRate into WellGroupControls

This commit is contained in:
Arne Morten Kvarving
2022-10-19 09:55:14 +02:00
parent cdbeef0a3e
commit 2d4c522082
3 changed files with 132 additions and 87 deletions

View File

@@ -25,6 +25,7 @@
#define OPM_WELL_GROUP_CONTROLS_HEADER_INCLUDED
#include <functional>
#include <optional>
#include <vector>
namespace Opm
@@ -62,6 +63,17 @@ public:
EvalWell& control_eq,
DeferredLogger& deferred_logger) const;
std::optional<double>
getGroupInjectionTargetRate(const Group& group,
const WellState& well_state,
const GroupState& group_state,
const Schedule& schedule,
const SummaryState& summaryState,
const InjectorType& injectorType,
const RateConvFunc& rateConverter,
double efficiencyFactor,
DeferredLogger& deferred_logger) const;
template<class EvalWell>
void getGroupProductionControl(const Group& group,
const WellState& well_state,