mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
Improve filtering by 3D view for Producer/Injector Connectivity Table (#10027)
- Calculate by visible cells: Calculate flow diag by use of visible cells in 3D view (already existing functionality). - Filter producers: select producer wells based on visibility in 3D view. Synch connected injectors - even if they are not visible in 3D view. - Filter injectors: select injector wells based on visibility in 3D view. Synch connected producers - even if they are not visible in 3D view.
This commit is contained in:
@@ -106,6 +106,33 @@ bool RimSimWellInViewTools::isInjector( RimSimWellInView* well )
|
||||
return false;
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
bool RimSimWellInViewTools::isProducer( RimSimWellInView* well )
|
||||
{
|
||||
RigSimWellData* wRes = well->simWellData();
|
||||
if ( wRes )
|
||||
{
|
||||
Rim3dView* rimView = nullptr;
|
||||
well->firstAncestorOrThisOfTypeAsserted( rimView );
|
||||
|
||||
int currentTimeStep = rimView->currentTimeStep();
|
||||
|
||||
if ( wRes->hasWellResult( currentTimeStep ) )
|
||||
{
|
||||
const RigWellResultFrame* wrf = wRes->wellResultFrame( currentTimeStep );
|
||||
|
||||
if ( RiaDefines::WellProductionType::PRODUCER == wrf->m_productionType )
|
||||
{
|
||||
return true;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
return false;
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
|
||||
Reference in New Issue
Block a user