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

How does the macro DEFINE_WALL_FUNCTIONS work??

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   April 26, 2024, 11:43
Question How does the macro DEFINE_WALL_FUNCTIONS work??
  #1
Member
 
Join Date: Jul 2013
Posts: 98
Rep Power: 13
HHOS is on a distinguished road
Hello to all,


I am trying to create a DEFINE_WALL_FUNCTIONS macro in order to change the log-law.


The standard UDF, provided with Fluent is:


Code:
DEFINE_WALL_FUNCTIONS(user_log_law, f, t, c0, t0, wf_ret, yPlus, Emod)
{

real wf_value;

switch (wf_ret)
{
     case UPLUS_LAM:
     wf_value = yPlus;
     break;

     case UPLUS_TRB:
     wf_value = log(Emod*yPlus)/KAPPA;
     break;
     
     case DUPLUS_LAM:
     wf_value = 1.0;
     break;
     
     case DUPLUS_TRB:
     wf_value = 1./(KAPPA*yPlus);
     break;

     case D2UPLUS_TRB:
     wf_value = -1./(KAPPA*yPlus*yPlus);
     break;
     
     default:
     printf("Wall function return value unavailable\n");
}
return wf_value;
}
I have been playing with the case UPLUS_TRB because the equation there is the one in the theory-guide for the u* value.


I have however noticed that the case it triggers in my calculation is also the DUPLUS_TRB.


What does that mean?? What are those different cases, other than the first two??


If you know, how did you get that information??


And finally, why is it using "yPlus" when the theory guide clearly states that the equation used for the wall function uses y* instead of y+??

Any help would be appreciated.


Thank you very much in advance.


Regards.


hhos
HHOS is offline   Reply With Quote

Reply

Tags
fluent, fluent - udf, udf, wall function


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
Run macro for Multiple file furione STAR-CCM+ 6 November 28, 2011 15:54
Macro Trouble -Winows Explorer Crashes with Macro Martin Castillo FLUENT 1 July 25, 2007 05:18
Macro problem cfddummy Siemens 1 April 9, 2007 13:37
macro not function! guang ai Siemens 0 July 25, 2004 19:53
Call a macro from a macro Flav Siemens 2 July 1, 2004 06:42


All times are GMT -4. The time now is 11:45.