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

UDF for devolatilization

Register Blogs Community New Posts Updated Threads Search

Like Tree1Likes
  • 1 Post By Allan Walsh

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   April 21, 2007, 04:11
Default UDF for devolatilization
  #1
chinadai
Guest
 
Posts: n/a
I use Fluent to simulate coal gasification. The first step, coal should discharge volatile. The volatile is thought of as a pure component in Fluent, but in fact it composes of several simple components. I want to know how to write a UDF to divide volatile into simple components? How to embed above code into UDF for devolatilization law?
  Reply With Quote

Old   April 21, 2007, 16:37
Default Re: UDF for devolatilization
  #2
chinadai
Guest
 
Posts: n/a
Please give me some advice. Thanks.
  Reply With Quote

Old   April 23, 2007, 14:40
Default Re: UDF for devolatilization
  #3
Allan Walsh
Guest
 
Posts: n/a
What we do is make an artifical species (say coal_vol) that volatizes from the coal at a rate determined separately. Then, the coal_vol is divided up into separate species (i.e. CH4, H2, H2O, CO, CO2 etc.) as determined by its own species transport equation. Theoretically, there should not be any limitation on the rate of this reaction, but sometimes for solving purposes, it is good to do so.

You can make the relative fractions of the species that make up the volatiles dependant on the coal composition, which requires calculating the molecular weight and enthalpy of formation for the coal_vol. Making the volatiles composition time dependant or temperature dependant is somewhat more complex.

Or you could just use the PDF approach.

Good luck.
  Reply With Quote

Old   April 27, 2007, 05:31
Default Re: UDF for devolatilization
  #4
chinadai
Guest
 
Posts: n/a
hello, Allan. I am writing a UDF for volatile dividing, a DEFINE_DPM_SOURCE macro used. It seems to work well. I want to know the macro that you used ?

  Reply With Quote

Old   April 27, 2007, 13:56
Default Re: UDF for devolatilization
  #5
Allan Walsh
Guest
 
Posts: n/a
We use several different macros for combustion - particle laws for drying, volatiles release, char combustion, inerts, grate combustion, etc. developed over the past 20 years starting with FLUENT V.3

For the volatiles, we had thought about using the DEFINE_DPM_SOURCE macro but when we first started implementing the code, we just directly added the volatiles released (at each time step) to the C_STORAGE_R(c,t,vol_species) variable. Seemed to work ok. We have seen lots of discussion about source terms and source term linearization, which seems to be the intent of DEFINE_DPM_SOURCE macro. I guess there are different ways to get to the same endpoint.
ZJUXJK likes this.
  Reply With Quote

Old   July 1, 2013, 09:30
Default
  #6
New Member
 
jieyu
Join Date: Jul 2013
Posts: 20
Rep Power: 13
onlylno is on a distinguished road
Quote:
Originally Posted by chinadai
;141069
hello, Allan. I am writing a UDF for volatile dividing, a DEFINE_DPM_SOURCE macro used. It seems to work well. I want to know the macro that you used ?

Could you share some examples about the UDF devolatilization?
THX yujie_upc@126.com
onlylno is offline   Reply With Quote

Old   July 1, 2013, 09:32
Default
  #7
New Member
 
jieyu
Join Date: Jul 2013
Posts: 20
Rep Power: 13
onlylno is on a distinguished road
Quote:
Originally Posted by Allan Walsh
;141084
We use several different macros for combustion - particle laws for drying, volatiles release, char combustion, inerts, grate combustion, etc. developed over the past 20 years starting with FLUENT V.3

For the volatiles, we had thought about using the DEFINE_DPM_SOURCE macro but when we first started implementing the code, we just directly added the volatiles released (at each time step) to the C_STORAGE_R(c,t,vol_species) variable. Seemed to work ok. We have seen lots of discussion about source terms and source term linearization, which seems to be the intent of DEFINE_DPM_SOURCE macro. I guess there are different ways to get to the same endpoint.


Could you give us some suggestion about the UDF devolatilization?
THX yujie_upc@126.com
onlylno is offline   Reply With Quote

Old   July 1, 2013, 09:42
Default
  #8
New Member
 
jieyu
Join Date: Jul 2013
Posts: 20
Rep Power: 13
onlylno is on a distinguished road
Quote:
Originally Posted by chinadai
;141069
hello, Allan. I am writing a UDF for volatile dividing, a DEFINE_DPM_SOURCE macro used. It seems to work well. I want to know the macro that you used ?
Could you share me your UDF code?
onlylno 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
Dynamic Mesh UDF Qureshi FLUENT 7 March 23, 2017 08:37
UDF parallel error: chip-exec: function not found????? shankara.2 Fluent UDF and Scheme Programming 1 January 16, 2012 23:14
How to add a UDF to a compiled UDF library kim FLUENT 3 October 26, 2011 22:38
UDF...UDF...UDF...UDF Luc SEMINEL FLUENT 0 November 25, 2002 05:03
UDF, UDF, UDF, UDF Luc SEMINEL Main CFD Forum 0 November 25, 2002 05:01


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