Commit Graph
35 Commits
Author SHA1 Message Date
Kristian Bendiksen 38c691d9a4 Refactor: Update usage of caf::VecIjk. 2025-11-14 14:44:21 +01:00
Kristian Bendiksen d137281066 Refactor CSV parser: modernize parser to use std::expected. 2025-10-17 07:52:42 +02:00
Magne Sjaastad a73999323a Move defines into separate file 2025-10-03 08:37:24 +02:00
Kristian Bendiksen 160cb71168 Python: Update well log import API to accept measured depth and multiple channels
- Updated Python API to accept measured_depth list and channel_data dictionary
- Modified C++ GRPC implementation to handle CSV-formatted channel mappings
- Replaced single values parameter with dictionary of channels
- Added comprehensive validation for all input parameters
- Updated parameter name from channel_keys_json to channel_keys_csv
- Enhanced tests to cover 16 different scenarios including edge cases
- Updated example to demonstrate new dictionary-based API functionality
2025-09-04 09:04:56 +02:00
Kristian Bendiksen 8089739add Python: Add API for importing well log data
Implement comprehensive Python API for importing well log data into ResInsight
well paths using lists of float values.

Core implementation:
- RigImportedWellLogData: Data storage class inheriting from RigWellLogData
- RimImportedWellLog: Scriptable model class for Python GRPC interface
- RimcWellPath_addWellLogInternal: GRPC method using key-value store for data transfer
- well_path.add_well_log(): Python API with validation and error handling

Features:
- Simple API: well_path.add_well_log(name='LogName', values=[1.0, 2.0, 3.0])
- Comprehensive input validation and type checking
- Efficient data transfer via key-value store mechanism
- Proper error handling with cleanup on failure
- Integration with existing well path functionality

Testing:
- 10 comprehensive unit tests covering all functionality
- Validation of input types, error conditions, and edge cases
- Integration testing with well path creation

Usage example included in PythonExamples directory demonstrating
import of gamma ray, porosity, and permeability log data.
2025-09-04 09:04:56 +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
Kristian Bendiksen 0f55899ba9 #12462 Well Log Import: add support for RMS well format. 2025-07-01 08:39:18 +02:00
Magne Sjaastad 380f559f0d #12329 Simplify interface for log messages 2025-04-08 14:26:04 +02:00
Kristian Bendiksen cfcbc03794 #12305 Well Target Mapping: add filter by view
Fixes #12305.
2025-04-02 17:19:57 +02:00
Kristian Bendiksen 712253624a Well Target Mapping: Use horizontal permeability for filtering. 2025-04-02 17:19:57 +02:00
Kristian Bendiksen 9a7c23eb02 Well Target Mapping: produce more results, and fix crashes when SGAS is missing. 2025-04-02 17:19:57 +02:00
Kristian Bendiksen 3f98c28356 Well Target Mapping: handle missing data better. 2025-04-02 17:19:57 +02:00
Kristian Bendiksen a244fafc87 #12320 Well Target Mapping: add saturation filter. 2025-04-02 17:19:57 +02:00
Kristian Bendiksen fa9066de06 Janitor: add result name for "PORV". 2025-03-31 14:20:43 +02:00
Kristian Bendiksen 3bfe0c1f63 #12304 Well Target Mapping: Add support for mobile volume results. 2025-03-31 14:20:43 +02:00
Kristian Bendiksen 516c06bfd2 #12303 Well Target Mapping: Add "Surface Volumes" option for FIPOIL/FIPGAS. 2025-03-26 15:26:14 +01:00
Kristian Bendiksen 7f8aead2c6 #12303 Well Target Mapping: Rename result vector to "WELL_TARGET_NUM". 2025-03-26 15:26:14 +01:00
Kristian Bendiksen 11a7bdaa90 #12303 Well Target Mapping: Rename "Max Cluster" to "Maximum number of targets" 2025-03-26 15:26:14 +01:00
Kristian Bendiksen 39eb7070dc #12303 Well Target Mapping: remove cell volume filter. 2025-03-26 15:26:14 +01:00
Kristian Bendiksen f91a655fda #12281 Well Target Mapping: disable cluster filter on invalid address. 2025-03-26 12:43:27 +01:00
Kristian Bendiksen e2feb46641 #12281 Rename Well Target Generator to Well Target Mapping. 2025-03-26 12:43:27 +01:00
Kristian Bendiksen fd8421b0de #12281 Well Target Mapping: Reduce logging. 2025-03-26 12:43:27 +01:00
jonjenssen 540c8c3b36 Use NNC info for well target generation and streamlines (#12279)
* Add support for NNC when growing clusters
* Trace streamlines through NNCs, too
2025-03-21 13:00:49 +01:00
Kristian Bendiksen 4ccf67beb5 #12215 Well target candidates: Adjust user interface for single case.
Fixes #12215.
2025-03-19 14:59:41 +01:00
Kristian Bendiksen 28f0d69df7 Refactor: use const ref for input vector. 2025-03-12 13:35:35 +01:00
Kristian Bendiksen a222b8fdcb #1479 RigWellPath: improve api to force pairs of points and measured depths.
Refactored RigWellPath to ensure that a well path points and measured depths
always come pairs, as their usage often relies on both being present.

Fixes #1479.
2025-03-12 13:35:05 +01:00
Magne Sjaastad ca0179d118 Remove obsolete CMake statements
When using modern CMake and Qt6 we can remove obsolete source_group() and QT_MOC_HEADERS
2025-01-28 07:01:42 +01:00
Magne Sjaastad c4c4078e09 #12017 Add caching of well target result data
Write data to welltargetdata.GRDECL in a subfolder of the project. Import this data when project is load. The data in this cache is owerwritten when the project is saved.
2025-01-02 08:06:50 +01:00
Kristian Bendiksen d1aec2f1cb #12005 Well Target Candidates: Move ensemble grid under generator in Project Tree 2024-12-23 10:02:19 +01:00
Kristian Bendiksen 1abd0afe6e Well Target Candidates: misc improvements.
Improvements:
 * Well Target Candidates: Add filtering by binary result
 * Well Target Candidates: make result grid cell count configurable.
 * Well Target Candidates: Improve ui ordering.
 * Well Target Candidates: compute probability, and simplify vector names.
 * Optimization: Avoid expensive unintended duplication of data
2024-12-20 10:25:15 +01:00
Kristian Bendiksen fb90844901 Generate well target candidates statistics for ensembles. 2024-12-18 12:28:20 +01:00
Magne Sjaastad 275526a64a Remove unused includes
Remove unused includes, mostly AppEnum.h
2024-11-04 09:54:23 +01:00
jonjenssen da683bed9e Move Rig well related things to subfolder and update include statements 2024-10-31 15:08:59 +01:00