24小时热门版块排行榜    

查看: 1204  |  回复: 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一区文章,我:8.O.55.1.O.54,科目齐全,可伽急 +3 Gt0XhENGW3Q3 2026-11-21 4/200 2026-11-22 11:28 by HAlUgI97lcPc
[考博] 售SCI一区T0P文章,我:8O.55.1.O.5.4,科目齐全,可+急 +3 Gt0XhENGW3Q3 2026-11-21 5/250 2026-11-22 11:17 by HAlUgI97lcPc
[基金申请] 售SCI一区文章,我:8.O.551.O.5.4,科目全,可伽急 +4 YpGmINmR5fp3 2026-11-21 5/250 2026-11-22 11:05 by HAlUgI97lcPc
[硕博家园] 售SCI一区T0P文章,我:8O.55.1.O.54,科目全,可伽急 +4 YpGmINmR5fp3 2026-11-21 4/200 2026-11-22 10:54 by HAlUgI97lcPc
[找工作] 售SCI-T0P文章,我:8O.5.5.1.O.54,科目齐全,可+急 +3 YpGmINmR5fp3 2026-11-21 4/200 2026-11-22 10:44 by HAlUgI97lcPc
[硕博家园] 售SCI一区T0P文章,我:8.O55.1.O.54,科目全,可十急 +3 YpGmINmR5fp3 2026-11-21 4/200 2026-11-22 10:43 by HAlUgI97lcPc
[硕博家园] 售SCI一区文章,我:8O5.5.1.O5.4,科目全,可伽急 +4 K2uSGhxsSAvH 2026-11-21 5/250 2026-11-22 10:32 by HAlUgI97lcPc
[考研] 售一区SCI文章T0P,我:8O.551.O54,科目全,可十急 +4 K2uSGhxsSAvH 2026-11-21 5/250 2026-11-22 10:11 by HAlUgI97lcPc
[公派出国] 售SCI文章,我:8O.5.5.1O.54,科目全,可十急 +6 YLsF7OSIoYU4 2026-11-21 6/300 2026-11-22 09:59 by HAlUgI97lcPc
[考博] 售一区SCI文章T0P,我:8O.551.O54,科目全,可十急 +4 YLsF7OSIoYU4 2026-11-21 4/200 2026-11-22 09:49 by HAlUgI97lcPc
[论文投稿] 售SCI文章,我:8O5.5.1.O.54,科目齐全,可+急 +5 YLsF7OSIoYU4 2026-11-21 5/250 2026-11-22 09:48 by HAlUgI97lcPc
[论文投稿] 售SCI一区T0P文章,我:8O.55.1.O.54,科目全,可伽急 +5 Xoz0hXWi9tT1 2026-11-21 7/350 2026-11-22 09:16 by HAlUgI97lcPc
[考博] 售一区SCI文章T0P,我:8O.551.O54,科目全,可十急 +4 Xoz0hXWi9tT1 2026-11-21 6/300 2026-11-22 09:05 by HAlUgI97lcPc
[基金申请] 售SCI-T0P文章,我:8O.5.5.1.O.54,科目齐全,可+急 +4 YLsF7OSIoYU4 2026-11-21 4/200 2026-11-22 04:08 by mNjrFMLoQVIW
[公派出国] 售SCI一区文章,我:8.O.551.O.5.4,科目全,可伽急 +3 Xoz0hXWi9tT1 2026-11-21 4/200 2026-11-22 03:46 by mNjrFMLoQVIW
[硕博家园] 售SCI文章,我:8O5.5.1.O.54,科目齐全,可+急 +3 Xoz0hXWi9tT1 2026-11-20 4/200 2026-11-22 03:23 by mNjrFMLoQVIW
[硕博家园] 售SCI文章,我:8O.5.5.1O.54,科目全,可十急 +4 Xoz0hXWi9tT1 2026-11-20 6/300 2026-11-22 03:13 by mNjrFMLoQVIW
[教师之家] 售SCI一区T0P文章,我:8.O55.1.O.54,科目全,可十急 +3 Xoz0hXWi9tT1 2026-11-21 4/200 2026-11-21 15:48 by Gt0XhENGW3Q3
[论文投稿] 食品与机械 编辑C处理稿子时间 10+3 奇妙001 2026-11-19 4/200 2026-11-20 15:02 by tfang
[基金申请] 注意啦!用基金购买打印纸、硒鼓、优盘、移动硬盘、个人计算机属于违规了 +3 iaeyuan 2026-11-17 4/200 2026-11-20 09:36 by iaeyuan
信息提示
请填处理意见