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

Question: is it possible that the box generator generates a patch which does not touch physical boundaries but has ghost cells out of physical boundaries? #192

Open
humhang opened this issue Feb 4, 2022 · 1 comment

Comments

@humhang
Copy link

humhang commented Feb 4, 2022

My application needs special treatment when ghost cells out of the physical boundary are used in calculating the fluxes, and for this reason I need to know whether a patch has ghost cells out of the boundary or not.

I use PatchGeometry::getCodimensionBoundaries(int) to determine if a patch touches the physical boundary and in which direction. However, would it be possible that a patch does not actually touch the physical boundary but has ghost cells out of physical boundary?

For example, the index range of the domain is [0, N], and the patch has index range [1, N-1], but a PatchData has ghost width 2.

@nselliott
Copy link
Collaborator

The normal box generation called by GriddingAlgorithm should not produce any patches in that kind of position. The patches should either touch the physical boundary or be far enough away from the boundary to keep all ghosts inside the physical domain.

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

No branches or pull requests

2 participants