CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Programming & Development

find Cell Index via geometry coordinates

Register Blogs Community New Posts Updated Threads Search

Like Tree2Likes
  • 2 Post By kmooney

 
 
LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
Old   May 9, 2016, 04:38
Default find Cell Index via geometry coordinates
  #1
Member
 
Charles K.
Join Date: Feb 2016
Location: Germany
Posts: 37
Rep Power: 10
McCharles is on a distinguished road
Hello everyone,

I know the xyz coordinates of a certain point in my model geometry and want to use these coordinates to get the nearest Cell Index in Open Foam. I looked through the Documentation in order to find an existing OF utility able to resolve my problem but found nothing.

I know that there is a function in OF called 'findCell' that extracts the index of a cell in a mesh. Unfortunately, I'm quite new to OpenFoam and have no Idea how to implement 'findCell' in an utility.

Does anyone have have an idea?


Charles
McCharles is offline   Reply With Quote

 

Tags
cell, coordinates, find, findcell, index


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
How to find face area of each cell in a boundary patch? Hale OpenFOAM Post-Processing 3 August 6, 2019 07:06
Problem with building geometry - concentric cylinders Rhoddwen OpenFOAM Pre-Processing 9 December 17, 2014 10:02
[General] 2 datas on one plot Akuji ParaView 46 December 1, 2013 14:06
CFX-Pre problem, pls help!!! cth_yao CFX 0 February 17, 2012 00:52
[ANSYS Meshing] need to convert a cell based geometry into STL or CGNS kamran_kibria ANSYS Meshing & Geometry 0 September 15, 2011 05:14


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