Skip to content

How to get a multifab to interpolate to cell faces at domain boundaries #2468

Answered by tpg2114
tpg2114 asked this question in Q&A
Discussion options

You must be logged in to vote

Alright, I appreciate the tips and suggestions @drummerdoc and @asalmgren -- I managed to get it to work the way I wanted! On the off chance anybody else has a similar desire, here's a summary for what I worked out:

  • The following works as expected using both amrex_bc_int_dir and amrex_bc_ext_dir, so I don't quite appreciate what those really do I suppose. But it probably works because my fillphys_bc is basically a no-op and I set my domain ghost cells other ways.
  • I found amrex_average_cellcenter_to_face and traced it through to the implementation where it does the $U_F = 0.5(U_L + U_R)$ that I was looking for. I saw it also ignores the geometry passed in, so I suspected it wouldn't care …

Replies: 4 comments 4 replies

Comment options

You must be logged in to vote
3 replies
@tpg2114
Comment options

@drummerdoc
Comment options

@tpg2114
Comment options

Comment options

You must be logged in to vote
1 reply
@tpg2114
Comment options

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by tpg2114
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants