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

Species Diffusivity in PEMFC Simulation

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

Reply
 
LinkBack Thread Tools Display Modes
Old   September 20, 2004, 22:12
Default Species Diffusivity in PEMFC Simulation
  #1
circle2000
Guest
 
Posts: n/a
Hi everyone,

I want to use the udf to set diffusivity of the mixture in MEA to zero, I use the code posted below

DEFINE_DIFFUSIVITY(my_diff,cell,thread,index) {

real diffu;

Domain *domain=Get_Domain(1); if(thread==Lookup_Thread(domain,MEA_ID))

diffu=1e-10;

else

diffu=2.88e-5;

return diffu; }

But it seems that it only changes the diffusivity of H2, I also tried to use if(index==0.1..n-1){if(thread==...)diffu=...;else diffu=...;return diffu;} to set each species's diffusivity, but it still doesn't work, only H2's diffusivity has been changed.

What can I do? Can someone tell me how to use this function well and how to set diffusivity of every species in the mixture?
  Reply With Quote

Reply

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
PEMFC simulation bilalcheema FLUENT 0 October 1, 2009 16:44
Species Transport of Dye Tracer in Water DarrenC FLUENT 0 September 18, 2009 00:01
Continuous vs interrupted simulation sega OpenFOAM Running, Solving & CFD 4 November 3, 2008 15:29
Scalar Transport and Species Diffusivity UDF's David Harvey FLUENT 0 December 5, 2003 02:45
3-D Contaminant Dispersal Simulation Apple L S Chan Main CFD Forum 1 December 23, 1998 11:06


All times are GMT -4. The time now is 00:26.