On Thu, 8 Jun 2017, Barna Becsek wrote:

What would be the easiest way to reference elements that contain a
node on a boundary. Ideally, I would like to have a mesh object with
these elements but unchanged node ids. Does the BoundaryMesh class
handle this sort of thing or is that class for actual boundary
element (e.g. 2D els in 3D)?

BoundaryMesh is for lower-dimensional manifolds, like 2D in 3D.

We actually don't currently have a quick way to test whether an
element has a node on any boundary.  You can test for a whole *face*
on a boundary by looking for a null neighbor pointer, or you can test
for a node with a specific boundary id, but if you have boundary nodes
with no boundary id then you're stuck: your best option may be to
sweep through the mesh ahead of time (and again after any mesh
changes) and precompute your own std::unordered_set to test later.
---
Roy

------------------------------------------------------------------------------
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
[email protected]
https://lists.sourceforge.net/lists/listinfo/libmesh-users

Reply via email to