mirror of
https://github.com/OPM/ResInsight.git
synced 2026-10-26 23:20:29 -05:00
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:
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
|
||||
Reference in new issue
Block a user