Merge pull request #1500 from joakim-hove/rename-completion-set

Refactor of connections & completions
This commit is contained in:
Joakim Hove 2018-06-21 08:13:56 +02:00 committed by GitHub
commit 06149a3b05
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 11 additions and 11 deletions

View File

@ -161,8 +161,8 @@ namespace Opm
// multi-phase flow model
WellSegment::MultiPhaseModelEnum multiphaseModel() const;
// get the SegmentSet from the well_ecl_
const SegmentSet& segmentSet() const;
// get the WellSegments from the well_ecl_
const WellSegments& segmentSet() const;
// protected member variables from the Base class
using Base::well_ecl_;

View File

@ -52,11 +52,11 @@ namespace Opm
if (has_polymer) {
OPM_THROW(std::runtime_error, "polymer is not supported by multisegment well yet");
}
// since we decide to use the SegmentSet from the well parser. we can reuse a lot from it.
// since we decide to use the WellSegments from the well parser. we can reuse a lot from it.
// for other facilities needed but not available from parser, we need to process them here
// initialize the segment_perforations_
const ConnectionSet& completion_set = well_ecl_->getConnections(current_step_);
const WellConnections& completion_set = well_ecl_->getConnections(current_step_);
for (int perf = 0; perf < number_of_perforations_; ++perf) {
const Connection& completion = completion_set.get(perf);
const int segment_number = completion.getSegmentNumber();
@ -792,11 +792,11 @@ namespace Opm
template <typename TypeTag>
const SegmentSet&
const WellSegments&
MultisegmentWell<TypeTag>::
segmentSet() const
{
return well_ecl_->getSegmentSet(current_step_);
return well_ecl_->getWellSegments(current_step_);
}
@ -808,7 +808,7 @@ namespace Opm
MultisegmentWell<TypeTag>::
numberOfSegments() const
{
return segmentSet().numberSegment();
return segmentSet().size();
}

View File

@ -547,11 +547,11 @@ namespace Opm
segrates_.push_back(wellRates()[np * w + p]);
}
} else { // it is a multi-segment well
const SegmentSet& segment_set = well_ecl->getSegmentSet(time_step);
const WellSegments& segment_set = well_ecl->getWellSegments(time_step);
// assuming the order of the perforations in well_ecl is the same with Wells
const ConnectionSet& completion_set = well_ecl->getConnections(time_step);
const WellConnections& completion_set = well_ecl->getConnections(time_step);
// number of segment for this single well
const int well_nseg = segment_set.numberSegment();
const int well_nseg = segment_set.size();
const int nperf = completion_set.size();
nseg_ += well_nseg;
// we need to know for each segment, how many perforation it has and how many segments using it as outlet_segment

View File

@ -6,7 +6,7 @@
#include <opm/grid/utility/compressedToCartesian.hpp>
#include <opm/core/props/rock/RockFromDeck.hpp>
#include <opm/parser/eclipse/EclipseState/Grid/EclipseGrid.hpp>
#include <opm/parser/eclipse/EclipseState/Schedule/ConnectionSet.hpp>
#include <opm/parser/eclipse/EclipseState/Schedule/WellConnections.hpp>
#include <opm/parser/eclipse/EclipseState/Schedule/Schedule.hpp>
#include <algorithm>