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

Dual energy equation in porous medium for combustion(with udf)

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   June 1, 2022, 10:20
Smile Dual energy equation in porous medium for combustion(with udf)
  #1
New Member
 
Jingyu Cao
Join Date: May 2022
Posts: 5
Rep Power: 3
Jingyu Cao is on a distinguished road
Hi all!
I have been studying in numerical simulation about CH4/air premixed combustion in porous medium.After reading a lot reference, I choosed to use UDF and UDS to solve solid energy equation.
The problem I studied is very simple. The mixed gas flow in from left(velocity inlet for BC) and react in porous zone which is in the middle of the geometry, and on the right hand is pressure oulet. In my work, I choose methane/air one step reaction mechanism.
My UDF can run well, however I can't reproduce the results of other people's papers and I don't know if I wrote the right codes.
Here, my question is:
1.Is there any wrong in principle or logical in my udf
2.In my calculation, the temperature difference between the gas and the solid is only a few tenths of a degree, which is clearly the wrong result
I'm not a native English speaker and sorry for my bad description. If you have any questions about my question, please feel free to discuss them.
Attached Images
File Type: png geometry.png (15.4 KB, 8 views)
Attached Files
File Type: c test.c (4.8 KB, 1 views)
Jingyu Cao is offline   Reply With Quote

Old   June 1, 2022, 21:18
Default uploaded the wrong c.file
  #2
New Member
 
Jingyu Cao
Join Date: May 2022
Posts: 5
Rep Power: 3
Jingyu Cao is on a distinguished road
Sorry all,
I uploaded the wrong c.file, "test2" is the correct one
Attached Files
File Type: c test2.c (4.7 KB, 6 views)
Jingyu Cao is offline   Reply With Quote

Reply

Tags
porous, solid energy equation, udf/uds


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
Energy balance in conjugative/ porous simulation; Domain Energy is greater than Input Vishnu_bharathi CFX 2 June 27, 2018 10:08
UDF for adding an energy source term to a porous zone mtfowen FLUENT 0 February 6, 2018 06:43
add source term to energy equation by udf tomas Fluent UDF and Scheme Programming 7 September 10, 2013 02:08
UDF to switch on energy equation after X iteration mat w FLUENT 6 December 5, 2005 07:35
Why FVM for high-Re flows? Zhong Lei Main CFD Forum 23 May 14, 1999 13:22


All times are GMT -4. The time now is 12:32.