mirror of
https://github.com/OPM/opm-simulators.git
synced 2025-02-25 18:55:30 -06:00
introduce getMobility in WellInterface
we now share implementation between StandardWell and MultisegmentWell
This commit is contained in:
@@ -329,14 +329,10 @@ public:
|
||||
}
|
||||
|
||||
protected:
|
||||
|
||||
// simulation parameters
|
||||
const ModelParameters& param_;
|
||||
|
||||
std::vector<RateVector> connectionRates_;
|
||||
|
||||
std::vector< Scalar > B_avg_;
|
||||
|
||||
bool changed_to_stopped_this_step_ = false;
|
||||
|
||||
double wpolymer() const;
|
||||
@@ -394,6 +390,15 @@ protected:
|
||||
|
||||
Eval getPerfCellPressure(const FluidState& fs) const;
|
||||
|
||||
// get the mobility for specific perforation
|
||||
template<class Value, class Callback>
|
||||
void getMobility(const Simulator& ebosSimulator,
|
||||
const int perf,
|
||||
std::vector<Value>& mob,
|
||||
Callback& extendEval,
|
||||
[[maybe_unused]] DeferredLogger& deferred_logger) const;
|
||||
|
||||
|
||||
};
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user