Merge pull request #2256 from atgeirr/fix-msw-wefac

Bugfix: correct well efficiency factors for MSW
This commit is contained in:
Atgeirr Flø Rasmussen 2020-01-02 09:16:27 +01:00 committed by GitHub
commit 38a094d0a8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -2856,7 +2856,7 @@ namespace Opm
// considering the contributions due to flowing out from the segment
{
for (int comp_idx = 0; comp_idx < num_components_; ++comp_idx) {
const EvalWell segment_rate = getSegmentRateUpwinding(seg, comp_idx);
const EvalWell segment_rate = getSegmentRateUpwinding(seg, comp_idx) * well_efficiency_factor_;
const int seg_upwind = upwinding_segments_[seg];
// segment_rate contains the derivatives with respect to GTotal in seg,
@ -2873,7 +2873,7 @@ namespace Opm
{
for (const int inlet : segment_inlets_[seg]) {
for (int comp_idx = 0; comp_idx < num_components_; ++comp_idx) {
const EvalWell inlet_rate = getSegmentRateUpwinding(inlet, comp_idx);
const EvalWell inlet_rate = getSegmentRateUpwinding(inlet, comp_idx) * well_efficiency_factor_;
const int inlet_upwind = upwinding_segments_[inlet];
// inlet_rate contains the derivatives with respect to GTotal in inlet,