equinor / everest-models

GNU General Public License v3.0
2 stars 5 forks source link

Break line missing when no perforation criteria satisfied in `fm_well_trajectory` #61

Open slawekszklarz opened 3 weeks ago

slawekszklarz commented 3 weeks ago

If no perforation criteria can be satisfied, e.g. set in input YAML:

  perforations:
    - well: WELL1
      formations: [0]
      dynamic:
        -
          key: SWAT
          min: 2
          max: 3

then exported COMPDAT is missing a new line character:

-- WELL  GROUP           BHP    PHASE  DRAIN  INFLOW  OPEN  CROSS  PVT    HYDS  FIP 
-- NAME  NAME   I    J   DEPTH  FLUID  AREA   EQUANS  SHUT  FLOW   TABLE  DENS  REGN 
WELSPECS 
   WELL1  GROUP     1  1  1*     WATER    0.0    STD     STOP  YES    0      SEG   0    / 
/ 
-- WELL                        OPEN   SAT   CONN           WELL      KH             SKIN      D      DIR 
-- NAME   I     J    K1   K2   SHUT   TAB   FACT           DIA       FACT           FACT      FACT   PEN 
COMPDAT 
-- No interval found that meets the defined perf criteria; create one dummy connection and shut it thereafter.   WELL1   1   1   1   1   SHUT   1*    1   0.5   1   0.00000   1*     'Z' / 
/  

The correct output should be:

-- WELL  GROUP           BHP    PHASE  DRAIN  INFLOW  OPEN  CROSS  PVT    HYDS  FIP 
-- NAME  NAME   I    J   DEPTH  FLUID  AREA   EQUANS  SHUT  FLOW   TABLE  DENS  REGN 
WELSPECS 
   WELL1  GROUP     1  1  1*     WATER    0.0    STD     STOP  YES    0      SEG   0    / 
/ 
-- WELL                        OPEN   SAT   CONN           WELL      KH             SKIN      D      DIR 
-- NAME   I     J    K1   K2   SHUT   TAB   FACT           DIA       FACT           FACT      FACT   PEN 
COMPDAT 
-- No interval found that meets the defined perf criteria; create one dummy connection and shut it thereafter.
   WELL1   1   1   1   1   SHUT   1*    1   0.5   1   0.00000   1*     'Z' / 
/  
verveerpj commented 3 days ago

This may have been fixed by PR #73