My Project
Loading...
Searching...
No Matches
GasLiftSingleWell.hpp
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
26#include <opm/simulators/wells/GasLiftSingleWellGeneric.hpp>
27#include <opm/simulators/wells/GasLiftGroupInfo.hpp>
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,
48 WellState<Scalar>& well_state,
49 const GroupState<Scalar>& group_state,
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
76#include "GasLiftSingleWell_impl.hpp"
77
78#endif // OPM_GASLIFT_SINGLE_WELL_HEADER_INCLUDED
Definition DeferredLogger.hpp:57
Definition GasLiftGroupInfo.hpp:46
Definition GasLiftSingleWellGeneric.hpp:50
Definition GasLiftSingleWell.hpp:37
Definition GroupState.hpp:43
Definition WellInterfaceGeneric.hpp:53
Definition WellInterface.hpp:77
The state of a set of wells, tailored for use by the fully implicit blackoil simulator.
Definition WellState.hpp:66
Declare the properties used by the infrastructure code of the finite volume discretizations.
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
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:235
This file provides the infrastructure to retrieve run-time parameters.
The Opm property system, traits with inheritance.
Definition GasLiftSingleWellGeneric.hpp:129