Skip to content

Add multiregion function object reader support#34

Open
blttkgl wants to merge 2 commits into
mainfrom
feat/multiregion-function-objects
Open

Add multiregion function object reader support#34
blttkgl wants to merge 2 commits into
mainfrom
feat/multiregion-function-objects

Conversation

@blttkgl
Copy link
Copy Markdown
Collaborator

@blttkgl blttkgl commented May 13, 2026

Summary

This PR adds support for multiregion OpenFOAM function-object outputs in the data reader.

What changed

  • discover nested postProcessing layouts like postProcessing/fluid/cylinderT/0/...
  • allow simple_function_object_reader() to read names like fluid/cylinderT
  • accept a leading / in function-object names
  • add unit tests covering multiregion discovery and reading
  • add a coolingCylinder2D example using the new reader behavior

Why

Multiregion CHT cases write function-object outputs under region-scoped folders, which the previous reader logic did not discover. This prevented examples like coolingCylinder2D from reading outputs such as fluid/cylinderT.

Validation

  • uv run pytest tests/flowboost/openfoam/test_data_unit.py

@blttkgl blttkgl requested a review from 499602D2 May 13, 2026 11:41
@499602D2 499602D2 added type: enhancement New feature or improvement domain: openfoam Runtime, case, dictionary, Docker labels May 18, 2026
Copy link
Copy Markdown
Owner

@499602D2 499602D2 left a comment

Choose a reason for hiding this comment

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

lgtm

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

domain: openfoam Runtime, case, dictionary, Docker type: enhancement New feature or improvement

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants