Skip to content
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

'flux registers' for edge-centered EMFs? #2512

Closed
WeiqunZhang opened this issue Dec 3, 2021 Discussed in #2511 · 5 comments · Fixed by #3633
Closed

'flux registers' for edge-centered EMFs? #2512

WeiqunZhang opened this issue Dec 3, 2021 Discussed in #2511 · 5 comments · Fixed by #3633
Assignees

Comments

@WeiqunZhang
Copy link
Member

Discussed in #2511

Originally posted by BenWibking December 2, 2021
Hi,

We are planning to implement face-centered MHD in Quokka. Is there a 'flux register' to do the correction at coarse-fine interfaces of edge-centered EMFs in AMReX? In Chombo, this can be accomplished with LevelFluxRegisterEdge, which has a similar API to YAFluxRegister.

Example:
Screen Shot 2021-12-03 at 2 14 21 PM

There are a number of corner cases (see panels a-d copied below). (In Athena++, this step is also done at all shared edges between grids on the same resolution level in order to avoid roundoff errors, but it's not currently clear whether this will be necessary.)

Screen Shot 2021-12-03 at 2 15 11 PM

@WeiqunZhang WeiqunZhang self-assigned this Dec 3, 2021
@BenWibking
Copy link
Contributor

BenWibking commented Jan 25, 2022

Is this something that is likely to be available on a ~few months timescale? The reason I ask is because Mark (@markkrumholz) and I are advising a PhD student on implementing method-of-lines MHD in Quokka and whether this will be available in AMReX would significantly affect the direction we go.

I see that there is now a CTU+MHD implementation in Castro. This could be useful for Castro if subcycling AMR is desired for that. In principle, FLASH could also use this, although they might instead average down the edges before doing the update.

@WeiqunZhang
Copy link
Member Author

We will give this a push in the next few weeks.

@BenWibking
Copy link
Contributor

Ok, thanks for the update!

@BenWibking
Copy link
Contributor

@WeiqunZhang Just wanted to follow up on this.

@WeiqunZhang
Copy link
Member Author

@BenWibking Thanks for reminder!

WeiqunZhang added a commit that referenced this issue Feb 13, 2024
This implements EdgeFluxRegister for refluxing in MHD. The equation here
is ${\partial B} / {\partial t} + \nabla \times E = 0,$ where B is on
faces and E is on edges.

Close #2512
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants