mirror of
https://github.com/OPM/ResInsight.git
synced 2026-10-24 22:27:55 -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
|
||||
@@ -0,0 +1 @@
|
||||
completion_export_output
|
||||
@@ -0,0 +1,316 @@
|
||||
-- WELL COMPDAT TEST FOR DUAL POROSITY MODEL
|
||||
|
||||
RUNSPEC
|
||||
TITLE
|
||||
DUAL POROSITY
|
||||
DIMENS
|
||||
5 5 10 /
|
||||
|
||||
DUALPORO
|
||||
|
||||
OIL
|
||||
GAS
|
||||
WATER
|
||||
DISGAS
|
||||
VAPOIL
|
||||
|
||||
FIELD
|
||||
|
||||
ROCKCOMP
|
||||
'HYSTER ' 2 /
|
||||
|
||||
EQLDIMS
|
||||
2 100 3 1 1 /
|
||||
|
||||
EQLOPTS
|
||||
'MOBILE' /
|
||||
|
||||
ENDSCALE
|
||||
'NODIR' 'REVERS' 2 10 /
|
||||
|
||||
TABDIMS
|
||||
2 1 13 25 1 20 /
|
||||
|
||||
-- Gravity drainage for dual porosity runs
|
||||
GRAVDR
|
||||
|
||||
WELLDIMS
|
||||
4 13 1 4 /
|
||||
|
||||
NUPCOL
|
||||
4 /
|
||||
|
||||
UNIFOUT
|
||||
|
||||
START
|
||||
1 'JAN' 2025 /
|
||||
|
||||
GRID ==============================================================
|
||||
|
||||
INIT
|
||||
|
||||
NODPPM
|
||||
|
||||
NEWTRAN
|
||||
|
||||
EQUALS
|
||||
'DX' 150 / MATRIX AND FRACTURES
|
||||
'DY' 150 /
|
||||
'DZ' 15 /
|
||||
'PORO' 0.18 1 5 1 5 1 5 / MATRIX PROPERTIES
|
||||
'PERMX' 1 /
|
||||
'PERMY' 1 /
|
||||
'PERMZ' 1 /
|
||||
'PORO' 0.005 1 5 1 5 6 10 / FRACTURE PROPERTIES
|
||||
'PERMX' 500 /
|
||||
'PERMY' 500 /
|
||||
'PERMZ' 500 /
|
||||
'PERMZ' 100 1 5 1 5 9 9 /
|
||||
'NTG' 0.6 5 5 5 5 9 10 /
|
||||
'TOPS' 4000 1 5 1 5 1 1 /
|
||||
/
|
||||
|
||||
ADD
|
||||
'PORO' 0.005 1 5 1 5 6 10 / FRACTURE PROPERTIES
|
||||
/
|
||||
|
||||
SIGMAV
|
||||
125*0.1 /
|
||||
|
||||
DZMTRXV
|
||||
125*10.0 /
|
||||
|
||||
GRIDFILE
|
||||
0 1 /
|
||||
|
||||
EDIT
|
||||
|
||||
PROPS ==============================================================
|
||||
|
||||
SWFN
|
||||
.2500 .0000 4.000
|
||||
.3000 .0200 2.950
|
||||
.4000 .0550 1.650
|
||||
.5000 .1000 .850
|
||||
.6000 .1450 .300
|
||||
.7000 .2000 .000
|
||||
/
|
||||
.0000 .0000 4.000
|
||||
.1000 .0500 1.850
|
||||
.2000 .1100 .900
|
||||
.2500 .1450 .725
|
||||
.3000 .1800 .550
|
||||
.4000 .2600 .400
|
||||
.5000 .3550 .290
|
||||
.6000 .4750 .200
|
||||
.7000 .5850 .160
|
||||
.8000 .7150 .110
|
||||
.9000 .8500 .050
|
||||
1.0000 1.0000 .000
|
||||
/
|
||||
|
||||
STONE1
|
||||
SOF3
|
||||
.3000 .0000 .000
|
||||
.4000 .1100 .110
|
||||
.5000 .2400 .240
|
||||
.6000 .4200 .420
|
||||
.7000 .7050 .705
|
||||
.7500 .9200 .920
|
||||
/
|
||||
.0000 .0000 .000
|
||||
.1000 .0210 .021
|
||||
.2000 .0570 .057
|
||||
.3000 .1020 .102
|
||||
.4000 .1730 .173
|
||||
.5000 .2400 .240
|
||||
.6000 .3300 .330
|
||||
.7000 .4500 .450
|
||||
.7500 .5190 .519
|
||||
.8000 .5870 .587
|
||||
.9000 .7700 .770
|
||||
1.0000 1.0000 1.000
|
||||
/
|
||||
SGFN
|
||||
.0000 .0000 .000
|
||||
.0400 .0000 .200
|
||||
.1000 .0220 .500
|
||||
.2000 .1000 1.000
|
||||
.3000 .2400 1.500
|
||||
.4000 .3400 2.000
|
||||
.5000 .4200 2.500
|
||||
.6000 .5000 3.000
|
||||
.7000 .8125 3.500
|
||||
.7500 1.0000 3.900
|
||||
/
|
||||
.0000 .0000 .000
|
||||
1.0 1.0 .000
|
||||
/
|
||||
|
||||
ENPTVD
|
||||
4000 0.25 0.26 3* 0.75 0.75 1*
|
||||
5000 0.30 0.35 3* 0.70 0.70 1* /
|
||||
|
||||
4000 0.00 0.00 3* 1.0 2*
|
||||
5000 0.00 0.00 3* 1.0 2* /
|
||||
|
||||
TZONE
|
||||
F F F /
|
||||
|
||||
PVTW
|
||||
.000 1.000 3.03E-06 .500 0.00E-01 /
|
||||
|
||||
-- RS POIL FVFO VISO
|
||||
PVTO
|
||||
0.001 14.7 1.062 1.04 /
|
||||
0.0905 264.7 1.15 0.975 /
|
||||
0.18 514.7 1.207 0.91 /
|
||||
0.371 1014.7 1.295 0.83 /
|
||||
0.636 2014.7 1.435 0.695 /
|
||||
0.775 2514.7 1.5 0.641 /
|
||||
0.93 3014.7 1.565 0.594 /
|
||||
1.270 4014.7 1.695 0.51
|
||||
5014.7 1.671 0.549
|
||||
9014.7 1.579 0.74 /
|
||||
1.618 5014.7 1.827 0.449
|
||||
9014.7 1.726 0.449 /
|
||||
1.8 9000.0 1.83 0.305
|
||||
9100.0 1.82 0.305 /
|
||||
/
|
||||
|
||||
-- PGAS RV BG VISC
|
||||
PVTG
|
||||
14.7 0.0001 5.9 0.01 /
|
||||
264.7 0.00905 3.0 0.012 /
|
||||
514.7 0.018 2.0 0.014 /
|
||||
1014.7 0.0371 1.0 0.016 /
|
||||
2014.7 0.0636 0.8 0.017 /
|
||||
2514.7 0.0775 0.7 0.018 /
|
||||
3014.7 0.093 0.6 0.019 /
|
||||
4014.7 0.1270 0.55 0.020
|
||||
0.10 0.50 0.019
|
||||
0.0 0.45 0.017 /
|
||||
5014.7 0.1618 0.50 0.022
|
||||
0.0 0.45 0.020 /
|
||||
9000.0 0.18 0.45 0.024
|
||||
0.0 0.40 0.022 /
|
||||
/
|
||||
|
||||
ROCKTABH
|
||||
1000.0 0.70 0.70
|
||||
2000.0 0.75 0.75
|
||||
3000.0 0.80 0.80
|
||||
4000.0 0.85 0.85 /
|
||||
2000.0 0.80 0.80
|
||||
3000.0 0.85 0.85
|
||||
4000.0 0.90 0.90 /
|
||||
3000.0 0.90 0.90
|
||||
4000.0 0.95 0.95 /
|
||||
4000.0 1.0 1.0
|
||||
5000.0 1.0 1.0 /
|
||||
5000.0 1.0 1.0
|
||||
6000.0 1.0 1.0 /
|
||||
/
|
||||
1000.0 0.60 0.60
|
||||
2000.0 0.65 0.65
|
||||
3000.0 0.70 0.70
|
||||
4000.0 0.75 0.75 /
|
||||
2000.0 0.70 0.70
|
||||
3000.0 0.75 0.75
|
||||
4000.0 0.80 0.80 /
|
||||
3000.0 0.80 0.80
|
||||
4000.0 0.95 0.95 /
|
||||
4000.0 1.0 1.0
|
||||
5000.0 1.0 1.0 /
|
||||
5000.0 1.0 1.0
|
||||
6000.0 1.0 1.0 /
|
||||
/
|
||||
|
||||
OVERBURD
|
||||
3000.0 10
|
||||
5000.0 20 /
|
||||
3000.0 10
|
||||
5000.0 20 /
|
||||
|
||||
DENSITY
|
||||
52.0000 64.0000 .04400 /
|
||||
|
||||
REGIONS ============================================================
|
||||
|
||||
EQUALS
|
||||
'SATNUM' 1 1 5 1 5 1 5 /
|
||||
'SATNUM' 2 1 5 1 5 6 10 /
|
||||
/
|
||||
|
||||
EQLNUM
|
||||
125*1 125*2 /
|
||||
|
||||
ENDNUM
|
||||
125*1 125*2 /
|
||||
|
||||
ROCKNUM
|
||||
1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1
|
||||
1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1
|
||||
1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1
|
||||
1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1
|
||||
1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1
|
||||
|
||||
1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1
|
||||
1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1
|
||||
1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1
|
||||
1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1
|
||||
1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1
|
||||
/
|
||||
|
||||
SOLUTION =============================================================
|
||||
|
||||
EQUIL
|
||||
4010 3959 6000 0 4010 0 0 0 10 /
|
||||
4012 3959 6000 0 4012 0 0 0 10 /
|
||||
|
||||
RPTRST
|
||||
'PRES' 'SOIL' 'SWAT' 'SGAS' 'RS' 'RV' 'FIP=2' 'EQUIL' /
|
||||
|
||||
SUMMARY
|
||||
|
||||
ALL
|
||||
|
||||
MSUMLINS
|
||||
MSUMNEWT
|
||||
|
||||
SCHEDULE ===========================================================
|
||||
|
||||
RPTSCHED
|
||||
'PRES' 'SOIL' 'SWAT' 'SGAS' 'RS' 'RV' 'RESTART=2' 'FIP=2' 'WELLS=2' 'CPU=2'
|
||||
'NEWTON=2' 'WELSPECS' /
|
||||
|
||||
WELSPECS
|
||||
'PV' 'G' 5 5 4000 'OIL' / Vertical producer
|
||||
'PH' 'G' 4 5 4000 'OIL' / Horisontal producer
|
||||
'IW' 'G' 1 1 4000 'WAT' /
|
||||
'IG' 'G' 5 1 4000 'GAS' /
|
||||
/
|
||||
|
||||
COMPDAT
|
||||
'PV' 5 5 6 10 'OPEN' 0 1* 0.50 1* 0.0 0.0 Z /
|
||||
'PH' 4 5 8 8 'OPEN' 0 1* 0.50 1* 0.0 0.0 Y /
|
||||
'PH' 2 5 9 9 'OPEN' 0 1* 0.50 1* 0.0 0.0 Y /
|
||||
'IW' 1 1 6 10 'OPEN' 0 1* 0.50 1* 0.0 0.0 Z /
|
||||
'IG' 5 1 6 10 'OPEN' 0 1* 0.50 1* 0.0 0.0 Z /
|
||||
/
|
||||
|
||||
WCONINJE
|
||||
'IW' 'WAT' 'OPEN' 'RATE' 100.0 /
|
||||
'IG' 'GAS' 'OPEN' 'RATE' 200.0 /
|
||||
/
|
||||
|
||||
WCONPROD
|
||||
'PV' 'OPEN' 'LRAT' 1* 1* 1* 250.0 1* 2500 /
|
||||
'PH' 'OPEN' 'LRAT' 1* 1* 1* 250.0 1* 2500 /
|
||||
/
|
||||
|
||||
TSTEP
|
||||
1.0 5.0 10.0 20.0 30 30 30 30 30 30 30 30 30 30 30 30 30
|
||||
/
|
||||
|
||||
END
|
||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
File diff suppressed because it is too large.
Load diff
+11
@@ -0,0 +1,11 @@
|
||||
-- WELL GROUP BHP PHASE DRAIN INFLOW OPEN CROSS PVT HYDS FIP
|
||||
-- NAME NAME I J DEPTH FLUID AREA EQUANS SHUT FLOW TABLE DENS REGN
|
||||
WELSPECS
|
||||
PH 1* 5 5 1* OIL 1* STD STOP YES 0 SEG 0 /
|
||||
/
|
||||
-- WELL OPEN SAT CONN WELL KH SKIN D DIR
|
||||
-- NAME I J K1 K2 SHUT TAB FACT DIA FACT FACT FACT PEN
|
||||
COMPDAT
|
||||
PH 5 5 8 8 OPEN 1* 1.197275E+02 0.50000 7.500000E+04 0.00000 1* 'X' /
|
||||
PH 3 5 9 9 OPEN 1* 5.976572E+01 0.50000 3.354102E+04 0.00000 1* 'X' /
|
||||
/
|
||||
+20
@@ -0,0 +1,20 @@
|
||||
WELSEGS
|
||||
-- Well Dep 1 Tlen 1 Vol 1 Len&Dep PresDrop
|
||||
PH 4000.00000 4171.25375 1* ABS 'HF-' /
|
||||
-- First Seg Last Seg Branch No Outlet Seg Length Depth Change Diam Rough
|
||||
2 2 1 1 4190.86486 4006.87060 0.50000 0.0000328 /
|
||||
3 3 1 2 4227.75476 4022.59904 0.50000 0.0000328 /
|
||||
4 4 1 3 4274.37395 4037.09357 0.50000 0.0000328 /
|
||||
5 5 1 4 4378.71435 4037.50000 0.50000 0.0000328 /
|
||||
6 6 1 5 4491.88087 4038.69050 0.50000 0.0000328 /
|
||||
7 7 1 6 4567.48892 4051.21688 0.50000 0.0000328 /
|
||||
8 8 1 7 4679.93044 4052.50000 0.50000 0.0000328 /
|
||||
9 9 1 8 4791.56044 4052.50000 0.50000 0.0000328 /
|
||||
/
|
||||
COMPSEGS
|
||||
-- Name
|
||||
PH /
|
||||
-- I J K Branch no Start Length End Length Dir Pen End Range Connection Depth
|
||||
5 5 8 1 4303.71000 4303.71435 /
|
||||
3 5 9 1 4604.93000 4604.93044 /
|
||||
/
|
||||
+14
@@ -0,0 +1,14 @@
|
||||
-- WELL GROUP BHP PHASE DRAIN INFLOW OPEN CROSS PVT HYDS FIP
|
||||
-- NAME NAME I J DEPTH FLUID AREA EQUANS SHUT FLOW TABLE DENS REGN
|
||||
WELSPECS
|
||||
PV 1* 5 5 1* OIL 1* STD STOP YES 0 SEG 0 /
|
||||
/
|
||||
-- WELL OPEN SAT CONN WELL KH SKIN D DIR
|
||||
-- NAME I J K1 K2 SHUT TAB FACT DIA FACT FACT FACT PEN
|
||||
COMPDAT
|
||||
PV 5 5 6 6 OPEN 1* 1.111666E+01 0.50000 7.500000E+03 0.00000 1* 'Z' /
|
||||
PV 5 5 7 7 OPEN 1* 1.111666E+01 0.50000 7.500000E+03 0.00000 1* 'Z' /
|
||||
PV 5 5 8 8 OPEN 1* 1.111666E+01 0.50000 7.500000E+03 0.00000 1* 'Z' /
|
||||
PV 5 5 9 9 OPEN 1* 6.669996E+00 0.50000 4.500000E+03 0.00000 1* 'Z' /
|
||||
PV 5 5 10 10 OPEN 1* 6.669996E+00 0.50000 4.500000E+03 0.00000 1* 'Z' /
|
||||
/
|
||||
+20
@@ -0,0 +1,20 @@
|
||||
WELSEGS
|
||||
-- Well Dep 1 Tlen 1 Vol 1 Len&Dep PresDrop
|
||||
PV 4000.00000 4000.00000 1* ABS 'HF-' /
|
||||
-- First Seg Last Seg Branch No Outlet Seg Length Depth Change Diam Rough
|
||||
2 2 1 1 4007.50000 4007.50000 0.50000 0.0000328 /
|
||||
3 3 1 2 4022.50000 4022.50000 0.50000 0.0000328 /
|
||||
4 4 1 3 4037.50000 4037.50000 0.50000 0.0000328 /
|
||||
5 5 1 4 4052.50000 4052.50000 0.50000 0.0000328 /
|
||||
6 6 1 5 4067.50000 4067.50000 0.50000 0.0000328 /
|
||||
/
|
||||
COMPSEGS
|
||||
-- Name
|
||||
PV /
|
||||
-- I J K Branch no Start Length End Length Dir Pen End Range Connection Depth
|
||||
5 5 6 1 4000.00000 4015.00000 /
|
||||
5 5 7 1 4015.00000 4030.00000 /
|
||||
5 5 8 1 4030.00000 4045.00000 /
|
||||
5 5 9 1 4045.00000 4060.00000 /
|
||||
5 5 10 1 4060.00000 4075.00000 /
|
||||
/
|
||||
@@ -0,0 +1,18 @@
|
||||
PRT-file:
|
||||
WELL CONNECTION DATA
|
||||
--------------------
|
||||
|
||||
-----------------------------------------------------------------------------------------------------------------------------------------
|
||||
: WELL : GRID : CMPL: CENTRE : OPEN: SAT :CONNECTION: INT : K H : SKIN : CONNECTION : SATURATION SCALING DATA :P.EQIV:
|
||||
: NAME : BLOCK : NO#: DEPTH : SHUT: TAB : FACTOR* : DIAM : VALUE : FACTOR : D-FACTOR : SWMIN SWMAX SGMIN SGMAX :RADIUS:
|
||||
: : : : FEET : : : CPB/D/PS : FEET : MD.FEET: : DAY/MSCF : : FEET:
|
||||
-----------------------------------------------------------------------------------------------------------------------------------------
|
||||
: PV : 5, 5, 6: 1 : 4082.5: OPEN: 0 : 11.117: 0.5000: 7500.0: 0: 0: : 29.70:
|
||||
: PV : 5, 5, 7: 2 : 4097.5: OPEN: 0 : 11.117: 0.5000: 7500.0: 0: 0: : 29.70:
|
||||
: PV : 5, 5, 8: 3 : 4112.5: OPEN: 0 : 11.117: 0.5000: 7500.0: 0: 0: : 29.70:
|
||||
: PV : 5, 5, 9: 4 : 4127.5: OPEN: 0 : 6.670: 0.5000: 4500.0: 0: 0: : 29.70:
|
||||
: PV : 5, 5, 10: 5 : 4142.5: OPEN: 0 : 6.670: 0.5000: 4500.0: 0: 0: : 29.70:
|
||||
-----------------------------------------------------------------------------------------------------------------------------------------
|
||||
: PH : 4, 5, 8: 1 : 4112.5: OPEN: 0 : 119.727: 0.5000: 75000.0: 0: 0: : 21.10:
|
||||
: PH : 2, 5, 9: 2 : 4127.5: OPEN: 0 : 59.766: 0.5000: 33541.0: 0: 0: : 13.30:
|
||||
-----------------------------------------------------------------------------------------------------------------------------------------
|
||||
Reference in new issue
Block a user