On Wed, 2 Jan 2019, Povolotskyi, Mykhailo wrote:
> Dear Libmesh developers and users, > I need to solve the following problem. > I have two subdomains in my mesh, e.g. 0 and 1. > I have a set of quadrature points that belong to the subdomain 1. > I need to find an approximate distance from each point to the subdomain 0. > It will be enough if I can find an element in the subdomain 0 that is closest > to a point in the subdomain 1. > Do you have an idea how this can be done? We don't have anything built into the library to help with that, I'm afraid. IIRC users in the past have used libMesh to construct distance fields for use with a level-set method, though, and that's probably what you want: construct the distance function (e.g. as a variable in a separate ExplicitSystem on the same Mesh) with one fill sweep and then reuse it over and over until/unless you modify the mesh. --- Roy _______________________________________________ Libmesh-users mailing list Libmesh-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/libmesh-users