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

Extracting point coordinates from patch

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   November 4, 2014, 03:36
Question Extracting point coordinates from patch
  #1
pad
New Member
 
PA
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,
Per
Attached Images
File Type: jpg pointsOK.jpg (80.6 KB, 42 views)
File Type: jpg pointsNotOK.jpg (81.7 KB, 24 views)
__________________
Regards,
Per

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

Reply

Tags
boundary, faces, patch, points


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 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


All times are GMT -4. The time now is 13:56.