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

UDF Combustion Laws Switch

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

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   August 15, 2013, 06:34
Default UDF Combustion Laws Switch
  #1
Member
 
Join Date: Nov 2011
Posts: 42
Rep Power: 14
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: 13
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: 14
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 Search this Thread
Search this Thread:

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
UDF for coal combustion in multiphase flow niisha24 Fluent UDF and Scheme Programming 13 September 19, 2022 05:01
UDF using c_face_loop(c,t,i) frederic FLUENT 3 January 17, 2017 00:17
Modelling Combustion in Porous Zone tanjinjack FLUENT 2 September 26, 2016 05:10
hydrocarbon gases + Boron particle combustion nileshjrane OpenFOAM 1 December 13, 2010 07:20
UDF for Combustion Steve Berg FLUENT 1 October 8, 2002 00:29


All times are GMT -4. The time now is 16:14.