Work at SourceForge, help us to make it a better place! We have an immediate need for a Support Technician in our San Francisco or Denver office.

[Libmesh-users] How to look for the element which a point is in?

 [Libmesh-users] How to look for the element which a point is in? From: Shengli Xu - 2007-07-28 00:36:41 Attachments: Message as HTML ```Dear Libmesh users, If the coordination value of a point is hnown, how to get the element which the point is in? Does the Libmesh have this function? Thank you! -- Best regards, Yours sincerely ShengliXu Department of Engineering Mechanics State Key Laboratory of Structural Analysis for Industrial Equipment Dalian University of Technology Dalian, 116023, P. R. China Email:shengli@... shengli.xu.xu@... ========================== ```

 [Libmesh-users] How to look for the element which a point is in? From: Shengli Xu - 2007-07-28 00:36:41 Attachments: Message as HTML ```Dear Libmesh users, If the coordination value of a point is hnown, how to get the element which the point is in? Does the Libmesh have this function? Thank you! -- Best regards, Yours sincerely ShengliXu Department of Engineering Mechanics State Key Laboratory of Structural Analysis for Industrial Equipment Dalian University of Technology Dalian, 116023, P. R. China Email:shengli@... shengli.xu.xu@... ========================== ```
 Re: [Libmesh-users] How to look for the element which a point is in? From: Roy Stogner - 2007-07-28 14:04:49 ```On Sat, 28 Jul 2007, Shengli Xu wrote: > If the coordination value of a point is hnown, how to get the element which > the point is in? Does the Libmesh have this function? You can loop over all the active elements and test contains_point() on each one, but for efficiency if you're looking up a lot of points you'll want to use the PointLocator class hierarchy. The PointLocatorTree builds up an octree, which is expensive at first but gives O(log(N)) instead of O(N) cost for each lookup. --- Roy ```
 [Libmesh-users] How to look for the element which a point is in? From: John Peterson - 2007-07-28 20:35:33 ```This question has been asked many times before, see for example, this thread. http://sourceforge.net/mailarchive/message.php?msg_id=Pine.LNX.4.64.0703211243410.15725%40mycroft.localdomain Try searching the mailing list archive before sending repetitive questions to the list. -John ```