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

Inert heating law doesnt activate

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   March 29, 2018, 13:05
Default Inert heating law doesnt activate
  #1
Member
 
sunil kumar
Join Date: May 2016
Posts: 80
Rep Power: 9
skumar112 is on a distinguished road
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;
}
}
skumar112 is offline   Reply With Quote

Old   March 29, 2018, 22:09
Default
  #2
Senior Member
 
Alexander
Join Date: Apr 2013
Posts: 2,363
Rep Power: 34
AlexanderZ will become famous soon enoughAlexanderZ will become famous soon enough
What does macro TP_MATERIAL(tp) do?

best regards
AlexanderZ is offline   Reply With Quote

Old   March 30, 2018, 05:03
Default
  #3
Member
 
sunil kumar
Join Date: May 2016
Posts: 80
Rep Power: 9
skumar112 is on a distinguished road
specifies m is the dpm material
skumar112 is offline   Reply With Quote

Old   April 1, 2018, 21:03
Default
  #4
Senior Member
 
Alexander
Join Date: Apr 2013
Posts: 2,363
Rep Power: 34
AlexanderZ will become famous soon enoughAlexanderZ will become famous soon enough
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;
}
Material *m = P_MATERIAL(p);

only P not TP

may be this is critical, you may try to check

best regards
AlexanderZ 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
Non-Newtonian Power Law for Viscosity John FLUENT 16 September 12, 2015 06:18
What's is mixing law richard ben FLUENT 4 September 25, 2014 17:30
source code for inert heating custom law mat27x FLUENT 0 October 23, 2009 18:33
Pressure variation in a heating channel gRomK13 Main CFD Forum 0 August 6, 2009 12:18
questions about the DPM law rookie FLUENT 0 June 16, 2003 11:41


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