Commit Graph
655 Commits
Author SHA1 Message Date
Kristian Bendiksen 7519eee8ae Extract method for generating faults. 2025-10-24 19:33:35 +02:00
JJ 991e693f4d WELSPECS and COMPDAT export improvements (#13068)
* Generate keywords directly.
* Make sure ensemble settings in duplicated job is reset.
* Use same sort as file export
2025-10-24 11:10:25 +02:00
Magne Sjaastad ea06cdc291 Avoid small allocation on every read of data from resdata 2025-10-23 16:14:12 +02:00
Kristian Bendiksen b329318e05 Replace more keywords. 2025-10-22 16:20:50 +02:00
Kristian Bendiksen ebb8d62eb6 Replace values in deck file values. 2025-10-22 16:20:50 +02:00
Kristian Bendiksen 2392a6dfa1 Refactor: extract method for getting sector data. 2025-10-22 16:20:50 +02:00
Kristian Bendiksen c38819bac7 CSV Parser: include line number in error message. 2025-10-17 07:52:42 +02:00
Kristian Bendiksen 2b974abfd1 Refactor CSV Parser: Modernize casts. 2025-10-17 07:52:42 +02:00
Kristian Bendiksen 4a4941f759 CSV Parser: use cell separator when determining layout type. 2025-10-17 07:52:42 +02:00
Kristian Bendiksen dddb206dc4 Refactor CSV parser: Modernize enum. 2025-10-17 07:52:42 +02:00
Kristian Bendiksen 7ab1c62b30 Refactor CSV parser: Improve error handling in openDataStream. 2025-10-17 07:52:42 +02:00
Kristian Bendiksen c6da9ad8a8 Refactor CSV parser: Extract method for parsing date time. 2025-10-17 07:52:42 +02:00
Kristian Bendiksen c17736a232 Refactor CSV parser: Refactor to use lambda. 2025-10-17 07:52:42 +02:00
Kristian Bendiksen b29db6e62d Refactor CSV parser: Remove pointers in api. 2025-10-17 07:52:42 +02:00
Kristian Bendiksen 75ca1b5216 Refactor CSV parser: Modernize memory management. 2025-10-17 07:52:42 +02:00
Kristian Bendiksen d137281066 Refactor CSV parser: modernize parser to use std::expected. 2025-10-17 07:52:42 +02:00
Kristian Bendiksen 5373484615 #12950 Sector Model: Add BCPROP keyword. 2025-10-13 14:14:44 +02:00
Kristian Bendiksen dd689aec50 #12950 Sector Model: Add BCCON keyword. 2025-10-13 14:14:44 +02:00
jonjenssen 6fc8e826cf Add missing time record to dates keyword 2025-10-10 12:10:53 +02:00
Magne Sjaastad 6de145ef50 #12996 Resdata: Prefer UNRST over FUNRST 2025-10-08 16:03:56 +02:00
magnesj 5d26f53472 Fixes by clang-tidy 2025-10-08 07:48:37 +02:00
JJ 11942e377f Opm Flow: Support for adding more dates to data file (#12991)
* Add support for appending dates keyword at end of file
* Make sure well group from job is used
* Increase well groups in welldims in case a new group is made
* GUI cleanup
2025-10-07 18:21:15 +02:00
Magne Sjaastad db5e9f479c #12989 Always evaluate calculated expressions before file data 2025-10-07 15:49:07 +02:00
Magne Sjaastad e98bc867e4 #12927 Add optional time threshold before creating ESMRY
When checking timestamp for ESMRY vs SMSPEC, allow ESMRY to be written before SMSPEC within a given limit in time difference.
2025-10-07 12:18:03 +02:00
jonjenssen a6da2ab30c Allow setting well group for new well in job, with list of existing groups 2025-10-03 08:17:17 +02:00
JJ e91ec80f89 Opm Flow Simulations: use editors for wconprod/wconinje parameters (#12969)
* Add field editors for open well keywords.
* Clean up keyword handling a bit
2025-10-02 14:52:19 +02:00
Kristian Bendiksen 8d3ff3aa41 Use keywords from opm-common 2025-10-01 13:26:32 +02:00
Kristian Bendiksen ee8a512e66 Refactor: extract duplicated code. 2025-10-01 13:26:32 +02:00
Kristian Bendiksen c956a91376 Deck File: Add api for adding OPERATER keyword. 2025-10-01 13:26:32 +02:00
Kristian Bendiksen 33b2d14a6b Deck File: Add api for including files. 2025-10-01 13:26:32 +02:00
Kristian Bendiksen 7de242ffb0 Deck File: Add api for adding regdims. 2025-10-01 13:26:32 +02:00
Magne Sjaastad fffb3f2672 Adjust warning message for radial grids 2025-09-30 15:42:10 +02:00
Magne Sjaastad 61c4f5f453 #12953 Always check date of all realizations
The date stamp of UNSMRY is compared to date stamp of ESMRY. This takes some time, and a performance improvement was seen when this operation was done only on a single representative realization of an ensemble. This is not stable, as a single realization might crash or have no new data compared to other realizations.

This feature is removed.
2025-09-30 14:13:15 +02:00
Bård Skaflestad c9c24f4d1a Include <ctime> for Std::Time_T
Fixes build on Ubuntu 24.04 LTS.
2025-09-29 17:32:53 +02:00
JJ 727ba200ba Opm Flow Job DATES updates (#12952)
* Split dates keywords with multiple records into single record keywords
Add support for setting environment when running opm flow

* Date handling improvements

* Clean up date and position handling a bit

* Add support for setting a stop date for the simulation

* Use Opm::ParserKeywords keywordName for all keywords

* Re-enable msw support (mark as experimental)

* Bump version to dev-03
2025-09-29 16:57:21 +02:00
Magne Sjaastad 6b7d93e2da Refactor import of radial grid
* Add radial display mode to preferences
* Adds isRadial to grid
* Improve mesh lines for radial cells
For temporary radial LGRs, show mesh outline based on the aggregated geometry of all LGRs of the parent cell clicked on.
* Improve warning message
* Modify cell selection in pick event handler
2025-09-29 11:46:28 +02:00
Magne Sjaastad b07e49258e Improve radial grid import
* Remove unused includes
* Use designated initializers struct members
* Add warning for active cell opm grid reader
* Moves radial grid import to file readers
* Adapts cell range filter labels for radial grids
2025-09-26 10:26:43 +02:00
JJ af64e541f4 Opm flow job - well updates for field testing (#12946)
* Opm flow job improvements:
-  Automatic adjustment of WELLDIMS
-  Enable provided test file to run
-  Improve job progress

* Bump dev version
2025-09-24 16:46:48 +02:00
Magne Sjaastad 6ef5db2530 Support radial grids as cylindrical cells
* Add minimum angular count to system preferences
* Refactors grid view updates and radial grid handling
* Improves radial grid handling and LGR creation
2025-09-24 09:46:00 +02:00
Kristian Bendiksen 5133ae620b Refactor: simplify API for configuring cell counts in IJK.
The old API was based on "grid points", but it was always used to
specify number of cells in each direction.
2025-09-18 11:46:57 +02:00
Kristian Bendiksen a308eb6419 #12894 Stimplan model export: make sure MD is always increasing.
The numerical precision in the output was lowered in #11556 since Stimplan
was not correctly handling the high precision (requested by Nan).
That change leads to the MD not always increasing (which is expected by
Stimplan). Added another tweak to the MD values to make sure it increases
in the precision range that will be written to file.

The original issue asked for improved precision in the output,
but that is not a viable option this Stimplan does not use all
of the decimal precision.

Fixes #12894.
2025-09-12 15:13:50 +02:00
Magne SjaastadandKristian Bendiksen 5269ba665f Export zcorn/coord to grdecl.
Changes:
- Refactors data writing to allow configurable row length
- Adds documentation describing the Eclipse grid format (COORD and ZCORN)

Co-Authored-By: Kristian Bendiksen <kristian.bendiksen@gmail.com>
2025-09-12 08:38:43 +02:00
Kristian Bendiksen e18a252cd8 Fix incorrect sector export in refinement. 2025-09-12 08:10:21 +02:00
Kristian Bendiksen 10182e99a7 Refactor: Change RigGridBase::cellCornerVertices to return std::array
Refactored RigGridBase::cellCornerVertices to return std::array<cvf::Vec3d, 8> by value instead of taking a reference to std::array as an output parameter. This change improves code readability and leverages modern C++ return value optimizations.

Updated all call sites across the codebase to reflect the new function signature.
2025-09-03 14:21:19 +02:00
Kristian Bendiksen da69eef72b #1584 Replace cvf::vec3d[8] with std::array<cvf::vec3d, 8> 2025-09-03 14:21:19 +02:00
Magne Sjaastad 7b34d7f103 Compute measured depth if not present on file (#12872)
* Refactors RigWellPathGeometryTools to namespace
* Refactors measured depth calculation to utility.
* Calculates MD if missing from well path data
2025-09-03 12:59:15 +02:00
Magne Sjaastad 76257dac0c Always initialize addresses for HDF5 summary reader 2025-09-01 11:15:26 +02:00
Magne Sjaastad 4135a743fe Release preparations
* Adds a bounds check on the node index to prevent accessing invalid memory locations.
This prevents potential crashes caused by out-of-bounds access when retrieving summary variable values.
* Updates warning message for incomplete deltas
* Plot based on a single realization from a file set ensemble is not restored correctly on project load
* Populate result addresses if no addresses are present
* Adds CNV_ (convergence) result name
* Avoid include of RiaResultNames.h in header file
2025-08-27 14:22:11 +02:00
Magne Sjaastad 8dff7b46c9 Improves robustness for curve merging operations
- Ensures a more robust size multiplier calculation by validating the weighted mean and preventing division by zero.
- Addresses a potential division by zero during curve interpolation when the X values are very close, ensuring a more robust and accurate result.
2025-08-22 06:47:07 +02:00
Magne Sjaastad e455011199 #12808 Improves ensemble data handling and error reporting
Enhances the robustness of ensemble data processing by:

- Displaying a tooltip when data is missing for a realization.
- Checks if an enhanced summary file exists before attempting to open it.
- Refines the creation of the realization filter to accurately represent the range of available data.
2025-08-22 06:47:07 +02:00