mirror of
https://github.com/OPM/ResInsight.git
synced 2024-12-28 18:01:08 -06:00
#9470 Fracture Template: make perforation length scriptable.
Also use it in example script.
This commit is contained in:
parent
51443d7aa3
commit
69ccce225c
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user