| 24小時熱門版塊排行榜 |
| 查看: 4260 | 回復(fù): 14 | ||||
clytze9064銅蟲 (初入文壇)
|
[求助]
Ansys Fluent 編譯UDF及加載UDF出現(xiàn)錯誤 已有1人參與
|
|||
|
用UDF編寫模型邊界條件,編譯時,出現(xiàn)以下錯誤: 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 個文件。 (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ù)”: 無法從“real (*)(real)”轉(zhuǎn)換為“double” ..\..\src\ev_thermal_conditions2.c(280) : warning C4024: “pow”: 形參和實參 1 的類型不同 Done. 強行加載時,出現(xiàn)以下錯誤: 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)以上錯誤,糾結(jié)了好幾天了,求大神相助。謝謝。。。。! |
專家顧問 (著名寫手)
![]() |
專家經(jīng)驗: +60 |
|
h = pow(pow(h_fc,3) + pow(htc_nc(Tw),3), 0.333); 這里少了一個括號 h = pow((pow(h_fc,3.0) + pow(htc_nc(Tw),3.0)), 0.333); (括號自己改成英文的) 你把頭文件寫成我剛才寫的樣子和順序 |
專家顧問 (著名寫手)
![]() |
專家經(jīng)驗: +60 |
銅蟲 (初入文壇)
|
謝謝!源程序太長,以下是編譯時出現(xiàn)第二個錯誤(error C2240)的地方,第一個error應(yīng)該不是程序的問題,但也不知道為什么頭文件會出問題,程序中也沒有size_t這個變量。 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)驗: +60 |
專家顧問 (著名寫手)
![]() |
專家經(jīng)驗: +60 |
銅蟲 (初入文壇)
專家顧問 (著名寫手)
![]() |
專家經(jīng)驗: +60 |
銅蟲 (初入文壇)
專家顧問 (著名寫手)
![]() |
專家經(jīng)驗: +60 |
銅蟲 (初入文壇)
| 最具人氣熱帖推薦 [查看全部] | 作者 | 回/看 | 最后發(fā)表 | |
|---|---|---|---|---|
|
[考研] 一志愿南開大學(xué)0710生物學(xué)359求調(diào)劑 +3 | 兔兔兔111223314 2026-03-29 | 3/150 |
|
|---|---|---|---|---|
|
[考研] 求調(diào)劑 +4 | QiMing7 2026-03-25 | 5/250 |
|
|
[考研] 一志愿華東師范大學(xué)有機化學(xué)專業(yè),初試351分,復(fù)試被刷求調(diào)劑! +5 | 真名有冰 2026-03-29 | 6/300 |
|
|
[考研] 296求調(diào)劑 +6 | 彼岸t 2026-03-29 | 6/300 |
|
|
[考研] 343求調(diào)劑085601 +3 | 要努力學(xué)習(xí)x 2026-03-29 | 3/150 |
|
|
[考研] 299求調(diào)劑 +10 | 15188958825 2026-03-25 | 10/500 |
|
|
[考研] 318一志愿吉林大學(xué)生物與醫(yī)藥 求調(diào)劑 +4 | 篤行致遠. 2026-03-28 | 4/200 |
|
|
[考研] 求調(diào)劑 +7 | 爭取九點睡 2026-03-28 | 8/400 |
|
|
[考研] 071000生物學(xué)求調(diào)劑,初試成績343 +7 | 小小甜面團 2026-03-25 | 7/350 |
|
|
[考研] 317求調(diào)劑 +6 | 十閑wx 2026-03-24 | 6/300 |
|
|
[考研] 286求調(diào)劑 +4 | 丟掉懶惰 2026-03-27 | 7/350 |
|
|
[考研] 311求調(diào)劑 +3 | 希望上岸阿小楊 2026-03-23 | 3/150 |
|
|
[考研] 070300化學(xué)求調(diào)劑 +4 | 起個名咋這么難 2026-03-27 | 4/200 |
|
|
[考研] 08開頭275求調(diào)劑 +4 | 拉誰不重要 2026-03-26 | 4/200 |
|
|
[考研] 考研調(diào)劑 +9 | 小蠟新筆 2026-03-26 | 9/450 |
|
|
[考研] 276求調(diào)劑。有半年電池和半年高分子實習(xí)經(jīng)歷 +10 | 材料學(xué)257求調(diào)劑 2026-03-23 | 11/550 |
|
|
[考研] 調(diào)劑 +4 | 柚柚yoyo 2026-03-26 | 4/200 |
|
|
[考研] 求調(diào)劑 +3 | 李李不服輸 2026-03-25 | 3/150 |
|
|
[考研] 一志愿山東大學(xué)藥學(xué)學(xué)碩求調(diào)劑 +3 | 開開心心沒煩惱 2026-03-23 | 4/200 |
|
|
[考研] 333求調(diào)劑 +3 | ALULU4408 2026-03-23 | 3/150 |
|