|
[Sponsors] |
May 23, 2008, 06:37 |
Parall UDF
|
#1 |
Guest
Posts: n/a
|
Hello everybody,
I am having problem running a simple UDF in parallel. I posted the UDF here before: http://www.cfd-online.com/Forum/fluent.cgi?read=58256 #include "udf.h" DEFINE_PROPERTY(cell_viscosity,c,t) { real mu_lam; Domain *domain; domain = Get_Domain(3); if (t == Lookup_Thread(domain,4)){ mu_lam = 10.; } if (t == Lookup_Thread(domain,3)){ mu_lam = 20.; } if (t == Lookup_Thread(domain,2)){ mu_lam = 30.; } return mu_lam; } In single mode it works perfectly, but in parallel the viscosity doesn't change. I read the "parallel UDF usage" in the UDF manual but I still don't know what I have to change. I hope anybody can help me. Thanks in advance Greetings Dennis |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
CFX-5.7.1 MPICH distr. parall. + user routines | Claudia | CFX | 2 | March 18, 2005 11:39 |