Commit Graph

278 Commits

Author SHA1 Message Date
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
ac0ed1447c Don't crash when a Well is not in data::Wells
It's perfectly legitimate for clients to "default" a well result, e.g.
when it hasn't started up yet, in which case most output will default to
0. Avoid crashing when this happens, and instead calculate based on a
dummy well.
2016-06-07 08:42:30 +02:00
Jørgen Kvalsvik
c5397488a8 Correctly calculate totals 2016-06-07 08:42:30 +02:00
Jørgen Kvalsvik
54fdaadff9 Use basename for filename, not title 2016-06-07 08:41:39 +02:00
Jørgen Kvalsvik
bb53a74763 Use alias for UnitSystem::measure 2016-06-07 08:41:38 +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
Atgeirr Flø Rasmussen
3953869953 Use class scope (::) rather than access enum as member. 2016-05-25 11:36:44 +02:00
Jørgen Kvalsvik
210629aba0 Use UnitSystem::to/from_si over conversion_table
Keep up with a change in opm-parser which moves this functionality into
UnitSystem.
2016-05-24 14:26:36 +02:00
Joakim Hove
bcc4183236 Merge pull request #32 from jokva/summary-correct-inj-prod
Write rates/totals correctly
2016-05-24 11:50:33 +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
203557cb29 Remove boost from Summary; use posixStartTime 2016-05-19 12:22:22 +02:00
Jørgen Kvalsvik
40e48af625 Moved SI-to-metric/field to opm-parser 2016-05-10 13:55:57 +02:00
Atgeirr Flø Rasmussen
1867e7199d Const has no effect in by-value return. 2016-04-29 13:58:19 +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
e4c3bbd958 Fix oil/gas injection lookups being switched. 2016-04-28 15:41:41 +02:00
Jørgen Kvalsvik
715fd6ff78 Fix signature; pass vector ref to group_wells 2016-04-28 10:50:51 +02:00
Jørgen Kvalsvik
5266fa213a GWIT support 2016-04-28 10:49:19 +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
885ed13fa0 Precompute string-to-enum mapping of keywords
By precomputing and storing the keyword-to-enum mapping, accessing and
writing to a node overhead changes from log(N) to constant, and should
behave better w.r.t. cache and memory access.
2016-04-27 10:50:33 +02:00
Jørgen Kvalsvik
107015a57c Unsupported keywords write negative values
This provides easier-to-identify behaviour than simply writing zero and
going on its merry way.
2016-04-27 10:50:33 +02:00
Jørgen Kvalsvik
a0706a32af Replace silent wrong default with throw
Not asking sum_rate/vol for wat/oil/gas is a programmer error in the
library and shouldn't happen, but is unfortunately unverifiable with the
current tooling. The fall-through now signals a runtime error instead of
silently returning the wrong value.
2016-04-27 10:50:33 +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
bf7217139d Rename wwct/wgor to wct/gor
These functions don't care if the source is a well, group or region, so
they've been renamed to emphasise its generality and reusability.
2016-04-27 09:54:21 +02:00
Jørgen Kvalsvik
0786ec0156 Well dispatcher use partial applications
To clarify intent and the high-level formulas used to calculate the
requested values, a series of partial applications are introduced since
most parameters to the functions are fixed from the caller.

This increases signal-to-noise ratio in the switch dispatch, at the
expense of some boilerplate before the switch itself.
2016-04-26 13:50:52 +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