mirror of
https://github.com/OPM/opm-simulators.git
synced 2025-02-25 18:55:30 -06:00
Merge pull request #2958 from blattms/use-perf-data-for-well-pi
Use WellInterface::perf_data_ to calculate PI.
This commit is contained in:
@@ -1210,14 +1210,10 @@ namespace Opm
|
|||||||
setToZero(wellPI);
|
setToZero(wellPI);
|
||||||
|
|
||||||
const auto preferred_phase = this->well_ecl_.getPreferredPhase();
|
const auto preferred_phase = this->well_ecl_.getPreferredPhase();
|
||||||
|
auto subsetPerfID = 0;
|
||||||
|
|
||||||
const auto& allConn = this->well_ecl_.getConnections();
|
for ( const auto& perf : *this->perf_data_){
|
||||||
const auto nPerf = allConn.size();
|
auto allPerfID = perf.ecl_index;
|
||||||
auto subsetPerfID = 0*nPerf;
|
|
||||||
for (auto allPerfID = 0*nPerf; allPerfID < nPerf; ++allPerfID) {
|
|
||||||
if (allConn[allPerfID].state() == Connection::State::SHUT) {
|
|
||||||
continue;
|
|
||||||
}
|
|
||||||
|
|
||||||
auto connPICalc = [&wellPICalc, allPerfID](const double mobility) -> double
|
auto connPICalc = [&wellPICalc, allPerfID](const double mobility) -> double
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -2316,14 +2316,10 @@ namespace Opm
|
|||||||
setToZero(wellPI);
|
setToZero(wellPI);
|
||||||
|
|
||||||
const auto preferred_phase = this->well_ecl_.getPreferredPhase();
|
const auto preferred_phase = this->well_ecl_.getPreferredPhase();
|
||||||
|
auto subsetPerfID = 0;
|
||||||
|
|
||||||
const auto& allConn = this->well_ecl_.getConnections();
|
for ( const auto& perf : *this->perf_data_){
|
||||||
const auto nPerf = allConn.size();
|
auto allPerfID = perf.ecl_index;
|
||||||
auto subsetPerfID = 0*nPerf;
|
|
||||||
for (auto allPerfID = 0*nPerf; allPerfID < nPerf; ++allPerfID) {
|
|
||||||
if (allConn[allPerfID].state() == Connection::State::SHUT) {
|
|
||||||
continue;
|
|
||||||
}
|
|
||||||
|
|
||||||
auto connPICalc = [&wellPICalc, allPerfID](const double mobility) -> double
|
auto connPICalc = [&wellPICalc, allPerfID](const double mobility) -> double
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user