21#ifndef OPM_FRACTION_CALCULATOR_HEADER_INCLUDED
22#define OPM_FRACTION_CALCULATOR_HEADER_INCLUDED
24#include <opm/input/eclipse/Schedule/Group/GuideRate.hpp>
29template<
class Scalar>
class GroupState;
32template<
class Scalar>
class WellState;
44 const int report_step,
45 const GuideRate* guide_rate,
46 const GuideRateModel::Target target,
48 const bool is_producer,
49 const Phase injection_phase);
51 const std::string& control_group_name,
52 const bool always_include_this);
54 const std::string& always_included_child);
57 std::string parent(
const std::string& name);
58 Scalar guideRateSum(
const Group& group,
59 const std::string& always_included_child);
60 Scalar guideRate(
const std::string& name,
61 const std::string& always_included_child);
62 int groupControlledWells(
const std::string& group_name,
63 const std::string& always_included_child);
64 GuideRate::RateVector getGroupRateVector(
const std::string& group_name);
65 const Schedule& schedule_;
69 const GuideRate* guide_rate_;
70 GuideRateModel::Target target_;
73 Phase injection_phase_;
Definition: GroupState.hpp:38
Definition: FractionCalculator.hpp:39
Scalar fraction(const std::string &name, const std::string &control_group_name, const bool always_include_this)
Scalar localFraction(const std::string &name, const std::string &always_included_child)
FractionCalculator(const Schedule &schedule, const WellState< Scalar > &well_state, const GroupState< Scalar > &group_state, const int report_step, const GuideRate *guide_rate, const GuideRateModel::Target target, const PhaseUsage &pu, const bool is_producer, const Phase injection_phase)
Definition: WellState.hpp:62
Definition: FractionCalculator.hpp:35
Definition: blackoilboundaryratevector.hh:37
Definition: BlackoilPhases.hpp:46