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

about DEFINE_DPM_SWITCH

Register Blogs Members List Search Today's Posts Mark Forums Read

Reply
 
LinkBack Thread Tools Display Modes
Old   April 15, 2010, 12:32
Default about DEFINE_DPM_SWITCH
  #1
ljp
New Member
 
Join Date: Apr 2010
Posts: 15
Rep Power: 7
ljp is on a distinguished road
dear fellow users,

I'm really stuck in here trying to use a user-defined law and dpm-switch. If you have any experience with that, could you please help? Any help and suggestion would be appreciated.

My main question is: Fluent has a default switch criteria to switch between inert-heating law, vaporization law, etc. but when I need to use a user-defined law together with the Fluent built-in laws, I will need a dpm-switch udf to switch between these laws. and in this udf, I think I need to include not only the condition to switch between my user-law and the built-in law, but also the conditions needed to switch between the Fluent built-in laws (e.g. the condition to switch from inert-heating to vaporization law). Am I right? if yes, then are the conditions stated correctly in the following udf? Thank you very much!

DEFINE_DPM_SWITCH(dpmlaw_switch, p, ci)
{
Material *m;

if(P_T(p) < DPM_VAPOR_TEMP(p,m))
P_CURRENT_LAW(p) = DPM_LAW_INITIAL_INERT_HEATING;
else if(specific condition)
{
if(P_T(p) < DPM_BOILING_TEMPERATURE(p,m))
P_CURRENT_LAW(p) = DPM_LAW_VAPORIZATION;
}
else
P_CURRENT_LAW(p) = DPM_LAW_USER_1;
}

ljp
ljp is offline   Reply With Quote

Reply

Thread Tools
Display Modes

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 On
Pingbacks are On
Refbacks are On



All times are GMT -4. The time now is 18:42.