From d21be5823d1322302076abbd6b55af55e8bb929f Mon Sep 17 00:00:00 2001 From: Magne Sjaastad Date: Thu, 28 Oct 2021 10:36:50 +0200 Subject: [PATCH] #8212 Python : Make it possible to define the azimuth angle for a fracture template --- .../ProjectDataModel/Completions/RimFractureTemplate.cpp | 4 ++-- .../Python/rips/PythonExamples/import_fractures_on_well.py | 6 ++++-- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/ApplicationLibCode/ProjectDataModel/Completions/RimFractureTemplate.cpp b/ApplicationLibCode/ProjectDataModel/Completions/RimFractureTemplate.cpp index f747b61638..2963c303db 100644 --- a/ApplicationLibCode/ProjectDataModel/Completions/RimFractureTemplate.cpp +++ b/ApplicationLibCode/ProjectDataModel/Completions/RimFractureTemplate.cpp @@ -143,8 +143,8 @@ RimFractureTemplate::RimFractureTemplate() "", "" ); - CAF_PDM_InitField( &m_azimuthAngle, "AzimuthAngle", 0.0f, "Azimuth Angle", "", "", "" ); // Is this correct - // description? + CAF_PDM_InitScriptableField( &m_azimuthAngle, "AzimuthAngle", 0.0f, "Azimuth Angle", "", "", "" ); + CAF_PDM_InitField( &m_skinFactor, "SkinFactor", 0.0f, "Skin Factor", "", "", "" ); CAF_PDM_InitField( &m_perforationLength, "PerforationLength", 1.0, "Perforation Length", "", "", "" ); diff --git a/GrpcInterface/Python/rips/PythonExamples/import_fractures_on_well.py b/GrpcInterface/Python/rips/PythonExamples/import_fractures_on_well.py index 4ff2f00f9f..cc3b33c12f 100644 --- a/GrpcInterface/Python/rips/PythonExamples/import_fractures_on_well.py +++ b/GrpcInterface/Python/rips/PythonExamples/import_fractures_on_well.py @@ -40,6 +40,8 @@ for measured_depth in measured_depths: stim_plan_fracture_template=fracture_template, ) -# Update the orientation of the fracture, call update() to propagate changes in Python to ResInsight -fracture_template.orientation = "Az" +# Update the orientation of the fracture +# Call update() to propagate changes from the Python object back to ResInsight +fracture_template.orientation = "Azimuth" +fracture_template.azimuth_angle = 60.0 fracture_template.update()