/* Copyright 2020 Equinor ASA. This file is part of the Open Porous Media project (OPM). OPM is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. OPM is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with OPM. If not, see . */ #ifndef OPM_GASLIFT_SINGLE_WELL_HEADER_INCLUDED #define OPM_GASLIFT_SINGLE_WELL_HEADER_INCLUDED #include #include #include #include #include #include #include namespace Opm { template class GasLiftSingleWell : public GasLiftSingleWellGeneric> { using Scalar = GetPropType; using Simulator = GetPropType; using GLiftSyncGroups = typename GasLiftSingleWellGeneric::GLiftSyncGroups; using BasicRates = typename GasLiftSingleWellGeneric::BasicRates; public: GasLiftSingleWell(const WellInterface& well, const Simulator& simulator, const SummaryState& summary_state, DeferredLogger& deferred_logger, WellState& well_state, const GroupState& group_state, GasLiftGroupInfo& group_info, GLiftSyncGroups& sync_groups, const Parallel::Communication& comm, bool glift_debug); const WellInterfaceGeneric& getWell() const override { return well_; } private: std::optional computeBhpAtThpLimit_(Scalar alq, bool debug_ouput = true) const override; BasicRates computeWellRates_(Scalar bhp, bool bhp_is_limited, bool debug_output = true) const override; void setAlqMaxRate_(const GasLiftWell& well); void setupPhaseVariables_(); bool checkThpControl_() const override; const Simulator& simulator_; const WellInterface& well_; }; } // namespace Opm #ifndef OPM_GASLIFT_SINGLE_WELL_IMPL_HEADER_INCLUDED #include "GasLiftSingleWell_impl.hpp" #endif #endif // OPM_GASLIFT_SINGLE_WELL_HEADER_INCLUDED