24小时热门版块排行榜    

查看: 1082  |  回复: 0

live1129

新虫 (小有名气)

[求助] 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'
跪求各位大佬帮助
回复此楼
已阅   回复此楼   关注TA 给TA发消息 送TA红花 TA的回帖
相关版块跳转 我要订阅楼主 live1129 的主题更新
最具人气热帖推荐 [查看全部] 作者 回/看 最后发表
[考研] [复试调剂]西南科技大学国防/材料导师推荐 +3 尖角小荷 2026-03-16 6/300 2026-03-16 23:21 by 尖角小荷
[考研] 0703化学调剂 +6 妮妮ninicgb 2026-03-15 9/450 2026-03-16 16:40 by houyaoxu
[考研] 085600调剂 +5 漾漾123sun 2026-03-12 6/300 2026-03-16 15:58 by 漾漾123sun
[考研] 材料与化工专硕调剂 +3 heming3743 2026-03-16 3/150 2026-03-16 15:05 by peike
[考研] 304求调剂 +6 小熊joy 2026-03-14 6/300 2026-03-16 12:59 by Iveryant
[考研] 290求调剂 +5 孔志浩 2026-03-12 10/500 2026-03-16 09:01 by 余晖&
[考研] 26考研一志愿中国石油大学(华东)305分求调剂 +3 嘉年新程 2026-03-15 3/150 2026-03-15 13:58 by 哈哈哈哈嘿嘿嘿
[考研] 080500,材料学硕302分求调剂学校 +4 初识可乐 2026-03-14 5/250 2026-03-14 21:08 by peike
[考研] 材料工程专硕,一志愿中国矿业大学,总分314,求调剂 +5 无懈可击的巨人 2026-03-10 5/250 2026-03-14 00:37 by JourneyLucky
[考研] b区环境工程求调剂 +4 Maps1 2026-03-10 6/300 2026-03-14 00:23 by JourneyLucky
[考研] 311求调剂 +8 zchqwer 2026-03-10 8/400 2026-03-14 00:01 by JourneyLucky
[考研] 材料与化工(0856)304求B区调剂 +6 邱gl 2026-03-12 7/350 2026-03-13 23:24 by 邱gl
[考研] 290求调剂 +9 ADT 2026-03-11 9/450 2026-03-13 21:55 by JourneyLucky
[考研] 281求调剂 +9 Koxui 2026-03-12 11/550 2026-03-13 20:50 by Koxui
[考研] 314求调剂 +7 无懈可击的巨人 2026-03-12 7/350 2026-03-13 15:40 by JourneyLucky
[考研] 274求调剂 +3 S.H1 2026-03-12 3/150 2026-03-13 15:15 by JourneyLucky
[考研] 289求调剂 +3 李政莹 2026-03-12 3/150 2026-03-13 11:02 by 求调剂zz
[考研] 321求调剂(食品/专硕) +3 xc321 2026-03-12 6/300 2026-03-13 08:45 by xc321
[考研] 085600 材料与化工 295 求调剂 +10 dream…… 2026-03-10 12/600 2026-03-12 13:46 by dream……
[考研] 290求调剂 +3 柯淮然 2026-03-10 8/400 2026-03-11 13:48 by 柯淮然
信息提示
请填处理意见