Skip to content

Support radial grids as cylindrical cells#12936

Merged
magnesj merged 5 commits intodevfrom
use-lgr-for-radial-single-band-05
Sep 24, 2025
Merged

Support radial grids as cylindrical cells#12936
magnesj merged 5 commits intodevfrom
use-lgr-for-radial-single-band-05

Conversation

@magnesj
Copy link
Copy Markdown
Member

@magnesj magnesj commented Sep 20, 2025

Closes #12875

Moves grid view update logic to RigReservoirGridTools for reuse and consistency.

Adds cylindrical coordinate import and radial grid refinement functionality.
This automatically creates a LGR for radial grids with low angular resolution, improving simulation accuracy.
Enhances the processing of radial grids by adding logic to create Local Grid Refinements (LGRs) when cylindrical coordinate conversion is enabled.

This involves checking for valid radial grid data, handling cases with invalid headers, and creating angular grid refinements based on user preferences.

Also ensures active cell indexing for multi-grid cases and updates views after grid modifications.
@magnesj magnesj requested a review from kriben September 20, 2025 14:28
Copy link
Copy Markdown
Collaborator

@kriben kriben left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Some minor suggestions, but overall OK!

Comment thread ApplicationLibCode/Application/RiaPreferencesSystem.cpp Outdated
Comment thread ApplicationLibCode/CommandFileInterface/RicfCreateLgrForCompletions.cpp Outdated
Comment thread ApplicationLibCode/FileInterface/RifOpmRadialGridTools.cpp
Moves radial grid import logic into a separate function for improved code organization and readability.

This change encapsulates the radial grid import and refinement process, including handling of cylindrical coordinates and LGR creation, into a dedicated `checkAndImportRadialGrid` function. The original logic within `importGridAndResultMetaData` is replaced with a call to this new function, simplifying the import process.
@kriben kriben self-requested a review September 24, 2025 07:18
@magnesj magnesj merged commit 6ef5db2 into dev Sep 24, 2025
17 checks passed
@magnesj magnesj deleted the use-lgr-for-radial-single-band-05 branch September 24, 2025 07:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Prototype: Cylindrical visual representation of radial grids

2 participants