Commit Graph
100 Commits
Author SHA1 Message Date
Tor Harald Sandve 3cd0d9c29f dynamically set zoltan imbalance tolerance 2021-01-06 11:52:48 +01:00
Tor Harald Sandve 5ee75c45e3 move well operability check for STW 2021-01-05 15:10:40 +01:00
Tor Harald Sandve 33e3102983 output stopped wells 2020-12-21 13:51:21 +01:00
Tor Harald Sandve bcdf6c8d02 don't shut stopped wells 2020-12-21 09:25:57 +01:00
Tor Harald Sandve 4636e7956e add flow_dyn test 2020-12-21 08:25:39 +01:00
Tor Harald Sandve 273538e1f4 some cleanup 2020-12-16 12:58:17 +01:00
Tor Harald Sandve 30ce605713 use the old initSegmentRates when opening up wells 2020-12-15 15:15:59 +01:00
Tor Harald Sandve d027205c34 Initial well rates with the well potentials and scale the segment rates
Initialize the well rates with well potentials when computing rates from bhp or bhp(thp)
The bhp was already initialized.

Scale the segment rates and pressure to adapt to changes in well rate and bhp

Improves convergence of the well potential calculations
2020-12-15 08:39:22 +01:00
Tor Harald Sandve 7a42a82c55 add check for gridType 2020-12-11 15:33:25 +01:00
Tor Harald Sandve 6cf91e7f19 Get compressed to cartesian mapping and depths from the vanguard 2020-12-11 12:48:01 +01:00
Tor Harald Sandve 8a0fde9104 dunify the aquifer models 2020-12-11 12:48:01 +01:00
Tor Harald Sandve 2deee380f9 move the try-catch inside the compute potential loop 2020-12-11 08:26:52 +01:00
Tor Harald Sandve 6b7c0e630a report pre/post time 2020-12-10 13:40:41 +01:00
Tor Harald Sandve 21fd76ccf6 add convergence check for extended blackoil model 2020-12-08 13:09:58 +01:00
Tor Harald Sandve ba8d2068ea pass trivial B_avg to init method in wellPI calculation 2020-12-08 12:51:25 +01:00
Tor Harald Sandve 5fb73c9714 Only check well operability for wells under THP and BHP limits 2020-12-08 12:38:25 +01:00
Tor Harald Sandve 8ca9cc241a remove unused warnings 2020-12-08 12:38:25 +01:00
Tor Harald Sandve bc04fb68ef check the sum not individual phases for operability 2020-12-08 12:38:25 +01:00
Tor Harald Sandve 90050372ae keep msw wells open even if bhp from thp fails 2020-12-08 12:38:25 +01:00
Tor Harald Sandve a7664f9ea6 Add check for operability of MSW 2020-12-08 12:38:25 +01:00
Tor Harald Sandve b202a025c0 some clean up 2020-12-02 13:04:34 +01:00
Tor Harald Sandve 246c339b13 Pass gridView instead of the vanguard to the initialization 2020-11-27 13:46:04 +01:00
Tor Harald Sandve 6c06a72466 dunify and make the initialization parallel 2020-11-27 12:38:17 +01:00
Tor Harald Sandve c4c0b7a756 Make it compile with dune-fem 2020-11-19 15:45:37 +01:00
Tor Harald Sandve fbccdbf68e Make a flow version that uses the polyhedreal grid
Currently the simulator creats the polyhedreal grid from an eclGrid from opm-common

TODO
 - make it possible to create the grid directly from DGF or MRST format
 - fix issue on norne.
2020-11-10 15:49:59 +01:00
Tor Harald Sandve 2795d1713f avoid oscilating between decreasing and increasing when rates are limited 2020-11-06 15:19:21 +01:00
Tor Harald Sandve bd370c6470 fixes to the wlift implementation 2020-11-05 13:05:01 +01:00
Tor Harald Sandve 6b3a64bd40 add options for timestepping 2020-10-01 14:46:58 +02:00
Tor Harald Sandve 4f84ca4716 Add support for ROCKTAB 2020-09-28 20:32:34 +02:00
Tor Harald Sandve 56fc29beb1 move update of hysteresis and vappars from beginEpisode to beginTimestep 2020-09-28 10:02:31 +02:00
Tor Harald Sandve 80fcccdd66 fix 2p BC code 2020-09-25 09:59:45 +02:00
Tor Harald Sandve 85e25f7e0e Invalidate and update the intensive quantities instead of just invalidate them 2020-09-23 11:39:04 +02:00
Tor Harald Sandve ae95570693 output temperature when TEMP is set 2020-09-21 15:35:55 +02:00
Tor Harald Sandve 2f37742c21 add model6 to update ref 2020-09-14 15:56:48 +02:00
Tor Harald Sandve 8c69741bd5 rename test case for model6 2020-09-14 15:53:37 +02:00
Tor Harald Sandve c2c009ecb6 clean-up based on review 2020-09-14 15:42:48 +02:00
Tor Harald Sandve d930cc8ad4 add 2p+msw test case 2020-09-14 15:14:22 +02:00
Tor Harald Sandve 1a7b617074 guards against non-exsisting phases 2020-09-14 14:44:16 +02:00
Tor Harald Sandve a323487b3b Fix the equation index for 2p oil-water simulations 2020-09-14 14:44:16 +02:00
Tor Harald Sandve bcc0a1be69 only output connection saturation for existing phases 2020-09-14 14:44:16 +02:00
Tor Harald Sandve a32f6bbfa8 fix output unit salt 2020-09-14 08:40:24 +02:00
Tor Harald Sandve 9d72b6ad1a clean-up saltved implementation based on code review 2020-08-18 11:04:39 +02:00
Tor Harald Sandve 491b532a6a Add trivial saltvd table for cases without saltvd given in the deck 2020-08-18 10:55:43 +02:00
Tor Harald Sandve bd9186b41d implement Saltvd 2020-08-18 10:55:43 +02:00
Tor Harald Sandve fefa5c22ce make assembleWellEqIteration private 2020-08-11 09:10:19 +02:00
Tor Harald Sandve fc45b1bd47 Add inner iterations for standard wells also 2020-08-11 09:10:19 +02:00
Tor Harald Sandve fdf0f1ed27 SALTVD and BDENSITY is not implemented 2020-07-02 13:49:05 +02:00
Tor Harald Sandve 88ee892fdf pass the saltConcentration to the waterPVT 2020-07-02 13:44:01 +02:00
Tor Harald Sandve 6a7e816368 Add brine to output 2020-06-30 14:15:54 +02:00
Tor Harald Sandve fce0ba6759 Add oil water brine specialization 2020-06-30 10:41:28 +02:00
Tor Harald Sandve a99254f917 clean up based on review 2020-06-24 09:48:09 +02:00
Tor Harald Sandve 8e3c124b23 use rates from privious time-step in the guiderate conversion to reduce oscilation 2020-06-24 09:38:18 +02:00
Tor Harald Sandve 39e23c4d41 store polymer rates for output 2020-06-23 12:01:34 +02:00
Tor Harald Sandve 1fe5a2812f relax rel_tol for msw restart case 2020-06-17 15:08:47 +02:00
Tor Harald Sandve 43d434d42e trivial clean up 2020-06-17 08:39:19 +02:00
Tor Harald Sandve e9d040a284 Fix upwining for friction, acceleration, valve and SIGD for MSW
Note 1:
The rate vectors used for the pressure equation now contains derivatives wrt to the upwind segment for fractions.
To make sure derivatives wrt. to different segmens gets mixed we disregard the derivatives for the properties (density, viscosity) evaluated at the upwind segment.

Note 2:
A factor 2 is added to the velocity head term similar as in the friction term

Note 3:
A sign change is added to the acceleration term for massrates > 0. Is this correct. It seems like the reference simulator does this.
2020-06-17 08:39:19 +02:00
Tor Harald Sandve da3801ea14 change MSW restart test to read the schedule 2020-06-16 15:06:45 +02:00
Tor Harald Sandve b11d805e45 fix output message 2020-05-29 15:40:44 +02:00
Tor Harald Sandve 82b424c2cf don't regularize MSW as default 2020-05-22 20:52:14 +02:00
Tor Harald Sandve 8a5c9e82df add run time parameters for msw convergence tuning. Default values are set to minimize convergence failures for model2 based tests. These parameters are also tested on bigger models with good results 2020-05-22 20:52:14 +02:00
Tor Harald Sandve ec7c6e236d increase segment volume to stabilize to improve convergence 2020-05-22 20:52:14 +02:00
Tor Harald Sandve d49c590879 apply the relaxtion factor on the pressure change not the max pressure change limit 2020-05-22 20:52:14 +02:00
Tor Harald Sandve cf702a5384 use relaxed tolerance for MSW when solution stagnates 2020-05-22 20:52:14 +02:00
Tor Harald Sandve 904353367d compute initial volume fractions on the well copies also 2020-05-08 19:29:20 +02:00
Tor Harald Sandve 85e95fb87d Implement min/max for GCONSALE
Only default action RATE is implemented for violation of maximum sales target
2020-05-05 14:24:17 +02:00
Tor Harald Sandve f33737afc4 Fix solvent reinjection when different reinjection group is given 2020-05-05 10:46:49 +02:00
Tor Harald Sandve 33afb332fa use nupcol to avoid oscilation between group controls 2020-04-27 10:29:00 +02:00
Tor Harald Sandve a046977946 Fix GCONSALE
1) Only check GCONSALE limits at the end of a timestep. NB. The simulator still throws if some of the limits are violated
2) BUGFIX: don't remove gas consumption twice
2020-04-24 16:10:07 +02:00
Tor Harald Sandve e9476e116e make sure the current_rate is added at the right level 2020-04-23 20:54:59 +02:00
Tor Harald Sandve 3b479af9c4 Fix the fix on how the group reduction works 2020-04-23 09:45:16 +02:00
Tor Harald Sandve 97876530e3 include wells under individual control when accumulating guiderates 2020-04-03 10:03:05 +02:00
Tor Harald Sandve 70b7bed057 dont check if group has converged in solveWellEq 2020-04-02 13:57:38 +02:00
Tor Harald Sandve 21b98b5573 Avoid negative targets and currentWellRates 2020-04-02 13:57:38 +02:00
Tor Harald Sandve 66931b9cb7 Various fixes and refactoring.
- Communicate all well rates.
 - When changing controls, modify rates to satisfy failed constraint.
 - Ensure targets are positive.
 - Always solve for potentials for MSW (temporary fix).
2020-04-02 13:57:05 +02:00
Tor Harald Sandve 92ee56c3b3 scale guiderate by current well rate 2020-04-02 13:54:47 +02:00
Tor Harald Sandve 06df233055 remove minpvFillNtg a temporary solution while not supporting standard minpv 2020-02-24 11:43:07 +01:00
Tor Harald Sandve a784ccc47d fix rebase 2020-02-11 11:18:21 +01:00
Tor Harald Sandve 052f25636c adding blank lines 2020-02-11 09:33:58 +01:00
Tor Harald Sandve 2d2ec82640 fix MPI 2020-02-11 09:33:58 +01:00
Tor Harald Sandve e39e327451 fix 2p 2020-02-11 09:33:58 +01:00
Tor Harald Sandve 469ffa2cbe allow for multiple group injection phases 2020-02-11 09:30:19 +01:00
Tor Harald Sandve b499180776 only double check the current group constraint at the start of a report step 2020-01-30 11:18:23 +01:00
Tor Harald Sandve c93c10ab3d add test case for lab and bc 2020-01-30 10:03:35 +01:00
Tor Harald Sandve 1d061c681f fix index issue for boundary conditions 2020-01-30 10:03:22 +01:00
Tor Harald Sandve f5c6bafd90 make group constrain check conditional 2020-01-29 14:52:01 +01:00
Tor Harald Sandve 6e0f26f488 fix typos 2020-01-20 09:14:19 +01:00
Tor Harald Sandve c1748604f0 Fix REIN for multi level groups by passing the top phase 2020-01-13 11:32:13 +01:00
Tor Harald Sandve cf6cb3016b use SPE1CASE1_BRINE as test case not SPE1CASE2_BRINE 2020-01-10 10:47:39 +01:00
Tor Harald Sandve bc33e482be don't communicate isoThermal when approach is NoWaterPvt 2020-01-10 09:02:16 +01:00
Tor Harald Sandve 2877a984a1 Adapt FluidState in Aquifer model to interface change due to Brine 2020-01-09 15:09:53 +01:00
Tor Harald Sandve ada7c9d90b fix various extentions 2020-01-09 14:14:38 +01:00
Tor Harald Sandve 56d7a1ec19 yet another rebase fix 2020-01-09 14:14:38 +01:00
Tor Harald Sandve c3424a5716 remove depricated ebos_saltwater from install list 2020-01-09 14:14:38 +01:00
Tor Harald Sandve 8b93953ef5 clean-up after rebase 2020-01-09 14:14:38 +01:00
Tor Harald Sandve 555de445d3 add test case for brine 2020-01-09 14:14:38 +01:00
Tor Harald Sandve 18c8cc6119 fix vrep and rein for more then one level of groups 2020-01-08 14:26:25 +01:00
Tor Harald Sandve 77d52e5b53 communicate group rates and add test 2020-01-02 13:57:12 +01:00
Tor Harald Sandve 7a0ff52bbc set bhp control explicilty for well potential calculations 2019-12-20 13:18:10 +01:00
Tor Harald Sandve df6774c45c froze wellState at nupcol iterations 2019-12-18 14:37:16 +01:00
Tor Harald Sandve 29c2a3da3f only count group under group control when accumulating the group potentials 2019-12-18 11:40:06 +01:00