IMPORT

Recognised by the OPM Flow parserGRIDEDITPROPSREGIONSSOLUTION

Variant 1 — GRID section

The IMPORT keyword informs the simulator to import data from the specified IMPORT file. When the end of the IMPORT file is reached, input data is read from the next keyword in the current file. Normally IMPORT files are generated by grid pre-processing software and the keyword allows for both formatted and unformatted (binary) files to be loaded. The keyword can be used to import any valid grid arrays within a section, for example the EQLNUM array in the REGIONS section

Notes:

The keyword is terminated by a “/”.

Records
Fixed number of records
Record count
1
Items per record
2

Parameters

No.NameDescriptionTypeDefault
1FILE
manual: FILENAME
A character string enclosed in quotes that defines a file to be imported and to be processed by OPM Flow.STRINGNone
2FORMATTED
manual: FMTOPT
A defined character string that defines the format of the file to be imported and should be set to one of the following: FORMATTED: If the file is formatted as ASCII i.e. a text file, as opposed to a binary file. The option can be abbreviated to just the letter F. UNFORMATTED: If the file is in binary format, note this option can be abbreviated to just the letter U. If the variable FMTOPT is omitted then the default is for binary file input.STRINGU

Example

The first example shown below loads the grid file from the same directory as the data file.
--
-- LOAD A IMPORT FILE
--
IMPORT
'NOR-OPM-A00-GRID.EGRID' /
The next example loads the same file one directory above from where the data file is located.
--
-- LOAD A IMPORT FILE
--
IMPORT
'../NOR-OPM-A00-GRID.EGRID' /
The final example loads the same file from a separate include subdirectory in the parent directory of the data file.
--
-- LOAD A IMPORT FILE
--
IMPORT
'../INCLUDE/NOR-OPM-A00-GRID.EGRID' /

Manual source: parts/chapters/subsections/6.3/IMPORT.fodt

Variant 2 — EDIT section

The IMPORT keyword informs the simulator to continue reading input data from the specified IMPORT file. When the end of the IMPORT file is reached, input data is read from the next keyword in the current file. Normally IMPORT files are generated by grid pre-processing software and the keyword allows for both formatted and unformatted (binary) files to be loaded.

See IMPORT – Import Grid File Data at the Current Positionin the GRID section for a full description.

Records
Fixed number of records
Record count
1
Items per record
2

Manual source: parts/chapters/subsections/7.3/IMPORT.fodt

Variant 3 — PROPS section

The IMPORT keyword informs the simulator to continue reading input data from the specified IMPORT file. When the end of the IMPORT file is reached, input data is read from the next keyword in the current file. Normally IMPORT files are generated by grid pre-processing software and the keyword allows for both formatted and unformatted (binary) files to be loaded.

See IMPORT – Import Grid File Data at the Current Positionin the GRID section for a full description.

Records
Fixed number of records
Record count
1
Items per record
2

Manual source: parts/chapters/subsections/8.3/IMPORT.fodt

Variant 4 — REGIONS section

The IMPORT keyword informs the simulator to continue reading input data from the specified IMPORT file. When the end of the IMPORT file is reached, input data is read from the next keyword in the current file. Normally IMPORT files are generated by grid pre-processing software and the keyword allows for both formatted and unformatted (binary) files to be loaded.

See IMPORT – Import Grid File Data at the Current Positionin the GRID section for a full description.

Records
Fixed number of records
Record count
1
Items per record
2

Manual source: parts/chapters/subsections/9.3/IMPORT.fodt

Variant 5 — SOLUTION section

The IMPORT keyword informs the simulator to continue reading input data from the specified IMPORT file. When the end of the IMPORT file is reached, input data is read from the next keyword in the current file. Normally IMPORT files are generated by grid pre-processing software and the keyword allows for both formatted and unformatted (binary) files to be loaded.

See IMPORT – Import Grid File Data at the Current Positionin the GRID section for a full description.

Records
Fixed number of records
Record count
1
Items per record
2

Manual source: parts/chapters/subsections/10.3/IMPORT.fodt