Add test case for completion data for dual porosity models

Dual porosity models reads data for completion calculations from the Fracture part of the grid model. The generated completion data contains references to IJK cells in the fracture section of the grid.
This commit is contained in:
Magne Sjaastad committed 2026-02-24 14:24:15 +01:00
1 parent b262527812
commit fab00a3fc4
15 files changed
+3771

No files matched your search

@@ -162,3 +162,40 @@ def test_export_completion_files_split_by_well(rips_instance, initialize_test):
finally:
pass # Keep exported files in the output directory
def test_export_completion_dual_porosity_model(rips_instance, initialize_test):
case_root_path = dataroot.PATH + "/dualporo-testcase"
project_path = case_root_path + "/Well-completions-mail.rsp"
project = rips_instance.project.open(path=project_path)
export_folder = os.path.abspath(case_root_path + "/completion_export_output")
os.makedirs(export_folder, exist_ok=True)
try:
rips_instance.set_export_folder(export_type="COMPLETIONS", path=export_folder)
case = project.cases()[0]
# Use Well-1 for all tests
test_wells = ["PH", "PV"]
case.export_well_path_completions(
time_step=0, # Use time step 0 instead of 1
well_path_names=test_wells,
file_split="SPLIT_ON_WELL",
include_perforations=True,
include_fishbones=False, # This matches the reference generation script
export_comments=False,
)
# Compare exported files with reference data
reference_folder = case_root_path + "/completion_export_reference"
compare_exported_files_with_reference(
export_folder,
reference_folder,
"dual porosity completion data from fracture cells",
)
finally:
pass # Keep exported files in the output directory