Before you start
- Check the server requirements for the connector.
- Make sure the connector has access capabilities in a Cognite Data Fusion (CDF) project.
- Create a configuration file according to the configuration settings in the working directory of the folder where the connector is installed. The file must be in YAML format.
Connect to the GAP simulator
The GAP connector connects to the PETEX OpenServer protocol via COM, which connects with the GAP simulator. For any connection errors, you can define retry parameters in the configuration file:| Retry attempt | Delay duration before attempt |
|---|---|
| 1 | ░░ (0.5s) |
| 2 | ░░░░ (1s) |
| 3 | ▓▓▓▓▓ (2s) |
| 4 | ██████ (4s) |
| 5 | ██████████ (8s) |
| 6 | ██████████████ (16s) |
| 7 | ██████████████████ (32s) |
| 8 | ████████████████████████ (60s limit) |
| 9 | ████████████████████████ (60s limit) |
| 10 | ████████████████████████ (60s limit) |
GAP connector modes
The GAP connector supports two modes:- Single bundle mode (.gar files): A simple approach with all components packaged in a single archive file.
- External dependencies mode (.zip files): For advanced users to manage network models and dependencies separately for greater flexibility and control.
- Single bundle mode (.gar files)
- External dependencies mode (.zip files)
Manage simulation models via a single bundle mode using
.gar files. These files are PETEX’s standard for a GAP archive file. A .gar file is a self-contained archive that includes the GAP surface network model along with all associated IPM files, such as well models, tanks, and other components required for simulation.Prerequisites
-
The
.garfile must contain a valid production network model as the primary entry point. - All network models (production and injection) referenced in the system must be present.
-
All dependent files (wells, pipes, tanks) referenced by any network must be included in the
.garfile. - Missing dependencies will invalidate the model and prevent simulation execution.
Connector workflow
1
Downloads and extracts the .gar file
The connector downloads and extracts the contents of the
.gar file into a temporary directory.2
Validates the production network model
The connector searches for a production network model, which is indexed as
MOD[0] or identified by the {PROD} literal constant. This serves as the primary entry point. This network model is mandatory and must be present in the .gar file.3
Resolves network dependencies
From the production network, the connector identifies any dependent networks such as Water Injection (WINJ), Gas Injection (GINJ), or GasLift Injection (GLINJ) networks that are referenced in the model.
4
Validates component dependencies
For each identified network (production and injection):
- The connector locates all dependent files for wells, pipes, and tanks referenced by that network.
-
All dependent files must be present within the
.gararchive. - If any required dependent file is missing, the model is considered invalid and can’t be used for simulations.
5
Resolves file paths
When all dependencies are validated, the connector updates file paths for all components to reference their new locations within the extracted directory.
Run as a Windows service
1
Download the installer
Download the gap-setup-{VERSION}.exe file via the download links available from Data management > Integrate > Extractors in CDF.
2
Run the installer
Run the installer on a Windows operating system. A wizard guides you through the installation process.
3
Select installation folder
Select the destination folder where the connector will be installed. By default, this is C:\Cognite\. Inside this folder, the GapConnector working directory is created. The connector expects a
config.yml file as the configuration in the same directory.4
Open Windows Services
Open the Services app in Windows and find the Cognite GAP Connector service.
5
Start the service
Right-click the service and select Start.