mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
#8212 Python : Make it possible to define the azimuth angle for a fracture template
This commit is contained in:
parent
6a135395a6
commit
d21be5823d
@ -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", "", "", "" );
|
||||
|
@ -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()
|
||||
|
Loading…
Reference in New Issue
Block a user