COMPDAT
Recognised by the OPM Flow parserSCHEDULE
The COMPDAT keyword defines how a well is connected to the reservoir by defining or modifying existing well connections. Ideally the connections should be declared in the correct sequence, starting with the connection nearest the well head and then working along the wellbore towards the bottom or toe of the well, however this may not be possible or convenient, for example when connections are added or removed from a well during the simulation (see COMPORD in the SCHEDULE section for options regarding connection ordering).
Notes:
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 “/”.
Multiple grid block connections can be defined on one record for vertical wells by assigning different values to K1 and K2, for deviated and horizontal wells this may not be possible and therefore each grid block connection must be separately defined by using one record per connection, setting K1 equal to K2 in each record.
See also the WELSPECS keyword to define wells, the COMPIMB to reset the imbibition relative permeability table allocation, and the COMPORD to re-order the completions along the well trajectory. In addition, the COMPLUMP keyword groups well connections together to form well completions for a well. All the aforementioned keywords are described in the SCHEDULE section.
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.
- Records
- One or more records, each terminated by
/ - Items per record
- 14
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 | I | A positive integer greater than or equal to zero and less than or equal to NX that defines the connection location in the I-direction. If set to zero or defaulted with 1* the location is taken from the wellhead location I-direction value on the WELSPECS keyword in the SCHEDULE section. | INT | 0 | ||||
| 3 | J | A positive integer greater than or equal to zero and less than or equal to NY that defines the connection location in the J-direction. If set to zero or defaulted with 1* the location is taken from the wellhead location J-direction value on the WELSPECS keyword in the SCHEDULE section. | INT | 0 | ||||
| 4 | K1 | A positive integer greater than or equal to one and less than or equal to NZ that defines the UPPER connection location in the K-direction. | INT | None | ||||
| 5 | K2 | A positive integer greater than or equal to K1 and less than or equal to NZ that defines the LOWER connection location in the K-direction. | INT | None | ||||
| 6 | STATEmanual: STATUS | A defined character string of length four that defines the connections’ operational status, 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 | ||||
| 7 | SAT_manual: SATNUM | An integer greater than or equal to zero and less than NTSFUN as declared on the TABDIMS keyword in the RUNSPEC section, 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 COMPDAT keyword. | INT | 0 | ||||
| 8 | 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 (9) through (13) are used to calculate CONFACT. | DOUBLE | Viscosity* | cP.rb/ | cP.rm3/ | cP.rcc/ | Defined |
| 9 | 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 CONFACT has been directly entered. | DOUBLE | Length | feet | m | cm | None |
| 10 | Kh | A real value that defines the effective KH (permeability x length) for the connections. If less than or equal to zero, or defaulted by 1*, then KH is calculated from the connected grid blocks. KH is ignored if CONFAC has been directly entered. | DOUBLE | Permeability* | mD.ft | mD.m | mD.cm | Calculated from connected grid blocks |
| 11 | 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 CONFAC has been directly entered. | DOUBLE | 1 | dimensionless | dimensionless | dimensionless | 0.0 |
| 12 | D_manual: DFACT | A real value that defines the non-Darcy D factor coefficient for gas wells. It is recommended that the 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. If the value is greater than or equal to zero then the value is used to define the well D factor and the simulator evaluates the connection D factors internally. If the value is less than zero then its sign is reversed and then used directly to define the connection D factors. In this case any D factor values previously defined using the WDFAC keyword for other connections will retained, whereas any connection D factors previously defined for the entire well using the WDFACCOR keyword will be discarded. | DOUBLE | Time/ | day/ | day/ | hour/ | 0.0 |
| 13 | DIRmanual: DIRECT | A defined character string of length one that defines the orientation of the connections and should be set to either X, Y, or Z. The direction of connections also determines the length of the connection used to calculate the connection factor if CONFACT has not been entered directly. The default value is for a vertical connection, that is DIRECT is defaulted to Z. | STRING | Z | ||||
| 14 | PR | A real value that defines the pressure equivalent radius. If PR is less than or equal to zero then the pressure equivalent radius is calculated from the grid block dimensions using Peaceman's formula. Note that wells with connections in the innermost (i = 1) or outermost (i = NX) cell of a radial grid are assumed to be connected to the inner or outer face of the cell, respectively. | DOUBLE | Length | feet | m | cm | -1.0 |
Example
The following example defines two vertical oil wells using the WELSPECS keyword and their associated connection data.
--
-- WELL SPECIFICATION DATA
--
-- WELL GROUP LOCATION BHP PHASE DRAIN INFLOW OPEN CROSS PRESS
-- NAME NAME I J DEPTH FLUID AREA EQUANS SHUT FLOW TABLE WELSPECS
OP01 PLATFORM 14 13 1* OIL 1* STD SHUT NO 1* /
OP02 PLATFORM 35 96 1* OIL 1* STD SHUT NO 1* /
/
--
-- WELL CONNECTION DATA
--
-- WELL --- LOCATION --- OPEN SAT CONN WELL KH SKIN D DIR
-- NAME II JJ K1 K2 SHUT TAB FACT DIA FACT FACT FACT PEN
COMPDAT
OP01 1* 1* 20 56 OPEN 1* 1* 0.708 1* 0.0 1* 'Z' /
OP01 1* 1* 75 100 SHUT 1* 1* 0.708 1* 0.0 1* 'Z' /
OP02 35 96 75 100 OPEN 1* 1* 0.708 1* 0.0 1* 'Z' /
Well OP01 has two sets of connections; the first one connects grid cells (14, 13, 20) to (14, 13, 56) to the well and is open to flow and the second connecting grid cells (14, 13, 75) to (14, 13, 100) is shut. Well OP02 has only one open set of connections from cells (35, 96, 75) to cells (35, 96, 100).
| 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. |
|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|Manual source: parts/chapters/subsections/12.3/COMPDAT.fodt