diff --git a/ApplicationCode/ProjectDataModel/RimWbsParameters.cpp b/ApplicationCode/ProjectDataModel/RimWbsParameters.cpp index e0d43f77c7..c7762df9f4 100644 --- a/ApplicationCode/ProjectDataModel/RimWbsParameters.cpp +++ b/ApplicationCode/ProjectDataModel/RimWbsParameters.cpp @@ -52,7 +52,7 @@ RimWbsParameters::RimWbsParameters() "" ); CAF_PDM_InitScriptableFieldWithIO( &m_userDefinedPPShale, "UserPPNonReservoir", - 1.05, + 1.0, " Multiplier of hydrostatic PP", "", "", @@ -388,10 +388,11 @@ void RimWbsParameters::defineUiOrdering( QString uiConfigName, caf::PdmUiOrderin uiOrdering.add( &m_userDefinedDensity ); uiOrdering.add( &m_porePressureSource ); uiOrdering.add( &m_porePressureNonReservoirSource ); - if ( m_porePressureNonReservoirSource == RigWbsParameter::USER_DEFINED ) + if ( m_porePressureNonReservoirSource == RigWbsParameter::HYDROSTATIC ) { uiOrdering.add( &m_userDefinedPPShale ); } + uiOrdering.add( &m_poissonRatioSource ); uiOrdering.add( &m_userDefinedPoissionRatio ); uiOrdering.add( &m_ucsSource ); diff --git a/ApplicationCode/ReservoirDataModel/RigGeoMechWellLogExtractor.cpp b/ApplicationCode/ReservoirDataModel/RigGeoMechWellLogExtractor.cpp index 075fb4713e..09dd255782 100644 --- a/ApplicationCode/ReservoirDataModel/RigGeoMechWellLogExtractor.cpp +++ b/ApplicationCode/ReservoirDataModel/RigGeoMechWellLogExtractor.cpp @@ -339,18 +339,10 @@ std::vector else if ( *it == RigWbsParameter::HYDROSTATIC && isPPresult ) { unscaledValues[intersectionIdx] = - hydroStaticPorePressureForIntersection( intersectionIdx, waterDensityGCM3 ); + userDefinedValue * hydroStaticPorePressureForIntersection( intersectionIdx, waterDensityGCM3 ); finalSourcesPerSegment[intersectionIdx] = RigWbsParameter::HYDROSTATIC; break; } - else if ( *it == RigWbsParameter::USER_DEFINED && isPPresult ) - { - unscaledValues[intersectionIdx] = - userDefinedValue * hydroStaticPorePressureForIntersection( intersectionIdx ); - finalSourcesPerSegment[intersectionIdx] = RigWbsParameter::USER_DEFINED; - break; - } - else if ( *it == RigWbsParameter::USER_DEFINED ) { unscaledValues[intersectionIdx] = userDefinedValue; diff --git a/ApplicationCode/ReservoirDataModel/RigWbsParameter.cpp b/ApplicationCode/ReservoirDataModel/RigWbsParameter.cpp index c71f3fe092..40d9daf24b 100644 --- a/ApplicationCode/ReservoirDataModel/RigWbsParameter.cpp +++ b/ApplicationCode/ReservoirDataModel/RigWbsParameter.cpp @@ -253,15 +253,14 @@ RigWbsParameter RigWbsParameter::PP_Reservoir() //-------------------------------------------------------------------------------------------------- RigWbsParameter RigWbsParameter::PP_NonReservoir() { - return RigWbsParameter( "PP Non-Reservoir", - true, - {{LAS_FILE, - SourceAddress( "PP_NONRES_INP", "", RiaWellLogUnitTools::sg_emwUnitString() )}, - {LAS_FILE, - SourceAddress( "POR_NONRES_INP", "", RiaWellLogUnitTools::gPerCm3UnitString() )}, - {USER_DEFINED, SourceAddress( "", "", RiaWellLogUnitTools::barUnitString() )}, - {HYDROSTATIC, - SourceAddress( "Hydrostatic", "", RiaWellLogUnitTools::barUnitString() )}} ); + SourceVector sources = + {{LAS_FILE, SourceAddress( "PP_NONRES_INP", "", RiaWellLogUnitTools::sg_emwUnitString() )}, + {LAS_FILE, SourceAddress( "POR_NONRES_INP", "", RiaWellLogUnitTools::gPerCm3UnitString() )}, + {ELEMENT_PROPERTY_TABLE, SourceAddress( "POR_NONRES_INP", "", RiaWellLogUnitTools::pascalUnitString() )}, + {ELEMENT_PROPERTY_TABLE, SourceAddress( "PP_NONRES_INP", "", RiaWellLogUnitTools::sg_emwUnitString() )}, + {HYDROSTATIC, SourceAddress( "Hydrostatic", "", RiaWellLogUnitTools::barUnitString() )}}; + + return RigWbsParameter( "PP Non-Reservoir", true, sources ); } //--------------------------------------------------------------------------------------------------