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

DPM Switching

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   April 4, 2018, 13:10
Default DPM Switching
  #1
Member
 
sunil kumar
Join Date: May 2016
Posts: 80
Rep Power: 10
skumar112 is on a distinguished road
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;
}
}
skumar112 is offline   Reply With Quote

Reply


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
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


All times are GMT -4. The time now is 19:05.