Hi everyone, I have a problem whereby I must calculate whether points are in a neighborhood of some base point (e.g. within some L2 distance). In the bulk this is simple, but I'm wanting to impose periodic boundary conditions on some of the edges. In this case, it's conceivable that a base point close to a periodic boundary would have points on the other side of a periodic boundary which are within its neighborhood. Is it possible, in general, to calculate the distance (L2 or otherwise) between a base point and another point through a periodic boundary? Is this even a well-posed question?
Some additional points: * I'm aware of how to do this for a hyper-rectangle (just translate the base point by the domain dimensions), but I wonder if this can be done more generally. * In finding points in a neighborhood of the base point, I traverse cells neighbor-by-neighbor. This gives me a cell on the base-point-side of the periodic boundary which is in the neighborhood of the base point, and also a connected subdomain between the base point cell and the periodic boundary cell. I'm not sure if this helps, but it could simplify the algorithm. * I am also interested in knowing whether the base point is within some distance of a subdomain bounding box, particularly subdomains that are connected through a periodic boundary. For this false positives are okay, but false negatives are not. Any help on this is very much appreciated, I'm quite stuck on the general case. - Lucas -- The deal.II project is located at http://www.dealii.org/ For mailing list/forum options, see https://groups.google.com/d/forum/dealii?hl=en --- You received this message because you are subscribed to the Google Groups "deal.II User Group" group. To unsubscribe from this group and stop receiving emails from it, send an email to dealii+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/dealii/85bb9bf2-2b77-41cb-894a-b6ffecfae1c7n%40googlegroups.com.