mirror of
https://github.com/OPM/ResInsight.git
synced 2026-10-24 22:27:55 -05:00
#13097: Expose Fixed Angle as scriptable field in Fishbones
Make RimFishbones::m_fixedInstallationRotationAngle scriptable so it can be set from the Python API when using the Fixed Fishbones orientation mode.
This commit is contained in:
1 parent
c545e63a55
commit
914cab9084
2 files changed
+3
-1
No files matched your search
@@ -106,7 +106,7 @@ RimFishbones::RimFishbones()
|
||||
CAF_PDM_InitFieldNoDefault( &m_installationRotationAngles, "InstallationRotationAngles", "Installation Rotation Angles [deg]" );
|
||||
m_installationRotationAngles.uiCapability()->setUiEditorTypeName( caf::PdmUiListEditor::uiEditorTypeName() );
|
||||
m_installationRotationAngles.uiCapability()->setUiHidden( true );
|
||||
CAF_PDM_InitField( &m_fixedInstallationRotationAngle, "FixedInstallationRotationAngle", 0.0, " Fixed Angle [deg]" );
|
||||
CAF_PDM_InitScriptableField( &m_fixedInstallationRotationAngle, "FixedInstallationRotationAngle", 0.0, " Fixed Angle [deg]" );
|
||||
|
||||
auto pipeProperties = new RimFishbonesPipeProperties;
|
||||
|
||||
|
||||
@@ -217,6 +217,7 @@ def test_fishbone_interface(rips_instance, initialize_test):
|
||||
fishbones.lateral_tubing_diameter = 0.1
|
||||
fishbones.lateral_tubing_roghness_factor = 0.1
|
||||
fishbones.subs_orientation_mode = "FIXED"
|
||||
fishbones.fixed_installation_rotation_angle = 12.3
|
||||
fishbones.update()
|
||||
|
||||
fishbones_updated = fishbones_collection.fishbones()[0]
|
||||
@@ -234,6 +235,7 @@ def test_fishbone_interface(rips_instance, initialize_test):
|
||||
assert fishbones_updated.lateral_tubing_diameter == 0.1
|
||||
assert fishbones_updated.lateral_tubing_roghness_factor == 0.1
|
||||
assert fishbones_updated.subs_orientation_mode == "FIXED"
|
||||
assert fishbones_updated.fixed_installation_rotation_angle == 12.3
|
||||
|
||||
|
||||
# test perforations and perforations settings
|
||||
|
||||
Reference in new issue
Block a user