CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM

Interpolate from cell value to point value

Register Blogs Community New Posts Updated Threads Search

Like Tree1Likes
  • 1 Post By bigphil

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   June 24, 2014, 03:39
Default 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
samiam1000 is on a distinguished road
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
Attached Files
File Type: gz Gw.tar.gz (60.9 KB, 3 views)

Last edited by samiam1000; June 24, 2014 at 03:41. Reason: Forgot the attachement
samiam1000 is offline   Reply With Quote

Old   June 25, 2014, 07:45
Default
  #2
Super Moderator
 
bigphil's Avatar
 
Philip Cardiff
Join Date: Mar 2009
Location: Dublin, Ireland
Posts: 1,097
Rep Power: 34
bigphil will become famous soon enoughbigphil will become famous soon enough
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
alexlupo likes this.
bigphil is offline   Reply With Quote

Old   June 25, 2014, 07:59
Default
  #3
Senior Member
 
Samuele Z
Join Date: Oct 2009
Location: Mozzate - Co - Italy
Posts: 520
Rep Power: 19
samiam1000 is on a distinguished road
Thanks for answering..

If I share the solver, could you help in using properly the class?

THanks a lot,
Samuele.
samiam1000 is offline   Reply With Quote

Old   June 26, 2014, 06:37
Default
  #4
Super Moderator
 
bigphil's Avatar
 
Philip Cardiff
Join Date: Mar 2009
Location: Dublin, Ireland
Posts: 1,097
Rep Power: 34
bigphil will become famous soon enoughbigphil will become famous soon enough
Sure, I can have a look.

Philip
bigphil is offline   Reply With Quote

Old   June 26, 2014, 09:50
Default
  #5
Senior Member
 
Samuele Z
Join Date: Oct 2009
Location: Mozzate - Co - Italy
Posts: 520
Rep Power: 19
samiam1000 is on a distinguished road
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
samiam1000 is offline   Reply With Quote

Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are On


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


All times are GMT -4. The time now is 23:01.