Have added ReservoirRates to well injector.

This commit is contained in:
Joakim Hove
2014-01-24 13:24:22 +01:00
parent 1cc38786dc
commit 1ba278022a
6 changed files with 45 additions and 7 deletions

View File

@@ -188,9 +188,11 @@ namespace Opm {
DeckRecordConstPtr record = keyword->getRecord(recordNr);
const std::string& wellName = record->getItem("WELL")->getString(0);
WellPtr well = getWell(wellName);
double injectionRate = record->getItem("SURFACE_FLOW_TARGET")->getSIDouble(0);
double surfaceInjectionRate = record->getItem("SURFACE_FLOW_TARGET")->getSIDouble(0);
double reservoirInjectionRate = record->getItem("RESV_FLOW_TARGET")->getSIDouble(0);
well->setSurfaceInjectionRate( currentStep , injectionRate );
well->setSurfaceInjectionRate( currentStep , surfaceInjectionRate );
well->setReservoirInjectionRate( currentStep , reservoirInjectionRate );
well->setInPredictionMode(currentStep, true);
}
}