Commit Graph

2081 Commits

Author SHA1 Message Date
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
Magne Sjaastad
00cb4e3252 Always use auto title in preview plot 2023-11-27 13:14:16 +01:00
jonjenssen
34a77a8f20 Build fix 2023-11-27 08:17:44 +01:00
jonjenssen
6421e09557 Grow cell size horizontally, too 2023-11-27 08:17:44 +01:00
Kristian Bendiksen
18cb0dbe6f Fault Reactivation: Fix more references to ALL sets. 2023-11-24 13:21:21 +01:00
jonjenssen
039aee8d53
Fault Reactivation Grid Update (#10866)
* Fix gridding error
* Add part name to element set filter
* Use sea bottom from geomech case model, if selected
2023-11-23 19:01:42 +01:00
jonjenssen
2b795bf499
Fault reactivation gridding update (#10855)
Rewrite grid generator - grid based on eclipse model layers in reservoir.
2023-11-20 15:39:17 +01:00
Magne Sjaastad
0852f857a0 Not required to process event anymore 2023-11-20 14:13:24 +01:00
Magne Sjaastad
f44df76089 Early return if the active view is the same as the activated view
This will make sure that selection in the project tree is stable for focus in events.
2023-11-20 14:13:24 +01:00
Magne Sjaastad
98ce0dc226 Hide deprecation warning starting from MSVC 17.8 2023-11-20 14:13:24 +01:00
Kristian Bendiksen
5bba0eaea8 #10690 Fractures: Show Perforation Interval for azimuth fractures.
Fixes #10690.
2023-11-20 09:30:32 +01:00
Kristian Bendiksen
a2919d4b0e #10842 INP grid importer: create sets for GENERATE keyword.
Fixes #10842.
2023-11-17 15:02:44 +01:00
Kristian Bendiksen
2beb830102 INP reader: fix incorrect zero element for line shift. 2023-11-17 15:02:44 +01:00
Kristian Bendiksen
58bf235d5a 2D Intersection View: Fix crash on project restore. 2023-11-17 12:47:47 +01:00
Kristian Bendiksen
b4c7eb2c4f Janitor: Remove unnecessary scoping. 2023-11-17 12:47:47 +01:00
Kristian Bendiksen
d2d1929f18 #10587 Improve filtering of comparable views.
Filter views based on the content of the source view. The option to
unsuccessfully compare 2D intersection views with 3D views is now removed.
2023-11-17 12:47:47 +01:00
Kristian Bendiksen
78544f5c70 #6051 Fix crash when pasting intersection on another eclipse case.
Fixes #6051.
2023-11-17 12:47:34 +01:00
Magne Sjaastad
b981f5f745
Hide deprecation warning starting from MSVC 17.8 2023-11-17 10:43:21 +01:00
Magne Sjaastad
ffabebfa53 Fallback to project path for export 2023-11-17 09:53:30 +01:00
Magne Sjaastad
a78f8f8982 Use enum instead of string 2023-11-17 09:53:30 +01:00
Kristian Bendiksen
7c4641c188 Fault Reactivation: fix Youngs Modulus unit (GigaPascal to Pascal). 2023-11-15 13:17:55 +01:00
Kristian Bendiksen
0a2f34a63d Fault Reactivation: Rename sets from "partname.partname" to "partname.ALL" 2023-11-15 13:17:55 +01:00
Magne Sjaastad
401ce4bc18 Guard use of null pointer 2023-11-15 08:39:01 +01:00
Magne Sjaastad
d3a1c80edf Guard null pointer use 2023-11-14 08:36:43 +01:00
Kristian Bendiksen
48c6517305 #10785 Work-around for legend item disappearing when highlighted
Seen on Linux only. The legend item would be wider than anticipated by the
layout (for unknown reasons), and would be place on the next line.
Added extra with to the size hint to work around the problem.
2023-11-13 13:29:07 +01:00
Magne Sjaastad
0f56eaed6b Add optional IJK to ResultPoint for easier debugging 2023-11-13 11:08:36 +01:00
Magne Sjaastad
9e65eb3be9 Add helper functions to convert from cellIndex to cafVecIjk 2023-11-13 11:08:36 +01:00
Magne Sjaastad
68a4d54af2 #10754: Exclude COMPDAT for de-activated laterals 2023-11-13 09:17:30 +01:00
Magne Sjaastad
76fdac0b80 Janitor: Remove unused code an move initializers to private 2023-11-13 09:16:58 +01:00
Kristian Bendiksen
9c410ee439 Fault Reactivation: export density and elastic properties to INP. 2023-11-13 08:45:09 +01:00
Magne Sjaastad
678a368361
Refactor LayoutOptions to improve readability
* Make it possible to use designated initializer list
- remove default constructor
- move static member to outer scope

* Add helper function to add field on same row
2023-11-10 14:48:56 +01:00
Magne Sjaastad
860f086af6 Add optional support for using visible cells as filter for grid statistics 2023-11-10 12:49:32 +01:00
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