CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > ANSYS > FLUENT

UDF: Distance from the wall

Register Blogs Community New Posts Updated Threads Search

Like Tree2Likes
  • 1 Post By Keil
  • 1 Post By Michal

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   August 14, 2002, 04:36
Default UDF: Distance from the wall
  #1
Gabor
Guest
 
Posts: n/a
Dear All,

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

Greetings

Gabor
  Reply With Quote

Old   August 14, 2002, 05:15
Default Re: UDF: Distance from the wall
  #2
Keil
Guest
 
Posts: n/a
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

Thumper likes this.
  Reply With Quote

Old   August 14, 2002, 06:31
Default Re: UDF: Distance from the wall
  #3
Gabor
Guest
 
Posts: n/a
Thanks Keil.

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

Regards

Gabor
  Reply With Quote

Old   August 15, 2002, 02:34
Default Re: UDF: Distance from the wall
  #4
Keil
Guest
 
Posts: n/a
Yes. It can.

But the program will be a little bit complex.

Regards

Keil
  Reply With Quote

Old   August 19, 2002, 02:26
Default Re: UDF: Distance from the wall
  #5
Michal
Guest
 
Posts: n/a
Hi Gabor,

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

Michal
Thumper likes this.
  Reply With Quote

Old   June 10, 2016, 15:52
Default
  #6
New Member
 
Pratik Dhoot
Join Date: Mar 2016
Location: Boston, MA
Posts: 20
Rep Power: 10
pratikddhoot is on a distinguished road
Can you guide me how to?
pratikddhoot is offline   Reply With Quote

Old   May 24, 2018, 08:27
Default
  #7
Member
 
zobekenobe
Join Date: Mar 2009
Location: Dublin, Ireland
Posts: 72
Rep Power: 17
zobekenobe is on a distinguished road
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
zobekenobe is offline   Reply With Quote

Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
[Commercial meshers] Fluent3DMeshToFoam simvun OpenFOAM Meshing & Mesh Conversion 50 January 19, 2020 16:33
heat flow UDF on coupled surface (wall-shadow wall) Friedmann Fluent UDF and Scheme Programming 0 August 5, 2010 11:25
distance between particle and wall Worth FLUENT 2 June 13, 2009 04:04
Errors running allwmake in OpenFOAM141dev with WM_COMPILE_OPTION%3ddebug unoder OpenFOAM Installation 11 January 30, 2008 21:30
wall conduction, UDF sudh FLUENT 0 June 28, 2004 09:09


All times are GMT -4. The time now is 21:34.