Commit Graph

2919 Commits

Author SHA1 Message Date
Bård Skaflestad
c7d6604d98 Add Container for Dynamic WBPn Source Values
This commit adds a new container class,

    PAvgDynamicSourceData

which wraps a single vector<double> which in turn backs source data
items for

    - pressure values
    - fluid mixture densities
    - dynamic pore-volumes

at a collection of source locations-active cells or well reservoir
connections.  We provide read-only and read-write accessors to the
underlying data items for a single source location through subscript
operator (read only) and named assignment (set(), read-write) member
functions.  The latter is available only when the underlying range
of data values is mutable (e.g., SourceDataSpan<double>) as opposed
to immutable (e.g., SourceDataSpan<const double>).
2023-06-09 15:42:46 +02:00
Bård Skaflestad
89bc182876 Prepare for Revised Implementation of WBPn
This initial commit changes the Summary class's API for consuming
block-averaged well level pressure values (summary keywords WBPn).
The former approach was intended to consume a collection of source
values--pressures, densities, and pore-volumes--and then to defer
calculation of the WBPn summary vectors to the Summary class.

This commit introduces a 'WellBlockAvgPress' container class which
holds precomputed WBPn results and the intention is to move the
calculation to the simulator side for greater parallelism.
2023-06-09 13:29:10 +02:00
Tor Harald Sandve
ba0845c5f3 Merge pull request #3526 from plgbrts/well-control
Allow NONE for item 7 in GCONPROD
2023-06-09 10:50:57 +02:00
Bård Skaflestad
ff4db11528 Handle Case of Nonexistent NumPy Module
The NumPy module might not be available on the host system.  In that
situation the PYINPUT_BASIC unit test would fail with a segmentation
violation.  Guard against this problem by catching ImportError and
checking if the result deck has 'DX' instead of blindly asserting
that 'DX' exists.
2023-06-08 09:24:27 +02:00
Bård Skaflestad
222e6133b1 Catch Up to Changed Semantics of Certain Member Functions
In particular Python::exec() now returns 'false' instead of throwing
an exception if we don't have 'EMBEDDED_PYTHON'.  Similarly for the
Python::Python constructor when called with an 'Enable::ON' argument.
2023-06-08 09:23:22 +02:00
Bård Skaflestad
45e4762302 Emit Useful Diagnostic Message if Test Fails
While here, also mark a few objects 'const' and reorder the headers.
2023-06-08 09:19:32 +02:00
Håkon Hægland
5463420a85 Add support for WVFPDP 2023-06-02 09:24:59 +02:00
Arne Morten Kvarving
6700e08c84 avoid dead store 2023-06-01 09:38:45 +02:00
Arne Morten Kvarving
f64f587055 mark variable maybe_unused to avoid dead store warnings 2023-06-01 09:38:45 +02:00
Arne Morten Kvarving
237b63e674 reduce scope of variables to avoid dead store warnings 2023-06-01 09:38:45 +02:00
Arne Morten Kvarving
89ce51af81 added: unit test for VAPPARS in SOLUTION section
also revise existing test using SCHEDULE to check
that level 0 is UNDEF
2023-05-31 15:49:23 +02:00
Bård Skaflestad
682e6d8763 Merge pull request #3541 from akva2/test_spline_janitoring
test_spline: convert to boost::test
2023-05-30 14:21:47 +02:00
Bård Skaflestad
5a79e0f8fb Test Dynamic Segment Dimensions Against WSEGDIMS Limits
In particular, check that

  1. Number of MS wells <= WSEGDIMS(1)
  2. Number of segments per well <= WSEGDIMS(2)
  3. Number of branches per well <= WSEGDIMS(3)

for all report steps in the simulation run.

Example diagnostic message of a case that violates limits 2 and 3:

Error: Problem with keyword WSEGDIMS
  In CASE.DATA line 60
  The case has a multi-segmented well with 246 well segments, but at most 200 are allowed in WSEGDIMS.
  Please increase item 2 of WSEGDIMS to at least 246

Error: Problem with keyword WSEGDIMS
  In CASE.DATA line 60
  The case has a multi-segmented well with 105 lateral branches, but at most 5 are allowed in WSEGDIMS.
  Please increase item 3 of WSEGDIMS to at least 105
2023-05-30 11:47:50 +02:00
Arne Morten Kvarving
edeb7679b0 test_ncpflash: convert to boost::test 2023-05-30 10:31:56 +02:00
Bård Skaflestad
86a2f856d3 Merge pull request #3547 from akva2/test_fluidmatrixinteractions_janitoring
test_fluidmatrixinteractions: convert to boost::test
2023-05-30 08:36:31 +02:00
Arne Morten Kvarving
59ce72d04f test_fluidmatrixinteractions: convert to boost::test 2023-05-30 07:23:55 +02:00
Arne Morten Kvarving
98a9367b19 test_eclmateriallawmanager: convert to boost::test 2023-05-30 07:08:56 +02:00
Bård Skaflestad
4146ce75f3 Merge pull request #3545 from akva2/test_eclblackoilpvt_janitoring
test_eclblackoilpvt: convert to boost::test
2023-05-26 16:25:31 +02:00
Bård Skaflestad
4e1333deda Merge pull request #3544 from akva2/test_eclblackoilfluidsystem_janitoring
test_eclblackoilfluidsystem: convert to boost::test
2023-05-26 16:10:00 +02:00
Arne Morten Kvarving
4eac0243ae test_eclblackoilpvt: convert to boost::test 2023-05-26 15:51:41 +02:00
Arne Morten Kvarving
f424e8ec6e test_eclblackoilfluidsystem: convert to boost::test 2023-05-26 15:28:30 +02:00
Arne Morten Kvarving
492823d8dd test_blackoilfluidstate: convert to boost::test 2023-05-26 15:12:47 +02:00
Arne Morten Kvarving
eb84d95263 test_spline: convert to boost::test 2023-05-26 13:48:43 +02:00
Bård Skaflestad
857f9e39e4 Merge pull request #3540 from akva2/test_threecomponents_ptflash_janitoring
test_threecomponents_ptflash: convert to boost::test
2023-05-26 12:57:43 +02:00
Bård Skaflestad
823788a7c8 Merge pull request #3539 from akva2/test_2dtables_janitoring
test_2dtables: convert to boost::test
2023-05-26 12:57:13 +02:00
Arne Morten Kvarving
99035c4400 test_co2brine_ptflash: use stream 2023-05-26 12:37:06 +02:00
Arne Morten Kvarving
949d14d7c7 test_threecomponents_ptflash: convert to boost::test 2023-05-26 12:35:56 +02:00
Arne Morten Kvarving
e650889965 test_2dtables: convert to boost::test 2023-05-26 12:21:53 +02:00
Arne Morten Kvarving
4abfc8115e test_immiscibleflash: convert to boost::test 2023-05-26 12:20:35 +02:00
Arne Morten Kvarving
4bd20c6364 test_co2brine_ptflash: convert to boost::test 2023-05-25 22:53:25 +02:00
Bård Skaflestad
51f21f86bd Merge pull request #3535 from akva2/test_tabulation_janitoring
test_tabulation: Some janitoring
2023-05-25 22:23:40 +02:00
Bård Skaflestad
621dcad31d Merge pull request #3533 from akva2/test_fluidsystems_janitoring
test_fluidsystems: Some janitoring
2023-05-25 22:22:42 +02:00
Bård Skaflestad
80bdd0f999 Merge pull request #3532 from akva2/test_co2brinepvt_janitoring
test_co2brinepvt: Some janitoring
2023-05-25 22:21:30 +02:00
Arne Morten Kvarving
edefd93f38 test_components: convert to boost::test 2023-05-25 21:49:07 +02:00
Arne Morten Kvarving
180f34dea7 checkComponent: improve output
as this is called multiple times for a component
we get duplicate output. improve by also including the
Evaluation template parameters in the output.
2023-05-25 21:49:07 +02:00
Arne Morten Kvarving
0baa0f441a test_tabulation: convert to boost::test 2023-05-25 21:15:38 +02:00
Arne Morten Kvarving
860bc2e7f6 test_tabulation: adjust tolerances so there are no failed comparisons 2023-05-25 21:13:04 +02:00
Arne Morten Kvarving
174e19c35d test_fluidsystems: convert to Boost::Test 2023-05-24 22:04:39 +02:00
Arne Morten Kvarving
91d5db381a fixed: avoid dead stores in test_fluidsystems 2023-05-24 22:04:39 +02:00
Arne Morten Kvarving
89b1a95a2d test_co2brinepvt: convert to Boost::Test 2023-05-23 22:31:50 +02:00
Arne Morten Kvarving
38fb67496d fixed: avoid dead stores in test_co2brinepvt 2023-05-23 22:16:47 +02:00
Arne Morten Kvarving
553ac0a14c reduce scope of variable
avoids sca warnings
2023-05-22 23:00:30 +02:00
Paul
bc4d7bcb5d fix in unit test 2023-05-22 17:29:56 +02:00
Paul
d0be00d59e fix in unit test 2023-05-22 17:27:20 +02:00
Tor Harald Sandve
005ff3e982 Merge pull request #3445 from svenn-t/h2store
Hydrogen-brine simulations - H2STORE
2023-05-22 11:23:48 +02:00
Bård Skaflestad
4308305421 Merge pull request #3433 from totto82/brine_co2store
Combine brine + co2store
2023-05-16 10:25:32 +02:00
Tor Harald Sandve
1aff5fc604 add test that compares Brine and BrineDynamic 2023-05-12 09:07:55 +02:00
Arne Morten Kvarving
644d371026 Merge pull request #3508 from blattms/prevent-crash
Fixes segfaulting PYACTION test with pybind 2.10.3 and python 3.11
2023-05-10 15:49:21 +02:00
Arne Morten Kvarving
651693e623 avoid unused expression warning 2023-05-09 10:35:40 +02:00
Markus Blatt
84aa367b19 Exception type differs beween pybind11 versions, use std::exception. 2023-05-05 16:09:58 +02:00