Implement extended network model.

This commit is contained in:
Atgeirr Flø Rasmussen
2020-05-15 11:21:32 +02:00
parent f8c276d023
commit 52c695937b
10 changed files with 332 additions and 22 deletions

View File

@@ -275,6 +275,14 @@ namespace Opm
// update perforation water throughput based on solved water rate
virtual void updateWaterThroughput(const double dt, WellState& well_state) const = 0;
virtual void updateWellStateRates(const Simulator& ebosSimulator,
WellState& well_state,
DeferredLogger& deferred_logger) const
{
// Default: do nothing.
// TODO: make this a pure virtual.
}
void stopWell() {
wellIsStopped_ = true;
}
@@ -288,6 +296,7 @@ namespace Opm
void setWsolvent(const double wsolvent);
void setDynamicThpLimit(const double thp_limit);
protected:
@@ -384,6 +393,8 @@ namespace Opm
double wsolvent_;
std::optional<double> dynamic_thp_limit_;
const PhaseUsage& phaseUsage() const;
int flowPhaseToEbosCompIdx( const int phaseIdx ) const;