Commit Graph

100 Commits

Author SHA1 Message Date
Bård Skaflestad
d46628e8a1 Summary Config: Recognize Subset of Node-Level Keywords
This commit adds support for recognizing a small subset of the
summary quantities that are reported at the node level of an
extended network--especially the 'GPR' keyword.

Briefly, we add a new 'Node' config category and a processor for
this category which knows about the distinction between nodes and
groups.  It uses member function ExtNetwork::node_names() to produce
configuration nodes whose named entity is the node rather than a
group.  Deriving this list of node names across all timesteps is
potentially expensive, so perform this operation at most once and
pass the result into the processor from the SummaryConfig
constructor.

Add a simple unit test for demonstration purposes.
2020-09-22 10:08:44 +02:00
Joakim Hove
3587c0c6b7 Add fip_region member to SummaryNode 2020-09-10 08:23:42 +02:00
Joakim Hove
985cb279ff Allow negative rates when evaluating UDA values
corrections to iwel[10] open/shut flag

further corrections SWEL for handling udq-restarts correctly

further changes to get correct SWEL in ECL-Restart file

added comment to clarify change

correction to group sequence and group controls for EclRST-file

changes to correct IGRP[NWGMAX+5]

corrected compile errors/warnings

further minor code corrections

initial changes to include group current Prod/inj Constraint in summary file

further changes to currentsStatusGroupControl to Summary output

further corrections and additions of Field current controls

further corrections for IGRP

minor corrections to code style

corrections for tests

changes to correct test_AggregateWellData

a few more initial changes for next version of igrp/sgrp

changes to igrp & sgrp according to tests

changes to handle special conditions at report step 0

corrections due to changes in Summary.cpp

changes to improve code quality and robustness

Add default value to igrp[nwgmax+5]

corrections and code improvements base on testing

corrections to handling of GCONINJE

further corrections for IGRP

even further corrections IGRP

changes to correct SGRP

correction to IGRP defaults

corrections to SWEL and IGRP

further corrections for IGRP

removed some comments
2020-06-15 09:55:27 +02:00
Bård Skaflestad
c71ffd1415 Add Restart I/O Support for Well's THP
This commit adds support for saving and restoring a well's THP
quantitiy.  We put the THP into the summary facility's list of
"required restart quantities" and pick up the value converted to
output units from the SummaryState.

On restart we restore the THP value to internal (SI) units and
transport the value to the simulator in data::Well::thp.  While
here, also add the THP value to the RstWell object although
currently not strictly needed in that context.
2020-05-19 22:20:55 +02:00
Torbjørn Skille
c430eeb374 Adding support for LODSMRY file
> implemented for unified and multiple, and for formatted and binary summary files
 > avaliable/used only when loadBaserun is false (default)
2020-05-14 07:39:23 +02:00
Torbjørn Skille
54087e3bd8 Effective LOD for ESmry 2020-04-19 20:59:38 +02:00
Joakim Hove
b899a1da64 Merge pull request #1703 from joakim-hove/well-store-dens-calc
Check WELSPECS values
2020-04-16 09:26:48 +02:00
Joakim Hove
3072f0dabe Add pvt_table as member for Well 2020-04-15 11:26:57 +02:00
Arne Morten Kvarving
33e3d36ef5 fixed: avoid shadowing warnings 2020-04-14 11:28:10 +02:00
Torbjørn Skille
e5583b738f Updates of ESmry
- new overload function for keywordList, list keys based on pattern (string argument)
 - summary program wild card elements (keys including * or ?)
 - python bindings to new member function
2020-04-10 10:10:58 +02:00
Joakim Hove
db8c9652e4 Add cmp() function to compare ERsm and ESmry instances 2020-04-05 12:37:41 +02:00
Joakim Hove
f260c05d9d Add class ERsm for loading RSM files 2020-04-05 12:37:41 +02:00
Joakim Hove
b09814bc2e Respect DATE keyword in RUNSUM output 2020-04-03 16:05:43 +02:00
Joakim Hove
3b70c9edce Add method dates to ESmry class 2020-04-02 19:23:02 +02:00
Joakim Hove
33ad7a2620 Use std::chrono instead of std::vector<int> to store start date 2020-04-02 15:38:20 +02:00
Joakim Hove
33ecf4215d ESmry: use templated function rstep_vector() 2020-04-02 09:35:59 +02:00
Joakim Hove
f8e793a21a ESmry: remove unused member seqTime 2020-04-02 09:32:12 +02:00
Williham Williham Totland
ea269c7cc7 Implement writing of RSM file 2020-04-01 10:30:10 +02:00
Joakim Hove
f59fec133d Check NSCONZ before reading CFKind value from SCON 2020-03-28 08:58:14 +01:00
Joakim Hove
ad5b410940 Sort segments 2020-03-28 08:58:14 +01:00
Joakim Hove
f613c15727 Connections: keep order from restart file 2020-03-28 08:58:14 +01:00
Bård Skaflestad
1113c25eb1 Restart: Save/Restore Cumulative Injected Reservoir Volume
This commit adds support for persisting the *VIT cumulative summary
vector at the well, group, and field levels in the simulation
restart files.  Connection level currently not supported.
2020-03-27 14:59:29 +01:00
Williham Williham Totland
3e29350e94 Integrate SummaryNode in ESmry (#1642) 2020-03-27 08:07:52 +01:00
Williham Williham Totland
4e08ff7f6d Adds ::Aquifer to Opm::EclIO::SummaryNode::Category. 2020-03-26 11:36:13 +01:00
Bård Skaflestad
5a701a2ee8 Merge pull request #1609 from wito/new-summarynode
New SummaryNode implementation
2020-03-26 11:34:21 +01:00
Williham Williham Totland
06d317d119 Review Actions: Un-consts SummaryNode members and un-statics some data vectors. 2020-03-26 08:20:50 +01:00
Torbjørn Skille
9d24f0dc34 replacing long int and unsigned long int
- long int -> int64_t
  - unsigned long int -> uint64_t

All EclIO classes and associated tests has been updated.
2020-03-23 17:12:56 +01:00
Torbjørn Skille
1a39c07981 Adding python bindings for C++ class ERft 2020-03-23 10:57:49 +01:00
Torbjørn Skille
d258ce5a57 Updates of C++ class ERft to be used with python bindings
-> Support for extracting data based on report index
  -> adding extra float (time) to RftReportList
2020-03-23 10:57:49 +01:00
Torbjørn Skille
f97dfda92e Adding python bindings for C++ class ESmry 2020-03-23 10:57:49 +01:00
Torbjørn Skille
931fa96a59 Updates of C++ class ESmry to be used with python bindings
-> adding member function ESmry::get_startdat(), start of simulation from keyword STARTDAT in SMSPEC file
  -> adding member function ESmry::numberOfTimeSteps(), number of timesteps in run
2020-03-23 10:57:49 +01:00
Torbjørn Skille
c1caf4738e Adding python bindings for C++ class ERst
-> one additional C++ member function ERst::numberOfReportSteps()
2020-03-23 10:57:44 +01:00
Williham Williham Totland
ab71b43f10 Fixes minor formatting glitch in the SummaryNode copyright statement. 2020-03-20 14:48:32 +01:00
Williham Williham Totland
327fe79c90 Adds Opm::EclIO::SummaryNode::is_user_defined(). 2020-03-20 14:08:03 +01:00
Williham Williham Totland
99375eb5be Reworks requiredRestartVectors for Opm::EclIO::SummaryNode. 2020-03-20 14:08:03 +01:00
Williham Williham Totland
001877df2b Simplifies namespace declaration. 2020-03-20 14:08:03 +01:00
Williham Williham Totland
84c57ff37b Review Action: Renames Opm::EclIO::SummaryNode::name => wgname 2020-03-20 14:08:03 +01:00
Williham Williham Totland
861c098912 Implements Opm::EclIO::SummaryNode::unique_key(). 2020-03-20 14:08:03 +01:00
Williham Williham Totland
402f28f749 Adds Opm::EclIO::SummaryNode::Type::Mode. 2020-03-20 14:08:03 +01:00
Torbjørn Skille
7699810f61 EclFile new member function count(std::string) which return number of arrays with a specific name 2020-03-18 14:56:49 +01:00
Torbjørn Skille
e3ae38feb9 Adding support for large arrays using X231 format extension
- EclIO classes have been updated to support arrays with size beyond numeric limits for integers
- Output of arrays having 2^31 or more elements is facilitated by using a pair of headers
- The first header is of type X231, second should have the actual type
- The large array format extension is documented in the Eclipse File format manual
2020-03-16 18:58:25 +01:00
Joakim Hove
7e88f4b4c2 Merge pull request #1576 from joakim-hove/rst-msw-init
Rst msw init
2020-03-13 15:45:18 +01:00
Joakim Hove
f7b2e70282 Merge pull request #1577 from wito/summary-units
Adding support for inspecting units to Opm::EclIO::ESmry
2020-03-13 13:52:15 +01:00
Joakim Hove
d53826ed28 Add small static function inverse_peaceman 2020-03-13 12:16:51 +01:00
Williham Williham Totland
7297a9736a Implements Opm::EclIO::ESmry::get_unit. 2020-03-13 11:55:43 +01:00
Williham Williham Totland
af61d58606 Removes trailing whitespace. 2020-03-13 10:39:53 +01:00
Williham Williham Totland
46abd74eba Adds stub for Opm::EclIO::ESmry::get_unit 2020-03-13 10:36:49 +01:00
Joakim Hove
23bdbe51f2 Add wtype, drainage_radius and efficiency_factor members to rst::well 2020-03-12 18:11:25 +01:00
Joakim Hove
03be91a951 Add members cf_kind, cf, skin_factor and r0 to rst::connection 2020-03-12 18:11:25 +01:00
Joakim Hove
ee5f311a04 RestartIO::state - use internal UnitSystem member 2020-03-12 17:47:41 +01:00