|
[Sponsors] |
![]() |
![]() |
#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! |
|
![]() |
![]() |
![]() |
![]() |
#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 |
||
![]() |
![]() |
![]() |
![]() |
#3 | |
Senior Member
|
Quote:
Ivan |
||
![]() |
![]() |
![]() |
|
|
![]() |
||||
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 |