COMPTRAJ
Recognised by the OPM Flow parserSCHEDULE
The COMPTRAJ keyword defines how a well that has been declared as a grid-independent well, using the WELTRAJ keyword in the SCHEDULE section, is connected to the reservoir model by defining or modifying existing well perforation depths. The keyword can only be used for wells defined by the WELTRAJ keyword, and WELTRAJ defined wells must use the COMPTRAJ keyword to define the connections to the grid, that is one cannot use COMPDAT for these type of wells.
Note
This is an OPM Flow specific keyword and will therefore cause an error in the commercial simulator.
Notes:
Note unlike the COMPDAT keyword, there is no direction parameter, COMPDAT(DIRECT), for COMPTRAJ, as the wellbore direction is implicit in the well trajectory defined by the WELTRAJ keyword in the SCHEDULE section.
The keyword is followed by up to MXCONS records as declared on the WELLDIMS keyword in the RUNSPEC section.
Each record is terminated by a “/” and the keyword should be terminated by a “/”.
OPM Flow currently provides partial support for grid-independent multi-segment wells. If a grid-independent well is defined as a multi-segment well using the WELSEGS keyword without defining the segment structure (i.e. only the first record is defined and the keyword is terminated by a slash), information provided by the WELTRAJ and COMPTRAJ keywords is used to generate the well segments (i.e. the missing WELSEGS records, and the COMPSEGS information). However, if the WELSEGS keyword defines the segment structure for a grid-independent well (i.e two or more records are defined) then an error will be reported.
The internally generated multi-segment well's segment structure currently consists of one segment for each cell along the well trajectory as defined by the WELTRAJ keyword. The tubing internal diameter is currently set equal to the wellbore diameter specified on the COMPDAT keyword and the tubing roughness is set to zero. Future developments are expected to support reading additional WELSEGS records to give more control over the segment structure and tubing properties. The well connections defined by the COMPTRAJ keyword are currently allocated to the nearest well segment.
Using the WELTRAJ and COMPTRAJ keywords to define wells and how they are connected to grid, offers several advantages compared to the conventional approach based on the (I, J, K) co-ordinates of the grid. The approach allows for the wells to be independent of the grid, which is particularly useful when running ensemble cases, as the well connections are no longer required to be re-calculated for each ensemble case. In addition, quality control of the model is improved by using consistent perforation data in both the static and dynamic models.
Note
The term well connection is used to describe individual connections from the wellbore to the reservoir grid, as opposed to well completions. A well completion is used to describe a set of connections, for example, a well may consist of several completions with each completion consisting of multiple connections.
For wells defined using the WELTRAJ and COMPTRAJ keywords, the WELTRAJ keyword defines the trajectory of the well within the model, and the COMPTRAJ defines the perforation intervals in the well. A perforation interval will automatically generate various well connections to the grid, and in addition multiple perforation intervals may be grouped into a completion.
- Records
- One or more records, each terminated by
/ - Items per record
- 13
Parameters
| No. | Name | Description | Type | Dimension | Field | Metric | Lab | Default |
|---|---|---|---|---|---|---|---|---|
| 1 | WELLmanual: WELNAME | A character string of up to eight characters in length that defines the well name for which the well connection data are being defined. Note that the well name (WELNAME) must have been declared previously using the WELSPECS keyword in the SCHEDULE section, otherwise an error may occur. | STRING | None | ||||
| 2 | BRANCH_manual: IBRANCH | A positive integer greater than or equal to one and less than or equal to MXBRAN on WSEGDIMS keyword in the RUNSPEC section that defines the branch number of a segment. All segments on the main stem must have IBRANCH set to one and lateral branches should have values between two and MXSEGS on the WSEGDIMS keyword in the RUNSPEC section. Only the default value of one is currently supported, that is only the main branch of a multi-segment well is supported, or a single trajectory for a conventional well. | INT | feet | m | cm | 1 | |
| 3 | PERF_ | DOUBLE | Length | |||||
| 4 | PERF_ | DOUBLE | Length | |||||
| 5 | PERF_manual: REF | REF is a defined character string that defines the reference depth type for TOP and BOT, and should be set to either: MD for the depths referencing Measured Depth, or TVD for depths referencing True Vertical Depth. Only measured depth is currently supported, that is MD. | STRING | MD | ||||
| 6 | COMPLETION_manual: ICOMP | An integer greater than or equal to one and less than or equal to MXCONS as defined on the WELLDIMS keyword in the RUNSPEC section, that defines the completion number of the currently defined perforation interval (connection interval). If defaulted with 1*, then ICOMP is set equal to one. | INT | 1 | ||||
| 7 | STATEmanual: STATUS | A defined character string of length four that defines the connections’ operational status within the perforation interval, STATUS should be set to one of the following character strings: OPEN: the connections are open to flow. SHUT: the connections are closed to flow (shut-in). AUTO: the connection are initially closed, but may be opened automatically if an economic limit is violated. Currently this option is not supported by OPM Flow. | STRING | OPEN | ||||
| 8 | SAT_manual: SATNUM | An integer greater than or equal to zero and less than NTSFUN as declared on the TABDIMS keyword in the RUNSPEC, that defines the saturation table number to be used for flow between the reservoir grid block and the well connections. If SATNUM is set to zero or defaulted with 1* then: The saturation table allocated to the grid block that the connections are located within are used. If the hysteresis option has been activated via the HYSTER variable on the SATOPTS keyword in the RUNSPEC section, then both the imbibition and drainage saturation tables allocated to the grid block that the connections are located within are used. The imbibition table allocation can be changed by the COMPIMB keyword in the RUNSPEC section, provided it is entered after the COMPTRAJ keyword. | INT | 0 | ||||
| 9 | CONNECTION_manual: CONFACT | A real value greater than or equal to zero that defines the transmissibility connection factor between the well bore and the reservoir grid block. If set to zero or defaulted with 1* then items (10) through (13) are used to calculate CONFACT. | DOUBLE | Viscosity* | cP.rb/ | cP.rm3/ | cP.rcc/ | Defined |
| 10 | DIAMETERmanual: DW | A real positive value that defines the well bore diameter of the connections for the well. DW is used in calculating a well’s productivity or injectivity index; however the value will be ignored in calculating the connections CONFACT value if CONFAC has been directly entered. | DOUBLE | Length | feet | m | cm | None |
| 11 | Kh | A real value that defines the effective KH (permeability x length) for the connections within the perforation interval. If less than or equal to zero, or defaulted by 1*, then KH is calculated from the connected grid blocks. KH is ignored if CONFACT has been directly entered. | DOUBLE | Permeability* | mD.ft | mD.m | mD.cm | Calculated from connected grid blocks |
| 12 | SKIN | A real value that defines the connections dimensionless skin factor. SKIN is used in calculating a well’s productivity or injectivity index; however, the value will be ignored in calculating the connections CONFACT value if CONFACT has been directly entered. | DOUBLE | 1 | dimensionless | dimensionless | dimensionless | 0.0 |
| 13 | D_manual: DFACT | A real value that defines the non-Darcy D factor coefficient for gas wells. This value should be defaulted with 1* and the non-Darcy D factor coefficient for gas wells defined via the WDFAC keyword in the SCHEDULE section. Currently this option is not supported by OPM Flow. | DOUBLE | 1 | day/ | day/ | hour/ | 1* |
Example
The following example defines two grid-independent standard oil wells, OP01 and OP02, using the WELTRAJ keyword, together with their perforations using the COMPTRAJ keyword.
--
-- WELL SPECIFICATION DATA
--
-- WELL GROUP LOCATION BHP PHASE DRAIN INFLOW OPEN CROSS PVT
-- NAME NAME I J DEPTH FLUID AREA EQUANS SHUT FLOW TABLE
WELSPECS
OP01 PLATFORM 1* 1* 1* OIL 1* STD SHUT NO 1* /
OP02 PLATFORM 1* 1* 1* OIL 1* STD SHUT NO 1* /
/
--
-- WELL TRAJECTORY DATA
--
-- WELL BRAN XCORD YCORD TVDSS MD
-- NAME NO DEPTH DEPTH
-- ----- ---- ------------ ------------ ------------ ------------
WELTRAJ
OP01 1* 2.805445e+06 3.602948e+06 -100.000000 0.0 /
OP01 1* 2.805445e+06 3.602948e+06 877.0000000 977.0 /
OP01 1* 2.805445e+06 3.602948e+06 957.9950240 1058.0 /
OP01 1* 2.805444e+06 3.602946e+06 1051.976081 1152.0 /
…………………... /
OP02 1* 2.810828e+06 3.604507e+06 9371.792711 11418.0 /
OP02 1* 2.810885e+06 3.604525e+06 9443.657000 11511.0 /
OP02 1* 2.810952e+06 3.604546e+06 9531.966162 11624.0 /
OP02 1* 2.810973e+06 3.604553e+06 9560.411742 11660.0 /
/
--
--
-- WELL TRAJECTORY CONNECTION DATA
--
-- WELL BRAN -- PERFORATION -- COMPL OPEN SAT CONN WELL KH SKIN D
-- NAME NO. TOP BOT REF NO. SHUT TAB FACT DIA FACT FACT FACT
COMPTRAJ
OP01 1* 8230 8244 MD 1 SHUT 1* 1* 0.708 1* 0.0 1* /
OP01 1* 8352 8380 MD 1 SHUT 1* 1* 0.708 1* 0.0 1* /
OP01 1* 9070 9100 MD 1 SHUT 1* 1* 0.708 1* 0.0 1* /
OP01 1* 9220 9250 MD 2 SHUT 1* 1* 0.708 1* 0.0 1* /
OP01 1* 9266 9280 MD 2 SHUT 1* 1* 0.708 1* 0.0 1* /
OP01 1* 9693 9703 MD 3 SHUT 1* 1* 0.708 1* 0.0 1* /
OP01 1* 9940 9974 MD 3 SHUT 1* 1* 0.708 1* 0.0 1* /
OP02 1* 9979 9985 TVD 1* SHUT 1* 1* 0.708 1* 0.0 1* /
OP02 1* 10173 10183 TVD 1* SHUT 1* 1* 0.708 1* 0.0 1* /
OP02 1* 10190 10204 TVD 1* SHUT 1* 1* 0.708 1* 0.0 1* /
OP02 1* 10327 10333 TVD 1* SHUT 1* 1* 0.708 1* 0.0 1* /
OP02 1* 10339 10345 TVD 1* SHUT 1* 1* 0.708 1* 0.0 1* /
OP02 1* 11528 11538 TVD 1* SHUT 1* 1* 0.708 1* 0.0 1* /
/
Well OP01 has eight perforation intervals, with the intervals one to three grouped into one completion, perforation intervals four to five grouped into completion number two, and finally the bottom three perforations are grouped into completion number three. In contrast, OP02 has six perforated intervals with their completion interval defaulted to one.
| Note This is an OPM Flow specific keyword and will therefore cause an error in the commercial simulator. |
|----------------------------------------------------------------------------------------------------------|
| Note The term well connection is used to describe individual connections from the wellbore to the reservoir grid, as opposed to well completions. A well completion is used to describe a set of connections, for example, a well may consist of several completions with each completion consisting of multiple connections. For wells defined using the WELTRAJ and COMPTRAJ keywords, the WELTRAJ keyword defines the trajectory of the well within the model, and the COMPTRAJ defines the perforation intervals in the well. A perforation interval will automatically generate various well connections to the grid, and in addition multiple perforation intervals may be grouped into a completion. |
|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|Related keywords
- Requires
WELTRAJ
Manual source: parts/chapters/subsections/12.3/COMPTRAJ.fodt