|
楼主 |
发表于 2005-6-30 10:47:49
|
显示全部楼层
[求助]这个热传导边界的UDF怎么做啊?
mikohong 你太好了,真想亲你两口,呵呵!!!
我还想问,我叠代的过程中,热传导从外表面传导到内表面实际是需要时间的,这个现实中的时间怎么才能得到阿?
还有,我把修改给你看看,你看对不对!!
#include "udf.h"
DEFINE_PROFILE(temp_on_wall, thread, i)
{
real x[ND_ND];
real time;
time=CURRENT_TIME
double Atw,twmax,twmin,twm,twt,time;
face_t f;
begin_f_loop(f, thread)
{
time = 12.5; /*input the value of time*/
twmax = 35; /*input the value of twmax*/
twmin = 30; /*input the value of twmin*/
Atw=twmax-twmin;
twm=twmax-0.522*Atw;
twt=twm+0.489*Atw*cos(3.1415926/180*(15*time-225.8))+0.062*Atw*cos(3.1415926/180*(30*time-35.2));
F_CENTROID(x,f,thread);
F_PROFILE(f, thread, i)=twt;
}
end_f_loop(f, thread)
} |
|