| 1 | 1/1 | 返回列表 |
| 查看: 1078 | 回復(fù): 0 | ||
[求助]
UDF可以解釋成功但無法編譯
|
|
編了一個(gè)沸騰時(shí)氣泡脫離頻率的UDF,可以解釋成功,編譯時(shí)有時(shí)能成功有時(shí)不能,附程序內(nèi)容如下: #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時(shí)Build后出現(xiàn)如下提示: # 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' 跪求各位大佬幫助 |
| 1 | 1/1 | 返回列表 |
| 最具人氣熱帖推薦 [查看全部] | 作者 | 回/看 | 最后發(fā)表 | |
|---|---|---|---|---|
|
[考研] A區(qū)一本交叉課題組,低分調(diào)劑,招收機(jī)械電子信息通信等交叉方向 +52 | lisimayy 2026-03-04 | 65/3250 |
|
|---|---|---|---|---|
|
[考研] 考研調(diào)劑,一志愿山東大學(xué)材料與化工,328分,政治51 +4 | 關(guān)你西紅柿929 2026-03-08 | 5/250 |
|
|
[考研] 0703化學(xué)調(diào)劑 +3 | 小奶蒼 2026-03-07 | 3/150 |
|
|
[考研] 歡迎211本科同學(xué),過A區(qū)國(guó)家線,A區(qū)非偏遠(yuǎn)一本,交叉學(xué)科課題組 +21 | lisimayy 2026-03-04 | 33/1650 |
|
|
[考研] 313求調(diào)劑 +3 | Yyt楊1 2026-03-07 | 4/200 |
|
|
[考研] 08工科 +4 | li李樂成 2026-03-06 | 4/200 |
|
|
[考研] 化學(xué)290求調(diào)劑 +3 | 兩顆 西柚 2026-03-07 | 4/200 |
|
|
[考研]
材料325求調(diào)劑
30+6
|
mariusuki 2026-03-02 | 12/600 |
|
|
[考研] 一志愿武漢理工085601,初試301分,請(qǐng)問能調(diào)劑到湖北嗎 +3 | 肖yang 2026-03-06 | 3/150 |
|
|
[考研] 求調(diào)劑 +4 | 呼呼?~+123456 2026-03-06 | 4/200 |
|
|
[考研] 求調(diào)劑,學(xué)校研究所都可以,材料與化工267分 +6 | wmx1 2026-03-05 | 6/300 |
|
|
[考研] 281電子信息求調(diào)劑 +5 | jhtfeybgj 2026-03-02 | 9/450 |
|
|
[考研] 0857求調(diào)劑 +4 | CDDD1013 2026-03-04 | 4/200 |
|
|
[考研] 281求調(diào)劑 +3 | 我是小小蔥蔥 2026-03-03 | 5/250 |
|
|
[考研] 一志愿西交大材料學(xué)碩 346 求調(diào)劑 +3 | zju51 2026-03-04 | 3/150 |
|
|
[考研] 環(huán)境調(diào)劑 +8 | chenhanheng 2026-03-02 | 8/400 |
|
|
[考研] 0703化學(xué)306調(diào)劑 +4 | 26要上岸 2026-03-03 | 4/200 |
|
|
[考研] 一志愿東北大學(xué)化學(xué)314分求調(diào)劑 +5 | lr1212.. 2026-03-02 | 5/250 |
|
|
[考研]
|
glwshine 2026-03-02 | 5/250 |
|
|
[考研] 278求調(diào)劑 +3 | 滿天星11_22 2026-03-02 | 3/150 |
|