|
[Sponsors] |
April 4, 2018, 13:10 |
DPM Switching
|
#1 |
Member
sunil kumar
Join Date: May 2016
Posts: 80
Rep Power: 10 |
I am trying to implement a custom heating and evaporation law in fluent for DPM droplets. But for some reason only one of the two laws activate. when you use the fluent in built models for droplets both evaporation and heating occur during every time step and evaporation stops once the volatile fraction is consumed. when I implement the same thing I can either get the heating law to work with no evaporation or evaporation with no heating. can anyone suggest what may be going wrong here
DEFINE_DPM_SWITCH(dpm_switch,tp,ci) { Material *m = TP_MATERIAL(tp); real v_f = DPM_VOLATILE_FRACTION(tp); 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_MASS(tp) > (1 - v_f) * TP_INIT_MASS(tp))) { TP_CURRENT_LAW(tp) = DPM_LAW_USER_2; } else if ( (TP_MASS(tp) <= (1 - v_f) * TP_INIT_MASS(tp))) { TP_CURRENT_LAW(tp) = DPM_LAW_USER_3; } } |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Dem v.s dpm? | Amir1 | Main CFD Forum | 1 | November 3, 2019 10:52 |
DPM UDF for switching law | amilachandra | Fluent UDF and Scheme Programming | 1 | September 15, 2016 04:43 |
how to use DPM from DPM file unsteady? | Cloud | FLUENT | 0 | November 10, 2011 05:25 |
DPM modeling | Mohsin | FLUENT | 0 | March 31, 2010 23:11 |
DPM - do the particles affect the liquid? | Nikhil Dani | FLUENT | 0 | January 1, 2009 12:58 |