-
Couldn't load subscription status.
- Fork 131
Add a central non-conservative flux for 3D multi-ion MHD and a convergence test #2575
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?
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 Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #2575 +/- ##
==========================================
+ Coverage 90.85% 96.77% +5.93%
==========================================
Files 521 522 +1
Lines 42443 42578 +135
==========================================
+ Hits 38558 41204 +2646
+ Misses 3885 1374 -2511
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:
|
|
|
||
| for k in eachcomponent(equations) | ||
| # Compute terms for each species | ||
| # (we multiply by 2 because the non-conservative flux is multiplied by 0.5 whenever it's used in the Trixi code) |
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.
| # (we multiply by 2 because the non-conservative flux is multiplied by 0.5 whenever it's used in the Trixi code) | |
| # Multiply by 2 because the non-conservative flux is multiplied by 0.5 in routines like `calc_interface_flux!`, `flux_differencing_kernel!` etc. |
I find the "Trixi code" not really helpful
| # Compute GLM term for psi (multiply by 2 because the non-conservative flux is | ||
| # multiplied by 0.5 whenever it's used in the Trixi code) |
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.
See above
| ############################################################################### | ||
| """ | ||
| electron_pressure_alpha(u, equations::IdealGlmMhdMultiIonEquations3D) | ||
| Returns a fraction (alpha) of the total ion pressure for the electron pressure. |
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.
| Returns a fraction (alpha) of the total ion pressure for the electron pressure. | |
| Returns a fraction (alpha) of the total ion pressure for the electron pressure. |
I think we normally have an empty line here
| let | ||
| t = sol.t[end] | ||
| u_ode = sol.u[end] | ||
| du_ode = similar(u_ode) | ||
| @test (@allocated Trixi.rhs!(du_ode, u_ode, semi, t)) < 1000 | ||
| end |
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.
| let | |
| t = sol.t[end] | |
| u_ode = sol.u[end] | |
| du_ode = similar(u_ode) | |
| @test (@allocated Trixi.rhs!(du_ode, u_ode, semi, t)) < 1000 | |
| end | |
| @test_allocations(Trixi.rhs!, semi, sol, 1000) |
From #2571.
The new flux allows to use a standard LLF flux in 3D curvilinear grids