-
Notifications
You must be signed in to change notification settings - Fork 114
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
Generalize function for AnalysisSurfaceIntegral
#1902
Generalize function for AnalysisSurfaceIntegral
#1902
Conversation
…n to be integrated along a boundary
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. |
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!
This makes the computation of the existing integrals slightly more expensive as now also the node coordinates are computed, but that is hopefully not too dramatic.
Thanks Andrew for the additional comments, it is always helpful to have a second person expressing their understanding!
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #1902 +/- ##
=======================================
Coverage 96.30% 96.30%
=======================================
Files 448 448
Lines 36079 36081 +2
=======================================
+ Hits 34745 34747 +2
Misses 1334 1334
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
No problem! It is easy to lose track of the normal scaling and what is meant between |
This adds the
x
coordinate and the timet
as input arguments for thevariable
function that can be integrated along a physical boundary viaAnalysisSurfaceIntegral
. This will allow the callback to compute integrated quantities on boundaries that depend on the solutionu
as well as boundary data that may be space and/or time dependent. Currently, thevariable
function can only use the solutionu
to compute boundary quantities.