mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
Janitor : Add SOIL SGAS SWAT to RiaResultNames
wip
This commit is contained in:
@@ -18,6 +18,12 @@
|
||||
|
||||
#include "RiuRelativePermeabilityPlotPanel.h"
|
||||
|
||||
#include "RiaCurveDataTools.h"
|
||||
#include "RiaEclipseUnitTools.h"
|
||||
#include "RiaResultNames.h"
|
||||
|
||||
#include "RigFlowDiagSolverInterface.h"
|
||||
|
||||
#include "RiuDockedQwtPlot.h"
|
||||
#include "RiuGuiTheme.h"
|
||||
#include "RiuQwtPlotCurve.h"
|
||||
@@ -25,11 +31,6 @@
|
||||
#include "RiuRelativePermeabilityPlotUpdater.h"
|
||||
#include "RiuTextDialog.h"
|
||||
|
||||
#include "RiaCurveDataTools.h"
|
||||
#include "RiaEclipseUnitTools.h"
|
||||
|
||||
#include "RigFlowDiagSolverInterface.h"
|
||||
|
||||
#include "cvfAssert.h"
|
||||
#include "cvfTrace.h"
|
||||
|
||||
@@ -466,11 +467,11 @@ void RiuRelativePermeabilityPlotPanel::plotCurvesInQwt( RiaDefines::EclipseUnitS
|
||||
// Add vertical marker lines to indicate cell SWAT and/or SGAS saturations
|
||||
if ( swat != HUGE_VAL )
|
||||
{
|
||||
addVerticalSaturationMarkerLine( swat, "SWAT", waterColor, plot, myPlotMarkers );
|
||||
addVerticalSaturationMarkerLine( swat, RiaResultNames::swat(), waterColor, plot, myPlotMarkers );
|
||||
}
|
||||
if ( sgas != HUGE_VAL )
|
||||
{
|
||||
addVerticalSaturationMarkerLine( sgas, "SGAS", gasColor, plot, myPlotMarkers );
|
||||
addVerticalSaturationMarkerLine( sgas, RiaResultNames::sgas(), gasColor, plot, myPlotMarkers );
|
||||
}
|
||||
|
||||
if ( logScaleLeftAxis )
|
||||
|
||||
@@ -172,9 +172,9 @@ bool RiuRelativePermeabilityPlotUpdater::queryDataAndUpdatePlot( const RimEclips
|
||||
RigCaseCellResultsData* cellResultsData =
|
||||
eclipseCaseData->results( RiaDefines::PorosityModelType::MATRIX_MODEL );
|
||||
cellResultsData->ensureKnownResultLoaded(
|
||||
RigEclipseResultAddress( RiaDefines::ResultCatType::DYNAMIC_NATIVE, "SWAT" ) );
|
||||
RigEclipseResultAddress( RiaDefines::ResultCatType::DYNAMIC_NATIVE, RiaResultNames::swat() ) );
|
||||
cellResultsData->ensureKnownResultLoaded(
|
||||
RigEclipseResultAddress( RiaDefines::ResultCatType::DYNAMIC_NATIVE, "SGAS" ) );
|
||||
RigEclipseResultAddress( RiaDefines::ResultCatType::DYNAMIC_NATIVE, RiaResultNames::sgas() ) );
|
||||
cellResultsData->ensureKnownResultLoaded(
|
||||
RigEclipseResultAddress( RiaDefines::ResultCatType::STATIC_NATIVE, "SATNUM" ) );
|
||||
|
||||
@@ -185,14 +185,14 @@ bool RiuRelativePermeabilityPlotUpdater::queryDataAndUpdatePlot( const RimEclips
|
||||
RiaDefines::PorosityModelType::MATRIX_MODEL,
|
||||
timeStepIndex,
|
||||
RigEclipseResultAddress( RiaDefines::ResultCatType::DYNAMIC_NATIVE,
|
||||
"SWAT" ) );
|
||||
RiaResultNames::swat() ) );
|
||||
cvf::ref<RigResultAccessor> sgasAccessor =
|
||||
RigResultAccessorFactory::createFromResultAddress( eclipseCaseData,
|
||||
gridIndex,
|
||||
RiaDefines::PorosityModelType::MATRIX_MODEL,
|
||||
timeStepIndex,
|
||||
RigEclipseResultAddress( RiaDefines::ResultCatType::DYNAMIC_NATIVE,
|
||||
"SGAS" ) );
|
||||
RiaResultNames::sgas() ) );
|
||||
cvf::ref<RigResultAccessor> satnumAccessor =
|
||||
RigResultAccessorFactory::createFromResultAddress( eclipseCaseData,
|
||||
gridIndex,
|
||||
|
||||
@@ -544,11 +544,11 @@ void RiuResultTextBuilder::appendTextFromResultColors( RigEclipseCaseData*
|
||||
if ( gridCellResults )
|
||||
{
|
||||
gridCellResults->ensureKnownResultLoaded(
|
||||
RigEclipseResultAddress( RiaDefines::ResultCatType::DYNAMIC_NATIVE, "SOIL" ) );
|
||||
RigEclipseResultAddress( RiaDefines::ResultCatType::DYNAMIC_NATIVE, RiaResultNames::soil() ) );
|
||||
gridCellResults->ensureKnownResultLoaded(
|
||||
RigEclipseResultAddress( RiaDefines::ResultCatType::DYNAMIC_NATIVE, "SGAS" ) );
|
||||
RigEclipseResultAddress( RiaDefines::ResultCatType::DYNAMIC_NATIVE, RiaResultNames::sgas() ) );
|
||||
gridCellResults->ensureKnownResultLoaded(
|
||||
RigEclipseResultAddress( RiaDefines::ResultCatType::DYNAMIC_NATIVE, "SWAT" ) );
|
||||
RigEclipseResultAddress( RiaDefines::ResultCatType::DYNAMIC_NATIVE, RiaResultNames::swat() ) );
|
||||
|
||||
cvf::ref<RigResultAccessor> dataAccessObjectX =
|
||||
RigResultAccessorFactory::createFromResultAddress( eclipseCase,
|
||||
@@ -556,21 +556,21 @@ void RiuResultTextBuilder::appendTextFromResultColors( RigEclipseCaseData*
|
||||
porosityModel,
|
||||
timeStepIndex,
|
||||
RigEclipseResultAddress( RiaDefines::ResultCatType::DYNAMIC_NATIVE,
|
||||
"SOIL" ) );
|
||||
RiaResultNames::soil() ) );
|
||||
cvf::ref<RigResultAccessor> dataAccessObjectY =
|
||||
RigResultAccessorFactory::createFromResultAddress( eclipseCase,
|
||||
gridIndex,
|
||||
porosityModel,
|
||||
timeStepIndex,
|
||||
RigEclipseResultAddress( RiaDefines::ResultCatType::DYNAMIC_NATIVE,
|
||||
"SGAS" ) );
|
||||
RiaResultNames::sgas() ) );
|
||||
cvf::ref<RigResultAccessor> dataAccessObjectZ =
|
||||
RigResultAccessorFactory::createFromResultAddress( eclipseCase,
|
||||
gridIndex,
|
||||
porosityModel,
|
||||
timeStepIndex,
|
||||
RigEclipseResultAddress( RiaDefines::ResultCatType::DYNAMIC_NATIVE,
|
||||
"SWAT" ) );
|
||||
RiaResultNames::swat() ) );
|
||||
|
||||
double scalarValue = 0.0;
|
||||
|
||||
@@ -900,11 +900,11 @@ QString RiuResultTextBuilder::cellResultText( RimEclipseResultDefinition* eclRes
|
||||
if ( gridCellResults )
|
||||
{
|
||||
gridCellResults->ensureKnownResultLoaded(
|
||||
RigEclipseResultAddress( RiaDefines::ResultCatType::DYNAMIC_NATIVE, "SOIL" ) );
|
||||
RigEclipseResultAddress( RiaDefines::ResultCatType::DYNAMIC_NATIVE, RiaResultNames::soil() ) );
|
||||
gridCellResults->ensureKnownResultLoaded(
|
||||
RigEclipseResultAddress( RiaDefines::ResultCatType::DYNAMIC_NATIVE, "SGAS" ) );
|
||||
RigEclipseResultAddress( RiaDefines::ResultCatType::DYNAMIC_NATIVE, RiaResultNames::sgas() ) );
|
||||
gridCellResults->ensureKnownResultLoaded(
|
||||
RigEclipseResultAddress( RiaDefines::ResultCatType::DYNAMIC_NATIVE, "SWAT" ) );
|
||||
RigEclipseResultAddress( RiaDefines::ResultCatType::DYNAMIC_NATIVE, RiaResultNames::swat() ) );
|
||||
|
||||
RiaDefines::PorosityModelType porosityModel = eclResDef->porosityModel();
|
||||
|
||||
@@ -914,21 +914,21 @@ QString RiuResultTextBuilder::cellResultText( RimEclipseResultDefinition* eclRes
|
||||
porosityModel,
|
||||
m_timeStepIndex,
|
||||
RigEclipseResultAddress( RiaDefines::ResultCatType::DYNAMIC_NATIVE,
|
||||
"SOIL" ) );
|
||||
RiaResultNames::soil() ) );
|
||||
cvf::ref<RigResultAccessor> dataAccessObjectY =
|
||||
RigResultAccessorFactory::createFromResultAddress( eclipseCaseData,
|
||||
m_gridIndex,
|
||||
porosityModel,
|
||||
m_timeStepIndex,
|
||||
RigEclipseResultAddress( RiaDefines::ResultCatType::DYNAMIC_NATIVE,
|
||||
"SGAS" ) );
|
||||
RiaResultNames::sgas() ) );
|
||||
cvf::ref<RigResultAccessor> dataAccessObjectZ =
|
||||
RigResultAccessorFactory::createFromResultAddress( eclipseCaseData,
|
||||
m_gridIndex,
|
||||
porosityModel,
|
||||
m_timeStepIndex,
|
||||
RigEclipseResultAddress( RiaDefines::ResultCatType::DYNAMIC_NATIVE,
|
||||
"SWAT" ) );
|
||||
RiaResultNames::swat() ) );
|
||||
|
||||
double scalarValue = 0.0;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user