Commit Graph

2362 Commits

Author SHA1 Message Date
Kristian Bendiksen
3f9979823e #11334 Fix cvf::Viewport assert triggered for small contour map/2d intersection
Size of the overlay is could become negative, and would overflow for small views.

Fixes #11334.
2024-04-15 10:33:56 +02:00
Magne Sjaastad
3e2957bc12 #11337 Summary import: Make sure ESMRY includes restart history 2024-04-15 10:33:56 +02:00
Magne Sjaastad
b9d9d53964 #11355 Use category if result name starts with FIP or ends with NUM 2024-04-15 10:33:56 +02:00
Magne Sjaastad
44e32fcff3 Always recreate ESMRY if file exists and is older than SMSPEC 2024-04-15 10:33:56 +02:00
Magne Sjaastad
de4a5bba27 Always check date for H5 files, and recreate if required 2024-04-15 10:33:56 +02:00
Magne Sjaastad
274d4fc0db Early return if data already is available
If not checking if data is available, data is read from file and appended to result vector.
2024-04-15 10:33:56 +02:00
Magne Sjaastad
d6a1db843f Create the static scalar results once
addStaticScalarResult will clear already computed data, causing calculations to be triggered once more
2024-04-15 10:33:56 +02:00
Magne Sjaastad
caaba8b2af Check if scalar result index is valid 2024-04-15 10:33:56 +02:00
Magne Sjaastad
65a2d9e7b9 Fix calculation for active cell values
Always allocate result data for active cells in destination case. Make sure that active cells is used for both population of expression variables and filtering of data. Improved naming to make it clear that we always work with active cell data.
2024-04-15 10:33:56 +02:00
Kristian Bendiksen
eeecc41ad1 Fix typo. 2024-04-10 13:34:41 +02:00
Kristian Bendiksen
c402142e58 Refactor: extract duplicated code. 2024-04-10 13:34:41 +02:00
Kristian Bendiksen
eb02e9e0a5 #11332 2D Intersection Views: Improve automatic depth resolution. 2024-04-10 13:34:41 +02:00
Kristian Bendiksen
7836181ad1 Refactor: use lambda instead of define. 2024-04-10 13:34:41 +02:00
Kristian Bendiksen
67a9e14417 CSV Well Log: change sampling rate from 1.0 meter to 0.1 meter. 2024-04-10 13:05:34 +02:00
jonjenssen
25361ad796
Allow polygon line filter with only one point (#11345)
Allow polygon line filter with only one point, for both eclipse and geomech
2024-04-10 10:47:06 +02:00
jonjenssen
bbc279d587 Improve cell filter collection menu 2024-04-10 10:43:49 +02:00
Magne Sjaastad
8b1b9acd84 #11337 Summary import: Make sure ESMRY includes restart history 2024-04-08 15:57:10 +02:00
Kristian Bendiksen
3f3b5a621d #11334 Fix cvf::Viewport assert triggered for small contour map/2d intersection
Size of the overlay is could become negative, and would overflow for small views.

Fixes #11334.
2024-04-08 14:41:46 +02:00
Kristian Bendiksen
85b6ea397a Interpolation: Add check for array size for extrapolation. 2024-04-05 14:39:46 +02:00
Kristian Bendiksen
efe37bb063 Well Log CSV: fix interpolation of CSV data.
The TVD measurements from the well path were used to interpolate the CSV data.
The typically well path is too coarsely sampled which would lead unwanted
smoothing of the data.

Fixed by resampling the well path to a one meter sampling interval.
2024-04-05 14:39:46 +02:00
Kristian Bendiksen
bebf59c309 Interpolation: Fix "trend" extrapolation for value outside of range on high end. 2024-04-05 14:39:46 +02:00
Kristian Bendiksen
c074033dc2 Refactor: Fix misspelling of "synchronize". 2024-04-05 13:55:09 +02:00
Kristian Bendiksen
873282b339 Refactor: avoid local variable only used in range-based for loops 2024-04-04 10:24:21 +02:00
Kristian Bendiksen
e862bd259f Refactor: modernize for loops. 2024-04-04 10:24:21 +02:00
Kristian Bendiksen
be3d06c549 Refactor: improve api for views and oil fields. 2024-04-04 10:24:21 +02:00
Magne Sjaastad
ef637e3053
Move stream operator from AppEnum header
This PR will reduce the compile time of code using AppEnum. 

* AppEnum: Move QTextStream operator to avoid include of QTextStream
* Avoid use of iostream in cafAssert
rator to avoid include of QTextStream

Include file profiling shows that include of QTextStream is a performance issue. Create a non-templated base class for AppEnum. Implement the QTextStream operator for this interface.
2024-03-25 15:14:04 +01:00
Magne Sjaastad
b57767d895
Add feature to set parent well 2024-03-25 10:19:31 +01:00
Magne Sjaastad
5d2ac1f84d Add object and keywords for 2024.03 2024-03-22 08:46:28 +01:00
Magne Sjaastad
eaa96a042b Fix detection of ROFF file type 2024-03-22 08:46:28 +01:00
Magne Sjaastad
61254ba1b2 Summary: Set default value true for display of sub nodes
Set display of summary nodes to true. This will ensure that the display of vectors in "Data Sources" for a single summary case will be updated when a calculated curve is added or removed.
2024-03-22 08:46:28 +01:00
Magne Sjaastad
78759feb15 Update GUI editor if a new summary vector is set created
Make sure the user interface is updated when summary data is set from Python using summary_case.set_summary_values
2024-03-22 08:46:28 +01:00
Magne Sjaastad
c1b44e0d51 Add license info for spdlog 2024-03-22 08:46:28 +01:00
Magne Sjaastad
d95c4c780c Fix regression causing hidden objects to be visible
Hide objects that by mistake was make visible in ce513be
2024-03-21 09:32:09 +01:00
Magne Sjaastad
672b7a2a65 Make sure all editors are updated after source stepping 2024-03-21 09:32:09 +01:00
Magne Sjaastad
7190d781d0 Grid Case Statistics: Show well data from first realization 2024-03-21 09:32:09 +01:00
Magne Sjaastad
2e456a6f9b Add font size to text content frame 2024-03-21 07:11:21 +01:00
Magne Sjaastad
785871cae3 Add realization filtering based on text string
Add unit tests and support min max range specifications. Example string "-5, 5, 8-10, 12-"
2024-03-21 07:11:21 +01:00
Magne Sjaastad
84875bef4f Fix source stepping on calculated vectors
Make sure the calculation ID is set when a calculated vector is selected in the toolbar
2024-03-19 14:33:29 +01:00
Magne Sjaastad
a248be13cc Always rebuild meta data for summary cases
Rebuild the UI representation when needed
2024-03-19 14:33:29 +01:00
Magne Sjaastad
d4f97d8415 Avoid hardcoded requirements for headers of RFT pressure files
Parsing "PSIA FEET" did not work, as "BARSA METRES" was the only supported unit. Keep special handling of header and date, and skip all other lines containing text or comment.
2024-03-19 14:22:45 +01:00
jonjenssen
1a21d2e5de Fix incorrect position for data nodes. 2024-03-18 17:42:03 +01:00
jonjenssen
2001c94a39
Polygon updates (#11298)
* Make menus similar for polygon and polygonInView
* Crash fix: Iterator might be invalidated by erase, reorder operations.
* Update pick editor after reload
* Do not enable edit if polygon is read only
* Make sure filter and intersection geometry is updated after a reload
* Make sure other pick editors are updated when polygon in view is changed
2024-03-18 14:31:06 +01:00
Magne Sjaastad
a880a42752
Summary performance improvements
* Check flag before rebuilding summary address nodes
* Performance: Use vector instead of set and map locally in thread
* Performance: Skip looking for restart summary filenames for opm-common
* Move adding of case realization parameters to OpenMP loop
* Add unit test for file path operations
* Performance: Avoid using cdUp() function when splitting path into strings
2024-03-18 11:46:43 +01:00
Kristian Bendiksen
6a5c6ee545 Transmissibility equations: guard against NaN in very small intersections. 2024-03-15 15:11:53 +01:00
Kristian Bendiksen
515213694c Refactor: better isnan in assert, and reduce variable lifetime. 2024-03-15 15:11:53 +01:00
Kristian Bendiksen
e014bfd283 Fix incorrect line breaks. 2024-03-15 12:33:57 +01:00
magnesj
b9c5ff816a Fixes by clang-tidy 2024-03-13 08:51:01 +01:00
jonjenssen
cb1e062e99
Exported coordinate fix (#11283)
Make sure exported well path coordinates use local coord system when needed.
2024-03-12 16:57:16 +01:00
Jon Jenssen
f411b5fabe Do not crash if no valid points are found when importing a surface .dat file due to i.e. incorrect file format (comma separated, not space separated) 2024-03-12 13:01:35 +01:00
jonjenssen
fb5758a363
Support both AND and OR operations when combining range and index filters (#11275)
Support both AND and OR operations when combining range and index filters
2024-03-11 20:02:47 +01:00
jonjenssen
2386ad8985
Generate model based on an origin in the fault to improve calculation accuracy (#11267)
Generate model based on an origin in the fault to improve calculation accuracy.
2024-03-08 15:50:05 +01:00
Magne Sjaastad
bfda6519db
Cleanup includes
Use new tools in Visual Studio to help cleaning up includes and remove redundant includes.
2024-03-07 19:45:43 +01:00
Magne Sjaastad
9f96cb9694 #11258 Grid Calculation: Unintended release of result data memory
Avoid release of memory when working on a single case
2024-03-05 12:40:15 +01:00
Jon Jenssen
406cd087e9 Use local coordinates in generated model by default 2024-03-05 11:47:16 +01:00
jonjenssen
bcc4f7c901 Add more decimals to node coordinates to improve accuracy 2024-03-04 23:47:27 +01:00
Kristian Bendiksen
a2fa2a0e77 WBS: Avoid empty text in legends on reload. 2024-03-04 23:47:14 +01:00
Kristian Bendiksen
b8f9beab91 WBS: Compute and show FG_MK_* only in reservoir (not shale). 2024-03-04 23:47:14 +01:00
Magne Sjaastad
1217236d73 #11248 Remove caching of simulation well coordinates to avoid state handling bugs 2024-03-04 12:27:56 +01:00
Magne Sjaastad
3689cccae7 Add operations on polygon : Duplicate, exportCsv, exportPol and simplify
SimplfyPolygon applies an operation on polygon to reduce the number of points in a way that the shape of the polygon is conserved.
2024-03-04 11:24:42 +01:00
Magne Sjaastad
5217ab5c8b Use signal to notify listeners when coordinates of a polygon changes 2024-03-04 11:24:42 +01:00
magnesj
5d640b91d2 Fixes by clang-tidy 2024-03-02 09:10:54 +01:00
Magne Sjaastad
818c5c0f9c
Add polygon file readers and make sure UI items are in sync
* Add polygon reader for POL file format
* Add CSV import
* Add helper function to create tag with color and text
* Show polygon color as tag, allow color edit by clicking on tag
* Support optional header in csv file
* Add Reload on polygon file
* Show warning icon if no polygons
* Improve logging text
* Do not show file polygon in view if no polygons are imported
* Use appendMenuItems
* Set default polygon color to orange
* Enter edit state when creating a new polygon
* Fix missing UI text in menu builder
2024-03-01 14:59:14 +01:00
Kristian Bendiksen
04b14cf52a WBS: Compute and show SH_MK_* only in reservoir (not shale). 2024-02-29 10:47:12 +01:00
Kristian Bendiksen
b0ade5d318 WBS Plot: Fix disappearing curve names for disabled curves. 2024-02-29 10:47:12 +01:00
Kristian Bendiksen
8ea017da3c WBS: Make PP data from CSV more pink.
Goal is to differentiate from existing PP results.
2024-02-29 10:47:12 +01:00
Kristian Bendiksen
2f3a20c73c WBS: Fix crash when importing CSV into existing WBS. 2024-02-29 10:47:12 +01:00
Jon Jenssen
b33d117784 Show measurement in static geomech view, too 2024-02-28 14:51:27 +01:00
Magne Sjaastad
be1a274280 Use consistent scaling factor for gas rates in field units
Use fieldGasToOilEquivalent = 1000.0 / 5614.63;
2024-02-28 11:00:20 +01:00
jonjenssen
86c33c1b46
Fault activation: node adjustments along fault (#11235)
Make sure same thickness vectors and fault lines are used for both parts.
2024-02-27 17:05:48 +01:00
Magne Sjaastad
a0ecdf47a5
Show git SHA for command line parameter --version 2024-02-27 12:10:19 +01:00
Magne Sjaastad
672fbe177b
Improve summary calculation performance
* Only reload calculation data
* Make sure performance is good when a calculated object is added or changed
- avoid recreation of summary file readers
- delete all nodes in address tree representing calculated curves
- build address nodes for calculated curves
2024-02-26 13:55:41 +01:00
Magne Sjaastad
28d281e1d6
Use polygon as data source for intersection
- Use polygon as data source for intersection
- Add padlock icon
- Show padlock icon on read only polygons
- Add Fwk function appendMenuItems() to make it possible to define context menu content in a PdmObject
- Context menu "Create Polygon Intersection"
- Updates to make visualization consistent with object and object collection enabled state
2024-02-25 09:21:48 +01:00
jonjenssen
09151ec6af Use S5 for top, fault and base surfaces.
Add expansion material parameter (requires updated XML)
2024-02-24 02:53:14 +01:00
Magne Sjaastad
6fe997b3c9 Add and use caf::PdmUiPushButtonEditor::configureEditorLabelHidden 2024-02-23 08:47:52 +01:00
Magne Sjaastad
a3d520e26e
Use project polygons from polygon cell filter
* Use RimPolygonInView to edit locally defined polygon
* Add scaling to polygon in view
* Move polygon line visualization to RimGridView
* Rename to polygonInViewCollection
* Show appearance for local polygon
2024-02-22 15:13:29 +01:00
Kristian Bendiksen
055c0d4c8c #11198 Fix result info for POR-Bar normalized by hydrostatic pressure.
Fixes #11198.
Fixes #10565.
2024-02-19 19:00:42 +01:00
jonjenssen
9ac4b38cae Import faults when using omp common file reader, too 2024-02-19 14:44:47 +01:00
Magne Sjaastad
8fe82423ae Display polygon project items if RiaApplication::enableDevelopmentFeatures() is defined 2024-02-16 15:51:19 +01:00
Magne Sjaastad
16896212d4 Cleanup obsolete code 2024-02-16 15:51:19 +01:00
Magne Sjaastad
5fdf30d124 Add polygon classes 2024-02-16 15:51:19 +01:00
Magne Sjaastad
573a8f78cf Update bounding box of parts in polyline part manager
The part visualization was missing in some cases due to an invalid bounding box
2024-02-16 15:51:19 +01:00
Magne Sjaastad
dc1e675b37 Move findActiveTargetsAroundInsertionPoint to base class 2024-02-16 15:51:19 +01:00
Magne Sjaastad
33dcd55561 #11206 Guard assert when picking in a zoomed scene 2024-02-16 12:12:17 +01:00
Jon Jenssen
5162ae467c Fix data access crash when no temp is available
Change element node order
2024-02-15 17:54:08 +01:00
Magne Sjaastad
44617ae105 #11069 RFT segment topology
The segment symbol is displayed once per segment. Previous code used segment start as symbol location. Add support for selecting the location for the segment indicator, either start, mid or end.

When reading segment property values, always use segment end as the curve is plotted using step left.
2024-02-15 08:38:54 +01:00
Jon Jenssen
a4c75bab1f Merge branch 'dev' of https://github.com/OPM/ResInsight into dev 2024-02-14 18:11:42 +01:00
Jon Jenssen
fc2df17380 Fix variable name 2024-02-14 18:11:35 +01:00
Kristian Bendiksen
d8b1e643e0 Fault Reactivation: Improve temperature data access.
New approach: find the top reservoir and compute gradient of temperature change
from sea bed. Values from Eclipse grid is used when in reservoir.
2024-02-14 15:16:47 +01:00
Kristian Bendiksen
85753568b6 WBS Plot: Improve initial placement of curve, and add better default colors. 2024-02-14 15:16:47 +01:00
Magne Sjaastad
8fe385adcf
Create binary artifacts for Linux
* Bundle Qt binaries and create artifacts on Linux 
* Add qt.conf for Linux
* Remove install target for unit test
2024-02-13 09:06:38 +01:00
jonjenssen
0fd4ec6d0d Add option to flip node order for both parts
Use data node coordinates to decide element sets
2024-02-13 02:29:29 +01:00
jonjenssen
336dc575db
Fault Reactivation: Update element sets (#11191)
* Update element sets based on active cells
* Bonus: Fix viewer crash
2024-02-12 14:52:15 +01:00
Magne Sjaastad
fa8d8e3d05
CMake adjustments after unit test refactoring
* TARGET_RUNTIME_DLLS requires CMake 3.21
* Hide compiiler warnings in Visual Studio
2024-02-12 14:33:46 +01:00
jonjenssen
5391179e16
Add separate target for unit tests for easier test access. Remove unit tests from ResInsight application. (#11184)
Clean up cmake configuration a bit, and pull down gtest when needed, no longer use a thirdparty subfolder
Add a ResInsight-tests target to run the unit tests
2024-02-11 20:04:04 +01:00
Kristian Bendiksen
5a3894b804 Fault reactivation: Improve POR-Bar extraction. 2024-02-09 12:39:43 +01:00
Kristian Bendiksen
5037473f5c Fault Reactivation: Use computed pore pressure for over and underburden. 2024-02-09 12:39:43 +01:00
Magne Sjaastad
4db04c76a2 Add missing include seen on VS 17.8.0 2024-02-07 10:07:18 +01:00
Magne Sjaastad
163d54fb24 Comparison View: Fix wrong horizontal location when dragging starts
Use localPos instead of windowPos
2024-02-07 10:07:18 +01:00
Magne Sjaastad
8e13d6c528 Use modern OpenGL Qt widget
Use cvfqt::OpenGLWidget and make required changes
- move code from paintEvent to paintGL to make grabFrambuffer work
- remove obsolete sharedWidget
- implement onWidgetOpenGLReady and initialize rendering in this function as OpenGL capabilities is required
- simplify snapshotImage to use grabFramebuffer

Fix missing include
2024-02-07 10:07:18 +01:00
Magne Sjaastad
6ce9af1148 Disconnect comparison view in destructor of RimEclipseResultCase
In debug build on Windows, a crash in the destructor of Rim3dView happens when the comparison view is set to null.
2024-02-07 10:07:18 +01:00
Magne Sjaastad
ce513be638 Remove all use of .uiCapability()->setUiTreeHidden( true ); 2024-02-05 10:15:36 +01:00
Magne Sjaastad
01a082f9fc #11161 Change default tree visibility state for childField and childArrayField 2024-02-05 10:15:36 +01:00
Magne Sjaastad
e33d18cd26 Hide scrollbar if the visible range covers the complete available range 2024-02-02 10:27:20 +01:00
Magne Sjaastad
66df2faa43 Make sure cumulative plot has some spacing to the right 2024-02-02 10:27:20 +01:00
Magne Sjaastad
4ee9af96c3 Well Allocation: Show legend below pie chart 2024-02-02 10:27:20 +01:00
Magne Sjaastad
883622c71d #11148: Set default name to Accumulated Flow Chart 2024-02-02 10:27:20 +01:00
Magne Sjaastad
4dd43a14a0 #11147: Initialize well allocation plot with better data
If plot is empty, initialize well allocation plot with case, first producer and last available time step
Make sure that all flow diagnostics plots are visible at all times.
2024-02-02 10:27:20 +01:00
Magne Sjaastad
e2e441c1a0 Add RigEclipseCaseDataTools 2024-02-02 10:27:20 +01:00
Magne Sjaastad
5c92cf1511 #11077 Create result values for formations only when required 2024-02-02 10:27:20 +01:00
Magne Sjaastad
57cb3c0a0b #11141 Improve curve and plot title for calculated summary curves
Remove obsolete special handling of calculated curves
2024-02-02 10:27:20 +01:00
Magne Sjaastad
06766b3650 Add option to Preferences to flush file loggers when a signal is triggered 2024-02-02 08:30:30 +01:00
Kristian Bendiksen
e8e376ddb9 Fault reactivation: use values from Eclipse grid for stress.
No longer snapping to the fake well path along the border between the parts.
2024-02-02 08:22:05 +01:00
Kristian Bendiksen
89f90ee9a9 Fault reactivation: use values from GeoMech grid for stress.
No longer snapping to the fake well path along the border between the parts.
2024-02-02 08:22:05 +01:00
Kristian Bendiksen
9fea0853fd Fault reactivation: Fix temperature extraction. 2024-02-02 08:22:05 +01:00
jonjenssen
4ce449e155 Fix fault reactivation grid generation crash 2024-02-02 01:27:11 +01:00
Magne Sjaastad
d661ed4758 Fix computation of bounding box main grid
Calculation of the bounding box for main grid used to be on demand. This was changed in a previous commit. The computation of bounding box is now done first.

The regression was introduced in 5151717743
2024-02-01 11:51:27 +01:00
Magne Sjaastad
661840f425 Always compute bounding box of main grid and use OpenMP 2024-01-31 14:10:15 +01:00
Magne Sjaastad
5151717743 #11088 Use non-optimized version for old projects to compute active cells BB
The performance to compute geometry BB for active cells has improved. The original code also set displayModelOffset based on the BB of active cells. To make sure that existing project files produce identically the the same, the non-optimized version is used in this case.
2024-01-31 12:43:55 +01:00
Magne Sjaastad
111eeb64b7 #11144 Make sure multi select of wells and a calculated curve works as expected 2024-01-30 17:13:16 +01:00
Magne Sjaastad
2e7afeb58b #11094 Make sure no window is maximized before tiling 2024-01-30 14:34:33 +01:00
Magne Sjaastad
d0b5c8d9cb #11134 Export completions: Call ensureReservoirCaseIsOpen before export
This change will enable export without any open views.
2024-01-30 14:34:33 +01:00
Magne Sjaastad
91fdd7efe1 #11132 Guard crash when accessing simulation well data 2024-01-30 14:34:33 +01:00
Kristian Bendiksen
a8c719b289 #10663 WBS Plot: Import well log from CSV file.
Also compute SH_MK_MIN/EXP/MAX and FG_MK_MIN/EXP results.
2024-01-29 15:05:08 +01:00
Magne Sjaastad
6805c95962 #10948 Make sure variants of GLIT is put in correct category
Add explicit handling of FGLIT, WGLIT and GGLIT
2024-01-29 08:57:29 +01:00
jonjenssen
2c0ebfdbfe Add node set for fault zone boundary nodes 2024-01-27 00:38:48 +01:00
jonjenssen
2864ac7466 Extend reservoir element set to active cells in under/overburden
Fix fault extension if both sides start or end at same depth
2024-01-27 00:38:48 +01:00
Magne Sjaastad
7d601ac067 #11109 Improve visualization of MSW with valve branches
Increase default segment threshold to 4
Add an optional setting to override the default value
Use this threshold to merge short branches into parent branch
2024-01-26 09:32:42 +01:00
Magne Sjaastad
85672f5ef5 #10136 Reset zoom by double-click in 3D view 2024-01-26 09:32:42 +01:00
Magne Sjaastad
6922ba22b0
Improve reload and replace of cases
* Move code to from features to helper classes
* Ask user if replace case should also happen for the associated grid or summary file
2024-01-25 10:41:57 +01:00
jonjenssen
cd0a56c924
Fault Reactivation: grid improvements (#11105)
Grid generator cleanup
2024-01-24 18:28:32 +01:00
jonjenssen
8831a8dcc7 Update stress source selection
Clean up UI a bit
2024-01-22 20:39:07 +01:00
Magne Sjaastad
8a3a3aef7e Fix crash when using grid case group 2024-01-22 17:37:15 +01:00
Magne Sjaastad
a090992f5a Refactor use of grid dimensions 2024-01-22 14:52:49 +01:00
Magne Sjaastad
833a0e8584 Performance: Cellcount functions are used in many loops, and must be as fast as possible
cellCountIJK was computed based on the value of griPointDimensions. These converstion turned up during profiling. Change implementation to have cellcount as a member variable instead of being computed every time.
2024-01-22 14:52:49 +01:00
Magne Sjaastad
663c3f31b9 Use the top and bottom layer of active cells to compute the geometry bounding box 2024-01-22 14:52:49 +01:00
Magne Sjaastad
80fdd1da74 Return pair of vectors and rename 2024-01-22 14:52:49 +01:00
jonjenssen
210f03752f Make INP reader a bit more generic, do not require steps defined in file and allow multiple element types (all types must be 8 nodes) 2024-01-22 14:45:55 +01:00
Magne Sjaastad
62609953a0 #11092 Fix import of time since simulation start 2024-01-22 12:51:16 +01:00
Magne Sjaastad
e2e861ed95 Select none, all cases or a grid case group to apply a calculation
This will enable the use of expressions var_a = sum(x) on a grid case group
2024-01-22 08:42:23 +01:00
Magne Sjaastad
d61838940a Grid calculations: Free memory after data has been read
When data has been read for a variable, free the related data to make sure the memory footprint is as low as possible.
2024-01-22 08:42:23 +01:00
Magne Sjaastad
e1007ca957 Performance: Clear file reader cache after data is read 2024-01-22 08:42:23 +01:00
Magne Sjaastad
018e911736 Read date information directly from restart file 2024-01-22 08:42:23 +01:00
magnesj
f864ab0ba1 Fixes by clang-tidy 2024-01-20 08:39:07 +01:00
Magne Sjaastad
50ef5d916e Import surfaces with xyz as extension
*.dat and *.xyz can be imported using the same code
2024-01-19 11:53:06 +01:00
Magne Sjaastad
33f18a7c8f Show numbers with space as thousand separator 2024-01-19 11:00:28 +01:00
Magne Sjaastad
df083a870a Add Memory Report dialog
Compute how much memory is used for result/case/total. Show as text in dialog.
2024-01-19 11:00:28 +01:00
Magne Sjaastad
0c7a8ad2de Fix regression introduced in a9598f
Wrong naming of variables caused wrong refactoring
2024-01-19 11:00:28 +01:00
jonjenssen
251952e6ef
Fault reactivation updates (#11079)
* Allow extending cell intersection lines outside cell
* Update default values, and clean up some things
* Populate fault zone element set
* Update to latest openzgy to fix typo
2024-01-19 08:39:10 +01:00
Kristian Bendiksen
a48faeb6d0 #11034 Use water density from model. 2024-01-18 09:56:23 +01:00
Kristian Bendiksen
926a9ac850 Fault Reactivation: Export stress with negative sign.
Expected by Abaqus.
2024-01-18 09:56:23 +01:00
Kristian Bendiksen
bd085617e4 #11034 Fault Reactivation: integrate vertical stress from eclipse grid. 2024-01-18 09:56:23 +01:00
Kristian Bendiksen
defde0f4e4 Fault Reactivation: Add 'None' as GeoMech model option. 2024-01-18 09:56:23 +01:00
Kristian Bendiksen
cb74bf2f1e Refactor: create stress accessor base class. 2024-01-18 09:56:23 +01:00
Magne Sjaastad
a9598fbe0e Define result address for to be used for non visible cells
Display a data source selection dialog to specify the result address to be used for cell values outside the visible cells.
2024-01-17 08:29:41 +01:00
Magne Sjaastad
35cc2127f2 Log error message instead of displaying a dialog
The error message is displayed once for each time step, and appears as eternal loop if you have many time steps.
2024-01-17 08:29:41 +01:00
Magne Sjaastad
5c096748c8
Optionally log messages to file (#11059)
* Add spdlog as submodule
* Add RiaFileLogger
* Control use of file logger from preferences
2024-01-15 17:51:03 +01:00
magnesj
340c1383fc Fixes by clang-tidy 2024-01-13 16:57:44 +01:00
Magne Sjaastad
cfff6ac024 #11053 Limit number of time step to 1 for static result
This will also improve performance, as less memory is consumed
2024-01-12 16:06:32 +01:00
Magne Sjaastad
f907c6bdff #11024 Allow grid calculator expressions with no input cases
Will make it possible to use calc := 3
2024-01-12 16:06:32 +01:00
Magne Sjaastad
fa94aa0bf9 opm-common: Simplify import of time step data
Avoid using restart state object for import of year, month, ...
2024-01-12 12:51:22 +01:00
jonjenssen
8db29e0931
Add polyline filter support (#11048)
* Support selecting cells below polyline, both eclipse and geomech cases
* Add some polyline intersection helpers, with tests
2024-01-12 09:52:29 +01:00
Kristian Bendiksen
d03477a0f8 Fault Reactivation: Use correct result variable when extracting temperature. 2024-01-10 10:55:15 +01:00
jonjenssen
6d225a9da3
Fault Reactivation: Add minimum cell height limit (#11036)
Fault Reactivation: Add minimum cell height limit
2024-01-10 08:14:37 +01:00
Kristian Bendiksen
adf52ed301 #10827 Fault reactivation: extract temperatures using well log. 2024-01-08 18:05:48 +01:00
Kristian Bendiksen
f81dcbd2dc Minor refactor: extract method extracting values. 2024-01-08 18:05:48 +01:00
Kristian Bendiksen
45c32a4ebb Refactor: Extract methods for creating well paths and extractors. 2024-01-08 18:05:48 +01:00
Kristian Bendiksen
33c24a219c Fix crash when deleting case. 2024-01-08 18:05:48 +01:00
Jon Jenssen
af3cfc9bac Add missing include 2024-01-08 17:22:09 +01:00
Jon Jenssen
b38e9de2cb Minor changes to exported INP file based on feedback and testing 2024-01-08 17:22:09 +01:00
magnesj
02ad40b127 Fixes by clang-tidy 2024-01-08 07:17:21 +01:00
Magne Sjaastad
ff6472c6b7
Update to clang-16
Use runner Ubuntu 22.04 for clang-16
Remove unused code detected by clang-16
2024-01-05 15:13:50 +01:00
Kristian Bendiksen
956e53aa19 #10826 Fault Reactivation: improve pore pressure eclipse extraction. 2024-01-05 10:10:23 +01:00
jonjenssen
daae1e6e05
Improve fault reactivation file names (#11005)
Use model name in exported file name.
Add model name to include file names.
2024-01-05 08:43:40 +01:00
Kristian Bendiksen
544e6974e7 Refactor: improve interface for finding intersecting cells. 2024-01-03 13:00:09 +01:00
Kristian Bendiksen
ffa117e736 Refactor: Extract getPartIndexFromPoint to avoid duplication. 2024-01-03 13:00:09 +01:00
Jon Jenssen
62c7007654 Minor code cleanup 2024-01-03 12:44:10 +01:00
jonjenssen
50a766591b
Enable INP support without ODB libraries (#10990)
Enable INP support without ODB libraries
2024-01-03 11:55:35 +01:00
Magne Sjaastad
31d11f56f5 #10986 Set non-visible cells to zero for aggregated expressions
For aggregated expressions, set cells outside filter to 0.0. Do nothing for normal expressions.
2024-01-03 10:28:34 +01:00
Jon Jenssen
a4db175bea Make sure imported element properties goes to the selected case.
Improve reload/close element property UI
2023-12-21 08:23:37 +01:00
Kristian Bendiksen
cf453ac4a5 Fault Reactivation: use data nodes when extracting values for INP file. 2023-12-21 08:22:06 +01:00
Magne Sjaastad
9b36fe440d Make result name string match more robust 2023-12-20 19:05:45 +01:00
Magne Sjaastad
f677d6d600 Performance: Compute depth related results in parallell 2023-12-20 19:05:45 +01:00
Magne Sjaastad
df392e3faf Compute and show resistivity values 2023-12-20 19:05:45 +01:00
Magne Sjaastad
894bbbe06b Add reservoir case for EM data
- read geometry definition from h5grid files
- import cell results from h5grid files
- create and import case using drag/drop of h5grid file into ResInsight
2023-12-20 19:05:45 +01:00
Magne Sjaastad
054302ad62 Extract geometry and cell creation to reservoir builder 2023-12-20 19:05:45 +01:00
Magne Sjaastad
e583c3a994 GCC: Fix warning related to memory alignment seen on gcc11 2023-12-20 19:05:45 +01:00
Kristian Bendiksen
80697d3540 Fault reactivation: Use same pore pressure gradient for POR and stress. 2023-12-20 14:50:59 +01:00
Kristian Bendiksen
f1135919e7 Fault Reactivation: Fix PorBar extrapolation. 2023-12-20 14:50:59 +01:00
jonjenssen
d6ae8188e0 Support older clang.
Bump version to dev.05
2023-12-19 14:13:18 +01:00
jonjenssen
850b1a1894 Support importing stress, too 2023-12-19 00:09:31 +01:00
jonjenssen
858c1227bc
Use correct result name for Void ratio (#10969)
Use correct result name for Void ratio
Enable porosity calculator for imported inp data
Add model validation check for export/show model
Fix last res. layer not being splitted into subelements
Add model validation check in file exporter
Bump version to dev.04
2023-12-18 15:03:08 +01:00
Kristian Bendiksen
9e1a09bcf9 Refactor: move fault reactivation data access to fix ownership problems. 2023-12-18 14:28:00 +01:00
Kristian Bendiksen
78942b0313 Fault Reactivation: extract stress data using well log extraction. 2023-12-18 14:28:00 +01:00
Kristian Bendiksen
2ee8954708 Update valueAtPosition interface. 2023-12-18 14:28:00 +01:00
Kristian Bendiksen
8375b3e934 Fault Reactivation: Remove unused methods. 2023-12-18 14:28:00 +01:00
jonjenssen
d8dbdf01b3 Remove obsolete code 2023-12-18 01:31:45 +01:00
jonjenssen
4aa5a38d63 Flip Y to get local coordinate element nodes in correct order for abaqus.
Bump version to dev.03
2023-12-18 01:31:45 +01:00
Magne Sjaastad
958587e76c Disable unity build for OdbReader
Unity build was recently broken, hard to find source to the broken build. Few files in this library, no unity build is required.
2023-12-16 16:09:37 +01:00
jonjenssen
595766ade0
Fault reactivation: Add dataNodes to be used for data extraction (#10961)
* Add dataNodes to be used for data extraction
2023-12-15 09:28:50 +01:00
jonjenssen
293594ebf6 Fault Reactivation: flip Y axis in local model coordinates. 2023-12-14 20:25:28 +01:00
jonjenssen
1fab743d56
INP import updates (#10952)
Support reading element type results
Automatically load properties from INP include files generated by Fault Reactivation Model exporter
Some refactoring of element and result types.
2023-12-14 08:46:41 +01:00
Magne Sjaastad
34d2ff7373 Add field and object keywords 2023-12-11 13:56:04 +01:00
Magne Sjaastad
f00553d399 Avoid crash for summary file with no time steps
Do not try to create ESMRY file if there are no time steps in the summary data
Do not try to read "TIME" record if no time steps are present
2023-12-11 12:32:19 +01:00
Magne Sjaastad
681acfb0e0 Create Intersection: Crash for Intersection along Simulation well
Check if any geometry is present before accessing geometry data
2023-12-11 12:32:19 +01:00
Magne Sjaastad
47e9046785 Always use category result when creating legend for formations 2023-12-11 12:32:19 +01:00
Magne Sjaastad
cf9a9d4bad Add copy/paste of cell filters 2023-12-11 12:32:19 +01:00
Magne Sjaastad
f421c43450 Make sure single curves from individual realizations are displayed on top 2023-12-11 12:32:19 +01:00
jonjenssen
ea56ceaea0
Refresh cell filters when geomech grid is reloaded (#10924)
* Make sure the cell filters are refreshed when the geomech grid is reloaded to handle grid changes
2023-12-08 15:26:18 +01:00
Kristian Bendiksen
0a2f2da8b9 Fault Reactivation: add sea water load to initial step. 2023-12-07 11:11:25 +01:00
Magne Sjaastad
acc4477764 Mark riNncCess as integer result 2023-12-07 08:33:32 +01:00
Magne Sjaastad
81ab903151 #10916 Create derived result used to identify NNC cells 2023-12-07 07:57:40 +01:00
Magne Sjaastad
30807438d1 Find and evaluate dependent calculations 2023-12-06 15:07:13 +01:00
Magne Sjaastad
3f0b767528 Add time step filter 2023-12-06 15:07:13 +01:00
Magne Sjaastad
27f9ef4700 Rename to m_applyToAllCases 2023-12-06 15:07:13 +01:00
Magne Sjaastad
f247df5079 Cache user response for calculation question 2023-12-06 14:00:33 +01:00
Magne Sjaastad
a3036a1b37 Build result child nodes after the placeholder entries have been created 2023-12-06 14:00:33 +01:00
Jon Jenssen
5f962ae89d Add seabed border surface
Fix issue with 0 fault extension
2023-12-06 08:33:14 +01:00
Magne Sjaastad
fee950cdd4 Add missing visibility filter for single grid calculations 2023-12-05 07:48:21 +01:00
Kristian Bendiksen
90cf78e6dd Improve category identification of "difference" vectors. 2023-12-04 17:26:44 +01:00
Kristian Bendiksen
08f9e9b5bb Janitor: move historyIdentifier/differenceIdentifier. 2023-12-04 17:26:44 +01:00
Kristian Bendiksen
ca87cee79b Summary Calculation: add import and export to toml 2023-12-04 17:26:44 +01:00
Magne Sjaastad
232706a4e9 Added license documentation for tomlplusplus 2023-12-04 15:20:21 +01:00
Magne Sjaastad
8b2d65e11a Remove use of progress dialog, unstable behaviour
In some cases, the progress dialog remains visible after the computation is completed. When an expression is applied to multiple cases, text is output to Messages window. This can be used to give user information on progress.
2023-12-04 14:59:29 +01:00
Magne Sjaastad
c9574c2e05 Remove obsolete text info
Remove text info when opening result cases using index file. Keep text report if error happens.
2023-12-04 14:59:29 +01:00
Magne Sjaastad
459dea64c7 Grid Calculations: Show statistics for aggregated expressions 2023-12-04 09:21:42 +01:00
jonjenssen
b1fa32c318
Fault reactivation: grid info improvements (#10899)
* Fix some gridding issues, add element layer information and fix K layer information
* Add geomech element corner node info in result info view
2023-12-04 08:36:03 +01:00
Magne Sjaastad
ae9f1c06a8 If empty, add .toml as file suffix 2023-12-01 12:13:09 +01:00
Magne Sjaastad
96401c519d Make sure data for a variable is using correct case
Make sure the correct Eclipse case is used when extracting values for a variable. Simplify the data extraction using activeReservoirCellIndices
2023-12-01 12:12:51 +01:00
Magne Sjaastad
69cb8b6df7 Add activeCellReservoirIndices
All global reservoir cell indices for active cells can now be accessed from RigActiveCellInfo. This can make the extraction of data much easier and faster.
2023-12-01 12:12:51 +01:00
Kristian Bendiksen
7cdeea51c3 Grid Calculator Export: improve test and error handling. 2023-12-01 11:06:15 +01:00
Jon Jenssen
431452cb5c Fix grid bug reported by user 2023-11-28 15:03:47 +01:00
Kristian Bendiksen
fa7a56f1e2 #10861 Add import/export for grid calculations 2023-11-28 11:42:21 +01:00
jonjenssen
52259a69f3
Update grid part naming (#10879)
* Rename parts
* Make sure well extraction goes along model, not fault
* Match part naming with parts
2023-11-28 02:26:09 +01:00
Magne Sjaastad
da6757e9fa Use : as separator instead of - 2023-11-27 19:10:28 +01:00
Magne Sjaastad
e2698d8946 Compute MEAN first and set MEAN visible in view 2023-11-27 19:10:28 +01:00
Magne Sjaastad
3cda00b28b Detect and show aggregated value for each time step in all realizations 2023-11-27 19:10:28 +01:00
Magne Sjaastad
537cead7f1 Add optional input value filter for calculation 2023-11-27 19:10:28 +01:00
Kristian Bendiksen
ef90a698b4 Fault reactivation: compute and export stress. 2023-11-27 15:42:47 +01:00
Magne Sjaastad
ec53c7704d Improve legend display of ensemble curves
Remove symbol and increase curve thickness
2023-11-27 13:14:16 +01:00
Magne Sjaastad
163b742ad0 Remove drag/drop of individual summary curves
Drag/drop of individual curves is unstable. Remove drag/drop, as arrow buttons can be used to change ordering of curves.
2023-11-27 13:14:16 +01:00
Magne Sjaastad
001a7340cd Make sure curve is updated when a child object of a curve is modified
Appearance settings is a child object of a curve, and requires update of the curve object.
2023-11-27 13:14:16 +01:00
Magne Sjaastad
cd320c3b87 Set a fixed width for legend icons when no symbols are used 2023-11-27 13:14:16 +01:00
Magne Sjaastad
88a7ef342c Increase spacing between icon and text in label 2023-11-27 13:14:16 +01:00
Magne Sjaastad
7639262106 Always show legend items in preview plot 2023-11-27 13:14:16 +01:00
Magne Sjaastad
4b0f2b362e Add support for placing legend at several positions
Show legends on top of preview plot
2023-11-27 13:14:16 +01:00
Magne Sjaastad
243b07c42f Remove preview plot title 2023-11-27 13:14:16 +01:00
Magne Sjaastad
9d21faf38c Make sure summary case is set before assigning curve axis 2023-11-27 13:14:16 +01:00
Magne Sjaastad
7d8b947a71 Make sure default left and right axis always is used if available 2023-11-27 13:14:16 +01:00
Magne Sjaastad
da20b81c0e Make sure the detection of only cross plot curves works as expected 2023-11-27 13:14:16 +01:00
Magne Sjaastad
8bc7562e9e clang-format improvements 2023-11-27 13:14:16 +01:00