Interpolate from cell value to point value
1 Attachment(s)
Dear All,
I am writing since I am facing a challenging issue: I have computed a certain function, i.e. Gw, on the walls of my channel and they are computed in the Gw attached file. Now I am going to move the patch "backWall" in the y direction accordingly to the data contained in this file. The point is that the motion tool requires the value of Gw on the points, not on the cells. This means that I should interpolate from cell values to point values. Can anyone help, please? Thanks a lot, Samuele |
Hi,
You can use volPointInterpolation class to interpolate a volField to a pointField. The standard volPointInterpolation class uses inverse distance weighted interpolation that can be inaccurate depending on the mesh. The leastSquaresVolPointInterpolation in foam-extend is more accurate in general. Philip |
Thanks for answering..
If I share the solver, could you help in using properly the class? THanks a lot, Samuele. |
Sure, I can have a look.
Philip |
Dear Philip,
if you send me an emai ( samuele.zampini@gmail.com ), I share the source with you. Nevertheless, I solved this issue using the "sample" tool and it works very well. Thanks foy helping, Samuele |
All times are GMT -4. The time now is 14:36. |