#9470 Fracture Template: make perforation length scriptable.

Also use it in example script.
This commit is contained in:
Kristian Bendiksen authored and Magne Sjaastad committed 2022-11-25 07:41:27 +01:00
1 parent 51443d7aa3
commit 69ccce225c
2 files changed
+3 -1

No files matched your search

@@ -141,7 +141,7 @@ RimFractureTemplate::RimFractureTemplate()
CAF_PDM_InitField( &m_skinFactor, "SkinFactor", 0.0f, "Skin Factor" );
CAF_PDM_InitField( &m_perforationLength, "PerforationLength", 1.0, "Perforation Length" );
CAF_PDM_InitScriptableField( &m_perforationLength, "PerforationLength", 1.0, "Perforation Length" );
CAF_PDM_InitField( &m_perforationEfficiency, "PerforationEfficiency", 1.0, "Perforation Efficiency" );
m_perforationEfficiency.uiCapability()->setUiEditorTypeName( caf::PdmUiDoubleSliderEditor::uiEditorTypeName() );
@@ -46,6 +46,8 @@ for measured_depth in measured_depths:
# Call update() to propagate changes from the Python object back to ResInsight
fracture_template.orientation = "Azimuth"
fracture_template.azimuth_angle = 60.0
fracture_template.user_defined_perforation_length = True
fracture_template.perforation_length = 12.3
fracture_template.update()
# Scale the template