Fracture: Make conductivity type scriptable from python.

This commit is contained in:
Kristian Bendiksen 2022-12-19 15:57:43 +01:00 committed by Magne Sjaastad
parent 8b51160ac4
commit 8f33caef74
2 changed files with 5 additions and 4 deletions

View File

@ -147,10 +147,10 @@ RimFractureTemplate::RimFractureTemplate()
m_perforationEfficiency.uiCapability()->setUiEditorTypeName( caf::PdmUiDoubleSliderEditor::uiEditorTypeName() );
CAF_PDM_InitField( &m_wellDiameter, "WellDiameter", 0.216, "Well Diameter at Fracture" );
CAF_PDM_InitField( &m_conductivityType,
"ConductivityType",
caf::AppEnum<FracConductivityEnum>( FINITE_CONDUCTIVITY ),
"Conductivity in Fracture" );
CAF_PDM_InitScriptableField( &m_conductivityType,
"ConductivityType",
caf::AppEnum<FracConductivityEnum>( FINITE_CONDUCTIVITY ),
"Conductivity in Fracture" );
CAF_PDM_InitField( &m_wellPathDepthAtFracture, "WellPathDepthAtFracture", 0.0, "Well/Fracture Intersection Depth" );
m_wellPathDepthAtFracture.uiCapability()->setUiEditorTypeName( caf::PdmUiDoubleSliderEditor::uiEditorTypeName() );

View File

@ -47,6 +47,7 @@ for measured_depth in measured_depths:
fracture_template.orientation = "Azimuth"
fracture_template.azimuth_angle = 60.0
fracture_template.user_defined_perforation_length = True
fracture_template.conductivity_type = "InfiniteConductivity"
fracture_template.perforation_length = 12.3
fracture_template.update()