|
[Sponsors] |
How does the macro DEFINE_WALL_FUNCTIONS work?? |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
April 26, 2024, 11:43 |
How does the macro DEFINE_WALL_FUNCTIONS work??
|
#1 |
Member
Join Date: Jul 2013
Posts: 98
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 |
|
|
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 |