|
[Sponsors] |
![]() |
![]() |
#1 |
New Member
Kashif Rashid
Join Date: Apr 2014
Posts: 8
Rep Power: 12 ![]() |
I have written UDF in C, using fluent macro, “DEFINE_SOURCE”, for internal steam reforming (file attached). Reforming reactions are supposed to take place inside porous anode electrode of Fuel Cell. Pre-reformed fuel mixture is used which consist of (CH4, H2, H2O, CO, CO2) species. 6 source terms are generated (5 from species, 1 from heat sink, as steam reforming is an endothermic reaction). These source terms are hooked in "Cell Zone Conditions" of fluent. UDMI, memories in Fluent are also allocated to store data for above terms (see code file).
After doing all these things and running simulation, reactions are not taking place; there is no change in concentration of species at inlet and outlet. Can someone take a look on UDF and suggest me what i am doing wrong? Heat is being provided outside the porous anode to facilitate the endothermic reaction. ![]() In the next step I shall include electrochemical reactions in this UDF taking place at the surface of anode, which are exothermic. Reforming reaction reactions will use this heat. Last edited by Kashif Rashid; September 26, 2014 at 13:40. Reason: Some changes in code |
|
![]() |
![]() |
![]() |
|
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
How to identify boundary cell and internal cell | dbxmcf | OpenFOAM Running, Solving & CFD | 2 | November 6, 2016 10:11 |
Journal file error | magicalmarshmallow | FLUENT | 3 | April 4, 2014 13:25 |
FvMatrix coefficients | shrina | OpenFOAM Running, Solving & CFD | 10 | October 3, 2013 15:38 |
Source Term UDF VS Porous Media Model | pchoopanya | Fluent UDF and Scheme Programming | 1 | August 28, 2013 07:12 |
Warning 097- | AB | Siemens | 6 | November 15, 2004 05:41 |