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

EB Data outside domain #3549

Merged
merged 2 commits into from
Sep 17, 2023
Merged

Conversation

WeiqunZhang
Copy link
Member

We do not guarantee there is valid EB information outside the domain, unless the user specifies a large enough number of ghost cells when building EB. However, this makes things difficult for application codes with AMR, because the number of ghost cells needed depends on the number of AMR levels. In this commit, we try to fill some basic EB information (EBCellFlag, volume fraction and area fraction) for all cells outside the domain.

We do not guarantee there is valid EB information outside the domain, unless
the user specifies a large enough number of ghost cells when building
EB. However, this makes things difficult for application codes with AMR,
because the number of ghost cells needed depends on the number of AMR
levels. In this commit, we try to fill some basic EB information
(EBCellFlag, volume fraction and area fraction) for all cells outside the
domain.
@asalmgren asalmgren merged commit dda5268 into AMReX-Codes:development Sep 17, 2023
66 checks passed
WeiqunZhang added a commit to WeiqunZhang/amrex that referenced this pull request Sep 17, 2023
Area fractions are stored in MultiCutFabs that we must check if a fab is OK
in MFIter for loop.
WeiqunZhang added a commit that referenced this pull request Sep 17, 2023
Area fractions are stored in MultiCutFabs that we must check if a fab is
OK in MFIter for loop.

Additionally, we could skip the call to extendDataOutsideDomain if the
EB is all regular.
WeiqunZhang added a commit to WeiqunZhang/amrex that referenced this pull request Sep 17, 2023
This is a follow-up on AMReX-Codes#3549. After extending EB data outside the domain, we
need to update the EB Fab type.
@WeiqunZhang WeiqunZhang mentioned this pull request Sep 17, 2023
WeiqunZhang added a commit that referenced this pull request Sep 17, 2023
This is a follow-up on #3549. After extending EB data outside the
domain, we need to update the EB Fab type.
@WeiqunZhang WeiqunZhang deleted the eb_ghost branch October 13, 2023 16:04
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 this pull request may close these issues.

2 participants