about DEFINE_DPM_SWITCH
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 |
All times are GMT -4. The time now is 18:01. |