#8052 StimPlan Model Plot: tweak default shown tracks.

This commit is contained in:
Kristian Bendiksen 2021-09-29 13:47:26 +02:00
parent d1fb845606
commit 6440bd5b8d
3 changed files with 16 additions and 26 deletions

View File

@ -356,7 +356,7 @@ void RicNewStimPlanModelPlotFeature::createParametersTrack( RimStimPlanModelPlot
plotTrack->setColSpan( RimPlot::TWO );
plotTrack->setLegendsVisible( true );
plotTrack->setPlotTitleVisible( true );
plotTrack->setShowWindow( shouldShowByDefault( propertyTypes ) );
plotTrack->setShowWindow( shouldShowByDefault( propertyTypes, stimPlanModel->useDetailedFluidLoss() ) );
caf::ColorTable colors = RiaColorTables::wellLogPlotPaletteColors();
@ -472,11 +472,16 @@ RimStimPlanModelPlotCollection* RicNewStimPlanModelPlotFeature::stimPlanModelPlo
//--------------------------------------------------------------------------------------------------
///
//--------------------------------------------------------------------------------------------------
bool RicNewStimPlanModelPlotFeature::shouldShowByDefault( const std::vector<RiaDefines::CurveProperty>& propertyTypes )
bool RicNewStimPlanModelPlotFeature::shouldShowByDefault( const std::vector<RiaDefines::CurveProperty>& propertyTypes,
bool useDetailedFluidLoss )
{
std::vector<RiaDefines::CurveProperty> defaultPropertyTypes = {
RiaDefines::CurveProperty::FACIES,
RiaDefines::CurveProperty::POROSITY,
RiaDefines::CurveProperty::INITIAL_PRESSURE,
RiaDefines::CurveProperty::PRESSURE,
RiaDefines::CurveProperty::PERMEABILITY_X,
RiaDefines::CurveProperty::PERMEABILITY_Z,
RiaDefines::CurveProperty::STRESS,
RiaDefines::CurveProperty::INITIAL_STRESS,
RiaDefines::CurveProperty::STRESS_GRADIENT,
@ -484,9 +489,15 @@ bool RicNewStimPlanModelPlotFeature::shouldShowByDefault( const std::vector<RiaD
RiaDefines::CurveProperty::POISSONS_RATIO,
RiaDefines::CurveProperty::K_IC,
RiaDefines::CurveProperty::PROPPANT_EMBEDMENT,
RiaDefines::CurveProperty::FLUID_LOSS_COEFFICIENT,
RiaDefines::CurveProperty::BIOT_COEFFICIENT,
RiaDefines::CurveProperty::K0,
};
if ( !useDetailedFluidLoss )
{
defaultPropertyTypes.push_back( RiaDefines::CurveProperty::FLUID_LOSS_COEFFICIENT );
}
for ( auto propertyType : propertyTypes )
{
for ( auto defaultPropertyType : defaultPropertyTypes )

View File

@ -60,7 +60,8 @@ private:
const std::vector<RiaDefines::CurveProperty>& propertyTypes,
bool isPlotLogarithmic = false );
static bool shouldShowByDefault( const std::vector<RiaDefines::CurveProperty>& propertyTypes );
static bool shouldShowByDefault( const std::vector<RiaDefines::CurveProperty>& propertyTypes,
bool useDetailedFluidLoss );
static RimStimPlanModelPlot* createStimPlanModelPlot( bool showAfterCreation, const QString& plotDescription );

View File

@ -161,28 +161,6 @@ void RimStimPlanModelPlot::onLoadDataAndUpdate()
m_eclipseCase = stimPlanModel()->eclipseCaseForProperty( RiaDefines::CurveProperty::UNDEFINED );
m_timeStep = stimPlanModel()->timeStep();
updateConnectedEditors();
// Enable and disable detailed fluid loss curves
std::vector<RiaDefines::CurveProperty> fluidLossCurves = { RiaDefines::CurveProperty::PORO_ELASTIC_CONSTANT,
RiaDefines::CurveProperty::RELATIVE_PERMEABILITY_FACTOR,
RiaDefines::CurveProperty::THERMAL_EXPANSION_COEFFICIENT,
RiaDefines::CurveProperty::IMMOBILE_FLUID_SATURATION };
bool detailedFluidLoss = stimPlanModel()->useDetailedFluidLoss();
for ( auto curveProperty : fluidLossCurves )
{
RimWellLogExtractionCurve* curve = findCurveByProperty( curveProperty );
if ( curve )
{
RimWellLogTrack* track = nullptr;
curve->firstAncestorOfType( track );
if ( track )
{
track->setShowWindow( detailedFluidLoss );
}
}
}
}
RimDepthTrackPlot::onLoadDataAndUpdate();