Skip to content

Add option to loop turbinflow planes in time#667

Merged
baperry2 merged 8 commits intoAMReX-Combustion:developmentfrom
d-montgomery:periodic-time
Apr 1, 2026
Merged

Add option to loop turbinflow planes in time#667
baperry2 merged 8 commits intoAMReX-Combustion:developmentfrom
d-montgomery:periodic-time

Conversation

@d-montgomery
Copy link
Copy Markdown
Contributor

This PR adds a flag turbinflow.__.time_periodic, which enables users to loop turbinflow planes periodically in time.

@baperry2
Copy link
Copy Markdown
Contributor

baperry2 commented Apr 1, 2026

Thanks for doing this, I was starting on an overcomplicated approach!

Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Adds a runtime flag to make TurbInflow “swirl-type” (time-stamped) turbulence plane data repeat periodically in time, so long simulations can reuse a finite inflow dataset.

Changes:

  • Introduces turbinflow.<name>.time_periodic parameter in TurbParm and wires it into ParmParse.
  • Implements time-wrapping logic for swirl-type inflows when reading/filling turbulence planes.
  • Documents the new input option in Sphinx docs.

Reviewed changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated 5 comments.

File Description
Source/Utility/TurbInflow/turbinflow.H Adds time_periodic field to TurbInflow parameters.
Source/Utility/TurbInflow/turbinflow.cpp Parses time_periodic and wraps requested time for swirl-type inflows.
Docs/sphinx/Utility.rst Documents the new time_periodic runtime option.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread Source/Utility/TurbInflow/turbinflow.cpp
Comment thread Source/Utility/TurbInflow/turbinflow.cpp Outdated
Comment thread Source/Utility/TurbInflow/turbinflow.cpp
Comment thread Docs/sphinx/Utility.rst Outdated
Comment thread Docs/sphinx/Utility.rst Outdated
@baperry2 baperry2 enabled auto-merge (squash) April 1, 2026 19:52
@baperry2 baperry2 merged commit 30c9f54 into AMReX-Combustion:development Apr 1, 2026
14 checks passed
@d-montgomery d-montgomery deleted the periodic-time branch April 17, 2026 13:36
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.

3 participants