Commit Graph

21327 Commits

Author SHA1 Message Date
Bård Skaflestad
75cb43ec9f
Merge pull request #5801 from bska/geomech
Add Infrastructure for Geomechanical Analysis
2025-02-06 12:41:30 +01:00
Halvor M Nilsen
9e235def1c Add Way of Introducing New Well Connections at Runtime
This commit adds a new member function

    void WellInterfaceGeneric<>::addPerforation()

which is, initially, intended as a way of introducing new well
connections arising from hydraulic fracturing.  We expect more work
in this area.
2025-02-06 11:34:44 +01:00
Halvor M Nilsen
646d7c0a04 Output More Geo-Mechanical Quantities to Summary/Restart
In particular, this commit defines multiple additional 3D stress
quantities in the restart file as well as some cell level stress
vectors in the summary file.
2025-02-06 11:34:44 +01:00
Kjetil Olsen Lye
5644da85e4 Fixes for NVCC older than 12.5.1 2025-02-06 10:52:49 +01:00
Kai Bao
a799f463fb
Merge pull request #5866 from vkip/fully_supported_validation
Separate keyword validation for fully supported keywords
2025-02-06 10:06:46 +01:00
Markus Blatt
ba619095a6
Merge pull request #5957 from bska/make-more-operations-accessible
Make Simulator Operations Generally Accessible
2025-02-05 16:53:23 +01:00
Halvor M Nilsen
f2e846a14f Make Action Processing Independently Accessible
This commit splits the action processing of member function

    FlowProblemBlackoil::endTimeStep()

out into a separate member function

    void FlowProblemBlackoil::endStepApplyAction()

for use by client code.  The initial use case is to have an
action-like operation that supports adding new connections to wells
in parts of the formation undergoing hydraulic fracturing.
2025-02-05 16:11:49 +01:00
Halvor M Nilsen
a212a1b82e Make Simulator Update Operation Public
This is an independently useful operation that is applicable outside
of just the ACTIONX processing.
2025-02-05 16:11:49 +01:00
Bård Skaflestad
7952ba0d0d
Merge pull request #5953 from bska/vector-matrix-output-helpers
Add Helper Functions for Outputting Vectors/Matrices Separately
2025-02-05 15:55:04 +01:00
Halvor M Nilsen
08e39f7479 Add Helper Functions for Outputting Vectors/Matrices Separately
While here, also add wrapper functions for outputting systems of
linear equations arising in geo-mechanical applications.
2025-02-05 13:48:10 +01:00
Tobias Meyer Andersen
381182dedd
Merge pull request #5956 from kjetilly/gpu_memory_copy
Added copy functions from GPU smart pointers
2025-02-05 13:33:46 +01:00
Kai Bao
f46bcd43b4
Merge pull request #5945 from vkip/limit_haaland_f
Limit relative roughness in Haaland friction factor calculation
2025-02-05 12:45:31 +01:00
Kjetil Olsen Lye
e9cf89fd23 Added copy functions from GPU smart pointers 2025-02-05 11:29:22 +01:00
Svenn Tveit
21321231a7 Simplify macro calls 2025-02-05 09:27:02 +01:00
Svenn Tveit
20ca154278 Change to new compositional fluid system 2025-02-05 08:35:18 +01:00
Svenn Tveit
4be8a5c673 Use fluid system phase indices 2025-02-05 08:14:55 +01:00
Svenn Tveit
f59834d3e6 Accommodate for two or three phases in compositional simulations. 2025-02-05 08:14:55 +01:00
Svenn Tveit
2f0443947d Two- and three-phase compositional simulators.
Choice of simulator is based on if WATER is present in RUNSPEC.
2025-02-05 08:14:55 +01:00
Svenn Tveit
fb403d05ae Changed to three phase using new GenericOilGasWaterFluidSystem 2025-02-05 08:14:55 +01:00
Svenn Tveit
df6bdbe700 Added dummy water phase to compositional simulator.
Note: compositional is now always three phase!
2025-02-05 08:14:55 +01:00
Kjetil Olsen Lye
51edfd6f95
Merge pull request #5955 from multitalentloes/gpu_tools_fix
fix include error and rename test_smart_pointers
2025-02-04 17:10:38 +01:00
Tobias Meyer Andersen
f993fe9361 fix include error, rename test_smart_pointers.cu
This pr fixes an include error caused by a bad
rebase. I also change the name of the test for
gpu smart pointers to start with "gpu" to make it
easier to run all gpu tests at once
2025-02-04 16:03:05 +01:00
Tobias Meyer Andersen
2babeb848d
Merge pull request #5951 from kjetilly/cuda_resources
Added utility class to hold a GPU resource (stream, event, graph, etc).
2025-02-04 15:26:33 +01:00
Kjetil Olsen Lye
c7e2ad39c2 Added utility class to hold a GPU resource (stream, event, graph, etc). 2025-02-04 14:53:31 +01:00
Bård Skaflestad
b95490fabc
Merge pull request #5847 from akva2/blackoilwellmodel_nldd
changed: move NLDD BlackoilWellModel code to separate class
2025-02-04 14:46:50 +01:00
Tobias Meyer Andersen
4172deb815
Merge pull request #5946 from kjetilly/smart_pointers
Smart pointers for GPU memory
2025-02-04 14:45:59 +01:00
Vegard Kippe
8d37ca9035 Limit roughness during input handling instead, but keep a check here. 2025-02-04 14:22:34 +01:00
Bård Skaflestad
795aa1392d
Merge pull request #5947 from bska/support-ptree-put-bool
Support Inserting Bools Into Property Trees
2025-02-04 13:23:47 +01:00
Kjetil Olsen Lye
db440df072 Added convenience functions for smart pointers on GPU and a view to pointers. 2025-02-04 10:26:48 +01:00
Arne Morten Kvarving
22dadf5928 component indices are now int
inactive components are represented using negative values in the
index(traits) class so we should not be using unsigned values
in the fluidsystem

while at it make activeToCanonicalComponentIndex usable at compile time
2025-02-04 10:15:35 +01:00
Halvor M Nilsen
bc227ab784 Support Inserting Bools Into Property Trees
While here, also add a simple unit test that as_vector<T>() returns
nullopt for non-existing property nodes.
2025-02-04 10:02:14 +01:00
Bård Skaflestad
c8b5732bd6
Merge pull request #5949 from akva2/fix_flows_compiler_warning
Fix compiler warning in FLOWS code
2025-02-04 09:55:41 +01:00
Vegard Kippe
32876479fd Slightly larger safety margin to avoid numerical issues. 2025-02-04 00:43:42 +01:00
Vegard Kippe
86e47384dd Limit relative roughness to avoid singularity in Haaland friction factor calculations 2025-02-03 23:40:44 +01:00
Bård Skaflestad
f5ebea3505
Merge pull request #5942 from bska/expose-cornercells-and-overlaplayers
Expose CornerCells and OverlapLayers Load Balancing Settings
2025-02-03 17:02:56 +01:00
Arne Morten Kvarving
a9f9c7d193 fix warning 2025-02-03 15:53:46 +01:00
Halvor M Nilsen
cfbb4a9573 Expose CornerCells and OverlapLayers Load Balancing Settings
We introduce two new run-time parameters,

  AddCorners (--add-corners=BOOL, default 'false')
  NumOverlap (--num-overlap=INT, default '1')

that are passed on to the grid's load-balancing engine as the
'addCornerCells' and 'overlapLayers' settings.
2025-02-03 15:31:47 +01:00
Arne Morten Kvarving
45d27f446c make all canonicalToActiveComponentIndex variants constexpr 2025-02-03 15:27:29 +01:00
Bård Skaflestad
d2f1b576bd
Merge pull request #5944 from akva2/quell_false_oob_warning
fixed: use if constexpr to avoid compiler warning
2025-02-03 14:55:29 +01:00
Arne Morten Kvarving
1671d060c8 fixed: use if constexpr to avoid compiler warning
while we are never actually here without an index,
compiler cannot know since the enum is a runtime argument
2025-02-03 14:15:06 +01:00
Bård Skaflestad
fca5899b43
Merge pull request #5941 from bska/add-precond-for-interior-sizes
Add Preconditions to Avoid Incorrect Interior Sizes
2025-02-03 13:19:28 +01:00
Halvor M Nilsen
4c386b0e45 Add Preconditions to Avoid Incorrect Interior Sizes 2025-02-03 12:15:46 +01:00
Bård Skaflestad
cd5a036663
Merge pull request #5939 from akva2/output_refactor_fip
OutputBlackoilModule: add a container for the FIP data
2025-02-03 12:08:00 +01:00
Arne Morten Kvarving
01a5641a3b FIPContainer: change to using has() 2025-02-03 11:30:22 +01:00
Arne Morten Kvarving
e78ce63b4e FIPContainer: take ownership of map 2025-02-03 11:30:00 +01:00
Arne Morten Kvarving
651ecf7223 FIPContainer: add accessor for phase vectors 2025-02-03 11:29:59 +01:00
Arne Morten Kvarving
51efe81015 FIPContainer: add helper to check if there are Co2InWater entries 2025-02-03 11:29:59 +01:00
Arne Morten Kvarving
d79e0fd8c2 FIPContainer: add helper to check if there are Co2InGas entries 2025-02-03 11:29:57 +01:00
Arne Morten Kvarving
f816995329 FIPContainer: add query function for phase presence 2025-02-03 11:20:05 +01:00
Kai Bao
236d09c7db
Merge pull request #5929 from steink/pass-on-current-well-state-to-potential-calculations
Pass on current well state to (implicit) potential calculations
2025-02-03 11:09:31 +01:00