@@ -162,3 +162,40 @@ def test_export_completion_files_split_by_well(rips_instance, initialize_test):
162162
163163 finally :
164164 pass # Keep exported files in the output directory
165+
166+
167+ def test_export_completion_dual_porosity_model (rips_instance , initialize_test ):
168+ case_root_path = dataroot .PATH + "/dualporo-testcase"
169+ project_path = case_root_path + "/Well-completions-mail.rsp"
170+ project = rips_instance .project .open (path = project_path )
171+
172+ export_folder = os .path .abspath (case_root_path + "/completion_export_output" )
173+ os .makedirs (export_folder , exist_ok = True )
174+
175+ try :
176+ rips_instance .set_export_folder (export_type = "COMPLETIONS" , path = export_folder )
177+
178+ case = project .cases ()[0 ]
179+
180+ # Use Well-1 for all tests
181+ test_wells = ["PH" , "PV" ]
182+
183+ case .export_well_path_completions (
184+ time_step = 0 , # Use time step 0 instead of 1
185+ well_path_names = test_wells ,
186+ file_split = "SPLIT_ON_WELL" ,
187+ include_perforations = True ,
188+ include_fishbones = False , # This matches the reference generation script
189+ export_comments = False ,
190+ )
191+
192+ # Compare exported files with reference data
193+ reference_folder = case_root_path + "/completion_export_reference"
194+ compare_exported_files_with_reference (
195+ export_folder ,
196+ reference_folder ,
197+ "dual porosity completion data from fracture cells" ,
198+ )
199+
200+ finally :
201+ pass # Keep exported files in the output directory
0 commit comments