In particular, add parser and summary output support for the free
vs. solution flow rates of gas and oil as well as the dissolved
gas/oil ratio, the vaporised oil/gas ratio, and the water/gas ratio.
In particular, introduce a number of helper functions for evaluating
expressions, well variables, group variables, unary and binary
function expressions, and direct number values. This also, I
believe, fixes a latent error in one group variable case which
appears not to apply the 'sign' correctly.
While here, also wrap some long lines throughout this component.
This is in preparation of adding support for UDQs at the segment
level.
We're missing the following quantities
- Flow velocities (SEGxVEL)
- Holdup fractions (SEGxHF)
- Phase viscosity (SEGxVIS)
These require additional dynamic values from the simulator and
will be introduced in upcoming work.
Reimplement 'PLTFlowRate' in terms of base class 'PLTPhaseQuantity'.
This is in preparation of adding other phase quantities, such as
velocity and viscosity, which are needed in SEG output.
We support both standard and multisegmented wells, but do not output
every known PLT array. Notably missing are
- WELLPLT
- Brine flow rate (CONSRAT)
- Phase flow rates through tubing (CONxTUB)
Computing CONNXT for multisegmented wells is somewhat involved, and
requires sorting the connections according to branch number,
segments, and tubing lengths. We use an ancillary structure, an
array of indices into a WellConnections object, along with a custom
predicate to perform this sorting.
As an implementation detail, we handle PLT data for multisegmented
wells as an extension of the PLT data for regular/standard wells.
This extension is realised through dynamic polymorphism.
Add unit tests to cover PLT data for both well types.
This commit introduces a new helper class, WellConnectionRecord,
which holds the connection IJK and host grid information. Said
information must be output if the run requests either RFT, PLT, or
both RFT and PLT data and so should not be tied to the RFT writer.
This is in preparation of adding PLT output.
option -g will output a grdecl file. Input file should be formatted or unformatted ECL files. The option -o can be used to specify output file name. Option -o only valid together with -g option.
When not using the OPM CMake build system magic a
find_package(opm-module) did fail in some settings as the
CMAKE_MODULE_PATH did not include the location of OpmPackge.cmake and
the likes.
This fixes this by issuing a find_package(opm-common) for modules that
are not opm-common.