arbrandt / OPGEE

Oil Production Greenhouse Gas Emissions Estimator
18 stars 3 forks source link

Produced water treatment uses WIR for both water reinjection and water flooding #226

Closed qlangfitt closed 3 years ago

qlangfitt commented 4 years ago

I'm not sure this strictly an error since it can be "solved" by the analyst taking care to enter inputs (for WOR, WIR, and fraction of produced water reinjected) that agree on water injection volume. Still, I think this is a good improvement for redundancy.

On the Produced Water Treatment sheet, the total water injection demand satisfied by produced water (M87) draws on only the WIR to determine the amount of injection, regardless of whether water reinjection or flooding is used. Elsewhere (e.g., Water Injection sheet M39), the model draws on different water injection inputs depending on whether reinjection or flooding is being used. I think it would be best to adjust Produced Water Treatment M87 to draw different water injection inputs based on whether reinjection or flooding is used as on the Water Injection sheet.

qlangfitt commented 4 years ago

In opposition to my point above that this should ideally be on the analyst to use good inputs. It is reasonable to think that on a field not using water flooding, the analyst might leave the WIR blank rather than set it to 0. In that case, the WIR=WOR+1. This means the model will treat all produced water (and then some) as reinjected, regardless of what the fraction of produced water reinjection input states. This is surely contradictory to the intent.

Recommend using the the equation below in Produced Water Treatment M87: =IF(Water_reinjection_01=1,MIN(Oil_prod WOR Fraction_water_reinjected,T74),IF(Water_flooding_01=1,MIN(Oil_prod*WIR,T74),0))

arbrandt commented 3 years ago

Fixed using Quinn's suggested code.