24小时热门版块排行榜    

北京石油化工学院2026年研究生招生接收调剂公告
查看: 1088  |  回复: 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 的主题更新
最具人气热帖推荐 [查看全部] 作者 回/看 最后发表
[考研] 材料专硕(0856) 339分求调剂 +10 哈哈哈鹅哈哈哈 2026-04-05 10/500 2026-04-06 09:35 by jp9609
[考研] 复试调剂 +5 asdasdassda 2026-04-05 5/250 2026-04-06 09:32 by dongzh2009
[考研] 化学调剂 +17 艾志恒 2026-04-03 18/900 2026-04-06 07:10 by jj987
[考研] 086000生物与医药求调剂 +3 老天眷顾之人 2026-03-31 3/150 2026-04-05 22:24 by syh9288
[考研] 材料工程302分求调剂 +9 zyx上岸! 2026-04-04 9/450 2026-04-05 22:08 by 醉翁wl
[考研] 材料调剂 +9 革微桂 2026-04-04 9/450 2026-04-05 08:27 by 544594351
[考研] 材料调剂 +12 一样YWY 2026-04-04 12/600 2026-04-05 08:24 by 544594351
[考研] 285求调剂 +11 哦呦呼o 2026-04-04 11/550 2026-04-05 08:15 by 544594351
[考研] 一志愿北京化工大学,初试成绩350求调剂 +9 沿岸?贝壳 2026-04-04 14/700 2026-04-05 01:09 by 沿岸?贝壳
[考研] 11408 一志愿西电,277分求调剂 +4 zhouzhen654 2026-04-03 4/200 2026-04-04 18:10 by 猪会飞
[考研] 387求调剂 +4 爱吃片豆土 2026-04-03 5/250 2026-04-04 08:10 by 岸上的一条鱼
[考研] 考研调剂 +3 15615482637 2026-04-03 3/150 2026-04-03 22:50 by ms629
[考研] 322求调剂 +6 FZAC123 2026-04-03 6/300 2026-04-03 22:23 by 科研小专家
[考研] 334求调剂 +9 Trying] 2026-03-31 9/450 2026-04-03 15:18 by 琢珥丶
[考研] 生物学硕341求调剂 +4 你笑起来像云朵 2026-04-03 4/200 2026-04-03 10:32 by macy2011
[考研] 一志愿深大085601材料工程专业(专硕)300分可以调剂去哪 +8 10160315 2026-04-02 8/400 2026-04-03 09:36 by hypershenger
[考研] 298求B区调剂 +4 zzz,,r 2026-04-02 5/250 2026-04-02 12:17 by 土木硕士招生
[考研] 求调剂0703 +5 周嘉尧 2026-03-31 8/400 2026-04-01 20:32 by ltltkkk
[考研] 301求调剂 +8 axibli 2026-04-01 8/400 2026-04-01 09:51 by 我的船我的海
[考研] 一志愿大连理工大学,机械工程学硕,341 +3 西瓜田的守望者 2026-03-30 3/150 2026-03-31 11:08 by asdfzly
信息提示
请填处理意见