mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
#8052 StimPlan Model Plot: tweak default shown tracks.
This commit is contained in:
parent
d1fb845606
commit
6440bd5b8d
@ -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 )
|
||||
|
@ -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 );
|
||||
|
||||
|
@ -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();
|
||||
|
Loading…
Reference in New Issue
Block a user