|
[Sponsors] |
February 9, 2015, 09:12 |
Get Cell by Coordinates in Fluent 15.0.0
|
#1 |
New Member
Join Date: Feb 2015
Posts: 2
Rep Power: 0 |
Hi Everybody,
I'm working with Fluent 15.0.0 and need to find the cell of the domain that contains a certain point (specified by its coordinates). My approaches so far:
My Code: #include "dpm.h" #include "cxndsearch.h" CX_Cell_Id *cx_cell; double x[ND_ND]; int i; ND_Search *search; for (i = 0; i < ND_ND; i++) { x[i] = 0.0; } Message("sv_locat_point: %d\n", SV_locate_point(x, cx_cell)); //fails! search = CX_Start_ND_Point_Search(search, 1, 0); cx_cell = CX_Find_Cell_With_Point(search, x, 0); search = CX_End_ND_Point_Search(search); if (NULL != cx_cell) { Message("check\n"); Message("cx_find_cell id: %d\n", RP_CELL(cx_cell)); //fails! } |
|
Tags |
cell, coordinates, point, search |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
UDF: Given coordinates, How to identify the cell? | Zhang | Fluent UDF and Scheme Programming | 26 | August 15, 2022 05:54 |
working in cylindrical coordinates in fluent | Randheer Yadav | FLUENT | 2 | January 18, 2015 16:25 |
Two dimensional simulation of a PEMFC in Fluent fuel cell module | A CFD free user | FLUENT | 0 | October 17, 2014 06:59 |
[Workbench] Creation of Cell Zones for processing in FLUENT | kailingkk | ANSYS Meshing & Geometry | 0 | October 5, 2013 05:09 |
?? How to get cell center coordinates? | erica | FLUENT | 0 | May 11, 2005 22:02 |