Skip to content

Commit

Permalink
Rename.
Browse files Browse the repository at this point in the history
  • Loading branch information
kriben committed Dec 13, 2024
1 parent d6826d0 commit 12a4dd3
Show file tree
Hide file tree
Showing 9 changed files with 48 additions and 45 deletions.
4 changes: 2 additions & 2 deletions ApplicationLibCode/FileInterface/CMakeLists_files.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ set(SOURCE_GROUP_HEADER_FILES
${CMAKE_CURRENT_LIST_DIR}/RifAsciiDataParseOptions.h
${CMAKE_CURRENT_LIST_DIR}/RifByteArrayArrowRandomAccessFile.h
${CMAKE_CURRENT_LIST_DIR}/RifArrowTools.h
${CMAKE_CURRENT_LIST_DIR}/RifReaderBoundingBoxModel.h
${CMAKE_CURRENT_LIST_DIR}/RifReaderRegularGridModel.h
)

set(SOURCE_GROUP_SOURCE_FILES
Expand Down Expand Up @@ -202,7 +202,7 @@ set(SOURCE_GROUP_SOURCE_FILES
${CMAKE_CURRENT_LIST_DIR}/RifOsduWellLogReader.cpp
${CMAKE_CURRENT_LIST_DIR}/RifByteArrayArrowRandomAccessFile.cpp
${CMAKE_CURRENT_LIST_DIR}/RifArrowTools.cpp
${CMAKE_CURRENT_LIST_DIR}/RifReaderBoundingBoxModel.cpp
${CMAKE_CURRENT_LIST_DIR}/RifReaderRegularGridModel.cpp
)

list(APPEND CODE_HEADER_FILES ${SOURCE_GROUP_HEADER_FILES})
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,30 +16,30 @@
//
/////////////////////////////////////////////////////////////////////////////////

#include "RifReaderBoundingBoxModel.h"
#include "RifReaderRegularGridModel.h"

#include "RigCaseCellResultsData.h"
#include "RigEclipseCaseData.h"

//--------------------------------------------------------------------------------------------------
///
//--------------------------------------------------------------------------------------------------
RifReaderBoundingBoxModel::RifReaderBoundingBoxModel()
RifReaderRegularGridModel::RifReaderRegularGridModel()
: m_reservoir( nullptr )
{
}

//--------------------------------------------------------------------------------------------------
///
//--------------------------------------------------------------------------------------------------
RifReaderBoundingBoxModel::~RifReaderBoundingBoxModel()
RifReaderRegularGridModel::~RifReaderRegularGridModel()
{
}

//--------------------------------------------------------------------------------------------------
///
//--------------------------------------------------------------------------------------------------
bool RifReaderBoundingBoxModel::open( const QString& fileName, RigEclipseCaseData* eclipseCase )
bool RifReaderRegularGridModel::open( const QString& fileName, RigEclipseCaseData* eclipseCase )
{
m_reservoirBuilder.createGridsAndCells( eclipseCase );
m_reservoir = eclipseCase;
Expand All @@ -49,7 +49,7 @@ bool RifReaderBoundingBoxModel::open( const QString& fileName, RigEclipseCaseDat
//--------------------------------------------------------------------------------------------------
///
//--------------------------------------------------------------------------------------------------
bool RifReaderBoundingBoxModel::inputProperty( const QString& propertyName, std::vector<double>* values )
bool RifReaderRegularGridModel::inputProperty( const QString& propertyName, std::vector<double>* values )

{
CAF_ASSERT( false );
Expand All @@ -59,7 +59,7 @@ bool RifReaderBoundingBoxModel::inputProperty( const QString& propertyName, std:
//--------------------------------------------------------------------------------------------------
///
//--------------------------------------------------------------------------------------------------
bool RifReaderBoundingBoxModel::staticResult( const QString& result, RiaDefines::PorosityModelType matrixOrFracture, std::vector<double>* values )
bool RifReaderRegularGridModel::staticResult( const QString& result, RiaDefines::PorosityModelType matrixOrFracture, std::vector<double>* values )
{
CAF_ASSERT( false );
return true;
Expand All @@ -68,7 +68,7 @@ bool RifReaderBoundingBoxModel::staticResult( const QString& result, RiaDefines:
//--------------------------------------------------------------------------------------------------
///
//--------------------------------------------------------------------------------------------------
bool RifReaderBoundingBoxModel::dynamicResult( const QString& result,
bool RifReaderRegularGridModel::dynamicResult( const QString& result,
RiaDefines::PorosityModelType matrixOrFracture,
size_t stepIndex,
std::vector<double>* values )
Expand All @@ -80,23 +80,23 @@ bool RifReaderBoundingBoxModel::dynamicResult( const QString& res
//--------------------------------------------------------------------------------------------------
///
//--------------------------------------------------------------------------------------------------
void RifReaderBoundingBoxModel::setWorldCoordinates( cvf::Vec3d minWorldCoordinate, cvf::Vec3d maxWorldCoordinate )
void RifReaderRegularGridModel::setWorldCoordinates( cvf::Vec3d minWorldCoordinate, cvf::Vec3d maxWorldCoordinate )
{
m_reservoirBuilder.setWorldCoordinates( minWorldCoordinate, maxWorldCoordinate );
}

//--------------------------------------------------------------------------------------------------
///
//--------------------------------------------------------------------------------------------------
void RifReaderBoundingBoxModel::setGridPointDimensions( const cvf::Vec3st& gridPointDimensions )
void RifReaderRegularGridModel::setGridPointDimensions( const cvf::Vec3st& gridPointDimensions )
{
m_reservoirBuilder.setIJKCount( gridPointDimensions );
}

//--------------------------------------------------------------------------------------------------
///
//--------------------------------------------------------------------------------------------------
void RifReaderBoundingBoxModel::addLocalGridRefinement( const cvf::Vec3st& minCellPosition,
void RifReaderRegularGridModel::addLocalGridRefinement( const cvf::Vec3st& minCellPosition,
const cvf::Vec3st& maxCellPosition,
const cvf::Vec3st& singleCellRefinementFactors )
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,11 +21,11 @@
#include "RifReaderInterface.h"
#include "RigReservoirBuilder.h"

class RifReaderBoundingBoxModel : public RifReaderInterface
class RifReaderRegularGridModel : public RifReaderInterface
{
public:
RifReaderBoundingBoxModel();
~RifReaderBoundingBoxModel() override;
RifReaderRegularGridModel();
~RifReaderRegularGridModel() override;

void setWorldCoordinates( cvf::Vec3d minWorldCoordinate, cvf::Vec3d maxWorldCoordinate );
void setGridPointDimensions( const cvf::Vec3st& gridPointDimensions );
Expand Down
4 changes: 2 additions & 2 deletions ApplicationLibCode/ProjectDataModel/CMakeLists_files.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@ set(SOURCE_GROUP_HEADER_FILES
${CMAKE_CURRENT_LIST_DIR}/RimStatisticsContourMap.h
${CMAKE_CURRENT_LIST_DIR}/RimStatisticsContourMapProjection.h
${CMAKE_CURRENT_LIST_DIR}/RimStatisticsContourMapView.h
${CMAKE_CURRENT_LIST_DIR}/RimEclipseBoundingBoxCase.h
${CMAKE_CURRENT_LIST_DIR}/RimRegularGridCase.h
)

set(SOURCE_GROUP_SOURCE_FILES
Expand Down Expand Up @@ -275,7 +275,7 @@ set(SOURCE_GROUP_SOURCE_FILES
${CMAKE_CURRENT_LIST_DIR}/RimStatisticsContourMap.cpp
${CMAKE_CURRENT_LIST_DIR}/RimStatisticsContourMapProjection.cpp
${CMAKE_CURRENT_LIST_DIR}/RimStatisticsContourMapView.cpp
${CMAKE_CURRENT_LIST_DIR}/RimEclipseBoundingBoxCase.cpp
${CMAKE_CURRENT_LIST_DIR}/RimRegularGridCase.cpp
)

if(RESINSIGHT_USE_QT_CHARTS)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,18 +16,18 @@
//
/////////////////////////////////////////////////////////////////////////////////

#include "RimEclipseBoundingBoxCase.h"
#include "RimRegularGridCase.h"

#include "RifReaderBoundingBoxModel.h"
#include "RifReaderRegularGridModel.h"

#include "RigCaseCellResultsData.h"
#include "RigEclipseCaseData.h"

CAF_PDM_SOURCE_INIT( RimEclipseBoundingBoxCase, "EclipseBoundingBoxCase" );
CAF_PDM_SOURCE_INIT( RimRegularGridCase, "EclipseBoundingBoxCase" );
//--------------------------------------------------------------------------------------------------
///
//--------------------------------------------------------------------------------------------------
RimEclipseBoundingBoxCase::RimEclipseBoundingBoxCase()
RimRegularGridCase::RimRegularGridCase()
{
CAF_PDM_InitObject( "Bounding Box Case", ":/Case48x48.png", "", "Bounding Box Case" );

Expand All @@ -42,7 +42,7 @@ RimEclipseBoundingBoxCase::RimEclipseBoundingBoxCase()
///
//--------------------------------------------------------------------------------------------------

void RimEclipseBoundingBoxCase::setBoundingBox( const cvf::BoundingBox& boundingBox )
void RimRegularGridCase::setBoundingBox( const cvf::BoundingBox& boundingBox )
{
m_minimum = boundingBox.min();
m_maximum = boundingBox.max();
Expand All @@ -51,9 +51,9 @@ void RimEclipseBoundingBoxCase::setBoundingBox( const cvf::BoundingBox& bounding
//--------------------------------------------------------------------------------------------------
///
//--------------------------------------------------------------------------------------------------
cvf::ref<RifReaderInterface> RimEclipseBoundingBoxCase::createModel( QString modelName )
cvf::ref<RifReaderInterface> RimRegularGridCase::createModel( QString modelName )
{
cvf::ref<RifReaderBoundingBoxModel> reader = new RifReaderBoundingBoxModel;
cvf::ref<RifReaderRegularGridModel> reader = new RifReaderRegularGridModel;
cvf::ref<RigEclipseCaseData> reservoir = new RigEclipseCaseData( this );

reader->setWorldCoordinates( m_minimum, m_maximum );
Expand All @@ -71,7 +71,7 @@ cvf::ref<RifReaderInterface> RimEclipseBoundingBoxCase::createModel( QString mod
//--------------------------------------------------------------------------------------------------
///
//--------------------------------------------------------------------------------------------------
bool RimEclipseBoundingBoxCase::openEclipseGridFile()
bool RimRegularGridCase::openEclipseGridFile()
{
if ( eclipseCaseData() ) return true;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,12 +30,12 @@
//
//
//==================================================================================================
class RimEclipseBoundingBoxCase : public RimEclipseResultCase
class RimRegularGridCase : public RimEclipseResultCase
{
CAF_PDM_HEADER_INIT;

public:
RimEclipseBoundingBoxCase();
RimRegularGridCase();

void setBoundingBox( const cvf::BoundingBox& boundingBox );

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,18 +18,21 @@

#include "RimWellTargetCandidatesGenerator.h"

#include "RiaGuiApplication.h"
#include "RiaLogging.h"
#include "RiaPorosityModel.h"
#include "RiaResultNames.h"
#include "RiuMainWindow.h"

#include "RigCaseCellResultsData.h"
#include "RigEclipseResultAddress.h"
#include "RimEclipseBoundingBoxCase.h"
#include "RimRegularGridCase.h"
#include "Well/RigWellTargetCandidatesGenerator.h"

#include "RimEclipseCase.h"
#include "RimEclipseCaseCollection.h"
#include "RimEclipseCaseEnsemble.h"
#include "RimEclipseCellColors.h"
#include "RimEclipseView.h"
#include "RimOilField.h"
#include "RimProject.h"
Expand Down Expand Up @@ -307,29 +310,29 @@ void RimWellTargetCandidatesGenerator::generateEnsembleStatistics()
if ( !ensemble ) return;

RigWellTargetCandidatesGenerator::ClusteringLimits limits = getClusteringLimits();
RimEclipseBoundingBoxCase* boundingBoxCase = RigWellTargetCandidatesGenerator::generateEnsembleCandidates( *ensemble,
m_timeStep(),
m_volumeType(),
m_volumesType(),
m_volumeResultType(),
limits );
RimRegularGridCase* regularGridCase = RigWellTargetCandidatesGenerator::generateEnsembleCandidates( *ensemble,
m_timeStep(),
m_volumeType(),
m_volumesType(),
m_volumeResultType(),
limits );

RimProject* project = RimProject::current();
if ( !project ) return;

RimEclipseCaseCollection* analysisModels = project->activeOilField() ? project->activeOilField()->analysisModels() : nullptr;
if ( !analysisModels ) return;

analysisModels->cases.push_back( boundingBoxCase );
analysisModels->cases.push_back( regularGridCase );

auto eclipseView = boundingBoxCase->createAndAddReservoirView();
auto eclipseView = regularGridCase->createAndAddReservoirView();

// eclipseView->cellResult()->setResultType( RiaDefines::ResultCatType::INPUT_PROPERTY );

// if ( RiaGuiApplication::isRunning() )
// {
// if ( RiuMainWindow::instance() ) RiuMainWindow::instance()->selectAsCurrentItem( eclipseView->cellResult() );
// }
if ( RiaGuiApplication::isRunning() || RiuMainWindow::instance() )
{
RiuMainWindow::instance()->selectAsCurrentItem( eclipseView->cellResult() );
}

eclipseView->loadDataAndUpdate();

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
#include "RigMainGrid.h"
#include "RigStatisticsMath.h"

#include "RimEclipseBoundingBoxCase.h"
#include "RimRegularGridCase.h"
#include "RimEclipseCase.h"
#include "RimEclipseCaseEnsemble.h"
#include "RimEclipseView.h"
Expand Down Expand Up @@ -703,7 +703,7 @@ std::vector<RigWellTargetCandidatesGenerator::ClusterStatistics>
//--------------------------------------------------------------------------------------------------
///
//--------------------------------------------------------------------------------------------------
RimEclipseBoundingBoxCase* RigWellTargetCandidatesGenerator::generateEnsembleCandidates( RimEclipseCaseEnsemble& ensemble,
RimRegularGridCase* RigWellTargetCandidatesGenerator::generateEnsembleCandidates( RimEclipseCaseEnsemble& ensemble,
size_t timeStepIdx,
VolumeType volumeType,
VolumesType volumesType,
Expand Down Expand Up @@ -733,7 +733,7 @@ RimEclipseBoundingBoxCase* RigWellTargetCandidatesGenerator::generateEnsembleCan
RiaLogging::debug(
QString( "Clusters bounding box max: [%1 %2 %3]" ).arg( boundingBox.max().x() ).arg( boundingBox.max().y() ).arg( boundingBox.max().z() ) );

RimEclipseBoundingBoxCase* targetCase = new RimEclipseBoundingBoxCase;
RimRegularGridCase* targetCase = new RimRegularGridCase;
targetCase->setBoundingBox( boundingBox );
targetCase->createModel( "" );

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ class RigActiveCellInfo;
class RigCaseCellResultsData;
class RimEclipseCase;
class RimEclipseCaseEnsemble;
class RimEclipseBoundingBoxCase;
class RimRegularGridCase;

//==================================================================================================
///
Expand Down Expand Up @@ -82,7 +82,7 @@ class RigWellTargetCandidatesGenerator
VolumeResultType volumeResultType,
size_t timeStepIdx );

static RimEclipseBoundingBoxCase* generateEnsembleCandidates( RimEclipseCaseEnsemble& ensemble,
static RimRegularGridCase* generateEnsembleCandidates( RimEclipseCaseEnsemble& ensemble,
size_t timeStepIdx,
VolumeType volumeType,
VolumesType volumesType,
Expand Down

0 comments on commit 12a4dd3

Please sign in to comment.