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

Species Diffusivity in PEMFC Simulation

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   September 20, 2004, 23: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


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
Species Transport of Dye Tracer in Water DarrenC FLUENT 1 September 8, 2019 12:32
PEMFC simulation bilalcheema FLUENT 0 October 1, 2009 17:44
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 05:56.