mirror of
https://github.com/OPM/opm-simulators.git
synced 2025-02-25 18:55:30 -06:00
BlackoilWellModel: move calculateEfficiencyFactors to generic class
This commit is contained in:
parent
811afb854b
commit
60e7c90b1e
@ -362,8 +362,6 @@ namespace Opm {
|
|||||||
|
|
||||||
const std::vector<double>& wellPerfEfficiencyFactors() const;
|
const std::vector<double>& wellPerfEfficiencyFactors() const;
|
||||||
|
|
||||||
void calculateEfficiencyFactors(const int reportStepIdx);
|
|
||||||
|
|
||||||
void calculateProductivityIndexValuesShutWells(const int reportStepIdx, DeferredLogger& deferred_logger);
|
void calculateProductivityIndexValuesShutWells(const int reportStepIdx, DeferredLogger& deferred_logger);
|
||||||
void calculateProductivityIndexValues(DeferredLogger& deferred_logger);
|
void calculateProductivityIndexValues(DeferredLogger& deferred_logger);
|
||||||
void calculateProductivityIndexValues(const WellInterface<TypeTag>* wellPtr,
|
void calculateProductivityIndexValues(const WellInterface<TypeTag>* wellPtr,
|
||||||
|
@ -1605,4 +1605,20 @@ updateNetworkPressures(const int reportStepIdx)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void
|
||||||
|
BlackoilWellModelGeneric::
|
||||||
|
calculateEfficiencyFactors(const int reportStepIdx)
|
||||||
|
{
|
||||||
|
if ( !localWellsActive() ) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
for (auto& well : well_container_generic_) {
|
||||||
|
const Well& wellEcl = well->wellEcl();
|
||||||
|
double well_efficiency_factor = wellEcl.getEfficiencyFactor();
|
||||||
|
WellGroupHelpers::accumulateGroupEfficiencyFactor(schedule().getGroup(wellEcl.groupName(), reportStepIdx), schedule(), reportStepIdx, well_efficiency_factor);
|
||||||
|
well->setWellEfficiencyFactor(well_efficiency_factor);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
@ -271,6 +271,8 @@ protected:
|
|||||||
std::unordered_map<std::string, data::GroupGuideRates>
|
std::unordered_map<std::string, data::GroupGuideRates>
|
||||||
calculateAllGroupGuiderates(const int reportStepIdx) const;
|
calculateAllGroupGuiderates(const int reportStepIdx) const;
|
||||||
|
|
||||||
|
void calculateEfficiencyFactors(const int reportStepIdx);
|
||||||
|
|
||||||
bool checkGroupConstraints(const Group& group,
|
bool checkGroupConstraints(const Group& group,
|
||||||
const int reportStepIdx,
|
const int reportStepIdx,
|
||||||
DeferredLogger& deferred_logger) const;
|
DeferredLogger& deferred_logger) const;
|
||||||
|
@ -1388,25 +1388,6 @@ namespace Opm {
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
template<typename TypeTag>
|
|
||||||
void
|
|
||||||
BlackoilWellModel<TypeTag>::
|
|
||||||
calculateEfficiencyFactors(const int reportStepIdx)
|
|
||||||
{
|
|
||||||
if ( !localWellsActive() ) {
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
|
|
||||||
for (auto& well : well_container_) {
|
|
||||||
const Well& wellEcl = well->wellEcl();
|
|
||||||
double well_efficiency_factor = wellEcl.getEfficiencyFactor();
|
|
||||||
WellGroupHelpers::accumulateGroupEfficiencyFactor(schedule().getGroup(wellEcl.groupName(), reportStepIdx), schedule(), reportStepIdx, well_efficiency_factor);
|
|
||||||
well->setWellEfficiencyFactor(well_efficiency_factor);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
template<typename TypeTag>
|
template<typename TypeTag>
|
||||||
void
|
void
|
||||||
BlackoilWellModel<TypeTag>::
|
BlackoilWellModel<TypeTag>::
|
||||||
|
Loading…
Reference in New Issue
Block a user