|
[Sponsors] |
September 20, 2004, 23:12 |
Species Diffusivity in PEMFC Simulation
|
#1 |
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? |
|
|
|
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 |