Commit Graph

2081 Commits

Author SHA1 Message Date
Magne Sjaastad
1046bcbb94 Disable view filtering when using grid calculations as part of grid statistics
Active cells can be different between cases, and view filter from one specific case is not able to use for other cases.
2023-11-10 12:49:32 +01:00
Magne Sjaastad
fb890300c5 Propagate variable changed signal to RicUserDefinedCalculatorUi
- ensure that the UI is updated
- if the grid size is different, set destination case equal to the input variable case
2023-11-10 12:07:26 +01:00
Magne Sjaastad
917fd9b3b5 Move grid size check to calculate()
This move will make it possible to use a calculator expression defined for a different grid size for grid case statistics.
2023-11-10 12:07:26 +01:00
Magne Sjaastad
5ecc43d49f Always release memory during statistics of grid calculations 2023-11-10 10:14:59 +01:00
Magne Sjaastad
69f132ffa5 Add import/export grid calculations to Grid Calculator
Refactoring
2023-11-10 10:14:59 +01:00
Magne Sjaastad
f49053c61d Guard null pointer use 2023-11-10 09:01:28 +01:00
Magne Sjaastad
32a878a7ea Select the new view to make sure RiaApplication::setActiveReservoirView() is called 2023-11-10 09:01:28 +01:00
Magne Sjaastad
ee4c8362e5 Make sure eclipse case is opened before creating contour map to avoid crash 2023-11-10 09:01:28 +01:00
Magne Sjaastad
64f825e882 Rebuild result addresses when case is read from file 2023-11-10 09:01:28 +01:00
Magne Sjaastad
5f3e0704f1 Make sure that no curves are created when No Plots is set in Preferences 2023-11-09 16:16:01 +01:00
Magne Sjaastad
9af9aa7e66 Append vector name if multiple cases are present 2023-11-09 14:30:26 +01:00
Magne Sjaastad
eea56e4818 Add flag to optionally distribute a summary calculation to all cases 2023-11-09 14:30:26 +01:00
Kristian Bendiksen
86526a0458 Janitor: Add missing include. 2023-11-08 15:52:33 +01:00
Kristian Bendiksen
645c8c29b3 Reveal Thermal Fracture Template: add missing update when changing filter cake mode. 2023-11-08 15:52:33 +01:00
Kristian Bendiksen
18c29d5fc7 Reveal: fix transmissibility calculation when filter cake is not present.
The "absolute" filter cake adjustment should only be used for cells when
filter cake is present (i.e filtrate thickness is not zero).
2023-11-08 15:52:33 +01:00
Magne Sjaastad
39fc9d5c36 Add support for grid calculations as data source for statistics
- add data source selection, either Case Property or Grid Calculation
- add Time Step Selection, can be used for both dynamic case properties and Grid Calculations
- optionally release grid calculation data when statistics is computed
- recursive grid calculations is supported
2023-11-08 08:39:04 +01:00
Magne Sjaastad
92d1bd9386 If only one view, set the first result as active 2023-11-07 19:15:51 +01:00
Magne Sjaastad
7eb3e98bb2 Optionally apply a grid calculation on all grids 2023-11-07 19:14:58 +01:00
Magne Sjaastad
3bf81b44d5 Guard null pointer 2023-11-07 19:14:58 +01:00
Magne Sjaastad
4da4a222ca Add optional Eclipse case as data source in a view
This option makes it possible to look at data from other cases without creating one view per case.
2023-11-07 19:14:58 +01:00
Kristian Bendiksen
b9af6a35b0 Janitor: fix spelling. 2023-11-06 15:20:47 +01:00
Kristian Bendiksen
065e37a437 Fault Reactivation: parse element sets from INP file. 2023-11-06 15:20:47 +01:00
Magne Sjaastad
a61e62707b RFT: Improve text import and make sure visibility based on date is working
Find candidate for the observation file name including measurement ID. Make sure that observations are filtered by date.
2023-11-06 10:20:22 +01:00
Magne Sjaastad
2069ad55cf Refactor RimSummaryAddressModifier
Use std::variant to wrap curve and ensemble curve set.
Move some code into RimSummaryAddressModifier
2023-11-06 10:20:22 +01:00
Magne Sjaastad
12f24af154 Remove obsolete source stepping code
After merging the cross plot with the summary plot, the sources stepping can be simplified. Remove obsolete sources stepping code, to prepare for other source stepping issues.
2023-11-06 10:20:22 +01:00
Magne Sjaastad
4f25fb4463 Create multiple RFT plots based on the selected RFT plot
Show a dialog with all available RFT wells, and let the user select from this list. Create a copy of the RFT plot, and replace well name in the copy.
2023-11-06 10:10:22 +01:00
Magne Sjaastad
b1d1c397d4 Make RimWellPathCompletionSettings scriptable
Support scripting of wellNameForExport, GroupNameForExport, MswLinerDiameter, MswRoutghness, Preferred Fluid Phase scriptable
2023-11-06 09:43:24 +01:00
Magne Sjaastad
508ab90487 Set default values and add getters without unit system 2023-11-06 09:43:24 +01:00
Kristian Bendiksen
e8b85bbe09 Fault Reactivation: Reuse RimWellIADataAccess method for finding element. 2023-11-03 09:44:57 +01:00
Kristian Bendiksen
370665e520 Fault Reactivation: extract density, youngs modulus and poissons number geo mech model. 2023-11-03 09:44:57 +01:00
Magne Sjaastad
43c5705c8b Define and use a common set of content margin sizes 2023-11-01 09:37:52 +01:00
Kristian Bendiksen
9fc380dd5f Fault Reactivation Model: Remove unused cell index adjustment. 2023-10-30 16:09:10 +01:00
Kristian Bendiksen
fcf565e541 #10753 Fault Reactivation: improve step names
Fixes #10753.
2023-10-30 16:09:10 +01:00
Kristian Bendiksen
ea4e46b400 #10743 Fault Reactivation: export temperature and void ratio per node.
Fixes #10743.
2023-10-30 16:09:10 +01:00
Magne Sjaastad
a91afff937 Make sure axis is set correctly when appending plots
The plots are duplicated, and the axis objects are referenced using ptrField. Make sure resolveReferencesRecursively() is called after the plot is inserted into the project tree.
2023-10-30 11:20:21 +01:00
Magne Sjaastad
4ffd11da24 Use a time based summary plot as source for time axis linking
If a summary plot is created with a cross plot curve, the time axis object might not be configured. Always use a time based summary plot as source for linking of time axis.
2023-10-30 11:20:21 +01:00
Magne Sjaastad
184ed5fb65 Call zoomAlll when x-axis type changes
This will ensure that the x-axis range is reset when switching from a cross plot to time plot
2023-10-30 11:20:21 +01:00
Magne Sjaastad
cb7fe4fae5 Valve Import: Avoid duplicated import 2023-10-20 15:43:18 +02:00
Magne Sjaastad
a67c2733e7 Add field and object keywords for release 2023-10-20 15:43:18 +02:00
Magne Sjaastad
12794f80f2 Area Fill: Fix are fill issue related to stacking of curves 2023-10-20 15:43:18 +02:00
Magne Sjaastad
6357844d5e Make sure Show ensemble curves works when multiple curves are selected 2023-10-20 13:56:11 +02:00
Magne Sjaastad
b6f2dbb915 Regression curve: Make sure source curve for regression always is created
The regression curve is using the curve object as data source for regression. Make sure that the source curve is always created, and set uncheck based on curve visibility.
2023-10-20 13:56:11 +02:00
Magne Sjaastad
1b2cae64c7 Add FWPR FOPT to cross plot vector list and reorder 2023-10-20 13:56:11 +02:00
Magne Sjaastad
bc7ec5f40c Fishbones : Add support for creating three different parameter sets 2023-10-19 14:49:42 +02:00
Magne Sjaastad
bb3380b216 Show warning if no cross plot statistics curves can be computed. 2023-10-19 14:49:42 +02:00
Magne Sjaastad
0ec5913024 Create Cross Plot: Improve text and add menu separator 2023-10-19 14:49:42 +02:00
Magne Sjaastad
c10d8561a3 Regression Curve: Remove unit text
As cross plot curves is supported, it will require a bit work to make the unit text correct in all cases. To avoid confusion, remove the unit text.
2023-10-19 14:49:42 +02:00
Magne Sjaastad
9a02958640 Regression Analysis: Remove inf/nan from source data
If inf/nan is present in the input data, the regression analysis is not working.
2023-10-19 14:49:42 +02:00
Kristian Bendiksen
ac3e1ea4cf #10536 Observed data: fix handling of data with error bars when importing
Observed summary data with error bar results have two addresses: one for the
data, and one for the error data. When creating the RimSummaryAddress objects
in the "Data Sources" tree the error data address would occasionally be used
instead of the data address (due to lack of sorting and filtering).

Plots created from the error RimSummaryAddress would display the error data twice
in the "Show Plot Data" view.

Fixed by filtering out the error addresses and improving the sorting criteria.

Fixes #10536.
2023-10-19 08:00:51 +02:00
Magne Sjaastad
bf0277aedc Add missing include for MSVC 2023-10-19 07:56:57 +02:00
Magne Sjaastad
5f0f483025 Show Plot Data: Add special handling for well log plots
Well log plots do not derive from RimPlot, add special handling.
2023-10-19 07:50:02 +02:00
Magne Sjaastad
09d6df74bf Hide x-axis group for decline curves 2023-10-19 07:50:02 +02:00
Magne Sjaastad
a027febc57 Remove confusing UI elements
- hide selection of data source, set either summary or ensemble based on curve used as source
- only show available statistics curves
2023-10-19 07:50:02 +02:00
Magne Sjaastad
f763f73ba3 Regression Curves: Use a contrast color for the regression curves
Use a list of predefined colors, and select the color with the larges RGB difference to the source curve. This will ensure that we avoid ending up with fully white or fully black curves, unable to see.
2023-10-19 07:50:02 +02:00
Magne Sjaastad
2fe290bbce Regression Curve: Clear and hide regression curve if no source data is available 2023-10-19 07:50:02 +02:00
Magne Sjaastad
6858cfe3cf Performance: Update toolbar when required 2023-10-19 07:50:02 +02:00
Kristian Bendiksen
d20af80b85 #10678 Fault Reactivation Model: export more materials. 2023-10-18 18:44:03 +02:00
Kristian Bendiksen
4d351d2ff3 Fault Reactivation Model: improve const correctness. 2023-10-18 18:44:03 +02:00
Kristian Bendiksen
e7eb460737 GeoMechView: Fix crash when case is missing. 2023-10-18 18:44:03 +02:00
Kristian Bendiksen
8930b5b32d #10728 Fractures: add new conductivity in fracture mode to approximate Reveal behavior 2023-10-18 18:30:18 +02:00
Jon Jenssen
4f4b2cbb01 Add selection of global model 2023-10-18 17:48:00 +02:00
jonjenssen
7494302275
Fault Reactivation updates (#10727)
* Generate reservoir element sets
* Add support for materials
* Add local coordinate system support for exported model
2023-10-18 09:10:08 +02:00
Magne Sjaastad
18e9ef0558 Make sure seismic file reader is created in RiaApplication::loadProject() 2023-10-17 07:26:52 +02:00
Magne Sjaastad
a4428c1271 Regression Test: Guard crash if no seismic data is available 2023-10-17 07:26:52 +02:00
magnesj
664d7d4199 Fixes by clang-tidy 2023-10-14 02:12:34 +00:00
Magne Sjaastad
57aa033809 Remove call of resolveReferencesRecursively() from initAfterRead
Fixes by clang-format
2023-10-13 16:31:14 +02:00
Magne Sjaastad
0a40e24851 Disable IO for RicPasteAsciiDataToSummaryPlotFeatureUi preview text field 2023-10-13 16:31:14 +02:00
Magne Sjaastad
7b28a23668 Improve parsing of units in CSV column headers
Detect units enclosed by both () and []
Avoid duplicate vector name in UI
2023-10-13 16:31:14 +02:00
Magne Sjaastad
76d1827742 Performance: Use curve with most addresses to define source stepping addresses
If we have many single curves in one plot, using addresses for all curves destroys performance. Make sure we only use addresses for the curve with most available addresses.
2023-10-13 08:08:35 +02:00
Magne Sjaastad
c34d123dee Call zoomAll when curve stacking is changed 2023-10-13 08:08:35 +02:00
Magne Sjaastad
a446f874cb Propagate updated object to onChildrenUpdated() 2023-10-13 08:08:35 +02:00
Magne Sjaastad
0f4d2a61f6 Add updateCurveAppearance() to stackable curve 2023-10-13 08:08:35 +02:00
Magne Sjaastad
55cafc64c3 Always enable undo/redo framework to improve performance
It is possible to toggle undo/redo in Preferences. Use this setting to control display of undo/redo items in GUI (undo/redo buttons, undo stack, ..)

The use of undo/redo framework will speed up several multi-object operations significantly.
2023-10-13 08:08:35 +02:00
Magne Sjaastad
3b372109ec Only show cross plot group for cross plots 2023-10-13 08:08:35 +02:00
Magne Sjaastad
9537d8afc1 Use time steps from source summary curve 2023-10-12 11:00:42 +02:00
Magne Sjaastad
6469888626 Valve Import: Make sure default values are handled correctly 2023-10-12 10:45:37 +02:00
Magne Sjaastad
4a3cdc4e94
Avoid use of time_t when using sliders in GUI
* Avoid use of time_t when using sliders in GUI
Sliders use int as internal representation of values, and time_t can cause overflow
2023-10-12 10:02:58 +02:00
Magne Sjaastad
cdda7480f3
Show Plot Data missing for some plots
* Add plotContentAsText() to bar chart builder
* Add show plot data to analysis plot
* Refactor analysis plot
* Enable context menu in Analysis Plot
* Add show plot data for general RimPlots
* Show plot data for correlation report in three separate text dialogs
2023-10-11 08:54:52 +02:00
Magne Sjaastad
51fe80b897 Create cross plot menu from list of addresses in preferences 2023-10-09 13:28:36 +02:00
Magne Sjaastad
ececc3ae47 Add a proxy field Show Ensemble Curves
Create a proxy field to invert the logic in m_hideEnsembleCurves, and avoid adding obsolete field and conversion code in initAfterRead()
2023-10-09 13:28:36 +02:00
Magne Sjaastad
6e41ef8af9 Use vector instead of set to make to avoid sorting of quantities
The plot title for cross plots should use insertion order to make sure the title is displayed correctly
2023-10-09 13:28:36 +02:00
Kristian Bendiksen
db77ea5762 Perforation Interval: make properties scriptable from Python. 2023-10-09 08:35:42 +02:00
Magne Sjaastad
445672cbb2 Remove use of obsolete cross plot code
Remove obsolete summary cross plot classes and features
2023-10-05 07:47:47 +02:00
Magne Sjaastad
f1514f2f3a Fix regression introduced in https://github.com/OPM/ResInsight/pull/10680 2023-10-05 07:47:47 +02:00
Kristian Bendiksen
55eeccf7c5 Refactor: add RimWellLogFile interface 2023-10-04 09:09:25 +02:00
Kristian Bendiksen
651235b352 Refactor: rename method. 2023-10-04 09:09:25 +02:00
Magne Sjaastad
b43e6e2e8a Guard null pointer use 2023-10-03 09:08:16 +02:00
Magne Sjaastad
10189da362
Fix display of intersection lines in 3D view
* 10675 Fix missing intersection line geometry
* Change to list of visible surface intersection lines
* Enable surface intersection band for any intersection
* Show labels for intersection curves in 3D

The polylines are defined in the display coordinate system without Z-scaling. The z-scaling is applied to the visualization parts using Part::setTransform(Transform* transform)
The annotation objects are defined by display coordinates, so apply the Z-scaling to the coordinates.

* Improve naming of surfaces
* Use scaling factor of 1.0 for flat intersection views
2023-10-03 09:04:46 +02:00
Magne Sjaastad
21843820e6
Update clang-tidy.yml
* Make sure clang-tidy action use .clang-tidy config file
Use add-paths to instruct create-pull-request to a sub folder to avoid diff from Qt and vcpkg

* Use empty() in macro to avoid clang-tidy warning
* Add NOLINT to CAF_ASSERT
* Add NOLINT to cvfAssert
2023-10-03 09:04:08 +02:00
Kristian Bendiksen
8df4dd42eb Refactor: rename RimWellLogFile to RimWellLogLasFile 2023-10-02 16:04:53 +02:00
Kristian Bendiksen
d177491843 #10648 Refactor summary reader: return std::vector<double> instead of taking ptr. 2023-10-02 09:16:52 +02:00
Magne Sjaastad
263e39b97b
Add regression curves to ensemble statistics curves
* Add statistics enum
* Support ensemble statistics curve as data source for regression curves
* Allow creation of regression curves from statistics curves
* Make sure regression curves are updated after source curves
* Add state to use full or user defined range for regression source data
* Add isRegressionCurve
* Make sure source stepping works when regression curves are present
2023-09-30 11:07:23 +02:00
Kristian Bendiksen
9832604c66 Refactor: Rename RigWellLogFile to RigWellLogLasFile. 2023-09-29 14:48:20 +02:00
Kristian Bendiksen
1b70eaabb4 Fault Reactivation Export: Remove front and back sets. 2023-09-29 14:43:48 +02:00
Kristian Bendiksen
78becc81ac Fault Reactivation Export: print pore pressure per step to file. 2023-09-29 14:43:48 +02:00
Kristian Bendiksen
ca89bc429f Fault Reactivation Export: Use transform instead of orientation. 2023-09-29 14:43:48 +02:00
Jon Jenssen
33670df887 Add support for user defined index filters, makes some debugging tasks easier 2023-09-29 09:56:30 +02:00
Magne Sjaastad
40803581dd Add line style and symbol type to ensemble curves 2023-09-28 14:33:05 +02:00
Magne Sjaastad
d34bb8a64c
Improve ensemble cross plot statistics
* Support cross plot in plot templates
* Fix source stepping for cross plots
* Show cross plot data in "Show Plot Data"
* Use bin size and realization count when computing cross plot statistics
2023-09-28 14:32:32 +02:00
jonjenssen
0ccddcb836
Fault Reactivation updates (#10665)
* Support getting pore pressure for all nodes
* Misc fixes and updates in fault reactivation UI
* Disable fault reactivation result unless you load an odb from a valid working folder
2023-09-27 15:15:17 +02:00
kriben
be0d83e41e Fixes by clang-tidy 2023-09-27 12:43:49 +02:00
Kristian Bendiksen
8022b4e5bb Fault Reactivation Export: handle steps selection in export. 2023-09-27 12:41:35 +02:00
Kristian Bendiksen
74a656f47c Fault reactivation export: improve error handling. 2023-09-27 12:41:35 +02:00
Magne Sjaastad
1b1984e216
Adjustments related to cross plot curves
* Verify vector size only for cross plot regression curves
* Add filtering on axis orientation
Makes it possible to show only horizontal or vertical axes when selecting an axis to attach a curve to.

* Send curvesChanged signal to trigger multi plot updates
This signal will trigger update of axes and set correct scaling factor

* Use object name for axis object
* Use address for both x and y axis to create ensemble curve name
* Fix bug for drag/drop of ensemble object into plot
* Add RiaSummaryCurveAddress to RiaSummaryCurveDefinition
* Remove SummaryDataSource
* Use childFieldChangedByUi to trigger update of curves and titles
2023-09-27 10:18:52 +02:00
Kristian Bendiksen
2d13cfdad1 clang-tidy: Add readability-container-size-empty check. 2023-09-27 10:16:37 +02:00
Kristian Bendiksen
959c9d48fa #10649 ApplicationLibCode: Use collection.empty() instead of comparing with size 2023-09-27 10:16:37 +02:00
jonjenssen
a4def5d407 Put surface intersection lines in a group in seismic section collection ui 2023-09-25 23:11:11 +02:00
jonjenssen
192bf26781 Fix corrupted section when switching seismic data input 2023-09-25 20:11:31 +02:00
Magne Sjaastad
fb288f602d
Support ensemble cross plot curves
* Remove use of RifEnsembleStatisticsReader
* Add RimSummaryAddressSelector and RimEnsembleCrossPlotStatisticsCase
* Remove RifEnsembleStatisticsReader
* Add support for cross plot x-axis selection
* Support source stepping on ensemble cross plot curves
* Add isXAxisSummaryVector
2023-09-25 12:45:47 +02:00
Magne Sjaastad
55687c4e3e
Fix conversion into new cross plot structure
* Fix conversion into new cross plot structure
* Guard null pointer
* Create one multi plot per cross plot
2023-09-25 12:23:39 +02:00
Kristian Bendiksen
8e5788bb24 Reveal: dump StimPlan XML for debugging thermal completions. 2023-09-25 09:33:37 +02:00
Magne Sjaastad
4dd4ddc604 Add value range filtering to cross plot regression curves 2023-09-22 15:35:33 +02:00
Magne Sjaastad
e9b95ae740 Convert cross plots into summary plots 2023-09-22 15:35:33 +02:00
Kristian Bendiksen
b44eee2d18 Fault Reactivation: Fix part boundary conditions.
Disallows movement out of the plane (fixates the nodes in Y direction).
2023-09-22 10:15:31 +02:00
Kristian Bendiksen
816bb2df8f Revert "Fault Reactivation Model: Remove incorrect boundary conditions."
This reverts commit 06eb0fb724.
2023-09-22 10:15:31 +02:00
jonjenssen
27c769f714 Fix crash when creating a contour map from a 3d view 2023-09-22 06:56:01 +02:00
kriben
f22a013bc6 Fixes by clang-format 2023-09-20 19:55:39 +02:00
Kristian Bendiksen
06eb0fb724 Fault Reactivation Model: Remove incorrect boundary conditions. 2023-09-20 19:55:39 +02:00
Kristian Bendiksen
636535e720 Fault Reactivation Model: include local coord rotation in INP export. 2023-09-20 19:55:39 +02:00
Kristian Bendiksen
5fc5828d66 Fault Reactivation: Include application in INP export file. 2023-09-20 19:55:39 +02:00
Kristian Bendiksen
4f9e2dd2a3 Fault Reactivation Model: fix face definition in INP export. 2023-09-20 19:55:39 +02:00
Kristian Bendiksen
36f501ee92 Fault Reactivation Model: simplify export contents. 2023-09-20 19:55:39 +02:00
Magne Sjaastad
cde05458f2 Reorder curve calculator to use more of available screen space 2023-09-20 15:20:56 +02:00
Kristian Bendiksen
8007831e27 StimPlanModel: Make useEqlNumForPressureInterpolation scriptable. 2023-09-20 14:09:15 +02:00
Kristian Bendiksen
290d03df6c StimPlanModel: Fix log level failing pressure interp. message. 2023-09-20 14:09:15 +02:00
Kristian Bendiksen
ec6a13e1da StimPlanModel: Extrapolate pressure table to cover extraction range. 2023-09-20 14:09:15 +02:00
Magne Sjaastad
146412c600 Add support for summary cross plot curves in summary plots 2023-09-20 13:58:22 +02:00
Magne Sjaastad
b87fa0bc74 Support cross plot curves in plot templates 2023-09-20 13:58:22 +02:00
Magne Sjaastad
f07a5db559 Use post fix Y in RiaSummaryCurveDefinition 2023-09-20 09:58:48 +02:00
Magne Sjaastad
471790eebd Add data source for x-values
Default data source for x-values is RifEclipseSummaryAddress::timeAddress()
2023-09-20 09:58:48 +02:00
magnesj
0cd6cdd67e Fixes by clang-format 2023-09-20 09:58:48 +02:00
Magne Sjaastad
806f367566 Rename to SummaryCategory 2023-09-20 09:58:48 +02:00
Magne Sjaastad
c06cda3883 Add summary category time
To be able to represent the time in a RifEclipseSummaryAddress object we add time as a category
2023-09-20 09:58:48 +02:00
Magne Sjaastad
ae4a856343 Add isHorizontal and isVertical 2023-09-20 09:58:48 +02:00
Magne Sjaastad
e8aada80c5 Rename to plotAxis() 2023-09-20 09:58:48 +02:00
Magne Sjaastad
7d7442c3f8 Sort AICD templates based on ID 2023-09-19 19:58:08 +02:00
jonjenssen
5d3fb8ceb9
Fault reactivation (#10624)
Update result to generate well paths based on information from model generator. Store settings in JSON file.
Add method to access local coordinate system definition
2023-09-19 18:03:36 +02:00
Kristian Bendiksen
0ca609fdac StimPlanModel: Use default overburden facies for pressure depletion. 2023-09-19 09:03:56 +02:00
Kristian Bendiksen
1e2f8fadef StimPlanModel: Fix bug in pressure interpolation. 2023-09-19 09:03:56 +02:00
Magne Sjaastad
cc59eba6e0 Add multi axis zoom class
Add class used to zoom all axis in a plot based on a screen rectangle.
2023-09-15 13:59:58 +02:00
Magne Sjaastad
70dcb48830 Fix Import Summary Cases Recursively
Make sure that the loaded summary cases are added to the project.
2023-09-15 13:59:37 +02:00
Magne Sjaastad
6f6f77322b Guard null pointer 2023-09-14 15:19:01 +02:00
jonjenssen
bd7f34f835
Fault Reactivation Modeling updates (#10602)
* Add timestep selection
* Add import geomech model to context menu
* Add command for running fault reactivation 
* Change order of nodes for exported elements
* Add command to quickly show model in 3D view
2023-09-14 08:29:28 +02:00
Kristian Bendiksen
e8cbbf5d55 Fault Reactivation Model Export: fix problems after run. 2023-09-13 14:09:34 +02:00
Kristian Bendiksen
50cf568a82 Janitor: Add missing include. 2023-09-13 14:09:34 +02:00
Magne Sjaastad
c22b8b2e1f
Remove duplicated code
* Use annotation tools from part manager
* Set version to 2023.06.01-dev.06
2023-09-13 09:43:03 +02:00
Magne Sjaastad
f4c61c9edb Changes based on review 2023-09-13 08:29:15 +02:00
Magne Sjaastad
f18eb29552 Add optional measured depth labels to well path 2023-09-13 08:29:15 +02:00
Magne Sjaastad
3e340361e8 Add annotation label support to surface intersection lines 2023-09-13 08:29:15 +02:00
Magne Sjaastad
4475f7b0f4 Add annotation label data structures 2023-09-13 08:29:15 +02:00
Magne Sjaastad
94c1b110fb Compute measured depth at the first visible well path geometry 2023-09-13 08:29:15 +02:00
Magne Sjaastad
13b4c19bbb
Import of AICD valve definition from text file
* Add readKeywordContentFromFile
* Add import of AICD values from Completor and Eclipse
2023-09-12 19:45:32 +02:00
Kristian Bendiksen
1899184a41 Janitor: Remove deprecated method. 2023-09-11 17:39:38 +02:00
Kristian Bendiksen
5ecf621357 Python: Fix crash in project.close(). 2023-09-11 17:39:38 +02:00
Kristian Bendiksen
a36100e4fb StimPlan: Change default for Facies Pressure Settings.
Now set to be active and fraction values to be 1.0 for all facies.
2023-09-11 12:34:48 +02:00
Kristian Bendiksen
9c7f8b6f86 StimPlan: Add python api for enabling pressure table. 2023-09-11 12:34:48 +02:00
Magne Sjaastad
f931021385
Minor seismic surface lines fixes
* Support continuous lines along the seismic surface
* Make sure watertight surface include all cells
* Remove unused function and mark with static
* Invert surface intersection line visibility control
2023-09-11 07:56:08 +02:00
Magne Sjaastad
7632064105 Hide statistics legend if ensemble curves are visible 2023-09-08 08:38:46 +02:00
Magne Sjaastad
453fca7ba4 Compute TVD when MD is extracted from well path 2023-09-08 08:38:46 +02:00
Kristian Bendiksen
1edac5762d #10568 StimPlan Template: Add python api for appending Pressure Table Items 2023-09-07 09:18:41 +02:00
magnesj
4f279a1af3 Fixes by clang-tidy 2023-09-07 07:52:54 +02:00
Jon Jenssen
a4e3e26d19 Updated reader interface 2023-09-06 14:08:42 +02:00
Kristian Bendiksen
406c208b33 Refactor: Split INP exporter into parts. 2023-09-06 13:51:59 +02:00
jonjenssen
a2632982b5 Code updates 2023-09-06 13:51:59 +02:00
Kristian Bendiksen
a6d2bff77b Fix incorrect merge. 2023-09-06 13:51:59 +02:00
Kristian Bendiksen
5f9ad2dab1 Add missing include. 2023-09-06 13:51:59 +02:00
Kristian Bendiksen
ddd7410730 Write more data to inp file. 2023-09-06 13:51:59 +02:00
Jon Jenssen
3817cea3cf Fix grid generation.
Add model thickness parameter.
Add support for reloading INP files from recent files
Add working directory field to fault reactivation model and put INP export there.
2023-09-06 13:51:59 +02:00
Kristian Bendiksen
6845c09c0c Add command for exporting INP files. 2023-09-06 13:51:59 +02:00
Kristian Bendiksen
e6ff86f51a Fix incomplete definition. 2023-09-06 13:51:59 +02:00
Kristian Bendiksen
107a74bd68 GeoMech: Add Abaqus "inp" file reader. 2023-09-06 13:51:59 +02:00
Kristian Bendiksen
d7bff0472e Add fault reactivation file export. 2023-09-06 13:51:59 +02:00
Kristian Bendiksen
bddabacc3e #10437 Add utility for exporting Abaqus INP files. 2023-09-06 13:51:59 +02:00
jonjenssen
32326bfa9b Add fault reactivation modeling 2023-09-06 13:51:59 +02:00
Kristian Bendiksen
14c37c4b2c RiaStdStringTools: Add method for removing white space 2023-09-06 13:51:59 +02:00
jonjenssen
e5fa4ae8c4
Support filtering on element sets (#10570)
* Add support for filtering on element sets in geomech cases
2023-09-04 15:48:08 +02:00
Magne Sjaastad
3e3812469a #10574 opm-common: Add support for map axes import 2023-09-04 14:11:47 +02:00
Magne Sjaastad
7a782cec66
RFT ensemble refactoring
* Compute average MD for intersections with a cell
* Create extractor for simulation well
* Remove rftReader from RifDataSourceForRftPlt
* Add function compute measured depth for RFT cells based on well path geometry
* Move statistics reader to well ensemble curve set
* Make sure both TVD and MD are cached if possible
* Add selection of grid case to use for estimation of measured depth (MD)
Add "Grid Model For MD" where the user can select a grid model. This grid model is propagated to a hidden field in EnsembleCurveSet. The grid model is then applied to RifReaderEnsembleStatisticsRft owned by EnsembleCurveSet
2023-09-04 10:08:30 +02:00
Magne Sjaastad
fe17b211b8 #10572 Summary Table: Crash when creating summary table if no case is present 2023-09-03 18:05:16 +02:00
Magne Sjaastad
2d0a6a9aa7 Add ResInsight version to status bar 2023-09-01 12:41:20 +02:00
Magne Sjaastad
a71d6fc67d Fix visibility of single RFT curves 2023-08-31 13:54:59 +02:00
Magne Sjaastad
6a8b15daa8 Add optional surface intersection lines onto seismic geometry 2023-08-31 13:50:39 +02:00
Magne Sjaastad
fb75d0471e Move line and surface intersection methods to RigSurfaceResampler 2023-08-31 13:50:39 +02:00
Magne Sjaastad
1ed7dcbd4a Add surface collection to RimTools 2023-08-31 13:50:39 +02:00
jonjenssen
0a807618b9
Cell filter performance improvement (#10550)
* Speed up eclipse and geomech cell filters
2023-08-29 14:41:55 +02:00
Magne Sjaastad
81809efee9 Add support for grid import using opm-common
Add support for import of geometry and results for main grid. Currently no support for LGR.

Add selection in Preferences to either use libecl or opm-common for grid import.

If RESINSIGHT_DEVEL flag is set, display reader in an Eclipse case to make it possible to compare Eclipse and opm-common in same project.

Add more includes to custom-opm-common to be able to support this functionality. opm-common is unchanged.
2023-08-28 13:46:50 +02:00
Magne Sjaastad
3800246b79
Performance: Slow performance for some plot and curve operations
* Performance: Cache registry value
* Performance: Avoid recursive update
Early return if values are identical
updateConnectedEditors is handled by setValueFromUiEditor
Avoid fieldChanged in analyzePlotsAndAdjustAppearanceSettings
2023-08-25 10:39:19 +02:00
Magne Sjaastad
d198dc8537 Summary Plot Manager: Add missing calculateValueOptions
This dialog was designed to be used efficiently from keyboard. By default, all filtered addresses are selected. To select a subset using the text filter, all addresses need to be unchecked before typing a text string in the filter text input.
2023-08-25 10:36:20 +02:00
Magne Sjaastad
58e35bdbec Summary Plot: Compute default y-range based on visible plots
Previously, when the stepping dimension was set to 'well' for range aggregation, it was based on all wells. If one of the wells had extreme values and was not visible, it would set the y-range to match the extreme value, making some curves invisible. We have now changed the default setting to use visible subplots to determine the y-range aggregation.
2023-08-25 10:36:20 +02:00
Kristian Bendiksen
e7c62b1d42 Python: make checkable object scriptable. 2023-08-23 14:53:53 +02:00
Magne Sjaastad
bb293539d5
Additional refactoring for POR-Bar result handling
* Always use element-nodal for POR calculations
* Add RigFemAddressDefines
Add special handling for "POR-Bar" result, always use element_nodal

* 9362 Show unit text "sg" when normalized by hydrostatic pressure
2023-08-23 13:29:54 +02:00
Kristian Bendiksen
7aabe8c4a8 Python: add type hinting to python code.
Types are checked using mypy.

Fixes #10394.
2023-08-23 09:47:44 +02:00
Magne Sjaastad
b1157436fe #10523 Export sector model: Support more result categories
Allow export of GENERATED and INPUT_PROPERTY in addition to STATIC.
2023-08-21 13:58:58 +02:00
Magne Sjaastad
96b3bef878
Reduce memory use for summary address object
* Use one common variable for object name, use three ints
* Move enums to separate file
* Refactor use of enums
* Move implementation to cpp
* Refactor includes
2023-08-21 07:12:08 +02:00
Magne Sjaastad
1b886c1a1e #9507 Fix normalize by Hydrostatic Pressure for pore pressure 2023-08-18 10:58:45 +02:00
Magne Sjaastad
3030e9f4af
Refined grid export appears to give wrong number of cells
* #10503 Refined grid export appears to give wrong number of cells
Make sure size of exported grid is correct
Refactor computation of cell indices
2023-08-18 10:57:12 +02:00
Magne Sjaastad
b0edce4839 Avoid update connected editors
The call to updateConnectedEditors is very time consuming for summary models with many vectors. Testing indicates that this update is not required.
2023-08-18 07:02:01 +02:00
Magne Sjaastad
533b0805c0 Color legend range: Do not round values if min and max is identical
If min and max is identical, keep the original value. This will ensure that a discrete legend contains only one level.
2023-08-17 07:02:26 +02:00
Magne Sjaastad
56ad4b1888 Surface: Check if cell is active when creating grid surface
The IJK bounding box of active cells was used to create grid surface. This created misleading geometry in some cases. Avoid geometry creation for inactive cells.
2023-08-17 07:02:26 +02:00
jonjenssen
4c1947af11
Automatically create a new seismic view if no 3d views already exists when importing seismic data. (#10510) 2023-08-16 07:10:48 +02:00
Magne Sjaastad
002b7af350 #10488 Element property values not shown in geomech view
Make sure element results are created only once
Make sure single element results access data for time step 0 and frame 0
2023-08-16 07:09:06 +02:00
Magne Sjaastad
ef2de3e5c6
Support well path geometry for summary RFT data
* Compare well path names when matching sim well names
* 10501 Make it possible to use well path geo when plotting summary RFT data
2023-08-15 13:37:23 +02:00
Magne Sjaastad
a243311ebb Remove ESMRY from .gitignore
As the content of ESMRY has changed due to file reader changes, ESMRY files needs to be included in the repo
2023-08-15 09:26:22 +02:00
Magne Sjaastad
0bada502fb 9498 Add parsing of network name
Use merged commit
2023-08-14 11:20:01 +02:00
Magne Sjaastad
aafcd2f9b6 Fix console application issue 2023-08-11 21:30:27 +02:00
Magne Sjaastad
07e830eab6 #10495 Add scale factor to the position of well head 2023-08-11 21:30:27 +02:00
Magne Sjaastad
beb43c585c Adjust highlight color only when hue or saturation is above threshold 2023-08-11 13:54:03 +02:00
Magne Sjaastad
267aee9d91 Reorder and simplify resampling tabs for summary data
Show year as the left most tab, and minute as the right most tab.
2023-08-11 13:54:03 +02:00
Magne Sjaastad
b7e2d2182c Guard null pointer access
When switching between seismic cubes with different sizes, a trace can end up being null
2023-08-11 13:54:03 +02:00
Magne Sjaastad
3dcb81ebfb Do not create default plot if plot window is hidden
When working in the 3D window, creating a MDI window in a hidden plot window causes flickering.
2023-08-11 13:54:03 +02:00
Magne Sjaastad
9677a18bfa Use copy icon to copy text to clipboard 2023-08-11 13:54:03 +02:00
Magne Sjaastad
503180ba48 Do not tag calculator results to be stored in cache 2023-08-11 13:09:30 +02:00
Magne Sjaastad
45be0e6d6d
Use precompiled headers to speed up build
* Add precompiled headers to Commands, and improve usage
* Use precompiled headers on github action
2023-08-11 12:41:40 +02:00
Magne Sjaastad
d36bf92b55
Adjust value ranges using floor and ceil
* Use regression curve icon in grid cross plot
* #10481 Use ceil and floor when adjusting precision for ranges
2023-08-09 07:51:17 +02:00
Magne Sjaastad
20d762fa33 #10475 Support delta computations for generated results
Add support for RiaDefines::ResultCatType::GENERATED in the condition
2023-08-08 08:23:37 +02:00
jonjenssen
2172199999
Add seismic 3d view (#10472)
* Show seismic, surfaces, annotations and wellpaths in new view not requiring a grid loaded first.
2023-08-07 16:35:59 +02:00
Kristian Bendiksen
5bf2c2a89d #10367 Janitor: Remove unneccessary 'this' pointers 2023-08-07 13:38:27 +02:00
Magne Sjaastad
f20a83c710 Add create_statistics_case
Remove original implementation not working in gridcasegroup.py
Add create_statistics_case object method
2023-07-11 09:22:14 +02:00
Magne Sjaastad
91c253f8fe Python support for grid case groups 2023-07-11 09:22:14 +02:00
Magne Sjaastad
35e2e43c3a Fix crash if main window is null
When launching a script, the main window must be created. It is the Process Monitor that received info from the process and passes the text to process monitor and Message Panel.
2023-07-07 16:11:35 +02:00
Magne Sjaastad
8b7144d987
Fix missing curve tracker
* Move some functionality from protected to private
* Attach curve text provider when creating plot widget
* Add missing cleanup in destructor of RimWellLogTrack
2023-07-07 07:53:22 +02:00
Magne Sjaastad
aaecd846fd
Improve plot titles and layout adjustments 2023-07-06 08:40:09 +02:00
Magne Sjaastad
09b8bfdc06
Do not clear generated results during statistics computation 2023-07-04 16:56:02 +02:00
Magne Sjaastad
93c943543b #10426 Summary Data: Show confirm dialog before creating a large number of text lines 2023-07-03 07:30:16 +02:00
Magne Sjaastad
8f83d25c9d
Publish Python package to pypi when a commit is tagged
* Publish to pypi from main workflow
* Remove pinning
* Include version info for proto tool in RiaVersionInfo.py
2023-06-29 14:07:04 +02:00
Magne Sjaastad
8a41d5a085 #10438 Fix stacking of curves
This was a side effect of changes in 69a668d
The return value when accessing time step values changed from const std::vector<time_t>& to std::vector<time_t>. When computing data related to stacking of curves, the data was inserted into a vector, and the change caused the insert operation to use two different vectors instead of one.
2023-06-29 13:10:42 +02:00
Kristian Bendiksen
c7032c60d2 Grid Cross Plot: Fix sub items on/off behavior. 2023-06-28 21:46:11 +02:00
Kristian Bendiksen
b5d6421f22 #10387 Grid Cross Plot: update plot on color changes
Fixes #10387.
2023-06-28 21:46:11 +02:00
Kristian Bendiksen
fdf4309d82 Grid Cross Plot: Add regression curves. 2023-06-28 21:46:11 +02:00
Magne Sjaastad
1da509166a
Improve CmdFeature base class
Add default implementation of isEnabled() and add const
2023-06-26 14:28:46 +02:00
Magne Sjaastad
59ca0b943c
Add readability-simplify-boolean-expr
* Add readability-simplify-boolean-expr
* Fixes based on review
2023-06-26 13:12:41 +02:00
Magne Sjaastad
aff2e7158f #10415 Producer/Injector connectivity: Make sure all wells are visible by default 2023-06-26 10:17:47 +02:00
Magne Sjaastad
f8fd72c823 #10411 Surface Extraction: Include inactive cells in active cell area 2023-06-26 10:17:47 +02:00
Jørgen Herje
0685078ab3
Fix automatic part id detection for Fault Reactivation Result, and resampling bug in RigWellLogCurveData
* Fix resampling bug and refactor code
- Fix bug for resampling, prevent index increment.
- Refactor functions into static functions.
- Fix issue in interpolateSegment not using correct indices for depthType != resamplingDepthType
- Add unit tests

* Change WellAllocationPlot to use step left
Remove dummy point and utilize step left for WellAllocationPont

* Fix bug in creating resampled values and depths for RigWellLogCurveData

* Fix automatic part detection for Fault Reactivation Result
- Fix incorrect automatic part detection
- Set default distance to intersection to 1.0 [m]
2023-06-20 10:08:10 +02:00
Kristian Bendiksen
22e9e7aeb0 #10210 Reveal Summary Import: map reveal names to eclipse names.
This gives better behavior in summary plot (correct phase colors and better
default axis grouping).

Fixes #10210.
2023-06-19 21:22:27 +02:00
Kristian Bendiksen
dd05380039 StimPlan Model: handle missing default facies in elastic property calculator. 2023-06-19 21:21:25 +02:00
Kristian Bendiksen
3bdb57d637 StimPlan Model: fix crash when model has been deleted. 2023-06-19 21:21:25 +02:00
Kristian Bendiksen
9fd9e90c61 Well Log Extraction: adjust tolerance to keep more cell edge intersection
This keeps more cell edge intersections for thin cells (in z direction).
2023-06-19 21:21:25 +02:00
Magne Sjaastad
56501f7f6d Avoid display of first degree of x 2023-06-16 16:49:40 +02:00
Magne Sjaastad
116f1b1713 Use larger font for expression display 2023-06-16 16:49:40 +02:00
Kristian Bendiksen
1b85f628a0 Decline Curves: zoom to include forecast data when creating curves 2023-06-16 16:49:40 +02:00
Kristian Bendiksen
6c99ceb7ea Regression Analysis: remove time selection annotation when curve is hidden 2023-06-16 16:49:40 +02:00
Kristian Bendiksen
452969118f Summary Regression Analysis: fix time scale precision problems
Time scale is now converted from seconds since epoch to years since first data
point. This gives better precision in regression analysis.
2023-06-16 16:49:40 +02:00
Kristian Bendiksen
413da2e714 Decline curve: remove time selection annotation when curve is hidden 2023-06-16 16:49:40 +02:00
Magne Sjaastad
06b5c9afbf
Adjustments for release
* Add notification of parent object when multiple objects are updated

* Make sure unchecked curves are removed from track

* Use object names instead of "Sub Items" when possible

* Set default simulation well visualization to top of reservoir

* Show plot window after plot is created

* Allow setting plot rendering flags

* Add more plots for update when clicking in 3D view

* Seismic Difference: Fix typo for poly line data extraction

* Version RC_5
2023-06-16 09:27:35 +02:00
Magne Sjaastad
36811e7f94
Prepare for release RC_04
* Add example for import_case for ROFF
* Add field and object keywords
2023-06-12 15:52:20 +02:00
Jørgen Herje
2639c7172f
Fix bug in color mapping when changing mapping mode for Tables
* Fix color mapping and ticks in table legend
- For Summary and WellConnectivity
- Add range types: automatic and user defined
- Remove category from mapping type
- Add closest to zero for correct logarithmic scale
---------

Co-authored-by: Magne Sjaastad <magne.sjaastad@ceetronsolutions.com>
2023-06-12 15:44:39 +02:00
Jørgen Herje
1335b4bc09 Use part name in dropdown rather than part id
Use part name rather than part id for readability
2023-06-12 15:23:47 +02:00
Jørgen Herje
66db9d73a9 Add geom part id to name/title of WellLogExtraction curve 2023-06-12 15:23:47 +02:00
Jørgen Herje
ee5f89c343 Make selection of part id into dropdown list for WellLogExtractionCurves 2023-06-12 15:23:47 +02:00