Skip to content

src_compressible_stag: restore the full OU state in TurbForcingComp::setU - #280

Merged
isriva merged 1 commit into
AMReX-FHD:mainfrom
isriva:fix-compstag-turbforce-restore-ou-state
Sep 22, 2026
Merged

isriva merged 1 commit into
AMReX-FHD:mainfrom
isriva:fix-compstag-turbforce-restore-ou-state

Conversation

@isriva

@isriva isriva commented Sep 18, 2026

Copy link
Copy Markdown
Contributor

setU assigned only ForcingS/ForcingC. The OU update reads ForcingSold/
ForcingCold, which define() had zeroed, so on the first post-restart update the
restored amplitudes were discarded and the process restarted from a pure-noise
draw around zero:

ForcingS[i] = ForcingSold[i] - forcing_a*ForcingSold[i]*dt + ...

A restarted forced-turbulence run therefore did not continue the forcing
trajectory; the forcing needed O(1/forcing_a) of simulated time to recover its
steady amplitude, so restart was not transparent and statistics gathered right
after one were biased low.

ForcingSold == ForcingS is the invariant the update maintains, so restoring all
four arrays is sufficient.

…setU

setU assigned only ForcingS/ForcingC.  The OU update reads ForcingSold/
ForcingCold, which define() had zeroed, so on the first post-restart update the
restored amplitudes were discarded and the process restarted from a pure-noise
draw around zero:

    ForcingS[i] = ForcingSold[i] - forcing_a*ForcingSold[i]*dt + ...

A restarted forced-turbulence run therefore did not continue the forcing
trajectory; the forcing needed O(1/forcing_a) of simulated time to recover its
steady amplitude, so restart was not transparent and statistics gathered right
after one were biased low.

ForcingSold == ForcingS is the invariant the update maintains, so restoring all
four arrays is sufficient.
@isriva
isriva merged commit 55ebb03 into AMReX-FHD:main Sep 22, 2026
18 checks passed
@isriva
isriva deleted the fix-compstag-turbforce-restore-ou-state branch September 22, 2026 19:53
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.

1 participant