|
|
马上注册,结交更多好友,享用更多功能,让你轻松玩转社区。
您需要 登录 才可以下载或查看,没有账号?注册
x
急用啊 求高手指点怎么修改
#include "udf.h"
DEFINE_PROFILE(heatflux, thread, index)
{
face_t f;
real x[ND_ND];
real z;
begin_f_loop(f, thread)
{
F_CENTROID(x,f,thread);
z=x[2];
if(z>=0 && z<0.23)
F_PROFILE(f, thread, index) = 495094.5649;
else if(z>=0.23 && z<0.46)
F_PROFILE(f, thread, index) = 1359586.111;
else if(z>=0.46 && z<0.69)
F_PROFILE(f, thread, index) = 1889311.643;
else if(z>=0.69 && z<0.92)
F_PROFILE(f, thread, index) = 3074460.29;
else if(z>=0.92 && z<0.115)
F_PROFILE(f, thread, index) = 2971850.018;
else if(z>=1.15 && z<1.38)
F_PROFILE(f, thread, index) = 3967169.661;
else if(z>=1.38 && z<1.61)
F_PROFILE(f, thread, index) = 3497727.664;
else if(z>=1.61 && z<1.84)
F_PROFILE(f, thread, index) = 4004365.885;
else if(z>=1.84 && z<2.07)
F_PROFILE(f, thread, index) = 3440009.386;
else if(z>=2.07 && z<2.30)
F_PROFILE(f, thread, index) = 4040279.48;
else if(z>=2.30 && z<2.53)
F_PROFILE(f, thread, index) = 4208303.801;
else if(z>=2.53 && z<2.76)
F_PROFILE(f, thread, index) = 3538771.773;
else if(z>=2.76 && z<2.99)
F_PROFILE(f, thread, index) = 2837174.035;
else if(z>=2.99 && z<3.22)
F_PROFILE(f, thread, index) = 2006030.828;
else if(z>=3.22 && z<3.45)
F_PROFILE(f, thread, index) = 1136408.768;
else if(z>=3.45 && z<3.658)
F_PROFILE(f, thread, index) = 383505.8935;
else
F_PROFILE(f, thread, index) =0;
}
end_f_loop(f, thread)
} |
|