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

UDF Internal Reforming in Fuel Cell

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   September 23, 2014, 22:23
Question Problems in Internal Steam Reforming in Fuel Cell UDF
  #1
New Member
 
Kashif Rashid
Join Date: Apr 2014
Posts: 8
Rep Power: 11
Kashif Rashid is on a distinguished road
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 12:40. Reason: Some changes in code
Kashif Rashid is offline   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
How to identify boundary cell and internal cell dbxmcf OpenFOAM Running, Solving & CFD 2 November 6, 2016 09:11
Journal file error magicalmarshmallow FLUENT 3 April 4, 2014 12:25
FvMatrix coefficients shrina OpenFOAM Running, Solving & CFD 10 October 3, 2013 14:38
Source Term UDF VS Porous Media Model pchoopanya Fluent UDF and Scheme Programming 1 August 28, 2013 06:12
Warning 097- AB Siemens 6 November 15, 2004 04:41


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