Skip to content

Conversation

@mbkuhn
Copy link
Contributor

@mbkuhn mbkuhn commented Mar 28, 2025

Summary

Refactoring:

  • separated the calculation of the new timestep size from the actual calculation of new_time and printing time information

(This allows new functionality for the overset solver)

Features:

  • tweaking dt logic on first timestep to avoid abort when initial velocity is 0
  • adding max_dt to limit adaptive dt if desired
  • adding min_dt to abort simulation if adaptive dt gets too small
  • making CFL calculation consider only the non-masked (non-overset) parts of the domain

Pull request type

Please check the type of change introduced:

  • Bugfix
  • Feature
  • Code style update (formatting, renaming)
  • Refactoring (no functional changes, no api changes)
  • Build related changes
  • Documentation content changes
  • Other (please describe):

Checklist

The following is included:

  • new unit-test(s)
  • new regression test(s)
  • documentation for new capability

This PR was tested by running:

  • the unit tests
    • on GPU
    • on CPU
  • the regression tests
    • on GPU
    • on CPU

Additional background

Issue Number:

mbkuhn added 3 commits March 28, 2025 11:24
- also avoid CFL warning for end of fixed_dt simulation
- also avoid abort when simulation starts with 0 velocity
@mbkuhn
Copy link
Contributor Author

mbkuhn commented Mar 28, 2025

Will modify an AMR-Wind reg test to cover these changes, probably the same for exawind-driver

@mbkuhn
Copy link
Contributor Author

mbkuhn commented Apr 22, 2025

Because of the name changes, this should probably be merged the same day as the companion exawind-driver PR, Exawind/exawind-driver#107

@mbkuhn mbkuhn requested review from marchdf and moprak-nrel April 22, 2025 17:54
@mbkuhn mbkuhn mentioned this pull request Apr 23, 2025
14 tasks
@mbkuhn mbkuhn merged commit 691aba5 into Exawind:main Apr 23, 2025
14 checks passed
@mbkuhn mbkuhn deleted the overset_adapt_dt branch May 22, 2025 20:44
jrood-nrel pushed a commit to jrood-nrel/amr-wind that referenced this pull request Jun 3, 2025
… timestepping (Exawind#1542)

* Refactoring to separate computing dt from calculating new_time
- also avoid CFL warning for end of fixed_dt simulation
- also avoid abort when simulation starts with 0 velocity

* Add a maximum dt argument, limit to adaptive timestepping
* remove undefined function
* rename some functions to go with convention (rather than adding a new unconventional function name)
* put new features into existing rain_drop test
* fix unit tests
* add minimum time feature to abort when velocity becomes too small.
* documentation
* add consts in compute_dt, limit CFL calculation to non-masked parts of the domain
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.

2 participants