|
[Sponsors] | |||||
|
|
|
#1 |
|
New Member
N/A
Join Date: Aug 2011
Posts: 2
Rep Power: 0 ![]() |
Hello,
I want to access the macro for yplus, ystar and Ustar in Fluent in my udf. Does anyone know these macros? I am looking for a macro similar like C_R(c,t) to access the density in a cell. Thanks in advance, Seppl Hello, I found the solution for yplus and U_tau (=friction velocity?) F_STORAGE_R(f,t,SV_WALL_YPLUS) F_STORAGE_R(f,t,SV_WALL_YPLUS_UTAU) Last edited by Seppl Huber; August 24, 2011 at 05:56. |
|
|
|
|
|
|
|
|
#2 |
|
New Member
Join Date: Jul 2011
Posts: 2
Rep Power: 0 ![]() |
hi,Seppl
Do you know how to define yplus in Custom field function or UDF? The yplus in Fluent is only on the wall. I want to get a X-Y plot of uplus verus yplus along the wall normal direction. Could you give some sugguestion. Thanks a lot. |
|
|
|
|
|
|
|
|
#3 |
|
Member
john
Join Date: Nov 2010
Posts: 50
Rep Power: 17 ![]() |
Hi Renli,
I guess you can calculate u* (and therefore y+) only near wall. Because by definition u* = sqrt(shear stress/rho) From this you can get shear stress only near wall.. right?.. if so it may not good representation to plot y+ along wall normal. John |
|
|
|
|
|
|
|
|
#4 | |
|
New Member
Join Date: Feb 2011
Posts: 7
Rep Power: 16 ![]() |
Quote:
Dear All i want to write a udf that stores the yplus in a UDMI for using that and get the USTAR at the boundaries, i dont know how use SV_WALL_YPLUS_UTAU; d = Get_Domain(1); thread_loop_c(t,d) { begin_c_loop(c,t) { C_UDMI(c,t,1)=C_STORAGE_R(f,t,SV_WALL_YPLUS_UTAU); } end_c_loop(c,t) } could you please give me an idea about that please thanks |
||
|
|
|
||
|
|
|
#5 | |
|
Member
john
Join Date: Nov 2010
Posts: 50
Rep Power: 17 ![]() |
Quote:
When i try use the said macros i got the following error. Error: FLUENT received fatal signal (ACCESS_VIOLATION) 1. Note exact events leading to error. 2. Save case/data under new name. 3. Exit program and restart to continue. 4. Report error to your distributor. Error Object: () Could you please explain how to use them in udf, is it like F_STORAGE_R(f,t,SV_WALL_YPLUS)[1]?? or any header file need to be included to access those macros?? Thanks John |
||
|
|
|
||
|
|
|
#6 | |
|
Member
Ming Cai
Join Date: Mar 2011
Posts: 50
Rep Power: 16 ![]() |
Quote:
it loops all cell threads but the macro accesses face values.... In my case, I defined search algorithm which gives wall value to all cells perpendicular to it as roni mentioned. but i'm not sure if it's the right way though... |
||
|
|
|
||
|
|
|
#7 | |
|
New Member
Join Date: Jun 2020
Posts: 6
Rep Power: 7 ![]() |
Quote:
Could you please share the codes for yplus? many thanks, Bryce |
||
|
|
|
||
![]() |
| Tags |
| udf macro |
| Thread Tools | Search this Thread |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Tecplot360 - Macros calling Macros? | eRzBeNgEl | CFX | 1 | April 15, 2011 07:32 |
| help with macros F_ID and C_ID | Jack Martinez | FLUENT | 0 | August 19, 2007 09:27 |
| What are UDF macros C_T_S , C_T_AP,...???? | Asghari | FLUENT | 0 | January 28, 2007 11:54 |
| Orientation of Face Variable Macros | hirokata | FLUENT | 0 | February 17, 2006 01:12 |
| ystar and yplus | sarah_ron | FLUENT | 1 | December 16, 2004 12:19 |