-
Notifications
You must be signed in to change notification settings - Fork 112
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
Add velocity functions for different equations #2086
Conversation
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 ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #2086 +/- ##
==========================================
+ Coverage 96.34% 96.35% +0.01%
==========================================
Files 470 470
Lines 37512 37599 +87
==========================================
+ Hits 36140 36227 +87
Misses 1372 1372
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
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.
Thanks a lot! Could you please
export velocity
in the main file- write a docstring describing
velocity
in general - maybe inequations.jl
since it is a rather general interface? - add some unit tests checking whether the correct values are returned in https://github.com/trixi-framework/Trixi.jl/blob/main/test/test_unit.jl?
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.
Thanks a lot! I just have some minor comments.
Two of the GLM MHD 2D tests are failing: https://github.com/trixi-framework/Trixi.jl/actions/runs/11035734678/job/30652521365?pr=2086#step:7:1405 |
The |
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.
Are you fine with this, @andrewwinters5000?
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.
LGTM!
Trixi.jl
has functions to computedensity
andpressure
for all equations, but most equations do not have those forvelocity
. This PR adds those functions toCompressibleEuler
,MultiComponentEuler
,PolytropicEuler
,IdealMHD
,ShallowWater
equations.