Commit Graph
100 Commits
Author SHA1 Message Date
Tor Harald Sandve 05caaa8946 GSF WSF diagnostics 2023-02-24 09:41:25 +01:00
Tor Harald Sandve 5028e0fbf1 Add gaswater energy simulator 2023-02-23 09:25:50 +01:00
Tor Harald Sandve d679ecd5a8 Add WCD, GCDI, GCDM, WIPG, WIPL summary for F and R 2023-02-23 09:18:27 +01:00
Tor Harald Sandve 755966810a stricter well tolerance for failed restart and parallel tests 2023-02-22 09:43:06 +01:00
Tor Harald Sandve 054d832bff compute CVIR and CVPR 2023-02-22 08:54:47 +01:00
Tor Harald Sandve be2b021167 Fix default alq injector 2023-02-15 13:42:50 +01:00
Tor Harald Sandve 5356dbbaa8 FIX VREF for groups with both gas and water injectors 2023-02-15 13:35:12 +01:00
Tor Harald Sandve ec2983df43 come code cleaning in ecloutputblackoilmodule 2023-01-16 08:53:57 +01:00
Tor Harald Sandve 0a1210a392 output gas pressure for gas-water case 2023-01-13 10:47:23 +01:00
Tor Harald Sandve 8d37ded703 Suppot EQUIL + WATER + GAS 2023-01-13 10:16:48 +01:00
Tor Harald Sandve f2ea6ce844 Add support for FIP* 2023-01-11 14:39:23 +01:00
Tor Harald Sandve ceb8d996aa Fix GPMAINT for groups without control
If GPMAINT is used the group does not need a valid control object
2023-01-10 15:59:21 +01:00
Tor Harald Sandve 6c60bad193 fix combination of vapwat and disgas 2023-01-02 12:16:35 +01:00
Tor Harald Sandve 5854b8a7a1 Support gas dissolution in water (Rsw)
- adapt to interface change in waterPvt()
- add gas + water + disgasw simulator

Note
- MSW is not supported
- EQUIL initialization is not supported
2022-12-21 13:13:52 +01:00
Tor Harald Sandve 17fcae23ad Start using code within BURN_RESV_BRIDGES
clamp rs/rv in rate converter between 0.0 and rs/rv max
2022-12-20 13:49:29 +01:00
Tor Harald Sandve 60d0116080 we now use group_info in stage 2 and need to make sure its communicated 2022-12-07 15:43:25 +01:00
Tor Harald Sandve bdb82c2f3d Rename PrimaryVarsMeaning{Water/Gas/Pressure/Brine} to {Water/Gas/Pressure/Brine}Meaning 2022-11-25 13:03:26 +01:00
Tor Harald Sandve 22d27bdf5f Adapt to change of enum to enum class for primary variable meaning 2022-11-25 10:53:48 +01:00
Tor Harald Sandve a190668800 adapt to rename of waterSaturationIdx -> waterSwitchIdx 2022-11-25 10:53:48 +01:00
Tor Harald Sandve 0c6d29a352 adapt to primary variable refactoring 2022-11-25 10:53:48 +01:00
Tor Harald Sandve e6a6ec3c11 change rel tol to coarse rel tol in the parallel regression testing 2022-11-22 16:11:19 +01:00
Tor Harald Sandve f9ab7e6b07 remove derivative in thermal flux for injectors 2022-11-22 09:40:39 +01:00
Tor Harald Sandve c45d90650e fix checking of group target
- use the actual delta rate in checkOilTarget etc
- add check for total gas rate = gas rate + alq
2022-11-21 09:17:24 +01:00
Tor Harald Sandve 7d7b2803a5 renaming and adding more comments based on review 2022-11-21 08:58:49 +01:00
Tor Harald Sandve 9c8f778495 Compute the group rates that takes into account limitation on the sublevels 2022-11-21 08:58:49 +01:00
Tor Harald Sandve 1a09608263 Fix removeSurplus alq
Add water rate target limit
Add the gradient to the checkXXXTarget so that surplus alq is removed
until it would go below the target. I.e. the group still want to produce it  target
2022-11-21 08:58:49 +01:00
Tor Harald Sandve cd09c130b3 pass group name to getRateWithGroupLimit to avoid checking for that 2022-11-21 08:58:49 +01:00
Tor Harald Sandve 76dc8255fc adapt to changes in temperature location in opm-common 2022-11-11 13:19:38 +01:00
Tor Harald Sandve 7553e22726 remove derivative in thermal flux for injectors 2022-11-10 12:57:21 +01:00
Tor Harald Sandve 2af2df3a92 implement dirichlet boundary conditions 2022-11-04 12:12:08 +01:00
Tor Harald Sandve e33d7c6561 fix group switch logging 2022-11-03 09:40:58 +01:00
Tor Harald Sandve 72c78c5eb1 fix 2p case wvfpexp 2022-10-24 15:25:30 +02:00
Tor Harald Sandve 7b90d35f21 fixup from PR comments 2022-10-18 12:58:07 +02:00
Tor Harald Sandve 9538db85b1 set thp msw 2022-10-18 10:55:17 +02:00
Tor Harald Sandve 14428120d9 fix rebase 2022-10-18 10:55:17 +02:00
Tor Harald Sandve e1d36f32b8 add missing wellGroupTargetsViolated in ++ operator 2022-10-18 10:55:17 +02:00
Tor Harald Sandve 756c9bad21 set ws.thp = thp_limit for wells under THP control 2022-10-18 10:55:17 +02:00
Tor Harald Sandve 47329b30b9 always check individual controls 2022-10-18 10:55:17 +02:00
Tor Harald Sandve d25dc4e795 check controls in getWellConvergence 2022-10-18 10:55:17 +02:00
Tor Harald Sandve 74eb0d048f Improve convergence for newly opened wells with thp control 2022-10-17 15:32:27 +02:00
Tor Harald Sandve 2ca3c25f4f set alq before trying to solve the equation during well testing 2022-10-10 08:14:42 +02:00
Tor Harald Sandve 12e4bb6e05 only output final change of well control 2022-10-04 09:09:46 +02:00
Tor Harald Sandve 8dbf919f7e loose test criterion for glift case 2022-10-03 15:14:11 +02:00
Tor Harald Sandve ebb9fd636c remove cutoff for extrapolation of VFP 2022-10-03 10:26:08 +02:00
Tor Harald Sandve 54e0496203 check group constraints from top 2022-09-30 13:09:42 +02:00
Tor Harald Sandve d21921073b avoid oscilation between ORAT and LRAT when they are equal 2022-09-29 11:10:43 +02:00
Tor Harald Sandve b072cc1d5d Allow for gaslift for wells that violate thp limit but are not allowed to switch 2022-09-16 10:49:03 +02:00
Tor Harald Sandve 683ed0df1f remove WVFPEXP from unsupported keywords 2022-09-13 09:30:04 +02:00
Tor Harald Sandve 7571215f44 some cleanup 2022-09-13 08:33:51 +02:00
Tor Harald Sandve 001d53858e remove computeBhpAtThpLimitProd() output from .DBG file 2022-09-12 09:29:37 +02:00
Tor Harald Sandve d2fc8a3d5e remove the logic that skips checking the group if it already changed 2022-09-09 10:58:36 +02:00
Tor Harald Sandve 702d824135 cleanup group switching output to terminal 2022-09-09 10:58:36 +02:00
Tor Harald Sandve 3ad04d8326 fix analytical aquifers + energy 2022-09-02 08:57:55 +02:00
Tor Harald Sandve 3e27c23222 scale energy residual to have the same relative order as the mass balance residuals 2022-08-29 15:05:01 +02:00
Tor Harald Sandve 9b7ba49495 Simplify and fix check for violation of GRUP for multiple level of guiderates 2022-08-25 16:09:53 +02:00
Tor Harald Sandve 0f969dd7a5 check ipr for wells prevented to change to thp 2022-08-19 10:48:56 +02:00
Tor Harald Sandve 7a8eed6a6c adapt to renaming in opm-common 2022-08-19 10:33:19 +02:00
Tor Harald Sandve 96222f8afb dont use explicit vfp lookup for newly opened wells 2022-08-19 10:33:19 +02:00
Tor Harald Sandve 9364d4c54b Add option for wvfpexp item 2 plus minor fixes 2022-08-19 10:33:19 +02:00
Tor Harald Sandve e875849497 Adapt test cases and vfpprint 2022-08-19 10:33:19 +02:00
Tor Harald Sandve b1b23a57de Add option for explicit vfp lookup for problmatic wells 2022-08-19 10:33:19 +02:00
Tor Harald Sandve eb25ce1b99 clean-up comments and code 2022-08-18 08:27:38 +02:00
Tor Harald Sandve 262aead46c fix issue with summing over ghost cells twice 2022-08-17 10:27:39 +02:00
Tor Harald Sandve ceac9e5ad8 disable drift compensation for cases without source terms 2022-08-17 10:21:25 +02:00
Tor Harald Sandve b3f62589f2 tune restart test to make it pass 2022-08-17 10:21:25 +02:00
Tor Harald Sandve 1f54e90f33 Restrict drift compensation by CNV tolerance 2022-08-17 10:21:25 +02:00
Tor Harald Sandve 4fd0c24661 output drsdtcon values to restart files 2022-07-21 15:41:30 +02:00
Tor Harald Sandve cf1abb086f remove msw(ms) from regulariztion parameter 2022-06-29 15:39:51 +02:00
Tor Harald Sandve eef455106d regularize equation for std wells 2022-06-29 12:47:44 +02:00
Tor Harald Sandve c910c8dbac add diffusion test case to ctest 2022-06-24 10:18:21 +02:00
Tor Harald Sandve 1f876d1800 implement rsrv item 10 WCONINJE
MSW not supported yet
2022-06-08 13:55:29 +02:00
Tor Harald Sandve 46c8aa3306 fix hydrostatic correction for branched wells in IPR 2022-06-08 12:29:05 +02:00
Tor Harald Sandve 3adaa1b987 fix component/phase mixup 2022-06-07 14:14:13 +02:00
Tor Harald Sandve e965dac3ee Only flag a bhp producer/injector operable if the sum of IPR are negative/positive 2022-06-07 10:47:22 +02:00
Tor Harald Sandve 6cc71375b4 stopped wells where cross flow is not allowed are not added to the container 2022-06-07 10:01:02 +02:00
Tor Harald Sandve 6f410e7b03 Steer bhp towards the solution with the highest production rate 2022-05-25 15:30:36 +02:00
Tor Harald Sandve dfe0982286 reset regularize_ before starting the inner iterations 2022-05-03 08:25:26 +02:00
Tor Harald Sandve 6bf90c9ebe change default reg factor for MSW to 100 2022-05-02 09:41:43 +02:00
Tor Harald Sandve 967c538da8 output pcow, pcog 2022-04-29 15:35:16 +02:00
Tor Harald Sandve 52fca6c91d use a relaxed (but not too relaxed) well tolerance when iter>6
also shut unsolvable wells during iterations as default

Note however that getWellConvergence return false if a well is unsolvable
i.e. it will cut the timestep and redo the iteration if the well is unsolvable
and only shut it completly if the time step is below the
MinTimeStepBeforeShuttingProblematicWellsInDays (default 0.01 days)
2022-04-26 10:55:22 +02:00
Tor Harald Sandve bd145913e8 use alternative init for wells with all rates less than eps 2022-04-26 09:32:18 +02:00
Tor Harald Sandve d00a2e2341 fix trivial group target 2022-04-25 08:10:19 +02:00
Tor Harald Sandve 92175cf094 Fix STOP in combination with inoperable/unsolvable 2022-04-22 09:15:09 +02:00
Tor Harald Sandve c8bef3bcd5 only check if wells has negative potentials if check_well_operabilty=true(default) 2022-04-22 08:19:33 +02:00
Tor Harald Sandve fd6cf1ccbd regularize MSW equation when iter > strict_inner_iter 2022-04-21 08:44:50 +02:00
Tor Harald Sandve 9d18f164db fix saturated density in DRSDTCON 2022-04-21 08:35:07 +02:00
Tor Harald Sandve a1d11540a6 tighten approximated solution bhpFromThpLimit from 3 to 0.1 bar 2022-04-19 14:21:20 +02:00
Tor Harald Sandve af95a3f22b fix density in initialization for case without DISGAS 2022-04-12 11:31:17 +02:00
Tor Harald Sandve edf8786a58 avoid throw for nan residuals instead return well as unconverged 2022-04-11 09:52:25 +02:00
Tor Harald Sandve e501a84958 support item 4 wvfpexp 2022-04-08 08:43:13 +02:00
Tor Harald Sandve e2e0ec9dd9 fix to --shut-unsolvable-wells=true option 2022-04-05 14:42:27 +02:00
Tor Harald Sandve fba9046201 Some more clean-up based on review 2022-04-04 11:37:31 +02:00
Tor Harald Sandve 69ffed06de Address comments from review
1) Add debug messages
2) Fix bug of missing else in the code
2022-04-04 08:24:32 +02:00
Tor Harald Sandve 5b53fcd8a6 guard against d = 0 2022-04-04 08:24:32 +02:00
Tor Harald Sandve 2e91d2f353 Do not throw when d = 0 instead continue with rs/rv = 0 2022-04-04 08:24:32 +02:00
Tor Harald Sandve 8909b259d0 don't shut wells due to ratio when rate is negative 2022-03-28 10:50:15 +02:00
Tor Harald Sandve 71acf4e056 Double check econ potential limits
Sometimes the potentials are inaccurate as a safty measure we
also check that the rates are violated.
The rates are supposed to be less or equal to the potentials.
2022-03-28 10:50:15 +02:00
Tor Harald Sandve f4d81e33f1 Avoid switching to thp control if it results in higher rates 2022-03-25 09:12:15 +01:00
Tor Harald Sandve 32dfdc6198 improve initialization msw new wells 2022-03-24 09:53:46 +01:00
Tor Harald Sandve 7d5a0a74eb Handle case where bhp target is violated 2022-03-21 09:52:41 +01:00