24小时热门版块排行榜    

查看: 1166  |  回复: 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 的主题更新
最具人气热帖推荐 [查看全部] 作者 回/看 最后发表
[硕博家园] 售SCI一区T0P文章,我:8O.55.1.O.54,科目全,可伽急 +3 QTy3jDtz1uLt 2026-08-21 9/450 2026-08-22 11:28 by h4CP7TrQR8Lg
[基金申请] 2026国自然函评费到账 +9 羊腰板 2026-08-21 9/450 2026-08-22 00:03 by anji999
[基金申请] 放榜前的不淡定 40+4 snowwithsea 2026-08-19 14/700 2026-08-21 23:51 by cratir
[基金申请] 科研孤儿太难了 +17 我4大白菜 2026-08-20 18/900 2026-08-21 20:57 by zhangev
[基金申请] 看来今天不会放榜了? +8 chengyan1220 2026-08-21 11/550 2026-08-21 17:52 by dcqxinyang
[基金申请] 时间戳又变了 +13 wuchongjun 2026-08-20 19/950 2026-08-21 17:21 by 紫杉醇
[基金申请] filecode,4个jtjc了 +11 ziyangfang 2026-08-19 14/700 2026-08-21 16:51 by applepetty
[基金申请] 感觉是下周放榜了 +7 angus9576 2026-08-17 12/600 2026-08-21 13:38 by weiyin
[基金申请] 我面上完蛋了 +7 且听虎啸 2026-08-20 8/400 2026-08-21 12:31 by 酷酷墨镜
[基金申请] 今天基金会出结果吗?20260819 +15 kkkl_v 2026-08-19 16/800 2026-08-21 11:22 by 365372687
[论文投稿] 投稿咨询 +5 wwm09 2026-08-17 7/350 2026-08-21 10:11 by 期刊论文帮手
[基金申请] 今天放榜没戏了吧 +9 yuleib84 2026-08-19 11/550 2026-08-21 10:06 by gltch
[基金申请] 估计是周四 +3 archvillain 2026-08-18 3/150 2026-08-21 01:48 by jnhyjjm
[基金申请] 时间戳变了,能看出什么问题? +18 基诺咪客 2026-08-17 23/1150 2026-08-20 17:19 by Godzela
[基金申请] 重要消息,中午系统在维护 +11 yuleib84 2026-08-18 12/600 2026-08-20 11:09 by xskun
[教师之家] 为什么余额宝的年化利率越来越低?主要原因有哪些? +5 瞬息宇宙 2026-08-15 5/250 2026-08-19 20:23 by super2002521
[基金申请] 今天放榜吗? +14 布布和一二 2026-08-19 15/750 2026-08-19 18:07 by gltch
[基金申请] 明天放榜? +5 Shxjjxjkx 2026-08-18 5/250 2026-08-18 18:14 by -大大大大大-
[基金申请] 今天维护系统维护 祝所有人 高中 +8 gjjjzhong 2026-08-18 9/450 2026-08-18 13:01 by 家与远方
[基金申请] 93BebMhtakh前后11位开头都是大写 +4 且听虎啸 2026-08-17 5/250 2026-08-18 00:49 by 蔡棒棒菂
信息提示
请填处理意见