-
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
Boundary integration of viscous forces #1893
Boundary integration of viscous forces #1893
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. |
Hm, Unbound type parameters detected:
[1] analyze(quantity::Union{typeof(enstrophy), AnalysisSurfaceIntegral{Semidiscretization, Variable}}, du, u, t, semi::SemidiscretizationHyperbolicParabolic) where {Semidiscretization, Variable<:VariableViscous}
@ Trixi ~/work/Trixi.jl/Trixi.jl/src/callbacks_step/analysis.jl:685
Unbound type parameters: Test Failed at /home/runner/.julia/packages/Aqua/9p8ck/src/unbound_args.jl:28
Expression: isempty(unbounds)
Evaluated: isempty(Method[analyze(quantity::Union{typeof(enstrophy), AnalysisSurfaceIntegral{Semidiscretization, Variable}}, du, u, t, semi::SemidiscretizationHyperbolicParabolic) where {Semidiscretization, Variable<:VariableViscous}
@ Trixi ~/work/Trixi.jl/Trixi.jl/src/callbacks_step/analysis.jl:685]) See https://docs.juliahub.com/Aqua/Hav67/0.8.4/unbound_args/#Unbound-Type-Parameters |
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #1893 +/- ##
==========================================
+ Coverage 89.52% 96.30% +6.78%
==========================================
Files 448 448
Lines 35995 36079 +84
==========================================
+ Hits 32223 34745 +2522
+ Misses 3772 1334 -2438
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.
Also, I think you could update the CI to test for the viscous forces before the PR is merged.
examples/p4est_2d_dgsem/elixir_navierstokes_NACA0012airfoil_mach08.jl
Outdated
Show resolved
Hide resolved
examples/p4est_2d_dgsem/elixir_navierstokes_NACA0012airfoil_mach08.jl
Outdated
Show resolved
Hide resolved
I added CI tests. Ready to go from my side, the open comments are meant to be explanatory for the reviewers. |
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.
Looks quite good already, just a couple comments.
Co-authored-by: Andrew Winters <[email protected]>
Hm, I do not understand why the testcase does not do the timestepping: https://github.com/trixi-framework/Trixi.jl/actions/runs/8569475328/job/23485450223?pr=1893#step:8:7498 🤔 Locally this runs perfectly fine, but in the CI not a single timestep is taken |
Could it be the same issue as this - #1812 (review) The solution is given by Joshua below. |
Ah yeah good idea, let's see what happens! |
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!
Building upon #1812 this PR adds the viscous drag and lift coefficients due to shear stress.
For the viscous NACA0012 test (changed elixir) we match the values given in https://doi.org/10.1016/j.amc.2017.07.020
for the viscous drag coefficient very well:
Reference: 1.275e−01, Trixi: 1.24758705e-01
For viscous lift:
Reference: −3.945e−03 Trixi: -5.66376473e-03
@Arpit-Babbar please have a look!