Rename CompletionSet -> ConnectionSet
This commit is contained in:
@@ -18,20 +18,20 @@
|
||||
*/
|
||||
|
||||
|
||||
#ifndef COMPLETIONSET_HPP_
|
||||
#define COMPLETIONSET_HPP_
|
||||
#ifndef CONNECTIONSET_HPP_
|
||||
#define CONNECTIONSET_HPP_
|
||||
|
||||
#include <opm/parser/eclipse/EclipseState/Schedule/Connection.hpp>
|
||||
|
||||
namespace Opm {
|
||||
class EclipseGrid;
|
||||
|
||||
class CompletionSet {
|
||||
class ConnectionSet {
|
||||
public:
|
||||
CompletionSet() = default;
|
||||
ConnectionSet() = default;
|
||||
// cppcheck-suppress noExplicitConstructor
|
||||
CompletionSet( std::initializer_list< Connection > );
|
||||
CompletionSet(const CompletionSet& src, const EclipseGrid& grid);
|
||||
ConnectionSet( std::initializer_list< Connection > );
|
||||
ConnectionSet(const ConnectionSet& src, const EclipseGrid& grid);
|
||||
|
||||
using const_iterator = std::vector< Connection >::const_iterator;
|
||||
|
||||
@@ -43,27 +43,27 @@ namespace Opm {
|
||||
const_iterator begin() const { return this->m_connections.begin(); }
|
||||
const_iterator end() const { return this->m_connections.end(); }
|
||||
void filter(const EclipseGrid& grid);
|
||||
bool allCompletionsShut() const;
|
||||
/// Order completions irrespective of input order.
|
||||
bool allConnectionsShut() const;
|
||||
/// Order connections irrespective of input order.
|
||||
/// The algorithm used is the following:
|
||||
/// 1. The completion nearest to the given (well_i, well_j)
|
||||
/// coordinates in terms of the completion's (i, j) is chosen
|
||||
/// to be the first completion. If non-unique, choose one with
|
||||
/// 1. The connection nearest to the given (well_i, well_j)
|
||||
/// coordinates in terms of the connection's (i, j) is chosen
|
||||
/// to be the first connection. If non-unique, choose one with
|
||||
/// lowest z-depth (shallowest).
|
||||
/// 2. Choose next completion to be nearest to current in (i, j) sense.
|
||||
/// 2. Choose next connection to be nearest to current in (i, j) sense.
|
||||
/// If non-unique choose closest in z-depth (not logical cartesian k).
|
||||
///
|
||||
/// \param[in] well_i logical cartesian i-coordinate of well head
|
||||
/// \param[in] well_j logical cartesian j-coordinate of well head
|
||||
/// \param[in] grid EclipseGrid object, used for cell depths
|
||||
void orderCompletions(size_t well_i, size_t well_j);
|
||||
void orderConnections(size_t well_i, size_t well_j);
|
||||
|
||||
bool operator==( const CompletionSet& ) const;
|
||||
bool operator!=( const CompletionSet& ) const;
|
||||
bool operator==( const ConnectionSet& ) const;
|
||||
bool operator!=( const ConnectionSet& ) const;
|
||||
|
||||
private:
|
||||
std::vector< Connection > m_connections;
|
||||
size_t findClosestCompletion(int oi, int oj, double oz, size_t start_pos);
|
||||
size_t findClosestConnection(int oi, int oj, double oz, size_t start_pos);
|
||||
};
|
||||
}
|
||||
|
||||
@@ -17,16 +17,16 @@
|
||||
along with OPM. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
#ifndef UPDATING_COMPLETIONS_WITH_SEGMENTS
|
||||
#define UPDATING_COMPLETIONS_WITH_SEGMENTS
|
||||
#ifndef UPDATING_CONNECTIONS_WITH_SEGMENTS
|
||||
#define UPDATING_CONNECTIONS_WITH_SEGMENTS
|
||||
|
||||
#include <opm/parser/eclipse/Deck/DeckKeyword.hpp>
|
||||
|
||||
#include <opm/parser/eclipse/EclipseState/Schedule/CompletionSet.hpp>
|
||||
#include <opm/parser/eclipse/EclipseState/Schedule/ConnectionSet.hpp>
|
||||
#include <opm/parser/eclipse/EclipseState/Schedule/MSW/SegmentSet.hpp>
|
||||
|
||||
namespace Opm {
|
||||
CompletionSet updatingCompletionsWithSegments(const DeckKeyword& compsegs, const CompletionSet& input_completions, const SegmentSet& segments);
|
||||
ConnectionSet updatingConnectionsWithSegments(const DeckKeyword& compsegs, const ConnectionSet& input_connections, const SegmentSet& segments);
|
||||
}
|
||||
|
||||
#endif
|
||||
@@ -79,7 +79,7 @@ namespace Opm
|
||||
|
||||
size_t numWells() const;
|
||||
size_t numWells(size_t timestep) const;
|
||||
size_t getMaxNumCompletionsForWells(size_t timestep) const;
|
||||
size_t getMaxNumConnectionsForWells(size_t timestep) const;
|
||||
bool hasWell(const std::string& wellName) const;
|
||||
const Well* getWell(const std::string& wellName) const;
|
||||
std::vector< const Well* > getOpenWells(size_t timeStep) const;
|
||||
@@ -121,7 +121,7 @@ namespace Opm
|
||||
Will remove all completions which are connected to cell which is not
|
||||
active. Will scan through all wells and all timesteps.
|
||||
*/
|
||||
void filterCompletions(const EclipseGrid& grid);
|
||||
void filterConnections(const EclipseGrid& grid);
|
||||
|
||||
private:
|
||||
TimeMap m_timeMap;
|
||||
|
||||
@@ -27,7 +27,7 @@
|
||||
|
||||
#include <opm/parser/eclipse/EclipseState/Runspec.hpp>
|
||||
#include <opm/parser/eclipse/EclipseState/Schedule/Events.hpp>
|
||||
#include <opm/parser/eclipse/EclipseState/Schedule/CompletionSet.hpp>
|
||||
#include <opm/parser/eclipse/EclipseState/Schedule/ConnectionSet.hpp>
|
||||
#include <opm/parser/eclipse/EclipseState/Schedule/DynamicState.hpp>
|
||||
#include <opm/parser/eclipse/EclipseState/Schedule/WellEconProductionLimits.hpp>
|
||||
#include <opm/parser/eclipse/EclipseState/Schedule/WellInjectionProperties.hpp>
|
||||
@@ -41,7 +41,7 @@ namespace Opm {
|
||||
template< typename > class DynamicState;
|
||||
|
||||
class COnnection;
|
||||
class CompletionSet;
|
||||
class ConnectionSet;
|
||||
class Segment;
|
||||
class SegmentSet;
|
||||
class TimeMap;
|
||||
@@ -94,11 +94,11 @@ namespace Opm {
|
||||
bool isInjector(size_t timeStep) const;
|
||||
void addWELSPECS(const DeckRecord& deckRecord);
|
||||
|
||||
void addCompletions(size_t time_step, const std::vector< Connection >& );
|
||||
void addCompletionSet(size_t time_step, CompletionSet );
|
||||
const CompletionSet& getCompletions(size_t timeStep) const;
|
||||
const CompletionSet& getCompletions() const;
|
||||
CompletionSet getActiveCompletions(size_t timeStep, const EclipseGrid& grid) const;
|
||||
void addConnections(size_t time_step, const std::vector< Connection >& );
|
||||
void addConnectionSet(size_t time_step, ConnectionSet );
|
||||
const ConnectionSet& getConnections(size_t timeStep) const;
|
||||
const ConnectionSet& getConnections() const;
|
||||
ConnectionSet getActiveConnections(size_t timeStep, const EclipseGrid& grid) const;
|
||||
|
||||
/* The rate of a given phase under the following assumptions:
|
||||
* * Returns zero if production is requested for an injector (and vice
|
||||
@@ -148,7 +148,7 @@ namespace Opm {
|
||||
|
||||
static bool wellNameInWellNamePattern(const std::string& wellName, const std::string& wellNamePattern);
|
||||
|
||||
WellCompletion::CompletionOrderEnum getWellCompletionOrdering() const;
|
||||
WellCompletion::CompletionOrderEnum getWellConnectionOrdering() const;
|
||||
|
||||
bool getAllowCrossFlow() const;
|
||||
bool getAutomaticShutIn() const;
|
||||
@@ -169,7 +169,7 @@ namespace Opm {
|
||||
Will remove all completions which are attached to inactive cells. Will
|
||||
scan through all timesteps.
|
||||
*/
|
||||
void filterCompletions(const EclipseGrid& grid);
|
||||
void filterConnections(const EclipseGrid& grid);
|
||||
private:
|
||||
size_t m_creationTimeStep;
|
||||
std::string m_name;
|
||||
@@ -183,7 +183,7 @@ namespace Opm {
|
||||
DynamicState< double > m_efficiencyFactors;
|
||||
|
||||
DynamicState< int > m_isProducer;
|
||||
DynamicState< CompletionSet > m_completions;
|
||||
DynamicState< ConnectionSet > m_completions;
|
||||
DynamicState< WellProductionProperties > m_productionProperties;
|
||||
DynamicState< WellInjectionProperties > m_injectionProperties;
|
||||
DynamicState< WellPolymerProperties > m_polymerProperties;
|
||||
|
||||
Reference in New Issue
Block a user