TAGGED: student-version, udf
-
-
December 8, 2022 at 5:15 am
Ivan Mendez
SubscriberHey all, I have a csv that contains the x,y,z coordinates of points on my geometry. I found that I can find the cell that contains that point using CX_Find_Cell_With_Point. However, I also found CX_Find_Closest_Cell_To_Point in the cxndsearch.h header. What are the differences between the two, and what does "double *dist" mean in the CX_Find_Closest_Cell_To_Point argument?ÂFLUENT_EXPORT CX_Cell_Id *CX_Find_Cell_With_Point(ND_Search *, double v[3], double time);FLUENT_EXPORT CX_Cell_Id *CX_Find_Closest_Cell_To_Point(ND_Search *, double v[3], double *dist, double eps); -
December 8, 2022 at 10:25 am
Rob
Forum ModeratorAs a guess (I'm not allowed to comment on macros that aren't in the UDF manual) the macros will return the cell if the point is in it, the Closest macro will do some checks incase you've missed the meshed domain.Â
In C coding "double" calls double precision, ie more significant figures are stored. If a mesh is very fine or the cells small a distance might return zero without the extra accuracy.Â
-
Viewing 1 reply thread
- The topic ‘CX_Find_Cell_With_Point vs CX_Find_Closest_Cell_To_Point?’ is closed to new replies.
Ansys Innovation Space
Trending discussions
Top Contributors
-
3977
-
1461
-
1272
-
1124
-
1021
Top Rated Tags
© 2025 Copyright ANSYS, Inc. All rights reserved.
Ansys does not support the usage of unauthorized Ansys software. Please visit www.ansys.com to obtain an official distribution.