WCON keyword can open a well closed due to physical reason

more tests will be required to figure out more accurate specific way to
open a well closed due to physcal reason with WCON input.
This commit is contained in:
Kai Bao 2018-11-17 23:36:31 +01:00
parent 30742112c6
commit c994a99583

View File

@ -396,6 +396,10 @@ namespace Opm {
initial_step_ = false; initial_step_ = false;
} }
template<typename TypeTag> template<typename TypeTag>
std::vector<typename BlackoilWellModel<TypeTag>::WellInterfacePtr > std::vector<typename BlackoilWellModel<TypeTag>::WellInterfacePtr >
BlackoilWellModel<TypeTag>:: BlackoilWellModel<TypeTag>::
@ -429,11 +433,15 @@ namespace Opm {
const Well* well_ecl = wells_ecl_[index_well]; const Well* well_ecl = wells_ecl_[index_well];
// well is closed due to economical reasons // TODO: a new WCON keyword can re-open the well closed by physical reason
if (wellTestState_.hasWell(well_name, WellTestConfig::Reason::ECONOMIC)) { // A new WCON keywords can re-open a well that was closed/shut due to Physical limit
if( well_ecl->getAutomaticShutIn() ) { if ( wellTestState_.hasWell(well_name, WellTestConfig::Reason::PHYSICAL ) ) {
// shut wells are not added to the well container // TODO: more checking here, to makre sure this standard more specific and complete
well_state_.bhp()[w] = 0; // maybe there is some WCON keywords will not open the well
if (well_state_.effectiveEventsOccurred(w) ) {
wellTestState_.openWell(well_name);
}
}
// TODO: should we do this for all kinds of closing reasons? // TODO: should we do this for all kinds of closing reasons?
// something like wellTestState_.hasWell(well_name)? // something like wellTestState_.hasWell(well_name)?