BlackoilWellModel: move some glift stuff to generic class

This commit is contained in:
Arne Morten Kvarving
2021-06-07 13:04:29 +02:00
parent 2b9141035e
commit b0b0ae20d3
4 changed files with 76 additions and 73 deletions

View File

@@ -53,6 +53,8 @@ struct NodeData;
class DeferredLogger;
class EclipseState;
class GasLiftSingleWellGeneric;
class GasLiftWellState;
class Group;
class RestartValue;
class Schedule;
@@ -65,6 +67,9 @@ class BlackoilWellModelGeneric
public:
// --------- Types ---------
using Comm = Dune::CollectiveCommunication<Dune::MPIHelper::MPICommunicator>;
using GLiftOptWells = std::map<std::string,std::unique_ptr<GasLiftSingleWellGeneric>>;
using GLiftProdWells = std::map<std::string,const WellInterfaceGeneric*>;
using GLiftWellStateMap = std::map<std::string,std::unique_ptr<GasLiftWellState>>;
BlackoilWellModelGeneric(const Schedule& schedule,
const SummaryState& summaryState,
@@ -323,6 +328,17 @@ protected:
void setRepRadiusPerfLength();
void gliftDebug(const std::string& msg,
DeferredLogger& deferred_logger) const;
void gliftDebugShowALQ(DeferredLogger& deferred_logger);
void gasLiftOptimizationStage2(DeferredLogger& deferred_logger,
GLiftProdWells& prod_wells,
GLiftOptWells& glift_wells,
GLiftWellStateMap& map,
const int episodeIndex);
const Schedule& schedule_;
const SummaryState& summaryState_;
const EclipseState& eclState_;
@@ -371,6 +387,8 @@ protected:
WGState last_valid_wgstate_;
WGState nupcol_wgstate_;
bool glift_debug = false;
private:
WellInterfaceGeneric* getGenWell(const std::string& well_name);
};