mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
Improved simulation well visualization
* Move members to private in RigWellResultPoint * Create simulation well path geometry using well topology * Add separate MSW well pipe centerline computations * Review comments --------- Co-authored-by: magnesj <magnesj@users.noreply.github.com>
This commit is contained in:
@@ -1155,24 +1155,34 @@ QString RiuResultTextBuilder::wellResultText()
|
||||
if ( m_eclResDef->eclipseCase() && m_eclResDef->eclipseCase()->eclipseCaseData() )
|
||||
{
|
||||
cvf::Collection<RigSimWellData> simWellData = m_eclResDef->eclipseCase()->eclipseCaseData()->wellResults();
|
||||
for ( size_t i = 0; i < simWellData.size(); i++ )
|
||||
for ( const auto& singleWellResultData : simWellData )
|
||||
{
|
||||
RigSimWellData* singleWellResultData = simWellData.at( i );
|
||||
|
||||
if ( !singleWellResultData->hasWellResult( m_timeStepIndex ) )
|
||||
{
|
||||
continue;
|
||||
}
|
||||
|
||||
const RigWellResultFrame* wellResultFrame = singleWellResultData->wellResultFrame( m_timeStepIndex );
|
||||
const RigWellResultPoint* wellResultCell = wellResultFrame->findResultCellWellHeadIncluded( m_gridIndex, m_cellIndex );
|
||||
if ( !wellResultFrame )
|
||||
{
|
||||
continue;
|
||||
}
|
||||
|
||||
const RigWellResultPoint* wellResultCell = wellResultFrame->findResultCellWellHeadIncluded( m_gridIndex, m_cellIndex );
|
||||
if ( wellResultCell )
|
||||
{
|
||||
const int branchId = wellResultCell->branchId();
|
||||
const int segmentId = wellResultCell->segmentId();
|
||||
const int outletBranchId = wellResultCell->outletBranchId();
|
||||
const int outletSegmentId = wellResultCell->outletSegmentId();
|
||||
|
||||
text += QString( "-- Well-cell connection info --\n Well Name: %1\n Branch Id: %2\n Segment "
|
||||
"Id: %3\n" )
|
||||
"Id: %3\n Outlet Branch Id: %4\n Outlet Segment Id: %5" )
|
||||
.arg( singleWellResultData->m_wellName )
|
||||
.arg( wellResultCell->m_ertBranchId )
|
||||
.arg( wellResultCell->m_ertSegmentId );
|
||||
.arg( branchId )
|
||||
.arg( segmentId )
|
||||
.arg( outletBranchId )
|
||||
.arg( outletSegmentId );
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user