| 查看: 1048 | 回复: 0 | ||
[求助]
UDF可以解释成功但无法编译
|
|
编了一个沸腾时气泡脱离频率的UDF,可以解释成功,编译时有时能成功有时不能,附程序内容如下: #include "udf.h" #define a1 -2.55912 #define a2 0.04574 #define a3 -2.55912*pow(10,-4) #define a4 1.29608*pow(10,-6) #define a5 -2.81909*pow(10,-9) #define a6 3.26767*pow(10,-12) #define a7 -1.57769*pow(10,-15) #define a 0.80 #define theta 42 #define diam_b_coef_1 0.0012 #define diam_b_coef_2 0.0208 #define g 9.81 DEFINE_BOILING_PROPERTY(bubble_depart_fre, f, t, c0, t0, from_index, from_species_index, to_index, to_species_index) { real diam_b, sigma, pho_re, pho_star, diam_b_coef_3, diam_f_coef_1, diam_f; int liq_phase = from_index; int vapor_phase = to_index; Thread **pt0 = THREAD_SUB_THREADS(t0); real T_l = C_T(c0, pt0[liq_phase]); real Pho_l = C_R(c0, pt0[liq_phase]); real Pho_v = C_R(c0, pt0[vapor_phase]); sigma = a1 + a2*T_l + a3*pow(T_l, 2) + a4*pow(T_l, 3) + a5*pow(T_l, 4) + a6*pow(T_l, 5) + a7*pow(T_l, 6); pho_re = Pho_l - Pho_v; pho_star = (pho_re) / Pho_v; diam_b_coef_3 = sigma / (g * pho_re); diam_b = diam_b_coef_1 * pow(pho_star, 0.9)* diam_b_coef_2 * theta * pow(diam_b_coef_3, 0.5); diam_f_coef_1 = g * pho_re * sigma / pow(Pho_l, 2); diam_f = a / diam_b * pow(diam_f_coef_1, 0.5); return diam_f; } Complied时Build后出现如下提示: # building library in lnamd64/2ddp_node make[1]: Entering directory `/public/home/yinyantao/XB/Weizhuqun/microtube/A0.59/libudf/lnamd64/2ddp_node' make[1]: Warning: File `user.udf' has modification time 2.2e+04 s in the future make[1]: *** No rule to make target `frequency.c', needed by `udf_names.c'. make[1]: Target `default' not remade because of errors. make[1]: warning: Clock skew detected. Your build may be incomplete. make[1]: Leaving directory `/public/home/yinyantao/XB/Weizhuqun/microtube/A0.59/libudf/lnamd64/2ddp_node' 跪求各位大佬帮助 ![]() |
» 猜你喜欢
求取一些关于纳米材料和纳米技术相关的英文PPT。
已经有0人回复
【复旦大学】二维材料方向招收2026年博士研究生1名
已经有0人回复
物理学I论文润色/翻译怎么收费?
已经有157人回复
北京纳米能源与系统研究所 王中林院士/曹南颖研究员课题组2026级硕/博/博后招生
已经有10人回复
荷兰Utrecht University超快太赫兹光谱王海教授课题招收2026 CSC博士生
已经有22人回复
反铁磁体中的磁性切换:两种不同的机制已成功可视化
已经有0人回复
26申博推荐:南京航空航天大学国际前沿科学研究院光学方向招收博士生!
已经有0人回复
求标准粉末衍射卡号 ICDD 01-076-1802
已经有0人回复
新西兰Robinson研究所招收全奖PhD
已经有0人回复














回复此楼