GasLiftSingleWell.hpp
Go to the documentation of this file.
1/*
2 Copyright 2020 Equinor ASA.
3
4 This file is part of the Open Porous Media project (OPM).
5
6 OPM is free software: you can redistribute it and/or modify
7 it under the terms of the GNU General Public License as published by
8 the Free Software Foundation, either version 3 of the License, or
9 (at your option) any later version.
10
11 OPM is distributed in the hope that it will be useful,
12 but WITHOUT ANY WARRANTY; without even the implied warranty of
13 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 GNU General Public License for more details.
15
16 You should have received a copy of the GNU General Public License
17 along with OPM. If not, see <http://www.gnu.org/licenses/>.
18*/
19
20#ifndef OPM_GASLIFT_SINGLE_WELL_HEADER_INCLUDED
21#define OPM_GASLIFT_SINGLE_WELL_HEADER_INCLUDED
22
28
29#include <optional>
30
31namespace Opm {
32
33template<class TypeTag> class WellInterface;
34
35template<class TypeTag>
36class GasLiftSingleWell : public GasLiftSingleWellGeneric<GetPropType<TypeTag, Properties::Scalar>>
37{
40 using GLiftSyncGroups = typename GasLiftSingleWellGeneric<Scalar>::GLiftSyncGroups;
41 using BasicRates = typename GasLiftSingleWellGeneric<Scalar>::BasicRates;
42
43public:
45 const Simulator& simulator,
46 const SummaryState& summary_state,
47 DeferredLogger& deferred_logger,
48 WellState<Scalar>& well_state,
49 const GroupState<Scalar>& group_state,
50 GasLiftGroupInfo<Scalar>& group_info,
51 GLiftSyncGroups& sync_groups,
52 const Parallel::Communication& comm,
53 bool glift_debug);
54
55 const WellInterfaceGeneric<Scalar>& getWell() const override { return well_; }
56
57private:
58 std::optional<Scalar>
59 computeBhpAtThpLimit_(Scalar alq,
60 bool debug_ouput = true) const override;
61
62 BasicRates computeWellRates_(Scalar bhp,
63 bool bhp_is_limited,
64 bool debug_output = true) const override;
65
66 void setAlqMaxRate_(const GasLiftWell& well);
67 void setupPhaseVariables_();
68 bool checkThpControl_() const override;
69
70 const Simulator& simulator_;
71 const WellInterface<TypeTag>& well_;
72};
73
74} // namespace Opm
75
77
78#endif // OPM_GASLIFT_SINGLE_WELL_HEADER_INCLUDED
Definition: DeferredLogger.hpp:57
Definition: GasLiftGroupInfo.hpp:46
Definition: GasLiftSingleWellGeneric.hpp:50
std::set< int > GLiftSyncGroups
Definition: GasLiftSingleWellGeneric.hpp:59
Definition: GasLiftSingleWell.hpp:37
const WellInterfaceGeneric< Scalar > & getWell() const override
Definition: GasLiftSingleWell.hpp:55
GasLiftSingleWell(const WellInterface< TypeTag > &well, const Simulator &simulator, const SummaryState &summary_state, DeferredLogger &deferred_logger, WellState< Scalar > &well_state, const GroupState< Scalar > &group_state, GasLiftGroupInfo< Scalar > &group_info, GLiftSyncGroups &sync_groups, const Parallel::Communication &comm, bool glift_debug)
Definition: GasLiftSingleWell_impl.hpp:43
Definition: GroupState.hpp:43
Manages the initializing and running of time dependent problems.
Definition: simulator.hh:84
Definition: WellInterfaceGeneric.hpp:53
Definition: WellInterface.hpp:77
Definition: WellState.hpp:65
Declare the properties used by the infrastructure code of the finite volume discretizations.
Dune::Communication< MPIComm > Communication
Definition: ParallelCommunication.hpp:30
Definition: blackoilboundaryratevector.hh:39
typename Properties::Detail::GetPropImpl< TypeTag, Property >::type::type GetPropType
get the type alias defined in the property (equivalent to old macro GET_PROP_TYPE(....
Definition: propertysystem.hh:233
This file provides the infrastructure to retrieve run-time parameters.
The Opm property system, traits with inheritance.
Definition: GasLiftSingleWellGeneric.hpp:129