|
My Project
|
Connection index mappings. More...
#include <BlackoilWellModelGeneric.hpp>
Public Member Functions | |
| ConnectionIndexMap (const std::size_t numConns) | |
| Constructor. | |
| void | addActiveConnection (const int connIdx, const bool connIsOpen) |
| Enumerate/map new active connection. | |
| const std::vector< int > & | local () const |
| Get local connection IDs/indices of every existing well connection. | |
| int | global (const int connIdx) const |
| Get global connection ID of local (on-rank) connection. | |
| int | open (const int connIdx) const |
| Get open connection ID of local (on-rank) connection. | |
Connection index mappings.
|
inlineexplicit |
Constructor.
| [in] | numConns | Total number of well connections, both open and closed/shut. Typically WellConnections::size()
|
|
inline |
Enumerate/map new active connection.
| [in] | connIdx | Global well connection index. Must be an integer in the range 0..numConns-1. |
| [in] | connIsOpen | Whether or not the connection is open/flowing. |
|
inline |
Get global connection ID of local (on-rank) connection.
| [in] | connIdx | Local connection index. |
connIdx.
|
inline |
Get local connection IDs/indices of every existing well connection.
Negative value (-1) for connections that don't intersect the current rank.
|
inline |
Get open connection ID of local (on-rank) connection.
| [in] | connIdx | Local connection index. |
connIdx. Integer in the range 0..open connections - 1 if the connection is open or negative value (-1) otherwise.