UDQPARAM
Recognised by the OPM Flow parserRUNSPEC
This keyword defines the dimensions of the User Defined Arguments (“UDA”) used by OPM Flow that can be applied to various connection, group, and well keywords in the SCHEDULE section. UDAs are defined by the UDQ keyword that is used to specify values to be constants, SUMMARY variables, as defined in SUMMARY section, or a formula using various mathematical functions together with constants and SUMMARY variables.
Although this keyword is read by OPM Flow and the ACTION and UDQ computational logic and calculations have been implemented, one should used caution using this facility as it may result in OPM Flow aborting.
Notes:
The keyword is terminated by a “/”.
Note that OPM Flow has a more restricted UDQ feature set than the commercial simulator, so not all options and functions are available.
- Records
- Fixed number of records
- Record count
- 1
- Items per record
- 4
Parameters
| No. | Name | Description | Type | Default |
|---|---|---|---|---|
| 1 | RANDOM_manual: RSEED | RSEED is a positive integer greater than zero that sets a new random number seed for use in the UDQ functions RANDN, RANDU RRNDN and RRNDU. See also the RSEED character variable on the UDQDIMS keyword in the RUNSPEC section to default the random number seed for a restart run. This feature is not supported by OPM Flow. | INT | 1 |
| 2 | RANGE | RANGE is a real positive value greater than or equal to one and less than or equal to 1.0 x 1020, that sets the absolute range for the user defined quantities. The default value of 1 x 1020 sets the range from -1 x 1020 to +1 x 1020. | DOUBLE | 1 x 1020 |
| 3 | UNDEFINED_manual: DEFAULT | DEFAULT is real value that is the default numerical value given to undefined UDQ variables and should be in the same range as RANGE. | DOUBLE | 0.0 |
| 4 | CMP_manual: TOLUDQ | TOLUDQ a real positive number greater than zero and less than one that defines the tolerance used to determine if two real values are equal. Floating-point numbers (as implemented in computers) are never exact, one cannot compare floating point numbers for exact equality. Thus, TOLUDQ defines a tolerance. For example, the default value of 1 x 10-4 means that if the difference between two real values is less than 1 x 10-4 then the values are considered equal. | DOUBLE | 1 x 10-4 |
Example
--
-- USER DEFINED DEFAULT VALUES
-- SEED RANGE UNDEFINED COMPARISON
-- INTG -AND+ VALUE TOLERANCE
UDQPARAM
1 1.0E20 0.0 1.0E-4 /
The example explicitly sets the default values for all four variables on the UDAPARAM keyword, namely the random seed to one, the range to 1.0 x 1020, the undefined UDQ variables to zero, and the comparison tolerance to 1.0 x 10-4.Manual source: parts/chapters/subsections/5.3/UDQPARAM.fodt