|
[Sponsors] |
August 15, 2013, 06:34 |
UDF Combustion Laws Switch
|
#1 |
Member
Join Date: Nov 2011
Posts: 42
Rep Power: 14 |
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; } } |
|
December 28, 2013, 01:09 |
|
#2 |
New Member
MG
Join Date: Oct 2012
Posts: 3
Rep Power: 14 |
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 |
|
January 9, 2014, 23:46 |
|
#3 | |
Member
Join Date: Nov 2011
Posts: 42
Rep Power: 14 |
Quote:
DPM_LAW_DEVOLATILIZATION DPM_LAW_SURFACE_COMBUSTION not sure about boiling though. |
||
|
|
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 |