|
[Sponsors] |
March 29, 2018, 14:05 |
Inert heating law doesnt activate
|
#1 |
Member
sunil kumar
Join Date: May 2016
Posts: 80
Rep Power: 10 |
I am trying to implement a UDF and use my own evaporation within DPM UDF's.
I have complied the UDF and run the case however the inert heating law does not activate. The droplets remain at 300K. I have applied the switching law could anyone see what may be wrong here? DEFINE_DPM_SWITCH(dpm_switch,tp,coupled) { cphase_state_t *c = &(tp->cphase[0]); Material *m = TP_MATERIAL(tp); /* If the particle temperature above the vaporization temperature switch to evaporation law */ if (TP_T(tp) > DPM_VAPOR_TEMP(tp,m)) { TP_CURRENT_LAW(tp) = DPM_LAW_USER_1; } if (TP_T(tp) < DPM_VAPOR_TEMP(tp,m)) { TP_CURRENT_LAW(tp) = DPM_LAW_INITIAL_INERT_HEATING; } } |
|
March 29, 2018, 23:09 |
|
#2 |
Senior Member
Alexander
Join Date: Apr 2013
Posts: 2,363
Rep Power: 34 |
What does macro TP_MATERIAL(tp) do?
best regards |
|
March 30, 2018, 06:03 |
|
#3 |
Member
sunil kumar
Join Date: May 2016
Posts: 80
Rep Power: 10 |
specifies m is the dpm material
|
|
April 1, 2018, 22:03 |
|
#4 |
Senior Member
Alexander
Join Date: Apr 2013
Posts: 2,363
Rep Power: 34 |
In ansys UDF manual called Ansys Customization manual there is 2.5.13.3. Example
Code:
DEFINE_DPM_SWITCH(dpm_switch, p, coupled) { cell_t c = P_CELL(p); Thread *t = P_CELL_THREAD(p); Material *m = P_MATERIAL(p); /* If the relative humidity is higher than 1 * and the particle temperature below the boiling temperature * switch to condensation law */ if ((C_UDMI(c,t,UDM_RH) > 1.0) && (P_T(p) < DPM_BOILING_TEMPERATURE(p, m))) P_CURRENT_LAW(p) = DPM_LAW_USER_1; else P_CURRENT_LAW(p) = DPM_LAW_INITIAL_INERT_HEATING; } only P not TP may be this is critical, you may try to check best regards |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Non-Newtonian Power Law for Viscosity | John | FLUENT | 16 | September 12, 2015 07:18 |
What's is mixing law | richard ben | FLUENT | 4 | September 25, 2014 18:30 |
source code for inert heating custom law | mat27x | FLUENT | 0 | October 23, 2009 19:33 |
Pressure variation in a heating channel | gRomK13 | Main CFD Forum | 0 | August 6, 2009 13:18 |
questions about the DPM law | rookie | FLUENT | 0 | June 16, 2003 12:41 |