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

[UDF]surface combustion and inert heating in DPM. Help me.

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   May 14, 2019, 03:52
Default [UDF]surface combustion and inert heating in DPM. Help me.
  #1
hso
New Member
 
Join Date: Apr 2019
Posts: 1
Rep Power: 0
hso is on a distinguished road
Hello, I have a question about DPM.

I'm studing coal combustion.

And I use FLUENT UDF to apply another surface combustion model.

But, there is a problem in the process of conversion to inert heating after the end of surface combustion.

Here is my code:
(I wrote it briefly)

Code:
 
DEFINE_DPM_LAW(surface_comb,p,coupled)
{
/*initialize, variable declaration...*/
/* combustion model equation... */
 
     if(P_MASS(p) == Ash_Mass) P_CURRENT_LAW(p) = 1;
}
 
DEFINE_DPM_SOURCE(source,c,t,S,strength,p)
{
/*initialize, variable declaration...*/
      if(P_MASS(p) == Ash_Char_mass) P_CURRENT_LAW(p) = 8;
      if(P_CURRENT_LAW(p) == 8)
      {
            /*source equation*/
      }
}
That is, In DEFINE_DPM_LAW, CURRENT_LAW is set to 1 when the current mass equal to ash mass.

But, this method does not work properly.

An error also occurs with P_CURRENT_LAW_INDEX(p).

When DPM_SWITCH is used, the size of the coal become strange.

I do not know how to proceed with Inert Heating after Surface Combustion.

Please Help.

Thanks.
hso is offline   Reply With Quote

Reply

Tags
coal, dpm, switch, udf


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
Recording very high temperatures in my model of micro combustion in porous inert medi Evnie1 FLUENT 0 April 23, 2019 02:40
External combustion with DPM Markus FLUENT 0 April 11, 2006 23:55


All times are GMT -4. The time now is 15:51.