Grid Case Statistics: Show well data from first realization

This commit is contained in:
Magne Sjaastad
2024-03-14 15:48:17 +01:00
parent 2e456a6f9b
commit 7190d781d0
4 changed files with 17 additions and 2 deletions

View File

@@ -132,8 +132,6 @@ private:
bool isWellPathWithinBoundingBox( const cvf::BoundingBox& wellPathClipBoundingBox ) const; bool isWellPathWithinBoundingBox( const cvf::BoundingBox& wellPathClipBoundingBox ) const;
static cvf::Color3f mapWellMeasurementToColor( const QString& measurementKind, double value );
bool isWellPathEnabled( const cvf::BoundingBox& wellPathClipBoundingBox ) const; bool isWellPathEnabled( const cvf::BoundingBox& wellPathClipBoundingBox ) const;
private: private:

View File

@@ -285,6 +285,14 @@ void RimEclipseStatisticsCase::selectAllTimeSteps()
} }
} }
//--------------------------------------------------------------------------------------------------
///
//--------------------------------------------------------------------------------------------------
void RimEclipseStatisticsCase::setWellDataSourceCase( const QString& reservoirDescription )
{
m_wellDataSourceCase = reservoirDescription;
}
//-------------------------------------------------------------------------------------------------- //--------------------------------------------------------------------------------------------------
/// ///
//-------------------------------------------------------------------------------------------------- //--------------------------------------------------------------------------------------------------

View File

@@ -85,6 +85,8 @@ public:
void setSourceProperties( RiaDefines::ResultCatType propertyType, const std::vector<QString>& propertyNames ); void setSourceProperties( RiaDefines::ResultCatType propertyType, const std::vector<QString>& propertyNames );
void selectAllTimeSteps(); void selectAllTimeSteps();
void setWellDataSourceCase( const QString& reservoirDescription );
private: private:
void scheduleACTIVEGeometryRegenOnReservoirViews(); void scheduleACTIVEGeometryRegenOnReservoirViews();

View File

@@ -429,6 +429,13 @@ RimEclipseStatisticsCase* RimIdenticalGridCaseGroup::createStatisticsCase( bool
if ( selectDefaultResults ) newStatisticsCase->populateResultSelectionAfterLoadingGrid(); if ( selectDefaultResults ) newStatisticsCase->populateResultSelectionAfterLoadingGrid();
auto reservoirs = caseCollection->reservoirs().childrenByType();
if ( !reservoirs.empty() )
{
auto caseDescription = reservoirs.front()->caseUserDescription();
newStatisticsCase->setWellDataSourceCase( caseDescription );
}
newStatisticsCase->openEclipseGridFile(); newStatisticsCase->openEclipseGridFile();
newStatisticsCase->computeActiveCellsBoundingBox(); newStatisticsCase->computeActiveCellsBoundingBox();
newStatisticsCase->selectAllTimeSteps(); newStatisticsCase->selectAllTimeSteps();