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

UDF not applied at specified location

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   August 4, 2023, 17:05
Default UDF not applied at specified location
  #1
New Member
 
kdot
Join Date: Aug 2023
Posts: 3
Rep Power: 2
kdot is on a distinguished road
Hello,

I am applying a source of mass and momentum near a wall in a FLUENT simulation. The point I am specifying as the mean of the gaussian is within the first cell from the wall, shown as the circular point in the figure. The gaussian however is being centered around a point that is a distance off the wall. I am using the transition SST model which doesnt have wall functions. I have also tested the logic of having a gaussian sitting at/near the wall on a simple square domain (image include). In the case of the square domain the gaussian is able to sit at the wall but when applied to a curved wall the gaussian is some distance away from the wall. I have even tried forcing the mean of the gaussian to be outside of the domain (inside the wall) and the gaussian is still being forced some distance away from the wall! Why does the gaussian not want to sit on the curved wall when it is able to on a flat wall?
Gaussian_on_wall.jpg

Gaussian_in_wall.jpg

Gaussian_on_wall_simple.jpg
kdot is offline   Reply With Quote

Old   August 6, 2023, 10:36
Default
  #2
Member
 
thedal's Avatar
 
Thamilmani M
Join Date: Sep 2017
Location: IIT Bombay, Mumbai
Posts: 52
Rep Power: 8
thedal is on a distinguished road
I am guessing, it must be about how you calculate from cell-centroid or the first cell distance from the wall.
__________________
Always
Thedal
thedal is offline   Reply With Quote

Old   August 7, 2023, 18:06
Default
  #3
New Member
 
kdot
Join Date: Aug 2023
Posts: 3
Rep Power: 2
kdot is on a distinguished road
I am calculating from cell centroid, I have made it so the desired mean of the gaussian sits in the first cell from the wall. When applied on a trivial flat plate it works as intended. The mean is at the specified point, however, on a curved surface the mean is no longer at the specified point. Even when the desired mean of the gaussian is moved outside of the domain, the source is still appearing some distance off the surface (as shown in the figures on the original post).

The code for it is relatively simple, I can attach it if desired, the jist of the code is to go through all the cell centroids and apply a source based on a gaussian distribution.

Im not sure if that helps clarify anything. This problem is something I have approached others about and we are all stumped on the behavior we are seeing.
kdot 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
Access Flow variables at an arbitrary location using UDF Abhinand Fluent UDF and Scheme Programming 7 November 13, 2019 15:37
Dynamic Mesh UDF Qureshi FLUENT 7 March 23, 2017 07:37
UDF Compilation Error - Loading Library - COMMON Problem! Help! robtheslob Fluent UDF and Scheme Programming 8 July 24, 2015 00:53
How to add a UDF to a compiled UDF library kim FLUENT 3 October 26, 2011 21:38
Location of coordinate origin (UDF consideration)? Frosn FLUENT 0 January 31, 2007 18:53


All times are GMT -4. The time now is 12:27.