Commit Graph

2584 Commits

Author SHA1 Message Date
Magne Sjaastad
ca4a201c4e #11989 Check indices before accessing two-dimensional vector 2024-12-12 16:24:14 +01:00
Kristian Bendiksen
925403764e Add Statistics Contour Map for eclipse grid ensembles. 2024-12-10 15:28:26 +01:00
jonjenssen
711cb267fd
Polygon UI updates (#11975)
* Polygon UI updates
2024-12-06 14:26:30 +01:00
Magne Sjaastad
9da244d253 Add keywords for 2024.12 2024-12-05 11:29:12 +01:00
Magne Sjaastad
996a10f781 Fix curve highlight for non-ensemble curves 2024-12-05 08:18:43 +01:00
Magne Sjaastad
39d19c9826 #11966 Fix visibility control of curve legends 2024-12-04 19:38:15 +01:00
Magne Sjaastad
586aefe0b6 Mark SUMO features with BETA 2024-12-04 18:47:07 +01:00
Magne Sjaastad
b48b58ca14 #11386 Summary plot: TCPU and ELAPSED are cumulative vectors 2024-12-04 18:47:07 +01:00
Magne Sjaastad
1ce2f9651c
#11954 Improve the curve merger algorithm
* Add flag to indicate identical X values when curves are merged
* Detect if x values are monotonically increasing
2024-12-03 16:53:11 +01:00
Jon Jenssen
d90dd91e29 Hide grid mesh lines in contour map view 2024-12-03 15:33:53 +01:00
jonjenssen
eee6f36a0e
Merge pull request #11952 from OPM/polygon_updates
Polygon command updates
2024-12-03 13:50:55 +01:00
Arne Morten Kvarving
6d4824b204 fixed: build against QT 6.8 2024-12-03 12:40:26 +01:00
jonjenssen
8644ca1ea5 Code fixes 2024-12-02 13:04:10 +01:00
Kristian Bendiksen
bd3ef3f775 #11943 Contour Map: regenerate grid and projection on sampling factor change. 2024-12-02 09:38:52 +01:00
jonjenssen
9ec83836ed Better command support for multi-select of polygons 2024-11-29 23:43:03 +01:00
Magne Sjaastad
041e2f2e13 #11938 Cloud Config: Show the full path to config file for cloud services 2024-11-29 06:28:02 +01:00
jonjenssen
bb19ba75a4
Add support for deleting OSDU and SUMO user token files (#11935)
* Add support for deleting OSDU and SUMO user token files
2024-11-28 19:40:17 +01:00
Jon Jenssen
4975f260ca Support showing both scaled and unscaled curves in relperm plot 2024-11-27 16:31:57 +01:00
Magne Sjaastad
26a30ffa50 Make sure fault geometry always is visible
The check for fault was removed in 4cf6a26083

This causes wrong visualization when a range filter is active and a fault is present along the filter.

There is some performance issues seen when profiling this code, needs more investigation.
2024-11-27 12:29:12 +01:00
Magne Sjaastad
e54c4f3c1e Make sure all scheduled redraws are done
Snapshot image from the regression test
TestCase_Flow was wrong for well allocation plots, the well log part was not updated correctly.
2024-11-27 12:29:12 +01:00
Magne Sjaastad
24fc63ab6d VFP: Make sure table number is included for INJ plots 2024-11-27 12:29:12 +01:00
Kristian Bendiksen
1199d761ee Contour map geomech: fix bug with visibility map 2024-11-26 17:35:05 +01:00
Magne Sjaastad
ddefd39fc2
Python: Make more well completion parameters available
Add access to all MSW parameters in Python : "msw_settings = well_path.msw_settings()"
Make all parameters of the well completion object available in Python.
2024-11-25 09:38:23 +01:00
Magne Sjaastad
6894149f8e #11859 Summary Plot: Missing legend curve name for Excel data
Remove virtual from RimPlotCurve::setTitle()
Set curve name for an Ascii curve to custom
Make the curve title obsolete
2024-11-25 07:18:44 +01:00
jonjenssen
036ed8b70e Make sure we only loop over active grids local cells when calculating visibility 2024-11-22 11:46:00 +01:00
Magne Sjaastad
db20065e1e #11896 Make sure the Fractures folder in view is visible when required
The Fractures folder in a 3D view becomes visible when the first fracture is added. Make sure that the Project Tree is recreated correctly.
2024-11-21 14:46:39 +01:00
Magne Sjaastad
3cc2958384
Summary Table: Add user option to set time range on x-axis
* Make sure all evenly distributed labels are drawn
* Add start and end data
2024-11-21 14:38:59 +01:00
jonjenssen
5fa572266f Fix missing size check. 2024-11-21 12:57:50 +01:00
jonjenssen
f716b4e964
Support multiple timesteps per day using opm_common reader (#11908)
* Fix progress window hiding time step filter dlg
* Clean up reader preferences
2024-11-21 12:42:13 +01:00
Magne Sjaastad
065528ffba #11909 Add null pointer guards when detecting unit system 2024-11-21 12:01:46 +01:00
Kristian Bendiksen
8da0690096 Refactor: Decouple RivContourMapProjectionPartMgr and RimContourMapProjection 2024-11-20 14:52:27 +01:00
Kristian Bendiksen
eb6467c599 Refactor: remove pass-through methods from Rim to Rig. 2024-11-20 14:52:27 +01:00
Magne Sjaastad
06fb3e1241 #11895 Always show Oil Saturation as available
If no SOIL is found on file, compute based on available SWAT and SGAS.
2024-11-19 13:08:04 +01:00
Kristian Bendiksen
a305464748 Refactor: Split out triangle generation from contour map 2024-11-18 09:12:44 +01:00
Magne Sjaastad
9b6e441386 Make it possible to exclude partial delta curves
Make sure statistics curves are recomputed on flag change

When toggling "Discard Missing or Incomplete Realizations", make sure the statistics is recomputed and the ensemble plots updated.
2024-11-18 07:45:20 +01:00
jonjenssen
dbea0e2593
OpenGL DPI scaling support (#11883)
Scale opengl width/height based on primary screen DPI scaling.
2024-11-15 12:12:59 +01:00
Magne Sjaastad
f6109cab2b
Bump to dev.05
* Disable logging text for timing of geometry surface creation
* Suppress text output from windeployqt
* Bump to 2024.09.3-dev.05
2024-11-15 11:36:52 +01:00
Magne Sjaastad
664b082c81 Use opm-common to read restart file from summary file
Testing identified performance issues related to reading restart file name from summary files.

Make sure the reading of timesteps is done only when required in new function getFileInfoAndTimeSteps.

Add reading of restart file name using opm-common when opm-common is active. The performance of this reader is much better than resdata.
2024-11-14 19:28:51 +01:00
Magne Sjaastad
acbf0ef15a Fix crash when accessing an empty vector
If the UNSMRY data is missing, no timesteps are available. Make sure that we check if any timestep is available before accessing the vector.
2024-11-14 19:28:51 +01:00
Kristian Bendiksen
7148ccdc41 Contour Map: Fix crash when not filtering by visibility. 2024-11-13 15:36:44 +01:00
Kristian Bendiksen
5588f8f0f9 Statistics contour map: Add UI for selection result aggregation type. 2024-11-13 15:36:44 +01:00
Kristian Bendiksen
88ded4f7a0 Refactor: improve names of result aggregation enum options. 2024-11-13 15:36:44 +01:00
Kristian Bendiksen
c16bc11c03 Add configurable "relative sample spacing". 2024-11-13 15:36:44 +01:00
Kristian Bendiksen
e2940e4eaf Contour Statistics Map: Compute results 2024-11-13 15:36:44 +01:00
Kristian Bendiksen
c4dd4865f4 Add StatisticsContourMap pdm object, and menu item. 2024-11-13 15:36:44 +01:00
Kristian Bendiksen
c2ec023720 Add utility for finding min/max of vector. 2024-11-13 15:36:44 +01:00
Kristian Bendiksen
8e6d8ee317 Contour Map: Fix incorrect null guard. 2024-11-13 15:36:44 +01:00
Magne Sjaastad
8b221c26ab Discard display of delta curves if data is missing
Add a flag used to control if missing data from either of the ensembles will return no data, or use zero if data is missing.
2024-11-13 15:18:10 +01:00
Magne Sjaastad
7550b8702c Rename delta ensemble and case
Rename to RimDeltaSummaryCase and inherit RifSummaryReaderInterface
Rename to RimDeltaSummaryEnsemble

Remove obsolete RifDerivedEnsembleReader
2024-11-13 15:18:10 +01:00
Magne Sjaastad
11a3c66a0b Make sure the vector name is visible for delta ensemble curves 2024-11-13 15:18:10 +01:00
Magne Sjaastad
b0344a1e72 Logging: Skip identical messages logged close in time
There can be situations where multiple identical log messages are computed in a short time interval. Default time interval is set to 1 second, if the message is reported after this interval, the message is added to the log.
2024-11-13 15:18:10 +01:00
Kristian Bendiksen
f5437e6c72 Refactor: extract computation for contour map projection. 2024-11-07 13:13:20 +01:00
Magne Sjaastad
d2cd425ad0 11867 Do not assume that the first reported time step is initial time step 2024-11-07 12:02:25 +01:00
Magne Sjaastad
94d6f81b0f
Improve Quick Access
* Add css to checked menu items
* Improve icons
* Use group name for field if found
* Add quick access fields for IJK Filter
* Add tree selection for selection of multiple fields
2024-11-07 09:36:24 +01:00
Magne Sjaastad
67e6df28b5 #11857 Make sure the summary curve type is updated
Always compute curve type Rate or Accumulated based on address if Auto curve type is set.
2024-11-06 07:16:07 +01:00
Magne Sjaastad
1cbdbfa7df Remove waitUntilWorkIsDone as this can cause eternal loops 2024-11-06 07:16:07 +01:00
Jon Jenssen
8ff8264d11 Use window icons to show toggle state in windows menu 2024-11-05 15:34:07 +01:00
Magne Sjaastad
1a3cb1f241 Fix missing include and bump version 2024-11-04 18:31:18 +01:00
Magne Sjaastad
9ed4318470 Avoid redraw of 3D views during summary import 2024-11-04 17:34:49 +01:00
Magne Sjaastad
71b0ae1a16 Remove duplicated code in RiaPlotWindowRedrawScheduler 2024-11-04 17:34:49 +01:00
Magne Sjaastad
59df1a655e #11851 Initialize OpenGL when main window is created 2024-11-04 17:34:49 +01:00
Magne Sjaastad
275526a64a Remove unused includes
Remove unused includes, mostly AppEnum.h
2024-11-04 09:54:23 +01:00
Magne Sjaastad
7fe945e68d #11842 Fix drag/drop of VFP plot into multiplot
Remove the deprecated plot collection
Make sure the dropped plot is visible in the multi plot
2024-11-04 08:47:21 +01:00
Magne Sjaastad
a05645e966 #11844 Quick Access adjustments
Show the Quick Access menu only for objects that implements RimFieldQuickAccessInterface
Show the fields made available by RimFieldQuickAccessInterface
2024-11-04 08:46:55 +01:00
Magne Sjaastad
4cf6a26083
Improve draw performance for active cell grid
* Show timing for geoBuilder.generateSurface()
* Check state of element vector result before geometry is created

* Improve performance for isFaceVisible
Avoid calling costly function cell() when possible
Remove check on fault geometry as this does not affect the visualization

* Performance: Avoid traversal of all cells when computing visibility
When we have an active cell grid, we can skip checking for inactive and invalid state.
Use the list of active grid cells when looping through cells.
2024-11-03 13:38:03 +01:00
Magne Sjaastad
9a1c54c7d6 Add debug timers to import of UNRST files 2024-10-31 19:05:10 +01:00
jonjenssen
d7d1026841 Fix build issue 2024-10-31 15:08:59 +01:00
jonjenssen
da683bed9e Move Rig well related things to subfolder and update include statements 2024-10-31 15:08:59 +01:00
Magne Sjaastad
7677466d29 Make sure plot create from Python is visible 2024-10-30 13:54:03 +01:00
Jon Jenssen
4468e89ded Ignore empty branches and invalid cells 2024-10-29 18:17:31 +01:00
Magne Sjaastad
2154c0ae3b Use updated API for total cell count 2024-10-29 18:17:31 +01:00
Jon Jenssen
8a2a1c218b Some performance updates 2024-10-29 18:17:31 +01:00
jonjenssen
f7ecd38592 Add some friends to protect direct access to internal cell storage 2024-10-29 18:17:31 +01:00
jonjenssen
f21d1545f8 Some cleanup 2024-10-29 18:17:31 +01:00
jonjenssen
db66ec82de Some clean up and fixes 2024-10-29 18:17:31 +01:00
jonjenssen
78d82acb41 Add specialiced active cell subgrids 2024-10-29 18:17:31 +01:00
jonjenssen
88118ee4e1 Privatize grid cell array 2024-10-29 18:17:31 +01:00
jonjenssen
69878f54d3 Work in progress 2024-10-29 18:17:31 +01:00
Magne Sjaastad
95365ad5d0 Add timing support to logger 2024-10-29 14:33:48 +01:00
Magne Sjaastad
4f921b62b6 Remove misleading and confusing error message 2024-10-29 10:29:29 +01:00
Magne Sjaastad
2814b92055
Qt6: Adjustments (#11804)
* Qt6: Avoid insertWidget, use addWidget
In Qt6, the insertWidget function checks if the index parameter is valid based on current widgets present in the layout. This is error prone, and use addWidget to avoid manual counting of index.

* Disable use of Qt keyword foreach

* Replace use of QRegExp with QRegularExpression
Replace use of QRegExp with QRegularExpression
Remove dependency on qt5compat module
Simplify an expression based on review

* Remove Qt5 ifdefs

* Guard access out of bounds seen in debug build

* Avoid reuse of string variable

* Disconnect all signals from the QOpenGLContext
The call stack when this assert happens indicates that there are more signals to be disconnected from the object. Crash is fixed by disconnecting all signals.

Assert seen in debug build:

ASSERT failure in caf::Viewer: "Called object is not of the correct type (class destructor may have already run)", file C:\Qt\6.6.3\msvc2019_64\include\QtCore/qobjectdefs_impl.h, line 130

* Fix issue related to delete of a linked view
Guard null pointer use in view linker. Remove complicated cleanup in destructor in Rim3dVew.
2024-10-28 13:09:18 +01:00
Magne Sjaastad
1f2b180ab7 #11812 Multi-segment RFT plot: Make sure reservoir Pressure is plotted 2024-10-24 12:18:35 +02:00
Magne Sjaastad
a9ea615bf0 Add support for increase of serial number when data is assigned to a SUMO case 2024-10-24 08:50:26 +02:00
Magne Sjaastad
c795eccf0b Align the search expression with sumo explorer 2024-10-24 08:50:26 +02:00
Kristian Bendiksen
293e19d820 Refactor: make contour map calculation easier to reuse. 2024-10-23 14:46:52 +02:00
Magne Sjaastad
fd0ebd989b Improve performance when computing interpolated values
Use OpenMP when computing interpolated values for a curve.
Use std::lower_bound to quickly find a relevant start index, avoids starting from 0 each time.
2024-10-23 12:38:22 +02:00
Magne Sjaastad
581b268928 Use hash of input do control if calculation is required
Add hash functions
Add serial number to SummaryReaderInterface
Add hash for RimSummaryCase

Use hash based on input parameters to control caching of data in RimEnsembleStatisticsCase::calculate  and RimEnsembleCurveSet::appendOptionItemsForSummaryAddresses
2024-10-23 12:38:22 +02:00
Magne Sjaastad
da4d4c66b1 #11798 Use type definition from ClipperLib to avoid overflow
When converting a cvf::Vec3d to an integer vector, the platform int type was used as an intermediate variable. This caused overflow for large double values.
2024-10-22 10:39:04 +02:00
Magne Sjaastad
df091336e0 Move summary tools into separate folder 2024-10-22 07:28:43 +02:00
Magne Sjaastad
95b2f2bbd1 Add icons 2024-10-21 14:11:22 +02:00
Magne Sjaastad
eee00ee508 Update default dock state for Quick Access 2024-10-21 14:11:22 +02:00
Magne Sjaastad
2befcf6417 Create quick access objects when opening project and some objects
Create quick access for Eclipse view, IJK slice filters and property filters
Create quick access objects for existing projects automatically
2024-10-21 14:11:22 +02:00
Magne Sjaastad
2e305bd762 Add quick access dock widget 2024-10-21 14:11:22 +02:00
Magne Sjaastad
4ff5aaf381 Add quick access data model objects 2024-10-21 14:11:22 +02:00
Magne Sjaastad
5ffd7f3f61 Move Show Disks from Visibility group into Disk group 2024-10-21 12:52:42 +02:00
Magne Sjaastad
c3d60869bd Improve support for network vectors
Show all text if summary address contains multiple : for network addresses
Consolidate replace of tokens in summary address
2024-10-21 09:38:33 +02:00
Magne Sjaastad
2aaea1e6db Fix crash when curve data is missing 2024-10-21 09:38:33 +02:00
Magne Sjaastad
77c789a179 Improve performance when creating multiple plots 2024-10-21 09:38:33 +02:00
Magne Sjaastad
04799e044e Fix missing prefix seen in unity builds 2024-10-20 16:35:39 +02:00
Kristian Bendiksen
ebc805ab65 Refactor: Extractor contour polygon tools. 2024-10-17 13:45:18 +02:00