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
Arne Morten Kvarving
57ef2b63e8
move output of restart FIP values into FIPContainer
2025-02-03 11:03:47 +01:00
Arne Morten Kvarving
9ae656fd58
move assignment of porevolume fip values into FIPContainer
2025-02-03 10:58:38 +01:00
Arne Morten Kvarving
9cc5f11084
move assignment of Co2InWater fip values into FIPContainer
2025-02-03 10:48:45 +01:00
Arne Morten Kvarving
58c1a16299
move assignment of OilGasDistribution fip values into FIPContainer
2025-02-03 10:14:01 +01:00
Arne Morten Kvarving
be86ef16c5
OutputBlackoilModule: move updateInplaceVolumesReservoir to FIPContainer
2025-02-03 10:00:00 +01:00
Arne Morten Kvarving
3ffd6594f2
OutputBlackoilModule: move updateInplaceVolumesSurface to FIPContainer
2025-02-03 09:53:35 +01:00
Arne Morten Kvarving
63042c25ee
OutputBlackoilModule: move gas-water fip assignment code to FIPContainer
2025-02-03 09:53:32 +01:00
Bård Skaflestad
2459bb74b2
Merge pull request #5940 from bska/remove-unused-header
...
Remove Unused FMT Header
2025-02-03 09:34:22 +01:00
Arne Morten Kvarving
efbda68f89
move assignment of Co2InGas fip values into FIPContainer
2025-02-03 09:03:48 +01:00
Halvor M Nilsen
0fd2623e05
Remove Unused FMT Header
...
Makes using the header from an installed location harder than it
needs to be.
2025-01-31 17:15:32 +01:00
Arne Morten Kvarving
50f3d7d342
add a FIPContainer class
...
this is a container for the FIP map and associated code
in OutputBlackoilModule.
start by adding allocation functionality. for now the container
only owns a reference to the map
2025-01-31 15:50:53 +01:00
Bård Skaflestad
1858b493aa
Merge pull request #5938 from akva2/fix_pyaction_tests
...
fixed: pyaction tests for super build
2025-01-31 14:53:31 +01:00
Arne Morten Kvarving
b0c1a63537
fixed: pyaction tests for super build
...
properly set python path in tests to find the opm_embedded module
2025-01-31 14:38:11 +01:00
Kai Bao
4fc7545e98
Merge pull request #5926 from GitPaean/fixing_exp_comp_running
...
hacking to register the parameter ForceDisableFluidInPlaceOutput
2025-01-31 14:33:33 +01:00
Bård Skaflestad
1f81756a8d
Merge pull request #5608 from akva2/explicit_ctor_tabulated1d_function
...
adjust to constructor being marked explicit
2025-01-31 12:06:01 +01:00
Bård Skaflestad
6bdbb6abdf
Merge pull request #5934 from bska/install-more-headers
...
Install More Headers
2025-01-31 09:00:36 +01:00
Bård Skaflestad
e0e089d820
Merge pull request #5936 from akva2/eclstring_inplace
...
GenericOutputBlackoilModule: use EclString from Inplace
2025-01-31 09:00:12 +01:00
Arne Morten Kvarving
a0d371c615
GenericOutputBlackoilModule: use EclString from Inplace
2025-01-31 08:32:27 +01:00
Bård Skaflestad
38ade97e86
Install More Headers
...
Needed for Main::runStatic<>() to be usable out-of-tree.
2025-01-30 18:20:19 +01:00
Bård Skaflestad
1df6079007
Merge pull request #5928 from bska/main-dispatch-dynamic-tu
...
Move Dynamic Dispatch Function to Separate TU
2025-01-30 13:53:30 +01:00
Bård Skaflestad
1bf755f5e8
Move Dynamic Dispatch Function to Separate TU
...
This moves about 300 lines of code out of Main.hpp and, especially,
moves the <flow/flow_*.hpp> include statements as well. This, in
turn, makes Main::runStatic<>() usable for out-of-tree consumers.
2025-01-30 13:18:02 +01:00
Bård Skaflestad
caf1723d8f
Merge pull request #5930 from bska/add-missing-headers
...
Add Missing Headers to Python Simulator
2025-01-30 12:29:52 +01:00
Bård Skaflestad
54663f96a4
Add Missing Headers to Python Simulator
...
These were originally obtained through transitive includes,
especially from Main.hpp, but that's not a stable condition if the
set of transitive includes changes.
2025-01-30 12:17:39 +01:00
Bård Skaflestad
c708e28176
Merge pull request #5931 from bska/install-ttag-flow-problem-tpfa
...
Install Type Tag for TPFA Flow Problems
2025-01-30 12:12:16 +01:00
Bård Skaflestad
a0f907b59b
Install Type Tag for TPFA Flow Problems
...
Makes this accessible for out-of-tree uses.
2025-01-30 11:35:19 +01:00
Stein Krogstad
d6fbbf64f8
Merge branch 'OPM:master' into pass-on-current-well-state-to-potential-calculations
2025-01-30 08:45:12 +01:00
Bård Skaflestad
aa5c52ee56
Merge pull request #5922 from bska/property-tree-get-children-as-vector
...
Add Property Tree Array Retrieval Mechanism
2025-01-29 17:01:07 +01:00
Bård Skaflestad
03ac2cbd93
Add Property Tree Array Retrieval Mechanism
...
This commit adds a new member function
template <typename T>
std::optional<std::vector<T>>
get_child_items_as_vector(const std::string& child) const;
which retrieves an array-type property value from a property tree.
Initially defined for 'int' and 'double', but could be extended to
'std::string', 'float', or other element types as needed.
2025-01-29 15:15:49 +01:00
Bård Skaflestad
2fe71ce294
Merge pull request #5927 from bska/property-tree-std-sizet
...
Implement Property Tree Put/Get for std::size_t
2025-01-29 14:54:49 +01:00
Kai Bao
dd9a7db39e
register ForceDisableFluidInPlaceOutput for flowexp_comp
...
FluidSystem<0> at this stage due to how it is implemented
2025-01-29 14:48:17 +01:00