commit
f8aa13f6e8
@ -109,8 +109,8 @@ public:
|
||||
* water_injector.injection_rate( gas ) == 0
|
||||
* * Mixed injection is not supported and always returns 0.
|
||||
*/
|
||||
double production_rate( Phase phase) const;
|
||||
double injection_rate( Phase phase) const;
|
||||
double production_rate( const SummaryState& st, Phase phase) const;
|
||||
double injection_rate( const SummaryState& st, Phase phase) const;
|
||||
static bool wellNameInWellNamePattern(const std::string& wellName, const std::string& wellNamePattern);
|
||||
|
||||
/*
|
||||
|
@ -578,7 +578,7 @@ inline quantity production_history( const fn_args& args ) {
|
||||
for( const auto& sched_well : args.schedule_wells ){
|
||||
|
||||
double eff_fac = efac( args.eff_factors, sched_well.name() );
|
||||
sum += sched_well.production_rate( phase ) * eff_fac;
|
||||
sum += sched_well.production_rate( args.st, phase ) * eff_fac;
|
||||
}
|
||||
|
||||
|
||||
@ -591,7 +591,7 @@ inline quantity injection_history( const fn_args& args ) {
|
||||
double sum = 0.0;
|
||||
for( const auto& sched_well : args.schedule_wells ){
|
||||
double eff_fac = efac( args.eff_factors, sched_well.name() );
|
||||
sum += sched_well.injection_rate( phase ) * eff_fac;
|
||||
sum += sched_well.injection_rate( args.st, phase ) * eff_fac;
|
||||
}
|
||||
|
||||
|
||||
|
@ -647,7 +647,7 @@ WellCompletion::CompletionOrderEnum Well2::getWellConnectionOrdering() const {
|
||||
return this->ordering;
|
||||
}
|
||||
|
||||
double Well2::production_rate( Phase phase_arg) const {
|
||||
double Well2::production_rate(const SummaryState& st, Phase phase_arg) const {
|
||||
if( !this->isProducer() ) return 0.0;
|
||||
|
||||
const auto& p = this->getProductionProperties();
|
||||
@ -670,7 +670,7 @@ double Well2::production_rate( Phase phase_arg) const {
|
||||
"This is likely a programming error." );
|
||||
}
|
||||
|
||||
double Well2::injection_rate( Phase phase_arg) const {
|
||||
double Well2::injection_rate(const SummaryState& st, Phase phase_arg) const {
|
||||
if( !this->isInjector() ) return 0.0;
|
||||
|
||||
const auto& i = this->getInjectionProperties();
|
||||
|
Loading…
Reference in New Issue
Block a user