mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
#7655 Well Allocation Plot: Avoid duplicated flow in tie-in cells
Make sure the tie-in cell is not duplicated
This commit is contained in:
@@ -1882,12 +1882,17 @@ void RifReaderEclipseOutput::readWellCells( const ecl_grid_type* mainEclGrid, bo
|
|||||||
// Select the deepest connection
|
// Select the deepest connection
|
||||||
well_conn_type* ert_connection =
|
well_conn_type* ert_connection =
|
||||||
well_conn_collection_iget( connections, connectionCount - 1 );
|
well_conn_collection_iget( connections, connectionCount - 1 );
|
||||||
wellResultBranch.m_branchResultPoints.push_back(
|
|
||||||
createWellResultPoint( grids[gridNr],
|
auto resultPoint = createWellResultPoint( grids[gridNr],
|
||||||
ert_connection,
|
ert_connection,
|
||||||
well_segment_get_branch_id( outletSegment ),
|
well_segment_get_branch_id( outletSegment ),
|
||||||
well_segment_get_id( outletSegment ),
|
well_segment_get_id( outletSegment ),
|
||||||
wellName ) );
|
wellName );
|
||||||
|
// This result point is only supposed to be used to indicate connection to a parent well
|
||||||
|
// Clear all flow in this result point
|
||||||
|
resultPoint.clearAllFlow();
|
||||||
|
|
||||||
|
wellResultBranch.m_branchResultPoints.push_back( resultPoint );
|
||||||
|
|
||||||
outletSegmentHasConnections = true;
|
outletSegmentHasConnections = true;
|
||||||
break; // Stop looping over grids
|
break; // Stop looping over grids
|
||||||
|
@@ -138,3 +138,15 @@ double RigWellResultPoint::connectionFactor() const
|
|||||||
{
|
{
|
||||||
return m_connectionFactor;
|
return m_connectionFactor;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
//--------------------------------------------------------------------------------------------------
|
||||||
|
///
|
||||||
|
//--------------------------------------------------------------------------------------------------
|
||||||
|
void RigWellResultPoint::clearAllFlow()
|
||||||
|
{
|
||||||
|
m_connectionFactor = 0.0;
|
||||||
|
m_flowRate = 0.0;
|
||||||
|
m_oilRate = 0.0;
|
||||||
|
m_gasRate = 0.0;
|
||||||
|
m_waterRate = 0.0;
|
||||||
|
}
|
||||||
|
@@ -42,6 +42,7 @@ struct RigWellResultPoint
|
|||||||
double gasRate() const;
|
double gasRate() const;
|
||||||
double waterRate() const;
|
double waterRate() const;
|
||||||
double connectionFactor() const;
|
double connectionFactor() const;
|
||||||
|
void clearAllFlow();
|
||||||
|
|
||||||
size_t m_gridIndex;
|
size_t m_gridIndex;
|
||||||
size_t m_gridCellIndex; //< Index to cell which is included in the well
|
size_t m_gridCellIndex; //< Index to cell which is included in the well
|
||||||
|
Reference in New Issue
Block a user