Merge pull request #2922 from atgeirr/make-new-well-rate-init-default

Make --alternative-well-rate-init=true the default.
This commit is contained in:
Atgeirr Flø Rasmussen 2020-12-08 16:25:12 +01:00 committed by GitHub
commit 6a376b3212
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 8 additions and 3 deletions

View File

@ -256,7 +256,7 @@ struct MaxInnerIterWells<TypeTag, TTag::FlowModelParameters> {
};
template<class TypeTag>
struct AlternativeWellRateInit<TypeTag, TTag::FlowModelParameters> {
static constexpr bool value = false;
static constexpr bool value = true;
};
template<class TypeTag>
struct StrictInnerIterMsWells<TypeTag, TTag::FlowModelParameters> {

View File

@ -389,9 +389,14 @@ namespace Opm {
}
if (alternative_well_rate_init_) {
// Update the well rates to match state, if only single-phase rates.
// Update the well rates of well_state_, if only single-phase rates, to
// have proper multi-phase rates proportional to rates at bhp zero.
// This is done only for producers, as injectors will only have a single
// nonzero phase anyway.
for (auto& well : well_container_) {
well->updateWellStateRates(ebosSimulator_, well_state_, local_deferredLogger);
if (well->isProducer()) {
well->updateWellStateRates(ebosSimulator_, well_state_, local_deferredLogger);
}
}
}