24小时热门版块排行榜    

Znn3bq.jpeg
查看: 1109  |  回复: 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文章,我:8.O.5.5.1.O.5.4,科目齐全,可+急 +4 hvkbtfonbv 2026-05-23 4/200 2026-05-24 17:21 by 75ui6h7z2t
[教师之家] 论文撤稿了 +4 bjvtcliu 2026-05-24 6/300 2026-05-24 17:11 by jurkat.1640
[博后之家] 售SCI一区T0P文章,我:8.O.5.5.1.O.5.4,科目齐全,可+急 +3 hvkbtfonbv 2026-05-23 3/150 2026-05-24 17:10 by 75ui6h7z2t
[考博] 售SCI一区T0P文章,我:8.O.5.5.1.O.5.4,科目齐全,可+急 +3 hvkbtfonbv 2026-05-23 3/150 2026-05-24 17:01 by 75ui6h7z2t
[考研] 售SCI一区T0P文章,我:8.O.5.5.1.O.5.4,科目齐全,可+急 +3 a2tycdlnq1 2026-05-23 5/250 2026-05-24 16:21 by hhx1yx9evi
[论文投稿] 售SCI一区T0P文章,我:8.O.5.5.1.O.5.4,科目齐全,可+急 +3 a2tycdlnq1 2026-05-23 4/200 2026-05-24 16:16 by hhx1yx9evi
[硕博家园] 售SCI一区T0P文章,我:8.O.5.5.1.O.5.4,科目齐全,可+急 +4 pmo95bazuy 2026-05-23 8/400 2026-05-24 15:56 by 1uy1ht2y9r
[基金申请] 西安交大新媒学院副院长用撤稿论文结题 +3 bjvtcliu 2026-05-24 5/250 2026-05-24 10:16 by kudofaye
[教师之家] 某211大学教师把个人教师官方主页改成:我跑了我跑了我跑了!官宣跑路! +4 zju2000 2026-05-21 5/250 2026-05-24 09:35 by songwz
[基金申请] 青B发送上会通知了吗 +5 chemBioBro 2026-05-22 7/350 2026-05-23 12:35 by zhuifengzhy
[考博] 博士申请 +3 焦晓明 2026-05-21 3/150 2026-05-23 11:26 by mlc840311
[文学芳草园] 献血感触 +7 呀呀好傻 2026-05-19 13/650 2026-05-21 20:15 by 呀呀好傻
[基金申请] 面上本子正文33页,违规吗?会被低分嘛? +14 1234567wang 2026-05-17 16/800 2026-05-21 17:58 by 脆脆的饼干
[基金申请] 国自然评分 +4 无名者登山 2026-05-20 5/250 2026-05-21 16:35 by swuq
[基金申请] 国自然上会要求 +7 无名者登山 2026-05-18 11/550 2026-05-21 15:50 by draco1987
[基金申请] 提交了我也来说说感想 +9 fummck 2026-05-20 10/500 2026-05-21 14:17 by draco1987
[有机交流] 反应很差,大量原料没有反应 5+3 Mr.Zot 2026-05-19 8/400 2026-05-20 22:19 by Equinoxhua
[考博] 如果工作了想读博,可以边工作边读全日制嘛? 30+3 铁达火车 2026-05-18 5/250 2026-05-20 09:33 by tfang
[考博] 博士申请 +5 星…… 2026-05-18 6/300 2026-05-18 23:49 by 糊糊涂涂好
[硕博家园] 我在等一个没有答案的答案 +3 Love_MH 2026-05-17 3/150 2026-05-18 02:22 by 竹林孤影
信息提示
请填处理意见