Skip to content

Commit

Permalink
Grid Case Statistics: Show well data from first realization
Browse files Browse the repository at this point in the history
  • Loading branch information
magnesj committed Mar 21, 2024
1 parent 2e456a6 commit 0716223
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 2 deletions.
2 changes: 0 additions & 2 deletions ApplicationLibCode/ModelVisualization/RivWellPathPartMgr.h
Original file line number Diff line number Diff line change
Expand Up @@ -132,8 +132,6 @@ class RivWellPathPartMgr : public cvf::Object

bool isWellPathWithinBoundingBox( const cvf::BoundingBox& wellPathClipBoundingBox ) const;

static cvf::Color3f mapWellMeasurementToColor( const QString& measurementKind, double value );

bool isWellPathEnabled( const cvf::BoundingBox& wellPathClipBoundingBox ) const;

private:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -285,6 +285,14 @@ void RimEclipseStatisticsCase::selectAllTimeSteps()
}
}

//--------------------------------------------------------------------------------------------------
///
//--------------------------------------------------------------------------------------------------
void RimEclipseStatisticsCase::setWellDataSourceCase( const QString& reservoirDescription )
{
m_wellDataSourceCase = reservoirDescription;
}

//--------------------------------------------------------------------------------------------------
///
//--------------------------------------------------------------------------------------------------
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,8 @@ class RimEclipseStatisticsCase : public RimEclipseCase
void setSourceProperties( RiaDefines::ResultCatType propertyType, const std::vector<QString>& propertyNames );
void selectAllTimeSteps();

void setWellDataSourceCase( const QString& reservoirDescription );

private:
void scheduleACTIVEGeometryRegenOnReservoirViews();

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -429,6 +429,13 @@ RimEclipseStatisticsCase* RimIdenticalGridCaseGroup::createStatisticsCase( bool

if ( selectDefaultResults ) newStatisticsCase->populateResultSelectionAfterLoadingGrid();

auto reservoirs = caseCollection->reservoirs().childrenByType();
if ( !reservoirs.empty() )
{
auto caseDescription = reservoirs.front()->caseUserDescription();
newStatisticsCase->setWellDataSourceCase( caseDescription );
}

newStatisticsCase->openEclipseGridFile();
newStatisticsCase->computeActiveCellsBoundingBox();
newStatisticsCase->selectAllTimeSteps();
Expand Down

0 comments on commit 0716223

Please sign in to comment.