|
[Sponsors] |
December 17, 2005, 06:49 |
UDS Diffusivity
|
#1 |
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; } |
|
December 17, 2005, 23:53 |
Re: UDS Diffusivity
|
#2 |
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
|
|
December 19, 2005, 08:42 |
Re: UDS Diffusivity
|
#3 |
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; } |
|
|
|
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 |