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
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