/*
使用时将此文档的扩展名改?/p>
.c
然后编译?/p>
fluent
当中
每个参数都有说明
用户可以?/p>
据需要调?/p>
调用
UDM
需要首先设?/p>
Define User-Defined Memory...
设置?/p>
1
即可
此处?/p>
存储了一组数?/p>
*/
#include "udf.h"
/* Author:wanghao SOUTH CHINA UNIVERSITY of TECHNOLOGY BEEL 2014*/
DEFINE_ON_DEMAND(on_demand_PMVcalc)
{
/*
定义
real
数据类型
fluent
会转译为
float
数据类型
*/
real t_wh;
/*
空气温度
*/
real speed_u_wh;
/* u
方向速度分量
*/
real speed_v_wh;
/* v
方向速度分量
*/
real speed_w_wh;
/* w
方向速度分量
*/
real RH_wh=40;
/*
输入相对湿度
水蒸气饱和时输入
100 */
real
pa_wh;
/*
物质质量分数
C_YI(c,t,0)
后面通过相对湿度计算水蒸
气分压力
*/
real
icl_wh=0.155;
/*
服装热阻
在计算时单位不是
clo
此处?/p>
0.3clo
换算?/p>
0.05
?/p>
K/W*/
real fcl_wh;
/*
穿衣服人体外表面与裸体人体表面积之比
*/
real tcl_wh;
/*
服装外表面温?/p>
*/
real tcl1_wh;
real tcl2_wh;
real temperary1_wh;
real temperary2_wh;
real hc_wh;
/*
表面换热系数
*/
real tr_wh;
/*
平均辐射温度
可以后期自己定义
*/
real M_wh=69.78;
/*
新陈代谢?/p>
*/
real W_wh=0.0;
/*
机械做功
*/
real a_wh;
/*heat loss by radiation refer to<EN ISO 7730:2005 page24>
*/
real
b_wh;
/*heat
loss
by
convection
refer
to<EN
ISO
7730:2005
page24> */
real
c_wh;
/*heat
loss
diff.through
skin
refer
to<EN
ISO
7730:2005
page24> */
real d_wh;
/*heat loss by sweating(comfort) refer to<EN ISO 7730:2005
page24> */
real
e_wh;
/*latent
respiration
heat
loss
refer
to<EN
ISO
7730:2005
page24> */
real
f_wh;
/*dry
respiration
heat
loss
refer
to<EN
ISO
7730:2005
page24> */