-
Notifications
You must be signed in to change notification settings - Fork 134
Viscous CFL 2D 3D TreeMesh
#2586
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
base: main
Are you sure you want to change the base?
Viscous CFL 2D 3D TreeMesh
#2586
Conversation
TreeMeshTreeMesh
Review checklistThis checklist is meant to assist creators of PRs (to let them know what reviewers will typically look for) and reviewers (to guide them in a structured review process). Items do not need to be checked explicitly for a PR to be eligible for merging. Purpose and scope
Code quality
Documentation
Testing
Performance
Verification
Created with ❤️ by the Trixi.jl community. |
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #2586 +/- ##
==========================================
+ Coverage 96.85% 96.86% +0.01%
==========================================
Files 546 548 +2
Lines 43246 43328 +82
==========================================
+ Hits 41885 41967 +82
Misses 1361 1361
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
jlchan
left a comment
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.
Overall looks good, thanks for adding this! Just one question about API and one minor nitpick in naming conventions.
| end | ||
| end | ||
|
|
||
| @inline function max_diffusivity(u, |
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.
To clarify, this would need to be defined for a new diffusion term, so it should become part of the API?
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.
Yes, for equations with non-linear diffusion terms/fluxes this needs to be provided.
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.
Got it. I think you and @ranocha had a similar discussion previously as well, but is this in the documentation somewhere?
This extends #2035 to 2D and 3D TreeMeshes. P4est is supposed to follow in a different PR.
This version implements the CFL criterion only for isotropic diffusive terms, which is fine for the diffusion and NSF equations currently implemented. Thus, this does not work for anisotropic diffusion as in the example
https://trixi-framework.github.io/TrixiDocumentation/stable/tutorials/adding_new_parabolic_terms/#Define-a-new-parabolic-equation-type
See also #2035 (comment)
What we want is an open question.
xref #1147