Skip to content
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

Restrict the time step variability #45

Open
ikorotkin opened this issue Apr 24, 2024 · 0 comments
Open

Restrict the time step variability #45

ikorotkin opened this issue Apr 24, 2024 · 0 comments

Comments

@ikorotkin
Copy link
Collaborator

The time steps $dt_{n} / dt_{n+1}$ can vary a lot. However, if the time step changes drastically (e.g., from 100.0 to 1e-8), this may lead to precision loss.

Solution:

  • Add solver parameter - maximum $dt_{n} / dt_{n+1}$
  • Roll the solution one step back and readjust the time step
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

No branches or pull requests

1 participant