-
Couldn't load subscription status.
- Fork 131
3D support for subcell limiting #2572
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❌ Patch coverage is Additional details and impacted files@@ Coverage Diff @@
## main #2572 +/- ##
==========================================
- Coverage 96.81% 96.22% -0.59%
==========================================
Files 535 541 +6
Lines 42813 43990 +1177
==========================================
+ Hits 41446 42327 +881
- Misses 1367 1663 +296
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:
|
|
This is huge - could we maybe do euler only first to get a feeling for this? |
Yes, the plan is not to merge everything at once. First, Euler and probably only one limiting option. |
| # Transformation from conservative variables u to d(p)/d(u) | ||
| @inline function gradient_conservative(::typeof(pressure), | ||
| u, | ||
| equations::IdealGlmMhdEquations3D) | ||
| rho, rho_v1, rho_v2, rho_v3, rho_e, B1, B2, B3, psi = u | ||
|
|
||
| v1 = rho_v1 / rho | ||
| v2 = rho_v2 / rho | ||
| v3 = rho_v3 / rho | ||
| v_square = v1^2 + v2^2 + v3^2 | ||
|
|
||
| return (equations.gamma - 1) * | ||
| SVector(0.5f0 * v_square, -v1, -v2, -v3, 1, -B1, -B2, -B3, -psi) | ||
| 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.
The same code is used in 2d.
How is that even working in 2d? u with 9 components including v1, v2 AND v3? @amrueda
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.
But that's how it is in main (see here)
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.
Do IdealGlmMhdEquations2D and IdealGlmMhdEquations3D have the same variables? Sounds somehow wrong to me. Or is it just implemented like this in Trixi? @amrueda
84712c8 to
1911c38
Compare
1911c38 to
691c88f
Compare
Add 3d support for subcell limiting on P4estMesh