CFD Online Logo CFD Online URL
Home > Forums > FLUENT

Parall UDF

Register Blogs Members List Search Today's Posts Mark Forums Read

LinkBack Thread Tools Display Modes
Old   May 23, 2008, 06:37
Default Parall UDF
Posts: n/a
Hello everybody,

I am having problem running a simple UDF in parallel. I posted the UDF here before:

#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

  Reply With Quote


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
CFX-5.7.1 MPICH distr. parall. + user routines Claudia CFX 2 March 18, 2005 12:39

All times are GMT -4. The time now is 03:40.