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
23#include <opm/models/utils/propertysystem.hh>
24#include <opm/models/utils/parametersystem.hh>
25#include <opm/models/discretization/common/fvbaseproperties.hh>
26#include <opm/simulators/wells/GasLiftSingleWellGeneric.hpp>
27#include <opm/simulators/wells/GasLiftGroupInfo.hpp>
28#include <opm/simulators/wells/WellInterface.hpp>
29
30#include <optional>
31#include <vector>
32#include <utility>
33
34namespace Opm
35{
36 template<class TypeTag>
38 {
39 using Simulator = GetPropType<TypeTag, Properties::Simulator>;
40 using GLiftSyncGroups = typename GasLiftSingleWellGeneric::GLiftSyncGroups;
41
42 public:
44 const WellInterface<TypeTag> &well,
45 const Simulator& simulator,
46 const SummaryState &summary_state,
47 DeferredLogger &deferred_logger,
48 WellState &well_state,
49 const GroupState& group_state,
50 GasLiftGroupInfo &group_info,
51 GLiftSyncGroups &sync_groups,
52 const Parallel::Communication& comm,
53 bool glift_debug
54 );
55 const WellInterfaceGeneric &getWell() const override { return well_; }
56
57 private:
58 std::optional<double> computeBhpAtThpLimit_(double alq, bool debug_ouput=true) const override;
59 BasicRates computeWellRates_(
60 double bhp, bool bhp_is_limited, bool debug_output=true) const override;
61 void setAlqMaxRate_(const GasLiftWell& well);
62 void setupPhaseVariables_();
63 bool checkThpControl_() const override;
64
65
66 const Simulator& simulator_;
67 const WellInterface<TypeTag> &well_;
68 };
69
70} // namespace Opm
71
72#include "GasLiftSingleWell_impl.hpp"
73
74#endif // OPM_GASLIFT_SINGLE_WELL_HEADER_INCLUDED
Definition DeferredLogger.hpp:57
Definition GasLiftGroupInfo.hpp:45
Definition GasLiftSingleWellGeneric.hpp:49
Definition GasLiftSingleWell.hpp:38
Definition GroupState.hpp:34
Definition WellInterfaceGeneric.hpp:51
Definition WellInterface.hpp:75
The state of a set of wells, tailored for use by the fully implicit blackoil simulator.
Definition WellState.hpp:61
This file contains a set of helper functions used by VFPProd / VFPInj.
Definition BlackoilPhases.hpp:27
Definition GasLiftSingleWellGeneric.hpp:122