fipreports

fipreports is a parser for the PRT output file, extracting data from these tables:

  REPORT   0     1 JAN 2000
                                                =================================
                                                : FIPZON  REPORT REGION    2    :
                                                :     PAV =        139.76  BARSA:
                                                :     PORV=     27777509.   RM3 :
                           :--------------- OIL    SM3  ---------------:-- WAT    SM3  -:--------------- GAS    SM3  ---------------:
                           :     LIQUID         VAPOUR         TOTAL   :       TOTAL    :       FREE      DISSOLVED         TOTAL   :
 :-------------------------:-------------------------------------------:----------------:-------------------------------------------:
 :CURRENTLY IN PLACE       :     21091398.                    21091398.:       4590182. :           -0.    483594842.     483594842.
 :-------------------------:-------------------------------------------:----------------:-------------------------------------------:
 :OUTFLOW TO OTHER REGIONS :        76266.                       76266.:         75906. :            0.      1818879.       1818879.
 :OUTFLOW THROUGH WELLS    :                                         0.:             0. :                                         0.
 :MATERIAL BALANCE ERROR.  :                                         0.:             0. :                                         0.
 :-------------------------:-------------------------------------------:----------------:-------------------------------------------:
 :ORIGINALLY IN PLACE      :     21136892.                    21136892.:       4641214. :            0.    484657561.     484657561.
 :-------------------------:-------------------------------------------:----------------:-------------------------------------------:
 :OUTFLOW TO REGION   1    :       143128.                      143128.:       -161400. :            0.      3017075.       3017075.
 :OUTFLOW TO REGION   3    :       -66862.                      -66862.:        198900. :           -0.     -1198195.      -1198195.
 :OUTFLOW TO REGION   8    :            0.                           0.:         38405. :            0.            0.             0.
 ====================================================================================================================================

This table found in a PRT file will be parsed to the following dataframe:

FIPZON table from PRT file

DATE

FIPNAME

REGION

DATATYPE

TO_REGION

STOIIP_OIL

ASSOCIATEDOIL_GAS

STOIIP_TOTAL

WATER_TOTAL

GIIP_GAS

ASSOCIATEDGAS_OIL

GIIP_TOTAL

2000-01-01

FIPZON

2

CURRENTLY IN PLACE

21091398.0

21091398.0

4590182.0

-0.0

483594842.0

483594842.0

2000-01-01

FIPZON

2

OUTFLOW TO OTHER REGIONS

76266.0

76266.0

75906.0

0.0

1818879.0

1818879.0

2000-01-01

FIPZON

2

OUTFLOW THROUGH WELLS

0.0

0.0

0.0

2000-01-01

FIPZON

2

MATERIAL BALANCE ERROR.

0.0

0.0

0.0

2000-01-01

FIPZON

2

ORIGINALLY IN PLACE

21136892.0

21136892.0

4641214.0

0.0

484657561.0

484657561.0

2000-01-01

FIPZON

2

OUTFLOW TO REGION

1.0

143128.0

143128.0

-161400.0

0.0

3017075.0

3017075.0

2000-01-01

FIPZON

2

OUTFLOW TO REGION

3.0

-66862.0

-66862.0

198900.0

-0.0

-1198195.0

-1198195.0

2000-01-01

FIPZON

2

OUTFLOW TO REGION

8.0

0.0

0.0

38405.0

0.0

0.0

0.0

In this particular example, FIPZON was selected explicitly, either using the command line client or the Python API through an option to the res2df.fipreports.df() function.

Reservoir pore volumes can also be extracted from the PRT output file:

  REPORT   0     1 JAN 2000
                                                     ==================================================
                                                     :              FIPZON REPORT REGION  1           :
                                                     :        PAV  =           300  BARSA             :
                                                     :        PORV =     162142040  RM3               :
                           :--------------- OIL  SM3 ------------------:-- WAT    SM3 --:--------------  GAS     SM3 ---------------:
                           :    LIQUID         VAPOUR        TOTAL     :     TOTAL      :     FREE        DISSOLVED       TOTAL     :
 :-------------------------:-------------------------------------------:----------------:-------------------------------------------:
 :CURRENTLY IN PLACE       :   14561822        78065        14639887   :   134681306    :   509378403     2061869685    2571248089  :
 :-------------------------:-------------------------------------------:----------------:-------------------------------------------:
 ====================================================================================================================================

                                                      ===================================
                                                     :  RESERVOIR VOLUMES      RM3     :
 :---------:---------------:---------------:---------------:---------------:---------------:
 : REGION  :  TOTAL PORE   :  PORE VOLUME  :  PORE VOLUME  :  PORE VOLUME  :  PORE VOLUME  :
 :         :    VOLUME     :  CONTAINING   :  CONTAINING   :  CONTAINING   :  CONTAINING   :
 :         :               :      OIL      :     WATER     :      GAS      : HYDRO-CARBON  :
 :---------:---------------:---------------:---------------:---------------:---------------:
 :FIELD    :      493690391:       50050527:      439300637:        4339228:       54389755:
 :1        :      162385818:       20924379:      139267871:        2193568:       23117946:
 ===========================================================================================

These tables are parsed to the following dataframe:

FIPZON table from PRT file including reservoir pore volumes

DATE

FIPNAME

REGION

DATATYPE

TO_REGION

STOIIP_OIL

ASSOCIATEDOIL_GAS

STOIIP_TOTAL

WIIP_TOTAL

GIIP_GAS

ASSOCIATEDGAS_OIL

GIIP_TOTAL

PORV_TOTAL

HCPV_OIL

WATPV_TOTAL

HCPV_GAS

HCPV_TOTAL

2000-01-01

FIPZON

1

CURRENTLY IN PLACE

14561822

78065

14639887

134681306

509378403

2061869685

2571248089

162385818

20924379

139267871

2193568

23117946

Using this module is easiest through res2csv fipreports.