Skip to content

Add support for loading unstructured grids from external files#7189

Draft
totto82 wants to merge 4 commits into
OPM:masterfrom
totto82:grid_from_file
Draft

Add support for loading unstructured grids from external files#7189
totto82 wants to merge 4 commits into
OPM:masterfrom
totto82:grid_from_file

Conversation

@totto82

@totto82 totto82 commented Jun 19, 2026

Copy link
Copy Markdown
Member

Implement optional external unstructured grid loading via UnstructuredGridFileName parameter. When set, the grid is loaded from the specified file instead of being constructed from the Eclipse deck.

  • Add UnstructuredGridFileName parameter with validation
  • Update grid vanguard to load grid from file when parameter is set
  • Skip grid recreation in output writer when using external file
  • Add parallel MPI support for unstructured grid loading
  • Include cell count validation between external file and Eclipse grid
  • Add test coverage for new functionality

Default behavior remains unchanged when parameter is empty.

Depends on OPM/opm-grid#1042

TODO

  • More testing
  • mode2 (inactive cells)
  • norne (faults)
  • "real unstructured grids" i.e. not dumped from a cp-grid
  • Add regression test

@totto82 totto82 added the manual:new-feature This is a new feature and should be described in the manual label Jun 19, 2026
Tor Harald Sandve added 4 commits June 19, 2026 13:58
Implement optional external unstructured grid loading via UnstructuredGridFileName
parameter. When set, the grid is loaded from the specified file instead of being
constructed from the Eclipse deck.

- Add UnstructuredGridFileName parameter with validation
- Update grid vanguard to load grid from file when parameter is set
- Skip grid recreation in output writer when using external file
- Add parallel MPI support for unstructured grid loading
- Include cell count validation between external file and Eclipse grid
- Add test coverage for new functionality

Default behavior remains unchanged when parameter is empty.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

manual:new-feature This is a new feature and should be described in the manual

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant