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

UDF to Access Wall Normal Concentration Gradient

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   May 6, 2009, 14:10
Default UDF to Access Wall Normal Concentration Gradient
  #1
Member
 
Daniel Tanner
Join Date: Apr 2009
Posts: 54
Rep Power: 17
Daniel Tanner is on a distinguished road
I want to calculate and store the wall normal concentration gradient at my wall boundary. I have compiled my udf and it works correctly. However, I have some questions, below is a section of my udf for reference.

*******************************************
/* Get Connectivity Data */
BOUNDARY_FACE_GEOMETRY(f,t,A,ds,es,A_by_es,dr0);

/* Calculate Wall Normal Inter-centroid distance (dn)*/
dn = NV_DOT(A, (es*ds))/NV_MAG(A);

/* Calculate Wall Normal Concentration Gradient*/
C_UDMI(c0, t0, 1) = ((F_YI(f,j,0)*F_R(f,j))-(C_YI(c0, t0,0)*C_R(c0,t0)))/dn;
*******************************************

1) I am unsure (though the difference is probably quite small) if it is better to use the inter-centroid distance in the wall normal direction ("dn" - as defined above) or "ds" as returned by the BOUNDARY_FACE_GEOMETRY macro to calculate the wall normal gradient (i.e., dpsi/dn or dpsi/ds).

2) To establish the concentration gradient is mass_fraction*density the correct term to use:
F_YI(f,j,0)*F_R(f,j) - C_YI(c0, t0,0)*C_R(c0,t0)

3) I store these values at the centres of the cells (using C_UDMI) adjacent to the wall. Will this cause an error when contours of concentration at the wall are displayed in fluent, i.e., this would require the interpolation of the cell-centred values onto the wall and hence they would be different.

Thanks...
Daniel Tanner is offline   Reply With Quote

Old   May 18, 2012, 10:35
Default
  #2
New Member
 
moon
Join Date: Feb 2012
Posts: 26
Rep Power: 14
moun139 is on a distinguished road
more informations please , i'm verry interrested
thx
moun139 is offline   Reply With Quote

Old   May 21, 2012, 04:23
Default
  #3
Member
 
Daniel Tanner
Join Date: Apr 2009
Posts: 54
Rep Power: 17
Daniel Tanner is on a distinguished road
What questions do you have?
If you have a UDF you are trying to create post it and I'll have a look.
Daniel Tanner is offline   Reply With Quote

Old   May 21, 2012, 11:14
Default
  #4
New Member
 
moon
Join Date: Feb 2012
Posts: 26
Rep Power: 14
moun139 is on a distinguished road
Yes Mr daniel , may you send me this udf please .
thank you a lot
moun139 is offline   Reply With Quote

Old   February 18, 2015, 14:35
Default Help with the same problem
  #5
New Member
 
Nandish
Join Date: Sep 2012
Posts: 5
Rep Power: 13
nandish777desai is on a distinguished road
Could you please give more detail on your UDF.
nandish777desai 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
surface tension as function of normal gradient tom FLUENT 2 September 7, 2016 03:48
How to udf the wall boundary condition in VOF gawainhe FLUENT 1 December 24, 2008 19:00
Gradient over interior (shadow) wall D Krijgsman FLUENT 0 August 21, 2008 00:44
How to write udf of slip wall condition cxzhao FLUENT 0 April 27, 2005 21:20
UDF for wall shear stress Bastian FLUENT 0 July 21, 2004 04:52


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