#7026 Make well path/fracture intersection available for ellipse.

This commit is contained in:
Kristian Bendiksen authored and Magne Sjaastad committed 2021-02-01 11:07:12 +01:00
1 parent 7ebca64050
commit 635ada7297
6 files changed
+28 -28

No files matched your search

@@ -154,6 +154,9 @@ RimFractureTemplate::RimFractureTemplate()
"",
"" );
CAF_PDM_InitField( &m_wellPathDepthAtFracture, "WellPathDepthAtFracture", 0.0, "Well/Fracture Intersection Depth", "", "", "" );
m_wellPathDepthAtFracture.uiCapability()->setUiEditorTypeName( caf::PdmUiDoubleSliderEditor::uiEditorTypeName() );
CAF_PDM_InitFieldNoDefault( &m_fractureContainment, "FractureContainmentField", "Fracture Containment", "", "", "" );
m_fractureContainment = new RimFractureContainment();
m_fractureContainment.uiCapability()->setUiTreeHidden( true );
@@ -470,6 +473,17 @@ void RimFractureTemplate::defineEditorAttribute( const caf::PdmFieldHandle* fiel
attrib->m_buttonText = "Apply";
}
}
if ( field == &m_wellPathDepthAtFracture )
{
caf::PdmUiDoubleSliderEditorAttribute* myAttr = dynamic_cast<caf::PdmUiDoubleSliderEditorAttribute*>( attribute );
if ( myAttr )
{
auto [minimum, maximum] = wellPathDepthAtFractureRange();
myAttr->m_minimum = minimum;
myAttr->m_maximum = maximum;
}
}
}
//--------------------------------------------------------------------------------------------------
@@ -998,3 +1012,11 @@ bool RimFractureTemplate::isNonDarcyFlowEnabled() const
{
return m_nonDarcyFlowType() != RimFractureTemplate::NON_DARCY_NONE;
}
//--------------------------------------------------------------------------------------------------
///
//--------------------------------------------------------------------------------------------------
double RimFractureTemplate::wellPathDepthAtFracture() const
{
return m_wellPathDepthAtFracture;
}