|
[Sponsors] |
November 4, 2014, 03:36 |
Extracting point coordinates from patch
|
#1 |
New Member
PA
Join Date: Mar 2009
Posts: 25
Rep Power: 17 |
Hi all,
I am experiencing a strange problem for which I would like your input if possible. I have a volute geometry from which I would like to extract the min / max radius of the inflow patch (it's either cylindrical or conical in shape). For this I use the following approach written as a python script. 1) Identify startFace and nFaces for the inflow patch in the boundary file 2) Go through faces file starting from ID startFace and ending at startFace+nFaces to extract point IDs 3) Take all point IDs from 2) and find the corresponding point coordinates from points file. Now judging from the pointsOK.png picture where the extrated points are displayed this approach is usable. However, when I increase the number of layers in the snappyHexMesh I suddenly get the points extraction shown in pointsNotOK.png. How can this be? The inflow patch shows up OK in paraview in both cases. Any comments / ideas are highly appreciated. Update: problem still persists but I found a workaround using foamToVTK to extract points on patch. Still a strange problem though :-) Kind regards, Per
__________________
Regards, Per Last edited by pad; November 6, 2014 at 05:08. Reason: Found another solution to my problem |
|
Tags |
boundary, faces, patch, points |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
[snappyHexMesh] determining displacement for added points | CFDnewbie147 | OpenFOAM Meshing & Mesh Conversion | 1 | October 22, 2013 10:53 |
[Gmsh] Single volume Mesh gmsh | PeteH | OpenFOAM Meshing & Mesh Conversion | 9 | August 6, 2013 09:54 |
a reconstructPar issue | immortality | OpenFOAM Post-Processing | 8 | June 16, 2013 12:25 |
block-structured mesh for t-junction | Robert@cfd | ANSYS Meshing & Geometry | 20 | November 11, 2011 05:59 |
[Gmsh] Gmsh and samplesurface | touf | OpenFOAM Meshing & Mesh Conversion | 2 | December 10, 2007 03:27 |