## Re: [Libmesh-users] interpolation

 Re: [Libmesh-users] interpolation From: Derek Gaston - 2007-03-21 17:46:10 ```Yes... but that's a linear search. My point was that MeshFunction should be faster in most circumstances... Derek On 3/21/07, li pan wrote: > It's easy to find which element contains this point. I > just go over all the elements and call > elem.contains_point(p). > > pan > > > --- Derek Gaston wrote: > > > If you're going to be finding which element contains > > the point and > > then trying to get a value at that point... you > > really are best off to > > use MeshFunction. That's pretty much what it was > > meant to do, and > > will do a fairly efficient search (well, better than > > linear in most > > cases)... > > > > But it does come with the caveats that Roy > > mentioned... > > > > Derek > > > > On 3/21/07, li pan wrote: > > > I'm using tetrahedron. The variable is > > displacement. I > > > interpolate the point displacement in two steps: > > > first, figure out the element which contains this > > > point. Second, using linear interpolation > > > u=3Dshape1*u1+shape2*u2+shape3*u3+shape4*u4. > > > Shape(number) are the shape functions, u(number) > > are > > > the node displacements. > > > > > > best > > > > > > pan > > > > > > > > > --- Paulo Correia wrote: > > > > > > > Hi all, > > > > > > > > Is there any function to interpolate the > > solution on > > > > a given point (say in an element basis)? > > > > > > > > Thank you, > > > > > > > > Paulo Correia > > > > Mathematics Department > > > > University of =C9vora > > > > Portugal > > > > > > > > > > > > > > ------------------------------------------------------------------------- > > > > Take Surveys. Earn Cash. Influence the Future of > > IT > > > > Join SourceForge.net's Techsay panel and you'll > > get > > > > the chance to share your > > > > opinions on IT & business topics through brief > > > > surveys-and earn cash > > > > > > > > > > http://www.techsay.com/default.php?page=3Djoin.php&p=3Dsourceforge&CID=3D= DEVDEV > > > > _______________________________________________ > > > > Libmesh-users mailing list > > > > Libmesh-users@... > > > > > > > > > > https://lists.sourceforge.net/lists/listinfo/libmesh-users > > > > > > > > > > > > > > > > > > > > > > > > > _________________________________________________________________________= ___________ > > > Need Mail bonding? > > > Go to the Yahoo! Mail Q&A for great tips from > > Yahoo! Answers users. > > > > > > http://answers.yahoo.com/dir/?link=3Dlist&sid=3D396546091 > > > > > > > > > ------------------------------------------------------------------------- > > > Take Surveys. Earn Cash. Influence the Future of > > IT > > > Join SourceForge.net's Techsay panel and you'll > > get the chance to share your > > > opinions on IT & business topics through brief > > surveys-and earn cash > > > > > > http://www.techsay.com/default.php?page=3Djoin.php&p=3Dsourceforge&CID=3D= DEVDEV > > > _______________________________________________ > > > Libmesh-users mailing list > > > Libmesh-users@... > > > > > > https://lists.sourceforge.net/lists/listinfo/libmesh-users > > > > > > > > > > _________________________________________________________________________= ___________ > Food fight? Enjoy some healthy debate > in the Yahoo! Answers Food & Drink Q&A. > http://answers.yahoo.com/dir/?link=3Dlist&sid=3D396545367 > ```