-
Notifications
You must be signed in to change notification settings - Fork 195
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Provide a better explanation of the max_change
and min_change
of TimeStepWizard
#3245
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
the phrasing in HC example seems tad misleading to me
Co-authored-by: Navid C. Constantinou <navidcy@users.noreply.github.com>
Co-authored-by: Navid C. Constantinou <navidcy@users.noreply.github.com>
Co-authored-by: iury simoes-sousa <iuryt@pm.me>
`simulation.Δt` is not adapted "too quickly". In other words, `max_change` is the maximum | ||
and `min_change` is the minimum relative change of the time step and are, therefore, non-dimensional | ||
(`min_change * old_Δt ≤ new_Δt ≤ max_change * old_Δt`). |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Note there is a grammatical error in the above as well. If we're seeking improved clarity, I suggest changing to something like
Callback function that adapts the simulation time step to a target
advective Courant-Freidrichs-Lewy (CFL) number `cfl`, within the limits
max(max_Δt, max_change * previous_Δt) ≤ new_Δt ≤ min(min_Δt, min_change * previous_Δt)
where `new_Δt` is the new time step calculated by `TimeStepWizard`.
Or something along those lines...
…`TimeStepWizard` (#3245) * Update docstring of the TimeStepWizard * Update TimeStepWizard explanation in the horizontal_convection example * Change symbol for 'less than or equal' and 'greater than or equal' Co-authored-by: Navid C. Constantinou <navidcy@users.noreply.github.com> * Change symbol for 'less than or equal' and 'greater than or equal' Co-authored-by: Navid C. Constantinou <navidcy@users.noreply.github.com> * better phrasing Co-authored-by: iury simoes-sousa <iuryt@pm.me> --------- Co-authored-by: Navid C. Constantinou <navidcy@users.noreply.github.com>
closes #3244