|
[Sponsors] |
June 24, 2014, 03:39 |
Interpolate from cell value to point value
|
#1 |
Senior Member
Samuele Z
Join Date: Oct 2009
Location: Mozzate - Co - Italy
Posts: 520
Rep Power: 19 |
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 Last edited by samiam1000; June 24, 2014 at 03:41. Reason: Forgot the attachement |
|
June 25, 2014, 07:45 |
|
#2 |
Super Moderator
Philip Cardiff
Join Date: Mar 2009
Location: Dublin, Ireland
Posts: 1,097
Rep Power: 34 |
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 |
|
June 25, 2014, 07:59 |
|
#3 |
Senior Member
Samuele Z
Join Date: Oct 2009
Location: Mozzate - Co - Italy
Posts: 520
Rep Power: 19 |
Thanks for answering..
If I share the solver, could you help in using properly the class? THanks a lot, Samuele. |
|
June 26, 2014, 06:37 |
|
#4 |
Super Moderator
Philip Cardiff
Join Date: Mar 2009
Location: Dublin, Ireland
Posts: 1,097
Rep Power: 34 |
Sure, I can have a look.
Philip |
|
June 26, 2014, 09:50 |
|
#5 |
Senior Member
Samuele Z
Join Date: Oct 2009
Location: Mozzate - Co - Italy
Posts: 520
Rep Power: 19 |
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 |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Journal file error | magicalmarshmallow | FLUENT | 3 | April 4, 2014 13:25 |
[snappyHexMesh] snappyHexMesh and cyclic boundaries | Ruli | OpenFOAM Meshing & Mesh Conversion | 2 | December 9, 2013 07:51 |
an odd(at least for me!) reconstructPar error on a field | immortality | OpenFOAM Running, Solving & CFD | 3 | June 3, 2013 23:36 |
[blockMesh] error EOF in blockMesh | Ahmed Khattab | OpenFOAM Meshing & Mesh Conversion | 7 | May 17, 2012 01:37 |
CFX4.3 -build analysis form | Chie Min | CFX | 5 | July 13, 2001 00:19 |