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

Interpolate in some points

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   April 21, 2009, 12:23
Default Interpolate in some points
  #1
Senior Member
 
Ivan Flaminio Cozza
Join Date: Mar 2009
Location: Torino, Piemonte, Italia
Posts: 210
Rep Power: 18
ivan_cozza is on a distinguished road
Send a message via MSN to ivan_cozza
Hi Foamers,
I need to interpolate some volField from my cfd mesh to a 2D mesh for external calculations, so I need to interpolate in a cloud of points that I read from a file. I would like to do it in a code (no sample or probes), as the 2D mesh is quite big ( 300k nodes).
Which class can I use to interpolate in a list of points?
Thanks!
ivan_cozza is offline   Reply With Quote

Old   April 22, 2009, 07:20
Default
  #2
Assistant Moderator
 
Bernhard Gschaider
Join Date: Mar 2009
Posts: 4,225
Rep Power: 51
gschaider will become famous soon enoughgschaider will become famous soon enough
Quote:
Originally Posted by ivan_cozza View Post
I need to interpolate some volField from my cfd mesh to a 2D mesh for external calculations, so I need to interpolate in a cloud of points that I read from a file. I would like to do it in a code (no sample or probes), as the 2D mesh is quite big ( 300k nodes).
Which class can I use to interpolate in a list of points?
What I'd do (but I'm lazy and avoid "real" (==C++) programming if possible):
- Using the scripting language of your choice (Perl, Python, awk, ....) generate from the file of the 2D-Nodes a sampleDict (with a REAL long cloud entry)
- run sample
- Convert the result back to a format that is usable for you

Examples of using the interpolator-classes would be anything that has to do with lagrangian particles. For instance (maybe not the best example, but the one I found first):
Approx line 105 for creation: http://openfoam-extend.svn.sourcefor....C?view=markup
Approx line 161 for usage: http://openfoam-extend.svn.sourcefor....C?view=markup
Of course you'll have to find the appropriate cellI with findCell

Bernhard
gschaider is offline   Reply With Quote

Old   April 22, 2009, 08:58
Default
  #3
Senior Member
 
Ivan Flaminio Cozza
Join Date: Mar 2009
Location: Torino, Piemonte, Italia
Posts: 210
Rep Power: 18
ivan_cozza is on a distinguished road
Send a message via MSN to ivan_cozza
Quote:
Originally Posted by gschaider View Post
What I'd do (but I'm lazy and avoid "real" (==C++) programming if possible):
- Using the scripting language of your choice (Perl, Python, awk, ....) generate from the file of the 2D-Nodes a sampleDict (with a REAL long cloud entry)
Thank you, I will build the script soon.
Ivan
ivan_cozza 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
Sliding Interface issues philippose OpenFOAM Running, Solving & CFD 7 May 5, 2014 03:13
[blockMesh] BlockMeshmergePatchPairs hjasak OpenFOAM Meshing & Mesh Conversion 11 August 15, 2008 07:36
Read cloud of points and interpolate on face centers bramdejager OpenFOAM Pre-Processing 2 September 5, 2007 05:13
CEL insertion of points into domain? Adrijana CFX 1 December 7, 2006 07:48
extreme points problem Lipo Wang Main CFD Forum 2 August 18, 2004 03:15


All times are GMT -4. The time now is 17:15.