-
-
September 27, 2017 at 11:19 am
admin
Ansys EmployeeHow can I find the coordinates of the center of a face?
-
October 17, 2017 at 6:21 am
admin
Ansys EmployeeThe coordinates of center of a face can be obtained by using the FCENTROID macro. The following udf is an example of accessing the coordinates of the face center using DEFINEONDEMAND. Note: When define on demand is executed, the coordinates and the ID of the face center are printed in the Fluent console. #include "udf.h" DEFINEONDEMAND(ondemand) { Domain *d = GetDomain(1); int ID = 2; Thread *t =LookupThread(d, ID); facet f; real x[NDND],x1,y1,z1; beginfloop(f,t) { FCENTROID(x,f,t); x1 = x [0]; y1 = x [1]; z1 = x [2]; Message("face : %d,%f,%f,%f,%dn",f,x1,y1,z1,ID); } endf_loop(f,t) }
-
- 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.
- Suppress Fluent to open with GUI while performing in journal file
- Floating point exception in Fluent
- What are the differences between CFX and Fluent?
- Heat transfer coefficient
- Getting graph and tabular data from result in workbench mechanical
- The solver failed with a non-zero exit code of : 2
- Difference between K-epsilon and K-omega Turbulence Model
- Time Step Size and Courant Number
- Mesh Interfaces in ANSYS FLUENT
- error in cfd post
-
2656
-
2120
-
1345
-
1118
-
461
© 2023 Copyright ANSYS, Inc. All rights reserved.