Commit Graph

19 Commits

Author SHA1 Message Date
Jørgen Kvalsvik
ef64026bce Cuts/ratios only apply to production
In line with Eclipse water cuts, gas-oil ratio etc. only applies to
production values, rather than all rates. This sparked some other
refactoring that moves the negative-else-zero logic into the rate
calculation.
2016-07-18 12:02:29 +02:00
Jørgen Kvalsvik
01ae50ba20 Completion production/injection rates/totals
A small set of the completion family of keywords, water/oil/gas
production and injection. The tests and example data file are updated
accordingly, with edge cases.
2016-07-15 15:20:56 +02:00
Joakim Hove
55f482b202 Add ParseContext argument to SummaryConfig. 2016-07-01 13:59:18 +02:00
Jørgen Kvalsvik
0c0a548219 New private Summary implementation
A rewritten Summary.cpp with some minor header modifications. Synposis
of the new implementation:

* Uses unordered_map< string, std::function > for dispatch, instead of
  multiple functions and a switch
* Some poor man's function composition support has been added
  (privately) to avoid a lot of reptition in the post processing.
* Functions assume they work over lists of wells instead of single wells
  being special cased - this means groups of well etc. can share
  implementation with single wells and field keywords.
* Unsupported keywords are not written in the Summary file.

Furthermore, some comments on special cases and overall approach and
a generally more declarative implementation. This change is invisible to
downstream developers. Users will obviously see no more garbage
keywords.
2016-06-30 09:54:40 +02:00
Joakim Hove
0f238d6552 Explicitly created output in subdirectory. 2016-06-24 19:39:46 +02:00
Joakim Hove
299b453b56 Using ERT::TestArea. 2016-06-24 19:39:17 +02:00
Jørgen Kvalsvik
87e24b91b6 Look up history rates at correct timestep
The input format and parser interacts non-intuitively, as the observed
rates for timestep N are written for timestep N-1.
2016-06-10 10:03:49 +02:00
Jørgen Kvalsvik
c87ffb1608 Base Summary test durations on days
Basing the dest durations on days over seconds make them less noisy,
more readable and closer to actual idiomatic use. Removes some subtle
complexities from the tests.
2016-06-07 08:42:30 +02:00
Jørgen Kvalsvik
887491e851 Summary takes secs_elapsed, not per-step duration
To stay consistent with the interface exposed by the other
eclipse-writer components, the summary facilities takes its time elapsed
since simulation start, not on a per-step basis.
2016-06-07 08:40:38 +02:00
Jørgen Kvalsvik
289021d823 Grouped tests into fewer, more elaborate cases
The tests requires some boilerplate setup and quickly became slow to
maintain and run. Rewrite so that the tests are grouped on topic instead
of immediate keyword family.
2016-05-24 10:31:14 +02:00
Jørgen Kvalsvik
d27b3db9fd Injection rate tests 2016-05-24 10:31:14 +02:00
Jørgen Kvalsvik
6cfb52ae69 Summary: Production is negative injection.
Represent simulator-provided data as production = negative injection,
and write rates accordingly. Tests updated.
2016-05-24 10:31:07 +02:00
Jørgen Kvalsvik
dcdcf99758 Support and tests for history matching G-keywords 2016-04-28 16:20:03 +02:00
Jørgen Kvalsvik
d8b9c88164 Well Injection history matching unit tests 2016-04-28 15:42:28 +02:00
Jørgen Kvalsvik
d7c5a43226 WGLR+WGLRH support 2016-04-28 09:46:01 +02:00
Jørgen Kvalsvik
eb7f6afae6 Rename gor to glr
This function doesn't care if the liquid is pure water, pure oil or a
mixture.
2016-04-28 09:44:57 +02:00
Jørgen Kvalsvik
e84c888d72 Support for SUMMARY configured output G-keywords
Add support for a set of G-family summary keywords; productions, rates
and ratios.
2016-04-27 10:50:33 +02:00
Jørgen Kvalsvik
e7a6ae5068 RAII cleanup of test files; WRITE removed
The WRITE test was a mere convenience to create and inspect a summary
file, but this should instead be moved to applications or examples, and
out of tests. The helper class setup now has a destructor that will
automatically attempt to clean up the files produced by ert.
2016-04-26 12:24:30 +02:00
Jørgen Kvalsvik
e09e7fea1f Support for SUMMARY configured output W-keywords
Support for the creation and output of ecl-compatible SUMMARY-section
configured files. Supports a set of Well keywords, with unit conversions
based on user request, and comes with a test suite.
2016-04-25 15:35:46 +02:00