| 查看: 4256 | 回復(fù): 14 | ||||
clytze9064銅蟲 (初入文壇)
|
[求助]
Ansys Fluent 編譯UDF及加載UDF出現(xiàn)錯(cuò)誤 已有1人參與
|
|||
|
用UDF編寫模型邊界條件,編譯時(shí),出現(xiàn)以下錯(cuò)誤: Copied E:\XY\ev_thermal_conditions2.c to E:\XY\QIU_files\dp0\FFF\Fluent\libudf\src udf_names.c and user_nt.udf files in 3d are upto date. (system "copy "D:\ANSYSI~1\v150\fluent"\fluent15.0.0\src\makefile_nt.udf "E:\XY\QIU_files\dp0\FFF\Fluent\libudf\ntx86\3d\makefile" " ![]() 已復(fù)制 1 個(gè)文件。 (chdir "E:\XY\QIU_files\dp0\FFF\Fluent\libudf" (chdir "ntx86\3d" # Generating ud_io1.hev_thermal_conditions2.c C:\Program Files\Microsoft Visual Studio 10.0\VC\INCLUDE\crtdefs.h(402) : error C2371: “size_t”: 重定義;不同的基類型 ..\..\src\ev_thermal_conditions2.c : 參見“size_t”的聲明 ..\..\src\ev_thermal_conditions2.c(280) : error C2440: “函數(shù)”: 無(wú)法從“real (*)(real)”轉(zhuǎn)換為“double” ..\..\src\ev_thermal_conditions2.c(280) : warning C4024: “pow”: 形參和實(shí)參 1 的類型不同 Done. 強(qiáng)行加載時(shí),出現(xiàn)以下錯(cuò)誤: Opening library "E:\XY\QIU_files\dp0\FFF\Fluent\E:\XY\QIU_files\dp0\FFF\Fluent\libudf"... Error: The UDF library you are trying to load (E:\XY\QIU_files\dp0\FFF\Fluent\libudf) is not compiled for 3d on the current platform (ntx86). 系統(tǒng)找不到指定的文件。 E:\XY\QIU_files\dp0\FFF\Fluent\E:\XY\QIU_files\dp0\FFF\Fluent\libudf\\ntx86\3d\libudf.dll Error: The UDF library you are trying to load (E:\XY\QIU_files\dp0\FFF\Fluent\libudf) is not compiled for 3d on the current platform (ntx86). 系統(tǒng)找不到指定的文件。 E:\XY\QIU_files\dp0\FFF\Fluent\E:\XY\QIU_files\dp0\FFF\Fluent\libudf\ntx86\3d\libudf.dll Error Object: #f 環(huán)境變量已經(jīng)設(shè)置好,輸入cl.exe,已經(jīng)沒問題,還是出現(xiàn)以上錯(cuò)誤,糾結(jié)了好幾天了,求大神相助。謝謝。。。。! |
專家顧問 (著名寫手)
![]() |
專家經(jīng)驗(yàn): +60 |
|
h = pow(pow(h_fc,3) + pow(htc_nc(Tw),3), 0.333); 這里少了一個(gè)括號(hào) h = pow((pow(h_fc,3.0) + pow(htc_nc(Tw),3.0)), 0.333); (括號(hào)自己改成英文的) 你把頭文件寫成我剛才寫的樣子和順序 |
專家顧問 (著名寫手)
![]() |
專家經(jīng)驗(yàn): +60 |
銅蟲 (初入文壇)
|
謝謝!源程序太長(zhǎng),以下是編譯時(shí)出現(xiàn)第二個(gè)錯(cuò)誤(error C2240)的地方,第一個(gè)error應(yīng)該不是程序的問題,但也不知道為什么頭文件會(huì)出問題,程序中也沒有size_t這個(gè)變量。 DEFINE_PROFILE(heat_transfer_coef,t,i) { real A[ND_ND]; /* this will hold the normal vector */ real h, Tw, total_AT, total_area, area; face_t f; total_AT = 0.0; /* sum of A*T */ total_area = 0.0; /* sum of area */ #if !RP_HOST begin_f_loop(f,t) { F_AREA(A,f,t); area = NV_MAG(A); total_area += area; total_AT += area * F_T(f,t); } end_f_loop(f,t) #if RP_NODE total_AT = PRF_GRSUM1(total_AT); total_area = PRF_GRSUM1(total_area); #endif Tw = total_AT / total_area; h = pow(pow(h_fc,3) + pow(htc_nc(Tw),3), 0.333); #endif Message("Tw = %lf, h = %lf\n", Tw, h); begin_f_loop(f,t) { F_PROFILE(f,t,i) = h; } end_f_loop(f,t) } |
專家顧問 (著名寫手)
![]() |
專家經(jīng)驗(yàn): +60 |
專家顧問 (著名寫手)
![]() |
專家經(jīng)驗(yàn): +60 |
銅蟲 (初入文壇)
專家顧問 (著名寫手)
![]() |
專家經(jīng)驗(yàn): +60 |
銅蟲 (初入文壇)
專家顧問 (著名寫手)
![]() |
專家經(jīng)驗(yàn): +60 |
銅蟲 (初入文壇)
| 最具人氣熱帖推薦 [查看全部] | 作者 | 回/看 | 最后發(fā)表 | |
|---|---|---|---|---|
|
[考研] 總分293求調(diào)劑 +7 | 加一一九 2026-03-25 | 10/500 |
|
|---|---|---|---|---|
|
[考研] 一志愿211,335分,0856,求調(diào)劑院校和導(dǎo)師 +5 | 傾____蕭 2026-03-27 | 6/300 |
|
|
[考研] 085600,專業(yè)課化工原理,321分求調(diào)劑 +5 | 大饞小子 2026-03-28 | 5/250 |
|
|
[考研] 311求調(diào)劑 +3 | 希望上岸阿小楊 2026-03-23 | 3/150 |
|
|
[考研] 291求調(diào)劑 +7 | 孅華 2026-03-22 | 7/350 |
|
|
[考研] 一志愿211院校 344分 東北農(nóng)業(yè)大學(xué)生物學(xué)學(xué)碩,求調(diào)劑 +5 | 丶風(fēng)雪夜歸人丶 2026-03-26 | 8/400 |
|
|
[考研]
|
18419759900 2026-03-25 | 8/400 |
|
|
[考研] 283求調(diào)劑(080500) +4 | A child 2026-03-27 | 4/200 |
|
|
[考研] 安徽大學(xué)專碩生物與醫(yī)藥專業(yè)(086000)324分,英語(yǔ)已過四六級(jí),六級(jí)521,求調(diào)劑 +4 | 美味可樂雞翅 2026-03-26 | 4/200 |
|
|
[考研] 085600材料與化工調(diào)劑 +10 | A-哆啦Z夢(mèng) 2026-03-23 | 16/800 |
|
|
[碩博家園] 北京林業(yè)大學(xué)碩導(dǎo)招生廣告 +6 | kongweilin 2026-03-26 | 8/400 |
|
|
[考研] 求調(diào)劑 一志愿 本科 北科大 化學(xué) 343 +6 | 13831862839 2026-03-24 | 7/350 |
|
|
[考研] 081200-11408-276學(xué)碩求調(diào)劑 +3 | 崔wj 2026-03-26 | 3/150 |
|
|
[考研] 302求調(diào)劑 +4 | 錦衣衛(wèi)藤椒 2026-03-25 | 4/200 |
|
|
[考研] 一志愿吉林大學(xué)材料與化工303分求調(diào)劑 +4 | 為學(xué)666 2026-03-24 | 4/200 |
|
|
[考研] 一志愿武理085500機(jī)械專業(yè)總分300求調(diào)劑 +3 | an10101 2026-03-24 | 7/350 |
|
|
[考研] 調(diào)劑 +4 | 13853210211 2026-03-24 | 4/200 |
|
|
[考研] 求調(diào)劑 +6 | 研研,接電話 2026-03-24 | 7/350 |
|
|
[考研] 材料專碩331求調(diào)劑 +4 | 鮮當(dāng)牛 2026-03-24 | 4/200 |
|
|
[考研] 341求調(diào)劑(一志愿湖南大學(xué)070300) +5 | 番茄頭--- 2026-03-22 | 6/300 |
|