|
[Sponsors] |
April 21, 2009, 13:23 |
Interpolate in some points
|
#1 |
Senior Member
|
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! |
|
April 22, 2009, 08:20 |
|
#2 | |
Assistant Moderator
Bernhard Gschaider
Join Date: Mar 2009
Posts: 4,225
Rep Power: 51 |
Quote:
- 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 |
||
April 22, 2009, 09:58 |
|
#3 | |
Senior Member
|
Quote:
Ivan |
||
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Sliding Interface issues | philippose | OpenFOAM Running, Solving & CFD | 7 | May 5, 2014 04:13 |
[blockMesh] BlockMeshmergePatchPairs | hjasak | OpenFOAM Meshing & Mesh Conversion | 11 | August 15, 2008 08:36 |
Read cloud of points and interpolate on face centers | bramdejager | OpenFOAM Pre-Processing | 2 | September 5, 2007 06:13 |
CEL insertion of points into domain? | Adrijana | CFX | 1 | December 7, 2006 08:48 |
extreme points problem | Lipo Wang | Main CFD Forum | 2 | August 18, 2004 04:15 |