#7148 StimPlanModel: provide better default for por/perm.

This commit is contained in:
Kristian Bendiksen 2021-01-15 11:24:08 +01:00 committed by Magne Sjaastad
parent d73bd60825
commit 784f3069f0
4 changed files with 34 additions and 4 deletions

View File

@ -57,3 +57,16 @@ void AppEnum<RiaDefines::CurveProperty>::setUp()
setDefault( RiaDefines::CurveProperty::UNDEFINED );
}
}; // namespace caf
namespace RiaDefines
{
double defaultPorosity()
{
return 0.01;
}
double defaultPermeability()
{
return 1.0e-5;
}
}; // namespace RiaDefines

View File

@ -53,4 +53,8 @@ enum class CurveProperty
NET_TO_GROSS,
POROSITY_UNSCALED,
};
double defaultPorosity();
double defaultPermeability();
}; // namespace RiaDefines

View File

@ -1082,7 +1082,7 @@ void RimStimPlanModel::loadDataAndUpdate()
//--------------------------------------------------------------------------------------------------
double RimStimPlanModel::defaultPorosity() const
{
return m_stimPlanModelTemplate() ? m_stimPlanModelTemplate()->defaultPorosity() : 0.0;
return m_stimPlanModelTemplate() ? m_stimPlanModelTemplate()->defaultPorosity() : RiaDefines::defaultPorosity();
}
//--------------------------------------------------------------------------------------------------
@ -1090,7 +1090,8 @@ double RimStimPlanModel::defaultPorosity() const
//--------------------------------------------------------------------------------------------------
double RimStimPlanModel::defaultPermeability() const
{
return m_stimPlanModelTemplate() ? m_stimPlanModelTemplate()->defaultPermeability() : 0.0;
return m_stimPlanModelTemplate() ? m_stimPlanModelTemplate()->defaultPermeability()
: RiaDefines::defaultPermeability();
}
//--------------------------------------------------------------------------------------------------

View File

@ -81,8 +81,20 @@ RimStimPlanModelTemplate::RimStimPlanModelTemplate()
CAF_PDM_InitScriptableField( &m_id, "Id", -1, "ID", "", "", "" );
m_id.uiCapability()->setUiReadOnly( true );
CAF_PDM_InitScriptableField( &m_defaultPorosity, "DefaultPorosity", 0.0, "Default Porosity", "", "", "" );
CAF_PDM_InitScriptableField( &m_defaultPermeability, "DefaultPermeability", 10.0e-6, "Default Permeability", "", "", "" );
CAF_PDM_InitScriptableField( &m_defaultPorosity,
"DefaultPorosity",
RiaDefines::defaultPorosity(),
"Default Porosity",
"",
"",
"" );
CAF_PDM_InitScriptableField( &m_defaultPermeability,
"DefaultPermeability",
RiaDefines::defaultPermeability(),
"Default Permeability",
"",
"",
"" );
// Stress unit: bar
// Stress gradient unit: bar/m