Tor Harald Sandve
a204cc4b3c
add more co2 tests to ctest
2021-03-23 10:54:54 +01:00
Tor Harald Sandve
4cccd7302d
remove unnecessary diffusion specializations
2021-03-23 09:48:43 +01:00
Tor Harald Sandve
3a65a7ba22
reset target from wconprod and wconinje
2021-03-23 09:23:35 +01:00
Tor Harald Sandve
78d351676f
only update guide rates at the beginning of a timestep
2021-03-19 11:09:14 +01:00
Tor Harald Sandve
61de5689bd
cleanup: add and remove comments
2021-03-18 14:56:45 +01:00
Tor Harald Sandve
58fa3eaf31
replace asserts with OPM_DEFLOG_THROW
2021-03-18 11:58:05 +01:00
Tor Harald Sandve
1582d92d06
Change minimum timestep size to 1e-12
...
the unit is days for field and metric and hours for lab
the purpose is to shut down "dead" simulations
2021-03-18 10:45:26 +01:00
Tor Harald Sandve
6bac5da27c
adapt to changes in the guiderate interface
2021-03-16 15:56:31 +01:00
Tor Harald Sandve
f4ac7f555b
Add support for explicit guiderate for injection groups
...
With this commit the guiderate logic used for the production groups is also used for injectors
This allows for setting guiderates explicit at different group levels
Only RATE, NETV and VOID guiderate type is suppored.
2021-03-16 15:56:31 +01:00
Tor Harald Sandve
858856adec
update solution for WAG injectors
2021-03-09 13:37:03 +01:00
Tor Harald Sandve
0c66a38adf
adapt to changes in opm-models
2021-03-09 09:44:53 +01:00
Tor Harald Sandve
a098d76c19
fix issue when switching from injection to/from production
2021-03-08 11:13:34 +01:00
Tor Harald Sandve
f861188d60
make sure wells has valid controls
2021-03-08 08:44:55 +01:00
Tor Harald Sandve
4f55c25607
add support for POTN in WECON
2021-03-03 10:31:57 +01:00
Tor Harald Sandve
09ff71ae31
only log changes of group controls on rank 0
2021-02-26 14:16:38 +01:00
Tor Harald Sandve
ffe51aa346
return 0 diffusivity if diffusion in disabled
2021-02-25 15:22:01 +01:00
Tor Harald Sandve
48ad676010
only update diffusivity when DIFFUSIVE is in the deck
2021-02-25 11:14:12 +01:00
Tor Harald Sandve
1627e421d7
communicate group data before well testing
2021-02-25 11:08:55 +01:00
Tor Harald Sandve
c23094b299
make another throw tread safe
2021-02-24 15:54:02 +01:00
Tor Harald Sandve
60534d66b6
FOR TESTING. Enable Diffusion by default
2021-02-24 12:56:38 +01:00
Tor Harald Sandve
0902568fa5
Add CO2STORE test to ctest
2021-02-24 09:56:04 +01:00
Tor Harald Sandve
9aa4c415ad
Implement convective dissolution rate
...
The convective DRSDT is activated with DRSDTCON
2021-02-23 12:45:50 +01:00
Tor Harald Sandve
4ca3c2af72
clean-up commented code
2021-02-18 13:49:35 +01:00
Tor Harald Sandve
5deb410bd5
clean-up in flow_bo_diffusion.cpp and flow_co2.cpp
2021-02-16 12:23:36 +01:00
Tor Harald Sandve
361de71c96
add optional flow_bo_diffusion simulator for testing
2021-02-16 12:21:58 +01:00
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