Commit Graph

194 Commits

Author SHA1 Message Date
Magne Sjaastad
1e17da2926 Janitor : Add SOIL SGAS SWAT to RiaResultNames
wip
2022-01-07 10:38:56 +01:00
Magne Sjaastad
eeb51bd8f1 #8403 Ensure the NNC connection polygon is created before computing area 2022-01-04 12:24:21 +01:00
Magne Sjaastad
8defab9bc1
Merge pull request #8402 from OPM/8401-flow-vector-result
#8401 Flow Vector Result: Handle empty results for first time step
Use OpenMP for vector calculations

Janitor: Use field of double instead of float to avoid rounding errors. If float is used in field, the current editor is has rounding effects that makes the text representation of 0.1 turn into 0.09999999....
2022-01-04 07:29:56 +01:00
Magne Sjaastad
21f0988493 #8375 NNC : Create NNC generators when NNC data is available
This approach fixes an NNC visibility issue related to use of m_rimFault->faultGeometry()->connectionIndices() before any was assigned in RigMainGrid::distributeNNCsToFaults()
2021-12-20 10:23:52 +01:00
Magne Sjaastad
891a2e7c29 #8375 Flow Vectors : Avoid recomputing NNCs when accessing flow data
Avoid include of RigNNCData.h in header files.
2021-12-20 10:23:52 +01:00
Magne Sjaastad
d82fa7f72b Janitor : Show warning when generated NNCs count is larger than 5M 2021-12-20 10:23:52 +01:00
jonjenssen
58f5c2e92b
Stop ResInsight from crashing when calculating cell volume (#8374)
* Stop ResInsight from crashing when calculating cell volume
2021-12-17 16:10:24 +01:00
Magne Sjaastad
0d213e659c #8371 Make sure all NNC faces are created and assigned
Make sure that the first cell in RigConnection is assigned the lowest cell index. Assign the opposite face if the cell indexes are swapped.
In RigCellFaceGeometryTools, test both combinations of (cellA, cellB) and (cellB, cellA)
2021-12-16 14:25:21 +01:00
Magne Sjaastad
88ca478bab Janitor : Rename variable and function names 2021-11-24 09:24:35 +01:00
Magne Sjaastad
917748e1a4 #8294 Export Well Path: Error in MD description
For file well paths, always use text MDRKB
For modeled well paths use MDMSL if airgap is zero, otherwise MDRKB
2021-11-24 09:24:35 +01:00
Kristian Bendiksen
ce6ea17cd2 #8182 Fracture Statistics: improve floating point format 2021-11-01 08:38:43 +01:00
Kristian Bendiksen
ea496072b8 #8102 Ensemble Well Log Plot: Fix crash when using TVD 2021-10-29 13:23:13 +02:00
Kristian Bendiksen
c3a5b980a4 #8029 Ensemble Fracture Statistics: improve area of statistics result 2021-10-27 21:59:26 +02:00
Magne Sjaastad
d1d072140e Janitor : Move critical section into inner scope 2021-10-20 14:41:45 +02:00
jonjenssen
b169900c41
GeoMech Intersection updates: support multiple parts (#8160)
* Rearrange intersection classes, split single file into one-per-class

* Support multi-part geomech case intersections
2021-10-15 16:57:18 +02:00
Magne Sjaastad
afadaf27d5
Merge pull request #8159 from OPM/performance-surface
Performance Surface import and resampling
2021-10-15 16:55:58 +02:00
Kristian Bendiksen
cc80f2300b RigWellPath: Fix interpolation in RigWellPath::closestMeasuredDepth 2021-10-15 13:52:45 +02:00
Kristian Bendiksen
36eda01be8 #8121 Fracture: provide statistics per fracture 2021-10-08 08:36:01 +02:00
Magne Sjaastad
6a6fc52ef9 Janitor : Performance improvements identified by profiling 2021-09-30 12:13:22 +02:00
Kristian Bendiksen
51808d5ba7 #8034 Use omp for index result calculation. 2021-09-29 09:40:27 +02:00
Magne Sjaastad
cb6180b118 #8041 Histogram Calculations : Guard access to missing or empty result data
Crash seen when computing histogram data based on a difference case with no data.
2021-09-23 11:18:57 +02:00
Kristian Bendiksen
3d0fa2e7c7 Remove excessive debug logging of well centers. 2021-09-23 09:21:15 +02:00
Kristian Bendiksen
ebeaa8088c #8030 Ensemble Fracture Statistics: report area for individual fractures 2021-09-23 09:21:15 +02:00
Magne Sjaastad
2480a782d1
Ensemble Surface improvements
* Performance : Improve surface import
* Performance: Use opm when importing files
* Surface : Use the triangle size as basis for the maximum search distance
* Performance : Resample surfaces in parallell
* Performance: Import file surfaces in parallell
* Ensemble Surface : Create one ensemble per surface
2021-09-16 14:28:19 +02:00
Kristian Bendiksen
1e83254e9e
Make P10/P90 calculation style more explicit 2021-09-16 10:38:27 +02:00
Kristian Bendiksen
1312f1d7b5
7962 ensemble fracture stats skip zero width (#7992)
* #7962 Ensemble Fracture Statistics: Add option to exclude zero width fractures

* #7962 Ensemble Fracture Statistics: fix data accessor used in statistics plot.

* #7962 Ensemble Fracture Statistics: Update referring plots.

* Ensemble Fracture Statistics: parameter name

* Fixes by misspell-fixer (#7994)

Co-authored-by: kriben <kriben@users.noreply.github.com>

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: kriben <kriben@users.noreply.github.com>
2021-09-13 08:34:03 +00:00
Kristian Bendiksen
117d201703
#7963 Ensemble Fracture Statistics: add progress bar. (#7985)
Also avoid recalculating the statistics for each added file.
2021-09-10 14:54:46 +02:00
Magne Sjaastad
e961dce97d #7944 Cell selection: Avoid crash for Pflotran simulation case 2021-09-02 15:55:43 +02:00
Magne Sjaastad
b397c230ac #7940 Python : Traverse inheritance stack to find correct script class name 2021-09-02 08:55:35 +02:00
Magne Sjaastad
638f926429
cmake-format: Allow dangling parenthesis 2021-09-01 08:13:16 +02:00
Kristian Bendiksen
8d42533179
#7869 Ensemble Fracture Statistics: optimization by AABB tree. (#7924) 2021-08-30 13:01:18 +00:00
Kristian Bendiksen
414ee77aa8
#7834 Ensemble Well Logs: add depth equalization (#7914) 2021-08-30 09:18:34 +02:00
Kristian Bendiksen
2f580a0c52 #7863 StimPlan Model: Add TST correction for more correct zone thickness
TST is now adjusted (average of TST and TVD in 3D) to improve the zone thickness
in the well log plot.
2021-08-27 11:29:46 +02:00
Magne Sjaastad
b78cf3a4bb
Use cmake-format on all cmake files 2021-08-26 19:46:38 +02:00
Magne Sjaastad
2fc65a3b62
#7892 Basic support for display of surface lines and bands on intersections
Guard divide by zero issues
2D Intersection View: Do not add parts with wrong coordinates
Add bounding box search tree
Add support display of intersection lines for selected surfaces
Show band between two first intersection lines
2021-08-26 08:13:03 +02:00
Kristian Bendiksen
966bcd1e77
Ensemble surface import and statistics 2021-08-17 13:38:12 +02:00
Magne Sjaastad
8dbb1d5ccd
Improve well path modeling
* Improve handling of MD at first target
* When sea level well target is disabled, update MD of first target
* Show well target spheres by default, allow toggling of spheres
* Activate well target modifiers when clicking on well targets
* Remove selection update causing an unstable 3D view
* Improve display and handling of multiple locations
* Add special 3D target for tie in well target
* Add slider to tie in MD input field
* Show MD in well path target table
* Delete all well path laterals when deleting a well path

* Python : Add lateral to parent well
* Python : Add perforation interval
2021-08-13 16:48:33 +02:00
Kristian Bendiksen
f31aecf507 Refactor: extract EnsembleParameter into separate file. 2021-06-30 10:43:11 +02:00
jonjenssen
aa2b4305de Improve handling of LGRs in cell filters (#7783)
* Improve handling of LGRs in cell filters
2021-06-25 14:44:52 +02:00
Kristian Bendiksen
56b80b8a02 #7804 Compute static result for IJK indexes. 2021-06-23 15:34:40 +02:00
Magne Sjaastad
8259220abd #7765 Well Log Curves : Improve handling of units 2021-06-09 21:18:42 +02:00
Magne Sjaastad
7ecd9b462a #7660 Imported Input Properties should be time step independent 2021-06-04 12:12:50 +02:00
Magne Sjaastad
b3467a2fca #7739 Show only visible categories in legend
For the main Cell Result Legend, add an option to only show visible categories
2021-06-01 08:09:47 +02:00
Magne Sjaastad
d132accd1d Janitor : Clamp time step index 2021-06-01 08:09:47 +02:00
Magne Sjaastad
9d58769f89 Janitor : Avoid include of header file in header 2021-05-26 13:28:45 +02:00
Magne Sjaastad
3fca5f15ae Janitor : Use enum class 2021-05-26 13:28:45 +02:00
Magne Sjaastad
19d650f619 #7655 Well Allocation Plot: Avoid duplicated flow in tie-in cells
Make sure the tie-in cell is not duplicated
2021-05-26 13:28:45 +02:00
Magne Sjaastad
03917f2e1c #7655 Well Allocation Plot: Make sure all branches are computed
fix
2021-05-25 22:36:01 +02:00
Magne Sjaastad
3d44ad37db #7719 Multi-lateral wells : Use top level well path to get air gap
Get airgap/md at first target from top level well path
2021-05-25 11:50:18 +02:00
Magne Sjaastad
9ccc650513
Fix missing includes 2021-05-20 10:59:53 +02:00
Magne Sjaastad
af22b7f707 Fix missing include
Detected by https://github.com/OPM/ResInsight/actions/runs/858894448
This action do not use unity_build, and the missing include is seen
2021-05-20 07:37:55 +02:00
Magne Sjaastad
b518acada6 Janitor : Use enum class 2021-05-18 16:22:05 +02:00
jonjenssen
4a4db5a3f2
Fault reactivation assessment #7321 (#7690)
Fault Reactivation Assessment implementation (ref issue #7321)
2021-05-18 14:28:54 +02:00
Kristian Bendiksen
647f7834f0 #7663 Ensemble Statistics Plot: Add user input for number of histogram bins. 2021-05-18 08:58:40 +02:00
Kristian Bendiksen
7c7f319e41 #7670 Show Ensemble Fracture Statistics as table 2021-05-18 08:17:45 +02:00
Kristian Bendiksen
bc70b11f6c Add missing include to define size_t 2021-05-14 14:19:09 +02:00
Magne Sjaastad
1daa598770 #7656 Well Group: Simplify organization of well groups 2021-05-11 09:27:55 +02:00
Kristian Bendiksen
8ee72e0f0a #7609 Simpler names for statistics properties. 2021-05-10 14:03:52 +02:00
Kristian Bendiksen
ebea8cfbef #7609 Handle unit conversions for width input. 2021-05-10 14:03:52 +02:00
Kristian Bendiksen
359df8360e Refactor: Make a copy of histogram data. 2021-05-10 14:03:52 +02:00
Kristian Bendiksen
01d88030d4 #7609 Calculate and display Ensemble Fracture Statistics plot. 2021-05-10 14:03:52 +02:00
Håvard Berland
c62149f652 Correct wording error in well log warning
Monotonically is the mathematical term.
2021-04-29 11:18:51 +02:00
Kristian Bendiksen
cae5e1062f #7559 Adaptive meshing in y direction. 2021-04-23 15:36:42 +02:00
Magne Sjaastad
ce881aecb5 #7585 Multi Lateral Well Adjustments : Hide well log extraction error messages 2021-04-19 11:16:36 +02:00
magnesj
a44378e2f5 Fixes by clang-tidy 2021-04-15 08:00:07 +02:00
Magne Sjaastad
63690d5196 Major rewrite of MSW export model 2021-04-13 07:54:34 +02:00
Kristian Bendiksen
fc7ac06b42 #7493 Fracture definition: Check if unit system conversion is necessary. 2021-04-09 15:35:05 +02:00
Kristian Bendiksen
6f9f77e009 #7493 Add RigSlice2D utility class. 2021-04-09 15:35:05 +02:00
Magne Sjaastad
d754ef4705 Janitor : Several fixes by clang-tidy and use of clang compiler 2021-04-05 11:51:23 -07:00
Magne Sjaastad
2d9ac615f2 Add MacOS build support 2021-04-05 09:39:12 -07:00
Magne Sjaastad
59562aec29 #7470 Well Path Tools : Use a positive value of each component to represent length 2021-03-08 13:18:40 +01:00
Kristian Bendiksen
6481813eeb #7116 Add extrapolation for missing elastic properties.
Also improve error message.
2021-03-05 19:18:22 +01:00
Magne Sjaastad
3e2ddce10d #7442 Create LGR : Segfault when no dynamic data is present
This fix will also display eperforations when no dynamic data is present

https://github.com/OPM/ResInsight/issues/6911
2021-03-03 10:55:15 +01:00
Kristian Bendiksen
8ca43bce63 #7392 Extract geometry methods from RimStimPlanModel. 2021-02-26 16:03:17 +01:00
Magne Sjaastad
8bab748fa6 Improve MSW export including multi lateral wells
Based on branch https://github.com/OPM/ResInsight/tree/system-msw-refactor

- Move completion settings to property of well path
- Rename to RimFishbones
- Export implicit COMPSEGS for fishbones main bore
- Add valve for each branch
- Increase version number to be able to handle import of legacy project files
2021-02-26 14:59:57 +01:00
Magne Sjaastad
d9f4d4682f Janitor : Hide loading of date for one time step from public API
ResInsight assumes that loading of data is done for all time steps at a time. Special handling of data loading is required for statistics calculations. Make statistical class a friend to be able to do this operation.
2021-02-26 14:45:13 +01:00
Magne Sjaastad
4a9e759e4b Streamlines : Avoid load of a single step
If only one time step is loaded, all other logic must be able to handle this situation. Load data for all time steps when asking for flow related data
Use absolute value when comparing flow values
2021-02-26 10:45:30 +01:00
jonjenssen
9bd0a9ebac
Streamlines: New generator and UI usability improvements (#7424)
Co-authored-by: jonjenssen <jonjenssen@users.noreply.github.com>
Co-authored-by: Magne Sjaastad <magne.sjaastad@ceetronsolutions.com>
2021-02-25 16:38:56 +01:00
Magne Sjaastad
1caac72715 Janitor : Use std::clamp and remove obsolete includes of cvfMath 2021-02-22 13:37:05 +01:00
Kristian Bendiksen
e7d7a40251 Fix problem in RigWellPathGeometry::interpolateMdFromTvd starting at 0.0 MD.
The spline has to be extended to 0.0 regardless of the value of TVD.
2021-02-19 12:18:30 +01:00
Magne Sjaastad
c690c9fa53 #7126 Well Log Extraction: Remove printing of warning 2021-02-12 13:37:05 +01:00
Magne Sjaastad
a25e795a02 Divide by Area: Remove duplicate reports of "/A" 2021-02-11 10:37:17 +01:00
Magne Sjaastad
cc292b197a
Result Divided by Area: Establish concept used to compute flow velocity and normalized trans (#7349)
* Geometry Tools : Add convenience functions for polygon area

* #7232 Result Divided by Area: Add cell face result and show in GUI

Native support for flow rate is given by mass rate (mass per time) over a cell face. Add a derived result that takes flow rate divided by cell face area to get velocity (distance per time).

Add support for this concept on relevant native results, and indicate this result type in UI using a "/A" postfix

* Speed up divided-by-area calculations by using openmp

* Some refactoring of result data access.

* Make sure NNC data is scaled correctly in vector flow viz.

Co-authored-by: jonjenssen <jon@soundsoft.no>
2021-02-11 03:01:17 +01:00
Magne Sjaastad
6ebf3aaaca #7350 PVT curves : Use PVTNUM value to get PVT curve data 2021-02-10 15:19:38 +01:00
Magne Sjaastad
fdb465fe6d #7335 Dual poro models : Support rel perm and PVT plots 2021-02-05 15:35:33 +01:00
Kristian Bendiksen
751ebf7eb6
6365 additional stimplan xml parameters (#7318)
* #6365 StimPlan XML: Parse formation dip and fracture orientation.
* #6365 Fracture: Use formation dip and fracture orientation from XML.
* #6365 Fracture: Compare case insensitive, use enum class

Co-authored-by: Magne Sjaastad <magne.sjaastad@ceetronsolutions.com>
2021-02-02 14:29:17 +01:00
Kristian Bendiksen
f8aae6691d
6877 well fracture intersection per fracture (#7251)
* #6877 Move well/fracture intersection to fracture (from template).
* #6877 Read stimplan xml without scaling and well/fracture intersection offset
* #6877 Move fracture grid to RimFracture from template.
* #6877 Use RiaDefines::conductivityResultName() where applicable.
* #6877 Reintroduce fracture template scaling.
* #6877 Hide well/fracture intersection option for elliptical template
* #7280: Fix crash when picking in first time step of StimPlan fracture
* #7279 Redraw after deleting fracture to make it disappear.
2021-01-26 15:32:18 +01:00
jonjenssen
05aceef936
Polygonfilter updates2 (#7286)
* Make sure all contourmap copies are getting the correct case set for cell filters when creating/copying maps.

* Rewrite polyline part manager to be more generic, not just linked to annotations.
* Add new partmgr for cell filters to draw polygon filter outlines in both eclipse and geomech views
* Show lines/spheres for polygon filter outline
* Add color edit for line and spheres
* Add support for z plane lock in poygon filter outline
* Add new flags for enabling filter and/or polyline display

* Add K range filter to polygon filter

* Enable picking automatically when creating a new polygon filter
2021-01-26 13:08:21 +01:00
rubenthoms
bc81437435
Moved UnitSystem from RiaEclipseUnitTools to RiaDefines. (#7225)
* Moved UnitSystem from RiaEclipseUnitTools to RiaDefines.
- Renamed UnitSystem to EclipseUnitSystem
- Replaced header includes and removed obsolete includes of RiaEclipseUnitTools.h
* Moved  result name functions into separate file.
* Minor cleanup

Co-authored-by: rubenthoms <rubenthoms@users.noreply.github.com>
Co-authored-by: Magne Sjaastad <magne.sjaastad@ceetronsolutions.com>
Co-authored-by: magnesj <magnesj@users.noreply.github.com>
2021-01-21 12:58:46 +01:00
Kristian Bendiksen
d072138484 Janitor: Remove disabling of clang-format for fracture-related files. 2021-01-20 12:45:31 +01:00
Kristian Bendiksen
d73bd60825 #7158 Fix water depth calculation for WBS plot.
The first intersection between the well path and the GeoMech model
is the correct water depth only when well path starts outside the model.

Top of the bounding box is used as an estimated water depth when
there is no intersection. WBS curves are now disabled for this case.
2021-01-15 12:05:27 +01:00
Kristian Bendiksen
70a96c21de
#7151 Flow Diagnostics: Filter legend based on visible wells/regions. (#7182)
* #7151 Flow Diagnostics: Filter legend based on visible wells/regions.
* #7151 Flow Diagnostics: Show only visible tracers by default.
2021-01-12 20:55:20 +01:00
jonjenssen
a7775214c8
Rewrite of cell filters. Added new polyline filter and user defined filter types. (#7191)
Make 3d view picker more generic to enable picking cell filter polygon

Give cell filters a new, generic interface for updating included/excluded cells from collection

Remove old range filter collection and replace with new filter collection that supports both range filters, polyline filters and user defined filters.

Update existing range filter code for the new collection and interface

Add user defined cell filter type

Add polyline cell filter type

Implement both Z and K index depth for polyline filters
Allow interactive editing of polyline filter node positions.
Support both geomech and eclipse views
Support view linking with both eclipse and geomech views and the new filter types

Support loading old project files with range filter collections into the new collection type

Adjust to new world order.
2021-01-11 18:47:09 +01:00
Gaute Lindkvist
81699db187 Rename ApplicationCode to ApplicationLibCode 2021-01-11 15:27:45 +01:00