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
Tor Harald Sandve
9924ba48a1
at option to set the time step size for shutting problematic wells
2019-12-18 11:18:18 +01:00
Tor Harald Sandve
6aafdba80d
fix well efficency factor
2019-12-18 10:29:04 +01:00
Tor Harald Sandve
2a732d3c99
add group name to output
2019-12-16 14:28:55 +01:00
Tor Harald Sandve
bec8b33f70
check groups from top
2019-12-16 14:15:02 +01:00
Tor Harald Sandve
4d8d9a7a05
Fix vrep
2019-12-06 09:04:50 +01:00
Tor Harald Sandve
2c9797ec50
Always update group target reduction
2019-12-05 13:08:17 +01:00
Tor Harald Sandve
ad21da87ca
fix after rebase
2019-12-05 13:08:17 +01:00
Tor Harald Sandve
26a01794bf
A group can both be injection and a production group
2019-12-05 13:08:17 +01:00
Tor Harald Sandve
876f5587e5
Add GCONSALE and fix conversion from UDA
2019-12-05 13:08:17 +01:00
Tor Harald Sandve
5dbf0927d3
Add support for GCONSUMP
2019-12-05 13:08:17 +01:00
Tor Harald Sandve
615e4422b9
BUGFIX REIN
2019-12-05 13:08:17 +01:00
Tor Harald Sandve
c930ac9858
fix spelling
2019-12-04 11:39:26 +01:00
Tor Harald Sandve
9e64896054
fix issue when GRUP is used in WCONPROD and WCONINJE and NONE group control
...
Use a bhp control when a well is controlled by a unvalied group control
2019-12-04 11:37:00 +01:00
Tor Harald Sandve
b577f294b5
Add option for throwing for small time steps
2019-12-02 09:56:19 +01:00
Tor Harald Sandve
853a726bb2
fix after rebase
2019-11-27 14:56:10 +01:00
Tor Harald Sandve
cab2f4b41f
use common WellGroupEvent map
2019-11-27 13:12:53 +01:00
Tor Harald Sandve
49b5883ff7
Clean-up output message for group
2019-11-27 13:08:25 +01:00
Tor Harald Sandve
2c84970314
honor group event
2019-11-27 13:08:25 +01:00
Tor Harald Sandve
95f013bd96
fixup review comments. including bug in updateGroupTargetReduction
2019-11-08 14:07:12 +01:00
Tor Harald Sandve
8218f81183
set reservoir rate to zero for shut wells
2019-11-08 11:30:37 +01:00
Tor Harald Sandve
a95459e6ff
copy wellReservoirRates
2019-11-08 10:26:34 +01:00
Tor Harald Sandve
8cece8641e
fix mpi
2019-11-07 14:57:59 +01:00
Tor Harald Sandve
159f36ff85
add openCrossFlowAvoidSingularity functionality for MSW
2019-11-07 14:01:21 +01:00
Tor Harald Sandve
1ab99d07c7
Support VREP with combined gas and water injectors
2019-11-07 11:31:47 +01:00
Tor Harald Sandve
c3423c770c
fix vrep and rein
2019-11-06 13:27:47 +01:00
Tor Harald Sandve
04701580d8
keep current injection and production control
2019-11-06 13:27:47 +01:00
Tor Harald Sandve
008eb17693
Support nupcol
...
Only update groupTargetReduction, group REIN rates and group VREP rates when iteration < nupcol
2019-11-06 10:23:30 +01:00
Tor Harald Sandve
3c89e4ba75
fix group fraction bug
2019-11-05 15:13:47 +01:00
Tor Harald Sandve
485bbfe010
fix group prod
2019-11-05 15:04:26 +01:00
Tor Harald Sandve
9dc536bc82
add computeBhpAtThpLimitInj
2019-11-05 14:18:30 +01:00
Tor Harald Sandve
fb815e78e6
compute resv rates for MSW
2019-11-05 13:11:03 +01:00
Tor Harald Sandve
f23b375c87
Check THP in the end
2019-11-01 14:58:40 +01:00
Tor Harald Sandve
375d936ecd
Support custom vrep and rein group
2019-11-01 14:57:50 +01:00
Tor Harald Sandve
abbff074b4
add support for thp control in MSW
2019-11-01 10:04:44 +01:00
Tor Harald Sandve
9a3ce14885
scale the gas equation, not the control
2019-10-24 10:54:50 +02:00
Tor Harald Sandve
e1f09d89cd
Scale MSW injector
2019-10-24 10:18:16 +02:00
Tor Harald Sandve
775573e3b2
avoid nan in the density calculation
2019-10-22 13:04:29 +02:00
Tor Harald Sandve
0b6899a135
Comment out failing tests
...
The tests fails due to fix in VFPHelpers.hpp that disallow extrapolation higher then 3.0.
2019-10-18 16:08:07 +02:00
Tor Harald Sandve
cd0bf8045d
change control eq tol for standard wells
2019-10-18 16:08:07 +02:00
Tor Harald Sandve
9bd44dc79a
quell some more warnings
2019-10-18 16:08:07 +02:00
Tor Harald Sandve
47dc94f21e
the usual rebase fixup commit
2019-10-18 16:08:07 +02:00