Commit Graph
100 Commits
Author SHA1 Message Date
Vegard Kippe 4555716dd8 Ensure all processors have the same thpres_ array also when we do not restart 2024-11-28 19:22:21 +01:00
Vegard Kippe 4bb50eb1d8 Simply return thpres_ vector as restart vector 2024-11-28 18:40:16 +01:00
Vegard Kippe 2b4e09bc51 Write correct THRESHPR values also from a restart. 2024-11-28 14:44:53 +01:00
Vegard Kippe 1c315b0018 Fix unintentional short-circuit plus a couple of minor nits 2024-11-25 22:26:24 +01:00
Vegard Kippe 74fa148cd7 Support GCONSUMP on multiple levels in the group hierarchy 2024-11-25 22:26:24 +01:00
Vegard Kippe 673d541932 Earlier continue and rename vector 2024-11-20 16:25:38 +01:00
Vegard Kippe e189d56167 Explicit check for inactive wells and throw if trying to initialize a distributed multi-segment well 2024-11-20 15:40:18 +01:00
Vegard Kippe c42f02e802 Do not try to compute initial solution for inactive multi-segment wells 2024-11-19 15:57:49 +01:00
Vegard Kippe 1c22d18771 Restore threshold pressures from restart 2024-11-18 12:59:48 +01:00
Vegard Kippe 7ece35defe Avoid potential segfault due to invalid vector.end() after erase() 2024-11-16 14:34:34 +01:00
Vegard Kippe bcd91601d5 Add LINRAD (hybrid linear-radial) filter cake model 2024-11-06 15:19:20 +01:00
Vegard Kippe 7f6c7aec01 Info message, cmdline option and avoid splitting wells on restart (for now) 2024-10-22 20:29:24 +02:00
Vegard Kippe 729d3c2a59 Use bool, not int, to also add inactive wells to rank 0... 2024-10-21 15:30:50 +02:00
Vegard Kippe 9d9726920b Post-review update - reducing global communication and simplifying 2024-10-16 22:24:01 +02:00
Vegard Kippe 6c4512be12 Fix MPI restart issue (test failures for some oil-water cases) 2024-10-16 22:24:01 +02:00
Vegard Kippe 4bc904d941 Fix RFT output for non-root connections.. 2024-10-16 22:24:01 +02:00
Vegard Kippe f7ac4f8a3c Avoid initializing inactive multi-segment wells + avoid direct MPI call 2024-10-16 22:24:01 +02:00
Vegard Kippe 5191271883 Add inactive wells to all partitions with connections 2024-10-16 22:24:01 +02:00
Vegard Kippe cd26ce5568 Add inactive wells to rank 0 for output 2024-10-16 22:24:00 +02:00
Vegard Kippe 7ee218b1e2 In partitioning, only account for wells that will be active at some point in the simulation. 2024-10-16 22:24:00 +02:00
Vegard Kippe a2882dc0c8 Resetting WINJMULT dampening factors before fixed BHP calculations 2024-10-10 09:25:28 +02:00
Vegard Kippe 5d1b29ac72 Account for param_ move to parent class 2024-10-08 15:49:11 +02:00
Vegard Kippe ac5de96ad4 Add dampening to the injectivity multipliers (WINJMULT) 2024-10-08 15:49:10 +02:00
Vegard Kippe a62a326cfa Removing unnessary arrays and eliminate some code duplication 2024-10-08 11:47:47 +02:00
Vegard Kippe ca9cad3f07 Properly update multipliers after cleaning, and ensure that the cleaning occurs before the multipliers are applied to the well. 2024-10-07 19:35:10 +02:00
Vegard Kippe 136bd93fd6 Fix linear case 2024-10-07 19:35:10 +02:00
Vegard Kippe e19063d957 Fix 'off-by-a-step' error in filter cake cleaning + refactor slightly 2024-10-07 19:35:10 +02:00
Vegard Kippe 60d622fa12 Handle cleaning of filter cake in a more intuitive way, also report actual thickness for radial case 2024-10-07 19:35:10 +02:00
Vegard Kippe 099dabd8a9 Actually update the criterion to use fixed ordering.. 2024-10-04 00:09:04 +02:00
Vegard Kippe 2c2b0bc930 Use the correct rstep for well reports 2024-09-24 16:27:18 +02:00
Vegard Kippe dee9985a41 Update flowexp 2024-09-24 14:26:36 +02:00
Vegard Kippe 5745f92b08 Avoid unused variable warning 2024-09-24 13:00:34 +02:00
Vegard Kippe 6ba9dc086c Support RPTSCHED WELLS=N 2024-09-24 13:00:34 +02:00
Vegard Kippe ca36f5b2a6 Support ALQ in network calculations and avoid adding gas lift of closed wells 2024-09-19 23:43:16 +02:00
Vegard Kippe 18a8b5bb90 Add energy balance tolerances + use standard tolerances as defaults for now 2024-09-16 14:39:33 +02:00
Vegard Kippe 33b72a9722 Rebased to current master. TODO: pvSplit with energy 2024-09-16 14:39:33 +02:00
Vegard Kippe eb869f211f Avoid time step dependent jump in RS after restart 2024-08-28 16:28:51 +02:00
Vegard Kippe 0b6dd93903 Avoid negative time step size after restart (trouble for DRSDT init) 2024-08-28 15:04:15 +02:00
Vegard Kippe 0485bfb47f Set correct episode before initial call to invalidateAndUpdateIntensiveQuantities 2024-08-28 15:04:15 +02:00
Vegard Kippe 8f45cbe4c4 Properly initialize mixing controls after restart. 2024-08-28 15:04:15 +02:00
Vegard Kippe cc08df226e Update after merging #5527 2024-08-28 15:04:15 +02:00
Vegard Kippe 0320a14eed Avoid expensive schedule.getWells() call and also update BlackoilWellModel_impl.hpp to use new signature of updateWellsDefaultALQ 2024-08-15 21:04:04 +02:00
Vegard Kippe 9dc5272ecc Ensure default ALQ is set for all production wells on all processes 2024-08-15 15:11:30 +02:00
Vegard Kippe a078eaacd3 Removing trailing 'p' 2024-07-11 18:15:16 +02:00
Vegard Kippe dd08952967 Update after move of ThreadsPerProcess from Properties to Parameters 2024-07-11 15:55:34 +02:00
Vegard Kippe 14818028f0 Handle empty or invalied OMP_NUM_THREADS by Flow default and warn if a valid value overrides --threads-per-process 2024-07-11 15:52:20 +02:00
Vegard Kippe fae49636cc Addressing review comments (changed assert to throw, put chunked broadcast in private method) 2024-07-09 19:15:50 +02:00
Vegard Kippe 99d5a147b1 Fix broadcast and initialize int_pos properly.. 2024-07-09 15:02:15 +02:00
Vegard Kippe c10695c5d5 Switch to using size_t instead of int for buffer position, and properly account for MPI using int 2024-07-09 13:48:04 +02:00
Vegard Kippe ca1331fe08 Allow GCONPROD item 11-13 to actually take effect. 2024-06-19 10:47:43 +02:00
Vegard Kippe 683dc715e2 Do NOT delete files recursively - causes massive problems if outputdir is not specified.. 2024-06-14 13:36:15 +02:00
Vegard Kippe 78cc10f620 Fix typo 2024-06-03 15:26:16 +02:00
Vegard Kippe b27c83b2fd Tag 'BASIC=0' as allowed in RPTRST 2024-05-06 15:17:08 +02:00
Vegard Kippe b68a55a9b9 Add parameter InputSkipMode to parameterise the behvaviour of the SKIP100 and SKIP300 keywords 2024-05-03 09:28:14 +02:00
Vegard Kippe 91f532c036 Ensure well and accumulated group efficiency factors are applied to the connection energy rates. 2024-04-29 22:52:40 +02:00
Vegard Kippe 6a760f40dd Avoid looking up (non-existing) ALQ value for injectors. 2024-02-22 14:33:39 +01:00
Vegard Kippe 45e63bd498 Readability improvement 2024-02-22 13:03:54 +01:00
Vegard Kippe b14df39503 Update schedule object after it is actually created.. 2024-02-21 21:47:51 +01:00
Vegard Kippe cd1b0f808b Respect low parsing strictness when reprocessing the schedule section after action application. 2024-02-21 17:02:33 +01:00
Vegard Kippe b8b9a3810d Ensure NEXTSTEP is respected also withouth --enbale-tuning=true 2024-02-19 19:15:43 +01:00
Vegard Kippe 31b46b4829 Revert the choice to open history wells at every step, since this may cause some models to be stuck at very short time steps. 2024-01-26 12:05:26 +01:00
Vegard Kippe b7b99a2445 Fixed var names 2023-12-20 15:06:01 +01:00
Vegard Kippe 32634f47d1 Properly check both positive and negative solutions to the connection IPR with flow-dependent skin 2023-12-20 14:20:50 +01:00
Vegard Kippe ab690980de Pick valid rate or use zero flow-dependent skin 2023-12-20 14:20:50 +01:00
Vegard Kippe d252f069e4 Test using rate consistent D-factor transmissibility multipliers 2023-12-20 14:20:50 +01:00
Vegard Kippe fcc3a19a42 Explicit cast to avoid narrowing warning. 2023-12-13 14:34:36 +01:00
Vegard Kippe 62de832e8b Post review update 2023-12-12 09:52:01 +01:00
Vegard Kippe 62ac4dc663 Take default UDQ value from UDQPARAM 2023-12-12 09:52:01 +01:00
Vegard Kippe 15305e467d Allow UDA for WSEGVALV item 4 2023-12-12 09:51:50 +01:00
Vegard Kippe 55067636f4 Ensuring that the UDA is updated every time step, not just only report step. 2023-12-01 19:44:09 +01:00
Vegard Kippe fa6697a5fa Capture reference in lambda 2023-12-01 13:30:48 +01:00
Vegard Kippe 69f82f1104 Allow using UDQ for WCONPROD item 12 (ALQ) 2023-12-01 13:21:34 +01:00
Vegard Kippe 17452e0fc6 Adding const 2023-12-01 09:34:42 +01:00
Vegard Kippe 0acb148ba7 Using std::exception 2023-11-30 16:13:40 +01:00
Vegard Kippe 2294983759 Catch exceptions from well testing (often: inf/nan in MSW matrices). 2023-11-29 09:17:53 +01:00
Vegard Kippe abbcb4b148 Check if a well was closed this step before re-opening in history mode 2023-11-17 17:29:30 +01:00
Vegard Kippe e0d1ff9c66 Always check if wells on historic controls can be opened 2023-11-15 19:04:48 +01:00
Vegard Kippe 194bf9d6af Set SCHEDULE_INVALID_NAME to warning with --parsing-strictness=low 2023-11-10 11:48:18 +01:00
Vegard Kippe 4ce9c41a37 Replacing loop by assignment 2023-11-10 09:01:09 +01:00
Vegard Kippe 36b341e4f6 Adding tests 2023-11-01 15:25:44 +01:00
Vegard Kippe 7c0b44d974 Adding regression tests 2023-11-01 13:36:21 +01:00
Vegard Kippe 14b7f926da Avoid looking up nonexisting nodes.. 2023-11-01 13:36:21 +01:00
Vegard Kippe c9cc261891 Use network pressures from restart 2023-10-30 23:26:35 +01:00
Vegard Kippe 429b312bc0 Re-introducing check for negative reportStepIdx and adding forgotten hasGroup check. 2023-10-27 20:30:48 +02:00
Vegard Kippe f137565bb6 Avoid exception for non-group nodes 2023-10-26 19:35:56 +02:00
Vegard Kippe 5fbf981af8 Output of network pressures based on rates at end of time step 2023-10-26 19:35:56 +02:00
Vegard Kippe 5bb0942a02 Reverting unintended change. 2023-10-16 10:38:08 +02:00
Vegard Kippe 56997655d1 Support computation of network pressures in networks with multiple roots 2023-10-06 18:29:12 +02:00
Vegard Kippe 77bb7aa9cf Let reported pressures (GPR) respect the NETBALAN configuration 2023-10-06 15:15:43 +02:00
Vegard Kippe 389db91839 Slight restructuring/renaming for (possibly) improved clarity. 2023-10-06 15:15:43 +02:00
Vegard Kippe a8b4c25bfb Separate network active and need for rebalance bool + perform check per timestep only. 2023-10-06 15:15:43 +02:00
Vegard Kippe 663c62e366 Avoid iterating network if no network wells are in prediciton mode 2023-10-06 15:15:42 +02:00
Vegard Kippe 563dd8ed49 Ensuring buffers required for BFLOW[I|J|K] summary output are allocated initially even if there is no RPTRST in the solution section. 2023-10-02 18:36:00 +02:00
Vegard Kippe cc39e04180 Addresing review comments 2023-09-18 13:05:12 +02:00
Vegard Kippe c0a741e270 Adding support for the BFLOW[I|J|K] summary vectors. 2023-09-13 09:28:10 +02:00
Vegard Kippe 06cba05a51 Store flows if any of the vectors BFLOWI|J|K are requested 2023-09-13 09:20:07 +02:00
Vegard Kippe 2b45785097 Using std::clamp 2023-09-12 12:52:41 +02:00
Vegard Kippe 4638b3a9be Avoid fraction relaxation factors outside [0,1] in the standard well model. 2023-09-12 00:20:02 +02:00
Vegard Kippe a12f0aaa13 Set GECON closure reason to GROUP, to not open with WTEST option 'E'. 2023-09-08 11:16:11 +02:00
Vegard Kippe dbd1d343e8 Avoid adding/substracting GCONSUMP values per MPI process.. 2023-09-07 14:14:56 +02:00