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

UDS Diffusivity

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   December 17, 2005, 06:49
Default UDS Diffusivity
  #1
czh
Guest
 
Posts: n/a
Hello,

Would like to define different uds diffusivity in different regions. tried to write the following c code and interpreted it, but the syntax error message appeared. can someone please help me comment on my code. thank you.

DEFINE_DIFFUSIVITY(potential_diff, c, t, i) { real D; Domain *domain;

domain = Get_Domain(1);

Thread *t1 = Lookup_Thread(domain,8); Thread *t2 = Lookup_Thread(domain,7); Thread *t3 = Lookup_Thread(domain,6); Thread *t4 = Lookup_Thread(domain,5); Thread *t5 = Lookup_Thread(domain,4); Thread *t6 = Lookup_Thread(domain,3); Thread *t7 = Lookup_Thread(domain,2);

if (t==t1||t==t4||t==t7) D = 6000.00; else D = 3000;

return D; }

  Reply With Quote

Old   December 17, 2005, 23:53
Default Re: UDS Diffusivity
  #2
elzubier
Guest
 
Posts: n/a
hello iam doing similar simulation and i have same problem would you share with me information to solve our problem thanks in advance regard
  Reply With Quote

Old   December 19, 2005, 08:42
Default Re: UDS Diffusivity
  #3
Alec Eiffel
Guest
 
Posts: n/a
Try this

#include "udf.h"

DEFINE_DIFFUSIVITY(potential_diff, c, t, i) {

real D;

Domain *domain;

domain = Get_Domain(1);

if (t==Lookup_Thread(domain,8)||t==Lookup_Thread(doma in,5)||t==Lookup_Thread(domain,2))

D = 6000.00;

else

D = 3000;

return D; }
  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
PEM modeling UDS diffusivity in mixture gemini FLUENT 6 August 7, 2012 07:37
What is UDS diffusivity of a self-defined material? aleisia FLUENT 0 March 5, 2011 22:08
Fluent 6.3 pemfc module, UDS diffusivity yerem3 FLUENT 0 January 19, 2010 03:10
Directional Diffusivity of UDS Source Greg Perkins FLUENT 2 September 4, 2003 03:02
UDS DIffusivity... up FLUENT 4 July 16, 2001 08:11


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