Commit Graph
100 Commits
Author SHA1 Message Date
Tor Harald Sandve 1abbd9c776 add diffusivity to eclTranmissibility 2021-02-16 12:21:58 +01:00
Tor Harald Sandve 3457d46a00 add flow_co2 gas-oil simulator with diffusion for testing 2021-02-16 12:21:58 +01:00
Tor Harald Sandve c64dcacfec fix boundary face index on process boundaries 2021-02-09 12:40:00 +01:00
Tor Harald Sandve d3ea5a67ea reset the iteration count in the newtonSolver 2021-01-29 07:59:56 +01:00
Tor Harald Sandve 82c8968ae3 only warn about empty regions when none of the partitions contains the region 2021-01-27 12:47:41 +01:00
Tor Harald Sandve d4f5398af6 adapt RelpermDiagnostics to single phase systems 2021-01-26 15:20:47 +01:00
Tor Harald Sandve c145722798 pass CartesianIndexMapper instead of the grid to the RelpermDiagnositics 2021-01-26 14:59:36 +01:00
Tor Harald Sandve 9277b2edee get connection length and radius from the connection object 2021-01-25 14:08:59 +01:00
Tor Harald Sandve 91ab0f4d93 fix phase index for WELLPI for MSW 2021-01-21 11:58:24 +01:00
Tor Harald Sandve 036a021c63 fix well model for gasoil thermal 2021-01-21 11:37:25 +01:00
Tor Harald Sandve 36ba423d42 Add guard around solve well equation. 2021-01-20 08:46:58 +01:00
Tor Harald Sandve 62e485cbea adapt to changes in the schedule class 2021-01-18 15:12:17 +01:00
Tor Harald Sandve 100252eb8c coursen the parallel tolerance SPE1CASE1_BRINE 2021-01-18 15:12:17 +01:00
Tor Harald Sandve b0446dfecd Use stricter mass balance tolerance for SPE1CASE1_BRINE MPI test 2021-01-18 15:12:17 +01:00
Tor Harald Sandve b6fe8cbd77 only update individual wells after solve eq 2021-01-18 15:12:17 +01:00
Tor Harald Sandve 27bea2fa4f Solve well equation for the first iteration 2021-01-18 15:12:17 +01:00
Tor Harald Sandve fbcd230eb2 substitute solveWellEq with one inner solve for newly opened wells 2021-01-18 15:12:17 +01:00
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 967f99500c dont copy the well model in computeWellPotentials 2020-12-22 09:25:56 +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