CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > ANSYS > FLUENT

Parall UDF

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   May 23, 2008, 06:37
Default Parall UDF
  #1
Dennis
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

  Reply With Quote

Reply


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 Off
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 11:39


All times are GMT -4. The time now is 23:07.