20#ifndef OPM_AUTODIFF_VFPPROPERTIES_HPP_
21#define OPM_AUTODIFF_VFPPROPERTIES_HPP_
23#include <opm/simulators/wells/VFPInjProperties.hpp>
24#include <opm/simulators/wells/VFPProdProperties.hpp>
25#include <opm/simulators/wells/WellState.hpp>
26#include <opm/simulators/wells/VFPHelpers.hpp>
50 const std::vector<std::reference_wrapper<const VFPProdTable>>&
prod_tables,
52 : well_state_(well_state)
55 this->m_inj.addTable(
vfpinj );
58 this->m_prod.addTable(
vfpprod );
77 Scalar getExplicitWFR(
const int table_id,
const std::size_t well_index)
const
79 const auto& rates = well_state_.well(well_index).prev_surface_rates;
80 const auto& pu = well_state_.phaseUsage();
81 const auto&
aqua = pu.phase_used[BlackoilPhases::Aqua]? rates[pu.phase_pos[BlackoilPhases::Aqua]]:0.0;
82 const auto& liquid = pu.phase_used[BlackoilPhases::Liquid]? rates[pu.phase_pos[BlackoilPhases::Liquid]]:0.0;
83 const auto&
vapour = pu.phase_used[BlackoilPhases::Vapour]? rates[pu.phase_pos[BlackoilPhases::Vapour]]:0.0;
88 Scalar getExplicitGFR(
const int table_id,
const std::size_t well_index)
const
90 const auto& rates = well_state_.well(well_index).prev_surface_rates;
91 const auto& pu = well_state_.phaseUsage();
92 const auto&
aqua = pu.phase_used[BlackoilPhases::Aqua]? rates[pu.phase_pos[BlackoilPhases::Aqua]]:0.0;
93 const auto& liquid = pu.phase_used[BlackoilPhases::Liquid]? rates[pu.phase_pos[BlackoilPhases::Liquid]]:0.0;
94 const auto&
vapour = pu.phase_used[BlackoilPhases::Vapour]? rates[pu.phase_pos[BlackoilPhases::Vapour]]:0.0;
Definition VFPInjProperties.hpp:34
Class which linearly interpolates BHP as a function of rate, tubing head pressure,...
Definition VFPProdProperties.hpp:38
A thin wrapper class that holds one VFPProdProperties and one VFPInjProperties object.
Definition VFPProperties.hpp:40
const VFPProdProperties< Scalar > * getProd() const
Returns the VFP properties for production wells.
Definition VFPProperties.hpp:72
VFPProperties(const std::vector< std::reference_wrapper< const VFPInjTable > > &inj_tables, const std::vector< std::reference_wrapper< const VFPProdTable > > &prod_tables, const WellState< Scalar > &well_state)
Constructor Takes no ownership of data.
Definition VFPProperties.hpp:49
const VFPInjProperties< Scalar > * getInj() const
Returns the VFP properties for injection wells.
Definition VFPProperties.hpp:64
The state of a set of wells, tailored for use by the fully implicit blackoil simulator.
Definition WellState.hpp:62
This file contains a set of helper functions used by VFPProd / VFPInj.
Definition blackoilboundaryratevector.hh:37
constexpr auto getPropValue()
get the value data member of a property
Definition propertysystem.hh:242