|
楼主 |
发表于 2009-10-12 20:06:15
|
显示全部楼层
DEFINE_DPM_SOURCE(dpm_source, c, t, S, strength, p)
{ real mp_dot;
Material *sp = P_METERIAL(p);
/* mp_dot is the (positive) mass source to the continuous phase */
/* (Difference in mass between entry and exit from cell) */
/* multiplied by strength (Number of particles/s in stream) */
mp_dot = (P_MASS0(p) - P_MASS(p)) * strength;
C_DPMS_YI(c,t,0) += mp_dot;
/* add latent heat of vaporization to dpm energy source */
C_DPMS_ENERGY(c,t) -= mp_dot * MATERIAL_PROP(sp,PROP_latent_heat);
/* Sensible heat dealt with by Fluent Automatically */
}
[ 本帖最后由 lhjlqn 于 2009-10-13 11:21 编辑 ] |
|