Add valve visualization to MSW wells

* Refactor geo generator
* Add valve visualization to segments that are connected to a valve
This commit is contained in:
Magne Sjaastad
2023-03-02 13:06:38 +01:00
committed by GitHub
parent 8a2d9ec83e
commit d47d4060cc
16 changed files with 452 additions and 200 deletions

View File

@@ -192,6 +192,14 @@ std::vector<SimulationWellCellBranch>
resPoint.setGridIndex( gridIndex );
resPoint.setGridCellIndex( cellIndex );
auto gridAndCellIndex = std::make_pair( gridIndex, cellIndex );
if ( std::find( wellBranch.m_gridCellsConnectedToValve.begin(),
wellBranch.m_gridCellsConnectedToValve.end(),
gridAndCellIndex ) != wellBranch.m_gridCellsConnectedToValve.end() )
{
resPoint.setIsConnectedToValve( true );
}
cellCenterCoords.push_back( pos );
cellCenterResultPoints.push_back( resPoint );
}
@@ -333,6 +341,7 @@ std::vector<RigMswCenterLineCalculator::WellBranch>
for ( const auto& [gridAndCellIndex, localOutputSegment] : branch.m_gridCellsConnectedToSegments )
{
longBranch.m_segmentsWithGridCells[outputSegment.outputSegmentId].push_back( gridAndCellIndex );
longBranch.m_gridCellsConnectedToValve.push_back( gridAndCellIndex );
}
}
}