-
Notifications
You must be signed in to change notification settings - Fork 43
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
[Solvers][Mesh] Add CFL condition calculation to solvers #64
Conversation
…as advection solver
Using max velocity instead of dt ~ min(h/(lambda*N^2)) will be pessimistic |
Would you prefer calculating min(h/lambda) over all elements over computing min(h) and max(lambda)? |
I think so. Sorry for not noticing that before. |
Sounds good. No reason we cant do that with a small tweak. I also need to update some golden norms. Some have shifted slightly enough that units tests are failing. |
Codecov Report
@@ Coverage Diff @@
## master #64 +/- ##
==========================================
- Coverage 84.24% 84.14% -0.10%
==========================================
Files 257 256 -1
Lines 20049 20219 +170
==========================================
+ Hits 16890 17013 +123
- Misses 3159 3206 +47
Continue to review full report at Codecov.
|
This PR adds the ability in each time-dependent solver to properly calculate the CFL timestep restriction. Currently, all solvers will only do this calculation once, after the initial condition is set. Aside from being slightly more robust when starting timestepping, this may be useful in the future for some timesteppers to adapt the timestep size.
This PR also addresses #25.