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

UDF Combustion Laws Switch

Register Blogs Members List Search Today's Posts Mark Forums Read

Reply
 
LinkBack Thread Tools Display Modes
Old   August 15, 2013, 05:34
Default UDF Combustion Laws Switch
  #1
Member
 
Join Date: Nov 2011
Posts: 42
Rep Power: 6
Leepox is on a distinguished road
Hi guys, I am trying to start writing UDF's for the law switching in combustion cases so that I can get more control later down the line. I am starting with a simple one but for some reason it always goes straight to law 3 (DPM_LAW_BOILING) can anybody help me with this?

/************************************************** ********************
DPM_SWITCH UDF to manage the transition between laws for DPM
drying/combustion cases.
************************************************** *********************/

#include "udf.h" /* default requirement for Fluent UDF's*/
#include "dpm.h" /* just in case dpm laws are included here to expand the code */

DEFINE_DPM_SWITCH(DPM_switch_law, p, ci)

{
Material *m; /* Undocumented but to signify tracked material */

if(P_T(p)<DPM_EVAPORATION_TEMPERATURE(p,m))
{
P_CURRENT_LAW(p) = DPM_LAW_INITIAL_INERT_HEATING;
}

else if(P_T(p)>DPM_BOILING_TEMPERATURE(p,m))
{
P_CURRENT_LAW(p) = DPM_LAW_BOILING; /* Hazard guess it's called that since it's not documented */
}

else
{
P_CURRENT_LAW(p) = DPM_LAW_VAPORIZATION;
}

}
Leepox is offline   Reply With Quote

Old   December 28, 2013, 01:09
Default
  #2
New Member
 
MG
Join Date: Oct 2012
Posts: 3
Rep Power: 5
felipecingmec is on a distinguished road
Hello Leepox,

You got more information about the different values that can take the macro P_CURRENT_LAW(p)?

Inert Heating or Cooling (Law 1/Law 6)
P_CURRENT_LAW(p) = DPM_LAW_INITIAL_INERT_HEATING;


Droplet Vaporization (Law 2)
P_CURRENT_LAW(p) = DPM_LAW_VAPORIZATION;


Droplet Boiling (Law 3)
P_CURRENT_LAW(p) = ??????

Devolatilization (Law 4)
P_CURRENT_LAW(p) = ?????

Surface Combustion (Law 5)
P_CURRENT_LAW(p) = ??????

Thanks
felipecingmec is offline   Reply With Quote

Old   January 9, 2014, 23:46
Default
  #3
Member
 
Join Date: Nov 2011
Posts: 42
Rep Power: 6
Leepox is on a distinguished road
Quote:
Originally Posted by felipecingmec View Post
Hello Leepox,

You got more information about the different values that can take the macro P_CURRENT_LAW(p)?

Inert Heating or Cooling (Law 1/Law 6)
P_CURRENT_LAW(p) = DPM_LAW_INITIAL_INERT_HEATING;


Droplet Vaporization (Law 2)
P_CURRENT_LAW(p) = DPM_LAW_VAPORIZATION;


Droplet Boiling (Law 3)
P_CURRENT_LAW(p) = ??????

Devolatilization (Law 4)
P_CURRENT_LAW(p) = ?????

Surface Combustion (Law 5)
P_CURRENT_LAW(p) = ??????

Thanks
Hi, the laws are as named

DPM_LAW_DEVOLATILIZATION
DPM_LAW_SURFACE_COMBUSTION

not sure about boiling though.
Leepox is offline   Reply With Quote

Reply

Thread Tools
Display Modes

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 On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Modelling Combustion in Porous Zone tanjinjack FLUENT 1 August 31, 2015 04:56
UDF for coal combustion in multiphase flow niisha24 Fluent UDF and Scheme Programming 10 March 9, 2015 02:56
hydrocarbon gases + Boron particle combustion nileshjrane OpenFOAM 1 December 13, 2010 07:20
UDF for Combustion Steve Berg FLUENT 1 October 7, 2002 23:29
UDF using c_face_loop(c,t,i) frederic FLUENT 2 April 1, 2000 22:42


All times are GMT -4. The time now is 10:27.