Commit Graph
58 Commits
Author SHA1 Message Date
Magne Sjaastad 83f667cdf8 Replace RimTools::wellPathCollection() with RimWellPathCollection::instance()
Remove the redundant wrapper function and update all call sites to use RimWellPathCollection::instance() directly.
Remove unused #include "RimTools.h" from files using RimWellPathCollection::instance() directly
2026-03-18 13:41:27 +01:00
Magne Sjaastad 9f30c981bc Remove unused cafPdmUiPushButtonEditor.h includes
Follow-up cleanup after switching from bool PdmField push buttons to cafPdmUiButton.
2026-03-04 09:52:17 +01:00
Magne Sjaastad 71b734efec #13651 Fix formation dip sign issue when fracture normal is rotated 180 deg
Rename calculateFormationDip to calculateAngleFromVertical to better reflect what the function computes. Add calculateFormationDipFromHorizontal which applies the -90 deg adjustment and std::abs, fixing the wrong sign when the fracture direction normal is flipped.
2026-02-24 13:46:15 +01:00
Magne Sjaastad dbe08064ce Refactor double editor config to use attribute map
Remove custom editor attribute classes and migrate all double field validation and formatting (range, decimals, number format) to the attribute map system. Refactor PdmUiDoubleValueEditor to read settings from the field's attributes and always display formatted values. Remove redundant defineEditorAttribute overrides. Add tests for pair<bool, double> field validation. Centralize and simplify double field UI configuration for improved maintainability.
2026-02-16 16:54:22 +01:00
Magne Sjaastad 9851afc621 #2070 AppFwk : Disable default IO for proxy fields
Proxy fields usually reads and transforms data from other sources, usually other Pdm fields. This commit disables IO for proxy fields in the constructor. If XML serialization is required, this must be set on the proxy field, like this

field.xmlCapability()->setIOWritable(true)
field.xmlCapability()->setIOReadable(true)
2026-01-19 16:10:14 +01:00
Magne Sjaastad cfd634e206 Updates PDM UI label positioning
Updates the way UI label positions are set for PDM fields.
2026-01-08 21:44:58 +01:00
Magne Sjaastad 544e9eedd9 Improve spell checker using codespell
* Configures automated spell checking with codespell
Adds GitHub workflows and configuration files for automated spell checking using `codespell`.

This includes:
- A workflow for checking pull requests and preventing new typos
- A workflow for automatically fixing typos in the main codebase
- Configuration files for `codespell` to ignore specific terms and file types
- Documentation on how to use and configure the spell checking workflows.

* Corrects minor spelling and grammar errors.
2025-11-19 10:25:32 +01:00
jonjenssen da683bed9e Move Rig well related things to subfolder and update include statements 2024-10-31 15:08:59 +01:00
magnesj fc2106edb0 Fixes by clang-tidy 2024-09-02 15:26:44 +02:00
Magne Sjaastad 337584025c Add convenience function to set number format to fixed with two decimals 2024-07-24 15:42:25 +02: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
Kristian Bendiksen a3efc16615 StimPlan Model: Provide default value for facies 2023-05-26 12:32:43 +02:00
Magne Sjaastad 0c90f67dcc Change API for PdmObjectHandle and PdmFieldHandle
* Refactor interface to PdmObjectHandle and PdmFieldHandle
Return objects instead of passing in structures as parameters

* Add nodiscard to several functions
* Remove redundant this->
* Rename to ptrReferencedObjectsByType
2023-05-12 21:41:34 +02:00
Magne Sjaastad f8c5cf389f clang-format: Set column width to 140
* Set column width to 140
* Use c++20
* Remove redundant virtual
2023-02-26 10:48:40 +01:00
Kristian Bendiksen e7ec977c13 #9413 Perforation: avoid overwriting diameter set when appending perforation
Fixes #9413.
2022-12-02 14:29:54 +01:00
Magne Sjaastad 6a859e0860 Fix update issues related to fracture calculations
* Make sure property filter is updated when completion type is cleared
* Clear geometry cache in views to make sure geometry is recreated
* Calculate required input parameters to completion type calculations
* Recompute values when depth changes
2022-11-18 12:50:04 +01:00
Kristian Bendiksen 3a77d77689 #9363 StimPlan: Incorrect extraction size when changing extraction offsets from python 2022-10-24 07:47:09 +02:00
Kristian Bendiksen f7a2acc3cf StimPlanModel: avoid crashing on incomplete projects. 2022-10-24 07:47:09 +02:00
Kristian Bendiksen 193bc35f6b #8876 Fracture: add option to use align dip with formation dip 2022-06-16 08:38:24 +02:00
Magne Sjaastad f0ce04597d Merge pull request #8985 from OPM/8926-remove-useoptionsonly
AppFwk : Remove obsolete useOptionsOnly
2022-05-29 13:01:27 +02:00
Kristian Bendiksen e80343b4db #8877 StimPlan model: Fix formation dip in export of Asymmetric.FRK
Fixes #8877.
2022-05-20 14:51:26 +02:00
Kristian Bendiksen 837a0f208c #8846 StimPlan model plot: Correct perforation interval for longitudinal fracture
Fixes #8846.
2022-05-20 14:07:29 +02:00
Magne Sjaastad 3c35244809 #8420 Janitor: Remove empty parameters in initialization macros 2022-01-07 08:31:52 +01:00
Magne Sjaastad 2a65636ba3 #8250 Use variadic macros and remove obsolete parameters 2021-11-14 15:26:09 +01:00
Magne Sjaastad 6940e588b6 #8277 StimPlan : Use case insensitive string compare for facies and formations 2021-11-12 13:03:36 +01:00
Kristian Bendiksen 5ad7bfac77 #7027 Stim Plan Model: add unit to legend text for relevant curves 2021-11-08 09:51:22 +01:00
Magne Sjaastad 32ac5b8e5c #8198 Stimplan: Rename enum texts for orientation of fraction and stimplan model 2021-10-27 08:38:38 +02:00
Magne Sjaastad 9e051d2769 #8187 Polyline target : Never set the vector values read only 2021-10-25 11:39:32 +02:00
Kristian Bendiksen 6b3ad20587 #8079 StimPlan Model plot: Add Perforation interval in Fm. track 2021-10-15 13:52:45 +02:00
Kristian Bendiksen 7cf56e1e87 #8084 StimPlan Model: Dangling annotations when changing MD 2021-10-08 14:09:22 +02:00
Kristian Bendiksen 296c4e552a #8093 StimPlan Model: Improve naming of barrier annotation. 2021-10-08 14:09:22 +02:00
Kristian Bendiksen 2dbe6666da #8093 StimPlan Model: simplify notations. 2021-10-08 14:09:22 +02:00
Kristian Bendiksen ed19afd126 #8044 StimPlan Model: Show anchor position depth with positive sign. 2021-09-29 14:04:11 +02:00
Kristian Bendiksen 9cec017895 #8044 StimPlan model: Set Extraction Depth Boundaries relative to Anchor position 2021-09-29 14:04:11 +02:00
Kristian Bendiksen cd91a96871 #7953 StimPlan Model: always recompute anchor position and thickness direction. (#8004)
This is to support manually changing the MD directly in the project file.

Fixes #7953.
2021-09-14 10:46:12 +02:00
Kristian Bendiksen 2ef22f518c #7872 StimPlan Model: Add data source options for PORO/PERMX/PERMZ 2021-08-18 16:29:15 +02:00
Kristian Bendiksen b69665ce23 #7871 StimPlan Model: Add data source ordering for EQLNUM extraction 2021-08-18 14:46:25 +02:00
Magne Sjaastad e06e0116d8 #7818 Modeled Well Path : Update location of completions 2021-06-29 15:33:03 +02:00
Kristian Bendiksen dd55762249 Stim Plan Model: Use eqlnum from initial pressure case 2021-06-24 10:40:04 +02:00
Kristian Bendiksen 429d1e4166 StimPlanModel export: use linear interpolation as last fallback for EQLNUM 2021-05-29 09:57:39 +02:00
Kristian Bendiksen 4be622b229 #7452 Remove warnings on missing default values (inf is used). 2021-03-19 13:24:25 +01:00
Kristian Bendiksen 6c540ac762 #7490 StimPlanModel: Group pressure data source fields. 2021-03-15 12:20:25 +01:00
Kristian Bendiksen c1ff038642 #7453 StimPlanModel: Add pressure date to pressure table.
Also start using it in header and plot.
2021-03-05 09:58:22 +01:00
Kristian Bendiksen 8ca43bce63 #7392 Extract geometry methods from RimStimPlanModel. 2021-02-26 16:03:17 +01:00
Kristian Bendiksen 5c5b9e7f34 #7400 StimPlanModel: Search vertically for EQLNUM for inactive regions. 2021-02-26 14:03:30 +01:00
Kristian Bendiksen f6fe69ba45 #7400 StimPlanModel: Add support for multiple missing value strategies. 2021-02-26 14:03:30 +01:00
Kristian Bendiksen 35525eeedf #7400 StimPlanModel: Cache calculated results. 2021-02-26 14:03:30 +01:00
Kristian Bendiksen 762e36ae9d #7400 Interpolate initial pressure per EQLNUM region 2021-02-26 14:03:30 +01:00
Kristian Bendiksen f0c70a0fd2 #7400 StimPlanModel: Add EQLNUM result to calculator.
Take results from EQLNUM_1 input properties for missing values in
static eclipse case.
2021-02-26 14:03:30 +01:00
Kristian Bendiksen 530c6d3e85 #7339 StimPlanModel: Update python api changes in pdm objects.
The eclipse cases are now set on the StimPlanModelTemplate, not on the
StimPlanModel.
2021-02-19 12:18:30 +01:00