CFD Online Logo CFD Online URL
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Post-Processing

Extracting point coordinates from patch

Register Blogs Members List Search Today's Posts Mark Forums Read

LinkBack Thread Tools Search this Thread Display Modes
Old   November 4, 2014, 02:36
Question Extracting point coordinates from patch
New Member
Join Date: Mar 2009
Posts: 25
Rep Power: 17
pad is on a distinguished road
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,
Attached Images
File Type: jpg pointsOK.jpg (80.6 KB, 40 views)
File Type: jpg pointsNotOK.jpg (81.7 KB, 23 views)

Last edited by pad; November 6, 2014 at 04:08. Reason: Found another solution to my problem
pad is offline   Reply With Quote


boundary, faces, patch, points

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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
[snappyHexMesh] determining displacement for added points CFDnewbie147 OpenFOAM Meshing & Mesh Conversion 1 October 22, 2013 09:53
[Gmsh] Single volume Mesh gmsh PeteH OpenFOAM Meshing & Mesh Conversion 9 August 6, 2013 08:54
a reconstructPar issue immortality OpenFOAM Post-Processing 8 June 16, 2013 11:25
block-structured mesh for t-junction Robert@cfd ANSYS Meshing & Geometry 20 November 11, 2011 04:59
[Gmsh] Gmsh and samplesurface touf OpenFOAM Meshing & Mesh Conversion 2 December 10, 2007 02:27

All times are GMT -4. The time now is 00:57.