RI_WELLMOD
ri_wellmod
is a command line utility to generate Eclipse well model definitions
(WELSPECS/WELSPECL, COMPDAT/COMPDATL, WELSEGS, COMPSEGS) using ResInsight. The script
takes as input a ResInsight project with wells and completions defined, in addition to
an Eclipse case (either an initialized case or an input case with grid and PERMX|Y|Z
and NTG defined in the GRDECL format).
Note
Well names specified as command line arguments are assumed to refer to the Eclipse well names, i.e., the completion export names as defined in the ResInsight wells project.
Examples
Example 1
To create well definitions in a file with the default name welldefs.sch
:
> ri_wellmod wells.rsp DROGON-0
Here DROGON-0
is an initialized Eclipse case (i.e., the files DROGON-0.INIT and
DROGON-0.EGRID/DROGON-0.GRID exist), and wells.rsp is a ResInsight project with wells
and completions defined:
Example 2
By default multi-segment well definitions are not created, but may be requested for
some or all wells using a command-line argument. E.g., to add MSW data for the well
A44
and any wells starting with C
based on a NOSIM case:
> ri_wellmod wells.rsp DROGON-0_NOSIM --msw A4,C*
Example 3
Instead of using an initialized Eclipse case an input GRDECL case may be used. To create meaningful connection factors PERMX/PERMY/PERMZ and NTG (if non-unit) must be specified, either in the GRDECL file or in separate files, as in this exapmle:
> ri_wellmod wells.rsp ../include/grid/drogon.grid.grdecl \
--property_files ../include/grid/drogon.perm.grdecl ../include/grid/drogon.ntg.grdecl
Example 4
ResInsight supports local grid refinement, and will automatically create WELSPECL/COMPDATL/COMPSEGL when given an initialized Eclipse case with LGR(s):
> ri_wellmod wells.rsp DROGON-0_NOSIM_LGR --msw A4 -o wells_lgr.sch
Example 5
It is also possible to create local LGRs surrounding each well, and this may be specified on the script command line. The following example adds a 3x3x2 refinement to the region of cells perforated by the well A4 and a 1x1x3 refinement around A6:
> ri_wellmod wells.rsp DROGON-0_NOSIM --lgr A4:3,3,2 A6:1,1,3 -msw A4 \
--lgr_output_file lgr_definitions.inc
The corresponding CARFIN keywords are found in a separate file (here lgr_definitions.inc
), to
be included in the GRID section of the Eclipse .DATA file.
Syntax
Utility script for creating Eclipse well definitions using ResInsight.
usage: ri_wellmod [-h] [--verbose] [--silent] [--debug]
[--property_files [PROPERTY_FILES [PROPERTY_FILES ...]]]
[--output_file OUTPUT_FILE] [--tmpfolder TMPFOLDER]
[--wells WELLS [WELLS ...]] [--msw MSW [MSW ...]]
[--lgr [LGR [LGR ...]]] [--lgr_output_file LGR_OUTPUT_FILE]
[--with-resinsight-dev WITH_RESINSIGHT_DEV]
[--time_step TIME_STEP] [--version]
well_project ecl_case
Positional Arguments
- well_project
Path to project with well paths and completions defined.
- ecl_case
Path to initialized Eclipse case.
Named Arguments
- --verbose, -v
Verbose output
Default: False
- --silent, -s
Silence non-critical messages
Default: False
- --debug, -d
Debug mode
Default: False
- --property_files
Additional input property files for PERM/NTG (GRDECL format)
- --output_file, -o
Output file (default=well_defs.sch)
Default: “well_defs.sch”
- --tmpfolder
Output folder (default=resinsight/ri_completions)
Default: “resinsight/ri_completions”
- --wells, -w
Optional comma-separated list of wells (wildcards allowed) to generate completions for (default=all wells in project)
- --msw
Optional comma-separated list of wells (wildcards allowed) to generate msw well definitions for (default=none)
- --lgr, -l
Optional list of comma-separated LGR specs: WELLNAME:REF_I,REF_J,REF_K (wildcards allowed in well names)
- --lgr_output_file
Well LGR output file (default=well_lgr_defs.sch)
Default: “well_lgr_defs.inc”
- --with-resinsight-dev
Use specified development version of ResInsight (full path to binary)
- --time_step, -t
Optional selection of time step to use for completion export (default=0)
Default: 0
- --version
show program’s version number and exit