#5159 Make user defined shale PP proportional to hydrostatic PP

This commit is contained in:
Gaute Lindkvist 2019-12-04 13:51:44 +01:00
parent 3c29ffbfab
commit b5ab1d6e82
2 changed files with 9 additions and 1 deletions

View File

@ -82,7 +82,7 @@ RimWellBoreStabilityPlot::RimWellBoreStabilityPlot()
"FG in shale = K0_FG * (OBG0-PP0)\nK0_FG = (FG-PP)/(OBG-PP)",
"" );
CAF_PDM_InitField( &m_userDefinedPPShale, "UserPPShale", 200.0, "User Defined Pore Pressure, Shale [bar]", "", "", "" );
CAF_PDM_InitField( &m_userDefinedPPShale, "UserPPShale", 1.05, "User Defined Pore Pressure, Shale [bar]", "", "", "" );
CAF_PDM_InitField( &m_userDefinedPoissionRatio,
"UserPoissionRatio",

View File

@ -305,6 +305,14 @@ std::vector<RigGeoMechWellLogExtractor::WbsParameterSource>
finalSourcesPerSegment[intersectionIdx] = RigWbsParameter::HYDROSTATIC;
break;
}
else if ( *it == RigWbsParameter::USER_DEFINED && isPPresult )
{
( *outputValues )[intersectionIdx] = userDefinedValue *
hydroStaticPorePressureForSegment( intersectionIdx );
finalSourcesPerSegment[intersectionIdx] = RigWbsParameter::USER_DEFINED;
break;
}
else if ( *it == RigWbsParameter::USER_DEFINED )
{
( *outputValues )[intersectionIdx] = userDefinedValue;