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
Ansys EmployeeAs 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.
-
- You must be logged in to reply to this topic.

Earth Rescue – An Ansys Online Series
The climate crisis is here. But so is the human ingenuity to fight it. Earth Rescue reveals what visionary companies are doing today to engineer radical new ideas in the fight against climate change. Click here to watch the first episode.

Ansys Blog
Subscribe to the Ansys Blog to get great new content about the power of simulation delivered right to your email on a weekly basis. With content from Ansys experts, partners and customers you will learn about product development advances, thought leadership and trends and tips to better use Ansys tools. Sign up here.
- ANSYS Workbench Measuring within Design
- how to improve the inflation quality at sharp corners?
- check element type
- The mesh file exporter could not resolve cyclic dependencies in overlapping contact regions error
- How to resolve Mesh Failure
- Meshing Error
- Error in meshing
- Conformal vs Non-Conformal Mesh
- execution error inside the mesher. The process suffered an unhandled exception or ran out of memory
- inflation created stairstep mesh at some location
-
2508
-
2064
-
1277
-
1088
-
456
© 2023 Copyright ANSYS, Inc. All rights reserved.