#include <WellConnections.hpp>

Public Types

using const_iterator = std::vector< Connection >::const_iterator
 

Public Member Functions

 WellConnections ()
 
 WellConnections (Connection::Order ordering, int headI, int headJ)
 
 WellConnections (Connection::Order ordering, int headI, int headJ, const std::vector< Connection > &connections)
 
 WellConnections (const WellConnections &src, const EclipseGrid &grid)
 
void addConnection (int i, int j, int k, std::size_t global_index, double depth, Connection::State state, double CF, double Kh, double rw, double r0, double skin_factor, const int satTableId, const Connection::Direction direction=Connection::Direction::Z, const Connection::CTFKind ctf_kind=Connection::CTFKind::DeckValue, const std::size_t seqIndex=0, const double segDistStart=0.0, const double segDistEnd=0.0, const bool defaultSatTabId=true)
 
void loadCOMPDAT (const DeckRecord &record, const EclipseGrid &grid, const FieldPropsManager &field_properties)
 
void add (Connection)
 
size_t size () const
 
const Connectionoperator[] (size_t index) const
 
const Connectionget (size_t index) const
 
const ConnectiongetFromIJK (const int i, const int j, const int k) const
 
const Connectionlowest () const
 
ConnectiongetFromIJK (const int i, const int j, const int k)
 
const_iterator begin () const
 
const_iterator end () const
 
void filter (const ActiveGridCells &grid)
 
bool allConnectionsShut () const
 
void order ()
 
bool operator== (const WellConnections &) const
 
bool operator!= (const WellConnections &) const
 
Connection::Order ordering () const
 
std::vector< const Connection * > output (const EclipseGrid &grid) const
 
template<class Serializer >
void serializeOp (Serializer &serializer)
 

Static Public Member Functions

static WellConnections serializeObject ()
 

Member Typedef Documentation

◆ const_iterator

using Opm::WellConnections::const_iterator = std::vector< Connection >::const_iterator

Constructor & Destructor Documentation

◆ WellConnections() [1/4]

Opm::WellConnections::WellConnections ( )

◆ WellConnections() [2/4]

Opm::WellConnections::WellConnections ( Connection::Order  ordering,
int  headI,
int  headJ 
)

◆ WellConnections() [3/4]

Opm::WellConnections::WellConnections ( Connection::Order  ordering,
int  headI,
int  headJ,
const std::vector< Connection > &  connections 
)

◆ WellConnections() [4/4]

Opm::WellConnections::WellConnections ( const WellConnections src,
const EclipseGrid grid 
)

Member Function Documentation

◆ add()

void Opm::WellConnections::add ( Connection  )

◆ addConnection()

void Opm::WellConnections::addConnection ( int  i,
int  j,
int  k,
std::size_t  global_index,
double  depth,
Connection::State  state,
double  CF,
double  Kh,
double  rw,
double  r0,
double  skin_factor,
const int  satTableId,
const Connection::Direction  direction = Connection::Direction::Z,
const Connection::CTFKind  ctf_kind = Connection::CTFKind::DeckValue,
const std::size_t  seqIndex = 0,
const double  segDistStart = 0.0,
const double  segDistEnd = 0.0,
const bool  defaultSatTabId = true 
)

◆ allConnectionsShut()

bool Opm::WellConnections::allConnectionsShut ( ) const

◆ begin()

const_iterator Opm::WellConnections::begin ( ) const
inline

◆ end()

const_iterator Opm::WellConnections::end ( ) const
inline

◆ filter()

void Opm::WellConnections::filter ( const ActiveGridCells grid)

◆ get()

const Connection & Opm::WellConnections::get ( size_t  index) const

◆ getFromIJK() [1/2]

Connection & Opm::WellConnections::getFromIJK ( const int  i,
const int  j,
const int  k 
)

◆ getFromIJK() [2/2]

const Connection & Opm::WellConnections::getFromIJK ( const int  i,
const int  j,
const int  k 
) const

◆ loadCOMPDAT()

void Opm::WellConnections::loadCOMPDAT ( const DeckRecord record,
const EclipseGrid grid,
const FieldPropsManager field_properties 
)

◆ lowest()

const Connection & Opm::WellConnections::lowest ( ) const

◆ operator!=()

bool Opm::WellConnections::operator!= ( const WellConnections ) const

◆ operator==()

bool Opm::WellConnections::operator== ( const WellConnections ) const

◆ operator[]()

const Connection & Opm::WellConnections::operator[] ( size_t  index) const

◆ order()

void Opm::WellConnections::order ( )

Order connections irrespective of input order. The algorithm used is the following:

  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 connection to be nearest to current in (i, j) sense. If non-unique choose closest in z-depth (not logical cartesian k).
Parameters
[in]well_ilogical cartesian i-coordinate of well head
[in]well_jlogical cartesian j-coordinate of well head
[in]gridEclipseGrid object, used for cell depths

◆ ordering()

Connection::Order Opm::WellConnections::ordering ( ) const
inline

◆ output()

std::vector< const Connection * > Opm::WellConnections::output ( const EclipseGrid grid) const

◆ serializeObject()

static WellConnections Opm::WellConnections::serializeObject ( )
static

◆ serializeOp()

template<class Serializer >
void Opm::WellConnections::serializeOp ( Serializer serializer)
inline

◆ size()

size_t Opm::WellConnections::size ( ) const

The documentation for this class was generated from the following file: