Merge pull request #4952 from steink/well_testing_initialize_rates

Initialize rates/previous rates before well-test
This commit is contained in:
Bård Skaflestad 2023-11-07 13:46:41 +01:00 committed by GitHub
commit a42d52e644
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -544,6 +544,14 @@ namespace Opm {
well->setVFPProperties(vfp_properties_.get());
well->setGuideRate(&guideRate_);
// initialize rates/previous rates to prevent zero fractions in vfp-interpolation
if (well->isProducer()) {
well->updateWellStateRates(ebosSimulator_, this->wellState(), deferred_logger);
}
if (well->isVFPActive(deferred_logger)) {
well->setPrevSurfaceRates(this->wellState(), this->prevWellState());
}
well->wellTesting(ebosSimulator_, simulationTime, this->wellState(), this->groupState(), wellTestState(), deferred_logger);
}
}