CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   FLUENT (https://www.cfd-online.com/Forums/fluent/)
-   -   UDF: Distance from the wall (https://www.cfd-online.com/Forums/fluent/30168-udf-distance-wall.html)

Gabor August 14, 2002 03:36

UDF: Distance from the wall
 
Dear All,

is it possible to determine the distance from the wall in Fluent UDF?

Greetings

Gabor

Keil August 14, 2002 04:15

Re: UDF: Distance from the wall
 
Yes. It's possible. UDF can access a centroid of face on a cell and access the cell centroid as well.

Then ,the distance from wall can be calculated by vector calculations.

Regards

Keil


Gabor August 14, 2002 05:31

Re: UDF: Distance from the wall
 
Thanks Keil.

Can a UDF-macro determine the coordinates of the nearest wall in complex geometry?

Regards

Gabor

Keil August 15, 2002 01:34

Re: UDF: Distance from the wall
 
Yes. It can.

But the program will be a little bit complex.

Regards

Keil

Michal August 19, 2002 01:26

Re: UDF: Distance from the wall
 
Hi Gabor,

Try to use C_WALL_DIST(c,t) macro in UDF... I suppose it is what You need.

Michal

pratikddhoot June 10, 2016 14:52

Can you guide me how to?

zobekenobe May 24, 2018 07:27

you can also use BOUNDARY_FACE_GEOMETRY(f, thread, A, dr, es, A_by_es, dr0)


dr is the distance between the cell centroids of the adjacent cell to the wall and the wall


All times are GMT -4. The time now is 10:17.