#9470 Fracture Template: make perforation length scriptable.

Also use it in example script.
This commit is contained in:
Kristian Bendiksen 2022-11-24 19:27:01 +01:00 committed by Magne Sjaastad
parent 51443d7aa3
commit 69ccce225c
2 changed files with 3 additions and 1 deletions

View File

@ -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() );

View File

@ -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