1 前言
2 建模与网格
3 求解设置
DEFINE_PROFILE(MyProfile,thread,index)
{
real x[ND_ND];
real xx;
face_t f;
begin_f_loop(f,thread)
{
F_CENTROID(x,f,thread);
xx = x[0];
if(xx<=-1.153956e-3)
F_PROFILE(f,thread,index) =293.15;
else
F_PROFILE(f,thread,index) =353.15;
}
end_f_loop(f,thread)
}
4 计算结果