|
[Sponsors] |
How does the macro DEFINE_WALL_FUNCTIONS work?? |
![]() |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
![]() |
![]() |
#1 |
Member
Join Date: Jul 2013
Posts: 99
Rep Power: 13 ![]() |
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 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 |
|
![]() |
![]() |
![]() |
Tags |
fluent, fluent - udf, udf, wall function |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Run macro for Multiple file | furione | STAR-CCM+ | 6 | November 28, 2011 14:54 |
Macro Trouble -Winows Explorer Crashes with Macro | Martin Castillo | FLUENT | 1 | July 25, 2007 04:18 |
Macro problem | cfddummy | Siemens | 1 | April 9, 2007 12:37 |
macro not function! | guang ai | Siemens | 0 | July 25, 2004 18:53 |
Call a macro from a macro | Flav | Siemens | 2 | July 1, 2004 05:42 |