equinor / res2df

Pandas Dataframe access to Eclipse input and output files
GNU General Public License v3.0
28 stars 32 forks source link

[compdat] * handling in COMPDAT #336

Open olwijn opened 3 years ago

olwijn commented 3 years ago

ecl2df is used as part of the Flownet tool (https://github.com/equinor/flownet). We are applying it to an Equinor asset model that contains the following lines in the SCHEDULE section:

COMPDAT -- WELL I J K1 K2 stat Sat. CF DIAM KH SKIN ND DIR Ro ' ' 0 0 1 47 'SHUT' 1 1* 0.152 / /

(The spaces around the * are not there in the actual file.)

This causes an error that originates from compdat.py, line 130: "WELSPECS must be provided when I is defaulted in COMPDAT" since rec_data["WELL"] in this case is equal to '*' which is not included in the well list called "welspecs".

A solution could be to check if rec_data["WELL"] contains a * and, if so, create a well list that contains all wells that meet the required name format. The check that I and J are specified should then be done for all wells in this list.

berland commented 3 years ago

I think this is covered by #314 and #334