Improve the handling of unphysical results in Hydro_HancockPredict() #502
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Motivations
Hydro_HancockPredict()was performed onfcPri[f][4], which is the input value before the update. The negative pressure after the update may not be detected, and a floored value is returned at the end.Goal
Changes
MHM_REPREDICT_ITER_NUM = 2, this will NOT be used.Verification Tests
Hydro/Riemannwith--flu_scheme=MHMRiemann_Prob = [0, 1, 2, 3, 4, 5, 9]was run by ALWAYS triggering the rescuing methods (separately) regardless of whether the original update is unphysical to test the correctness of the repredict solver. With the default parameters for the rescue methods, the results can still match the analytical solutions, and there is not much difference from the original update.Riemann_Prob = 9can produce negative pressure in the default half-step update. The 3-stage rescue methods are triggered for that, and the final results can match the analytical solution as usual.The previous explosions are not found anymore with the new method.
The previous explosions are gone after the negative pressure is properly checked and a lower slope is applied.
Future Work
SRHDMHM_REPREDICT_*into runtime optionsNotes