|
- DEFINE_SOURCE(enrg_src, cell, mix_th, dS, eqn) ‘混合模型能量源项UDF
- {
- Thread *pri_th, *sec_th;
- real m_dot;
- pri_th = THREAD_SUB_THREAD(mix_th, 0);‘指向混合区的液相的指针
- sec_th = THREAD_SUB_THREAD(mix_th, 1); ‘指向混合区的气相的指针
- if(C_T(cell, mix_th)>=T_SAT) ‘如果混合区的单元温度高于蒸发温度。质量转移由液相向气相转移,吸热,质量转移量前有负号
- {
- m_dot = -0.1*C_VOF(cell, pri_th)*C_R(cell, pri_th)*
- fabs(C_T(cell, mix_th) - T_SAT)/T_SAT;
- dS[eqn] = -0.1*C_VOF(cell, pri_th)*C_R(cell, pri_th)/T_SAT;
- }
- else { 相反,气相向液相转移则放热
- m_dot = 0.1*C_VOF(cell, sec_th)*C_R(cell, sec_th)*
- fabs(T_SAT-C_T(cell,mix_th))/T_SAT;
- dS[eqn] = 0.1*C_VOF(cell, sec_th)*C_R(cell, sec_th)/T_SAT;}
- return LAT_HT*m_dot; 气化潜热与质量转移率相乘得能量源项W/m3
- }
复制代码
|
|