On Wed, Jun 28, 2017 at 9:36 AM, Harshad Sahasrabudhe <hsaha...@purdue.edu> wrote:
> Hello, > > I would like to create a submesh of my mesh inside a particular region. > Since the UnstructuredMesh::create_submesh method uses a > const_element_iterator on the old mesh to create a new mesh, I would like > to create a new single_predicate which identifies elements that lie inside > the region of interest. What is the process by which I can create a new > predicate and a new element iterator? Will this method work for > create_submesh function? > You might not need to define a new type of iterator at all. For example, if you could first mark the elements in your region of interest with a specific subdomain id, then you could just use the existing active_subdomain_elements_begin/end iterators in the call to create_submesh(). The most recent mesh iterator was in added in d7a08b2f, so you should be able to use that commit for inspiration... but I would say that it's not super straightforward to do. -- John ------------------------------------------------------------------------------ Check out the vibrant tech community on one of the world's most engaging tech sites, Slashdot.org! http://sdm.link/slashdot _______________________________________________ Libmesh-users mailing list Libmesh-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/libmesh-users