Skip to content

Add option to control how imported well paths are grouped #13082

@magnesj

Description

@magnesj

Add an option to control if the imported well path will be merged based on MSW merge rules.

This makes it possible to disable grouping when importing wells from python.

Set the MSW grouping pattern using set_msw_name_grouping, set empty string to disable grouping.

# Connect to ResInsight instance
resInsight = rips.Instance.find()

# Clear any existing MSW grouping pattern to avoid interference with the import
well_path_coll = resInsight.project.well_path_collection()
well_path_coll.set_msw_name_grouping("")

well1 = well_path_coll.import_well_path(
    "f:/scratch/2026-well-path-import/Well-1_Y1.dev"
)
well2 = well_path_coll.import_well_path(
    "f:/scratch/2026-well-path-import/Well-1_Y2.dev"
)

# Create lateral well path from geometry of another well path
well1.append_lateral_from_geometry(well2)

In the Project Tree, it is now possible to set how the imported well will be grouped.

Image

References

https://api.resinsight.org/en/main/api/rips.WellPathCollection.html#rips.WellPathCollection.import_well_path

See RiaPreferences::multiLateralWellNamePattern()

Metadata

Metadata

Assignees

Labels

EnhancementAn addition that can be observed by the user

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions