Skip to content

adding a few connection summary keywords#1599

Merged
bska merged 1 commit intoOPM:masterfrom
GitPaean:adding_some_connection_summary_keywords
Mar 18, 2020
Merged

adding a few connection summary keywords#1599
bska merged 1 commit intoOPM:masterfrom
GitPaean:adding_some_connection_summary_keywords

Conversation

@GitPaean
Copy link
Member

@GitPaean GitPaean commented Mar 17, 2020

COFR CWFR CGFR CWCT CGOR

@GitPaean
Copy link
Member Author

It is something I am really not familiar with, it is good someone can take a look at it. @bska @joakim-hove

@GitPaean
Copy link
Member Author

jenkins build this please

@GitPaean GitPaean force-pushed the adding_some_connection_summary_keywords branch from 55c6f7c to eef67fb Compare March 17, 2020 21:29
@GitPaean
Copy link
Member Author

jenkins build this please

@GitPaean GitPaean requested a review from bska March 17, 2020 22:20
@GitPaean
Copy link
Member Author

I tested it with the example wtest/bhp_min/MIN_BHP_1.DATA,

The relevant summary output is set as follows,

128 CWCT
129  'OP_1' /
130 /
131 COFR
132  'OP_1' /
133 /
134 CWFR
135  'OP_1' /
136 /

While when I do summary.x with the output, I obtain

COFR:OP_1:104            COFR:OP_1:124            COFR:OP_1:144            COFR:OP_1:24             COFR:OP_1:4              
COFR:OP_1:4,1,1          COFR:OP_1:4,1,2          COFR:OP_1:4,1,3          COFR:OP_1:4,1,4          COFR:OP_1:4,1,5          
COFR:OP_1:4,1,6          COFR:OP_1:4,1,7          COFR:OP_1:4,1,8          COFR:OP_1:44             COFR:OP_1:64             
COFR:OP_1:84             CTFAC:OP_1:104           CTFAC:OP_1:124           CTFAC:OP_1:144           CTFAC:OP_1:24            
CTFAC:OP_1:4             CTFAC:OP_1:4,1,1         CTFAC:OP_1:4,1,2         CTFAC:OP_1:4,1,3         CTFAC:OP_1:4,1,4         
CTFAC:OP_1:4,1,5         CTFAC:OP_1:4,1,6         CTFAC:OP_1:4,1,7         CTFAC:OP_1:4,1,8         CTFAC:OP_1:44            
CTFAC:OP_1:64            CTFAC:OP_1:84            CTFAC:WI_1:1,5,1         CTFAC:WI_1:1,5,2         CTFAC:WI_1:1,5,3         
CTFAC:WI_1:1,5,4         CTFAC:WI_1:1,5,5         CTFAC:WI_1:1,5,6         CTFAC:WI_1:1,5,7         CTFAC:WI_1:1,5,8         
CTFAC:WI_1:117           CTFAC:WI_1:137           CTFAC:WI_1:157           CTFAC:WI_1:17            CTFAC:WI_1:37            
CTFAC:WI_1:57            CTFAC:WI_1:77            CTFAC:WI_1:97            CWCT:OP_1:104            CWCT:OP_1:124            
CWCT:OP_1:144            CWCT:OP_1:24             CWCT:OP_1:4              CWCT:OP_1:4,1,1          CWCT:OP_1:4,1,2          
CWCT:OP_1:4,1,3          CWCT:OP_1:4,1,4          CWCT:OP_1:4,1,5          CWCT:OP_1:4,1,6          CWCT:OP_1:4,1,7          
CWCT:OP_1:4,1,8          CWCT:OP_1:44             CWCT:OP_1:64             CWCT:OP_1:84             CWFR:OP_1:104            
CWFR:OP_1:124            CWFR:OP_1:144            CWFR:OP_1:24             CWFR:OP_1:4              CWFR:OP_1:4,1,1          
CWFR:OP_1:4,1,2          CWFR:OP_1:4,1,3          CWFR:OP_1:4,1,4          CWFR:OP_1:4,1,5          CWFR:OP_1:4,1,6          
CWFR:OP_1:4,1,7          CWFR:OP_1:4,1,8          CWFR:OP_1:44             CWFR:OP_1:64             CWFR:OP_1:84     

@GitPaean
Copy link
Member Author

It looks like the generated summary keywords are in line with the E100 reference, even though I do not understand how it works.

But most of COFR results are zero.

image

The purple line is the E100 reference result.

@bska
Copy link
Member

bska commented Mar 17, 2020

The water cut and gas/oil ratio definitions look reasonable to me, but the flow-rate quantities probably need some adjustments. The flow rates are positive for production and negative for injection, so I would probably define them as

// production - injection
{ "CGFR", sub(crate<rt::gas, producer>, crate<rt::gas, injector>) },
{ "COFR", sub(crate<rt::oil, producer>, crate<rt::oil, injector>) },
{ "CWFR", sub(crate<rt::wat, producer>, crate<rt::wat, injector>) },

Note that the crate function returns a non-negative rate value and will pick appropriate sign depending on the second template parameter.

@GitPaean
Copy link
Member Author

The jenkins failure are due to different summary keyword sets in the summary output. This will not be in the way of updating reference.

@GitPaean
Copy link
Member Author

GitPaean commented Mar 17, 2020

The flow rates are positive for production and negative for injection, so I would probably define them as

// production - injection
{ "CGFR", sub(crate<rt::gas, producer>, crate<rt::gas, injector>) },
{ "COFR", sub(crate<rt::oil, producer>, crate<rt::oil, injector>) },
{ "CWFR", sub(crate<rt::wat, producer>, crate<rt::wat, injector>) },

Thanks @bska . I will do that.

@GitPaean GitPaean force-pushed the adding_some_connection_summary_keywords branch from eef67fb to 8027e73 Compare March 17, 2020 22:30
@GitPaean
Copy link
Member Author

Thanks @bska . The result is better. The difference in the later part are not due to the summary output.

image

@GitPaean
Copy link
Member Author

jenkins build this please

@bska
Copy link
Member

bska commented Mar 18, 2020

The result is better.

Glad to hear it. Did you mean to push an update with the revised definitions of the connection phase flow rates or is that still in local developement on your machine?

@GitPaean GitPaean force-pushed the adding_some_connection_summary_keywords branch from 8027e73 to 1369a35 Compare March 18, 2020 12:19
@GitPaean
Copy link
Member Author

GitPaean commented Mar 18, 2020

Glad to hear it. Did you mean to push an update with the revised definitions of the connection phase flow rates or is that still in local developement on your machine?

I forgot to commit it. Now it is pushed.

@GitPaean
Copy link
Member Author

jenkins build this update_data please

jenkins4opm pushed a commit to jenkins4opm/opm-tests that referenced this pull request Mar 18, 2020
Reason: OPM/opm-common#1599

opm-common     = e52a188d861f8344ecd6f34d4b4ef6a06d1ddd4f
opm-grid       = f7df833275491828545b4aab43a895a272cd3ee2
opm-material   = 16fcd186c70f170c80431c97e802eabcc548feae
opm-models     = 214100686144f801c4ff56c016bf71195c789c25
opm-simulators = e52a188d861f8344ecd6f34d4b4ef6a06d1ddd4f
@GitPaean
Copy link
Member Author

GitPaean commented Mar 18, 2020

For CTFAC output, it looks like we handle differently from the commercial simulator.
image

The result from the commercial simulator is the purple line.

It looks like for closed well due to physical reason (probably also for economic limit, not sure about the SHUT well from deck), CTFAC remains non-zero while OPM-flow treat them as zero.

Basically, it might give us some clues about how the commercial simulator handles closed wells. They probably still have the closed wells in the well model, which is different from OPM-flow's current way. (excuse me if I am wrong at this point. )

However, for the CTFAC below, it is clear there is some bug with it.
image

@GitPaean
Copy link
Member Author

GitPaean commented Mar 18, 2020

wtest/bhp_min/MIN_BHP_1.DATA is a prediction case without historical schedule. The producer begin with oil rate production, then it gets shut due to physical cause. Through WTEST, the commercial simulator manages to reopen the producer for a few times, while OPM-flow does not. The reopening behavior is something we need to investigate, here we only discuss about the summary output.

The following (and also the above comment) is some findings about the summary output. Some are bugs, and some are different behavior from the commercial simulator.

One is the historical mode summary values, as stated above, this case is a prediction case, the commercial simulator manages to provide some non-zero historical values, while the behavior is not very consistent.

For this FOPRH, Both the commercial simulator and OPM provide non-zero value output. It looks like the values from the commercial simulator are the same with FOPR., while OPM stays constant, which is the ORAT target from the WCONPROD, which indicates a BUG somewhere.

image

For WGPTH, again, the commercial simulator produces the value of WGPT, however, the output of the OPM-flow is clearly a bug.
image

Same applies to WOPTH,
image

For FGOR, and also FGORH, it is clearly both OPM and the commercial simulator are buggy at the beginning part when well OP_1 still running. Both of them gives zero output
image

image

Not sure whether the commercial simulator did some rounding off for the very small values, or some other techniques
image

image

@GitPaean GitPaean marked this pull request as ready for review March 18, 2020 13:40
@GitPaean
Copy link
Member Author

The comments above is for providing information for further development. It should not be in the way of merging of this PR.

This PR is ready for reviewing and merging.

@GitPaean
Copy link
Member Author

jenkins build this opm-tests=266 please

Copy link
Member

@bska bska left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me. I'll merge this and the downstream data update (OPM/opm-tests#266) into master.

@bska bska merged commit f615f92 into OPM:master Mar 18, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants