mirror of
https://github.com/OPM/ResInsight.git
synced 2025-01-01 03:37:15 -06:00
#7148 StimPlanModel: provide better default for por/perm.
This commit is contained in:
parent
d73bd60825
commit
784f3069f0
@ -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
|
||||
|
@ -53,4 +53,8 @@ enum class CurveProperty
|
||||
NET_TO_GROSS,
|
||||
POROSITY_UNSCALED,
|
||||
};
|
||||
|
||||
double defaultPorosity();
|
||||
double defaultPermeability();
|
||||
|
||||
}; // namespace RiaDefines
|
||||
|
@ -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();
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user