Inert heating law doesnt activate
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; } } |
What does macro TP_MATERIAL(tp) do?
best regards |
specifies m is the dpm material
|
In ansys UDF manual called Ansys Customization manual there is 2.5.13.3. Example
Code:
DEFINE_DPM_SWITCH(dpm_switch, p, coupled) only P not TP may be this is critical, you may try to check best regards |
All times are GMT -4. The time now is 11:22. |