-
Notifications
You must be signed in to change notification settings - Fork 37
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 a vector wave equation example #1091
Conversation
Is this needed if using edge fields? |
@Yurlungur: No, it shouldn't be. I had started writing it using face fields though. |
if (ox3 == 0 && ndim > 2) kb.e -= TopologicalOffsetK(te); | ||
if (ox2 == 0 && ndim > 1) jb.e -= TopologicalOffsetJ(te); | ||
if (ox1 == 0) ib.e -= TopologicalOffsetI(te); | ||
const int ks = (ox3 == 0) ? 0 : (kb.e - kb.s + 1 - TopologicalOffsetK(te)); | ||
const int js = (ox2 == 0) ? 0 : (jb.e - jb.s + 1 - TopologicalOffsetJ(te)); | ||
const int ks = | ||
(ox3 == 0 || ndim < 3) ? 0 : (kb.e - kb.s + 1 - TopologicalOffsetK(te)); | ||
const int js = | ||
(ox2 == 0 || ndim < 2) ? 0 : (jb.e - jb.s + 1 - TopologicalOffsetJ(te)); |
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.
This fixes a bug which caused the z-component of coarsened face fields to be filled with zeros in 2D. I don't think anyone is likely to have run into it yet though (aside from in this example).
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.
Very happy to see a topological element regression test going in!
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 will be a great extra test!
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.
Very excited to see this modernization and demonstration for how to do constrained transport.
@par-hermes format |
PR Summary
This PR adds a vector wave equation to the
fine_field
example. That is, we solve the equationsusing an upwind constrained transport scheme (currently just using piecewise constant reconstruction). The face centered fields are evolved and prolongation is done using the scheme of Toth & Roe.
TODO:
PR Checklist