mirror of
https://github.com/OPM/opm-simulators.git
synced 2026-10-13 09:22:05 -05:00
Merge pull request #3580 from joakim-hove/wtest-rename
Remove ecl wells argument to check wells for testing
This commit is contained in:
3 files changed
+8
-6
No files matched your search
@@ -388,12 +388,14 @@ namespace Opm {
|
|||||||
const auto& wtest_config = schedule()[timeStepIdx].wtest_config();
|
const auto& wtest_config = schedule()[timeStepIdx].wtest_config();
|
||||||
if (!wtest_config.empty()) { // there is a WTEST request
|
if (!wtest_config.empty()) { // there is a WTEST request
|
||||||
const std::vector<std::string> wellsForTesting = wellTestState()
|
const std::vector<std::string> wellsForTesting = wellTestState()
|
||||||
.updateWells(wtest_config, wells_ecl_, simulationTime);
|
.test_wells(wtest_config, simulationTime);
|
||||||
|
|
||||||
for (const std::string& well_name : wellsForTesting) {
|
for (const std::string& well_name : wellsForTesting) {
|
||||||
// this is the well we will test
|
const auto& ws = this->wellState().well(well_name);
|
||||||
WellInterfacePtr well = createWellForWellTest(well_name, timeStepIdx, deferred_logger);
|
if (ws.status != Well::Status::OPEN)
|
||||||
|
continue;
|
||||||
|
|
||||||
|
WellInterfacePtr well = createWellForWellTest(well_name, timeStepIdx, deferred_logger);
|
||||||
// some preparation before the well can be used
|
// some preparation before the well can be used
|
||||||
well->init(&phase_usage_, depth_, gravity_, local_num_cells_, B_avg_);
|
well->init(&phase_usage_, depth_, gravity_, local_num_cells_, B_avg_);
|
||||||
const Well& wellEcl = schedule().getWell(well_name, timeStepIdx);
|
const Well& wellEcl = schedule().getWell(well_name, timeStepIdx);
|
||||||
|
|||||||
@@ -227,14 +227,14 @@ void WellInterfaceGeneric::initCompletions()
|
|||||||
assert(my_next_perf == perf_data_->end());
|
assert(my_next_perf == perf_data_->end());
|
||||||
}
|
}
|
||||||
|
|
||||||
void WellInterfaceGeneric::closeCompletions(WellTestState& wellTestState)
|
void WellInterfaceGeneric::closeCompletions(const WellTestState& wellTestState)
|
||||||
{
|
{
|
||||||
const auto& connections = well_ecl_.getConnections();
|
const auto& connections = well_ecl_.getConnections();
|
||||||
int perfIdx = 0;
|
int perfIdx = 0;
|
||||||
for (const auto& connection : connections) {
|
for (const auto& connection : connections) {
|
||||||
if (connection.state() == Connection::State::OPEN) {
|
if (connection.state() == Connection::State::OPEN) {
|
||||||
if (wellTestState.completion_is_closed(name(), connection.complnum())) {
|
if (wellTestState.completion_is_closed(name(), connection.complnum())) {
|
||||||
well_index_[perfIdx] = 0.0;
|
this->well_index_[perfIdx] = 0.0;
|
||||||
}
|
}
|
||||||
perfIdx++;
|
perfIdx++;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -85,7 +85,7 @@ public:
|
|||||||
bool isOperableAndSolvable() const;
|
bool isOperableAndSolvable() const;
|
||||||
|
|
||||||
void initCompletions();
|
void initCompletions();
|
||||||
void closeCompletions(WellTestState& wellTestState);
|
void closeCompletions(const WellTestState& wellTestState);
|
||||||
|
|
||||||
void setVFPProperties(const VFPProperties* vfp_properties_arg);
|
void setVFPProperties(const VFPProperties* vfp_properties_arg);
|
||||||
void setGuideRate(const GuideRate* guide_rate_arg);
|
void setGuideRate(const GuideRate* guide_rate_arg);
|
||||||
|
|||||||
Reference in new issue
Block a user