|
[Sponsors] |
February 18, 2013, 10:48 |
parallelize udf (viscosity)?
|
#1 |
Senior Member
Join Date: Feb 2011
Posts: 140
Rep Power: 15 |
Dear all,
I read the section of the user guide dealing with the parallelization of udfs, but I am pretty confused afterwards and still have some questions concerning the parallelization:
Thank you in advance! Lilly |
|
February 18, 2013, 11:27 |
|
#2 |
Member
CC
Join Date: Jun 2011
Posts: 73
Rep Power: 15 |
I implemeted the non-newtonian behavior in my case using an UDF:
#include"mem.h" DEFINE_PROPERTY(viscosity_function,c,t) { real viscosity,gamma; gamma=C_STRAIN_RATE_MAG(c,t); viscosity=m*pow(gamma,b); return viscosity; } then I interpreted it in Fluent and after that in the materials properties i have an option to change the materials properties where i can chose User defined function and select the udf file. In my case it is correctly interpreted. I hope it can help you... |
|
February 19, 2013, 05:08 |
|
#3 |
Senior Member
|
In your case you don't have to worry about parallelization because your UDF is local, for each cell only local (e.g., from the same cell) information is used. In theory, the computation of the strain rate magnitude involves neighbor cells but, as it is already provided by Fluent with a macro, you don't have to take care of it.
Tipically, this also happens with DEFINE_PROFILE macros. |
|
February 28, 2013, 04:35 |
|
#4 |
Senior Member
Join Date: Feb 2011
Posts: 140
Rep Power: 15 |
Thank you C.C and thank you sbaffini!
Your answers were really helpful for me! Why did you use #include"mem.h" instead of #include "udf.h", C.C? |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
subgrid turbulent viscosity for UDF in LES | David TAIEB | FLUENT | 0 | April 2, 2007 09:27 |
Help !! UDF for second phase viscosity. | yong | FLUENT | 2 | January 24, 2007 12:11 |
UDF of Turbulent viscosity | justin | FLUENT | 0 | November 24, 2006 07:36 |
Problems with changing turbulent viscosity by UDF | sarah_ron | FLUENT | 0 | February 14, 2005 01:31 |
about eddy viscosity :UDF | sagga | FLUENT | 2 | January 10, 2005 22:07 |