| 5 | 1/1 | 返回列表 |
| 查看: 4259 | 回復(fù): 14 | |||
| 當(dāng)前只顯示滿足指定條件的回帖,點(diǎn)擊這里查看本話題的所有回帖 | |||
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ù)”: 無法從“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 |
專家顧問 (著名寫手)
![]() |
專家經(jīng)驗(yàn): +60 |
銅蟲 (初入文壇)
|
謝謝!源程序太長,以下是編譯時(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 |
| 最具人氣熱帖推薦 [查看全部] | 作者 | 回/看 | 最后發(fā)表 | |
|---|---|---|---|---|
|
[考研] 327求調(diào)劑 +3 | 小卡不卡. 2026-03-29 | 3/150 |
|
|---|---|---|---|---|
|
[考研] 各位老師好,我的一志愿為北京科技大學(xué)085601材料專碩 +9 | Koxui 2026-03-28 | 9/450 |
|
|
[考研] 求調(diào)劑 +9 | 張zz111 2026-03-27 | 10/500 |
|
|
[考研] 0856求調(diào)劑 +7 | 楒桉 2026-03-28 | 7/350 |
|
|
[考研] 調(diào)劑求院校招收 +6 | 鶴鯨鴿 2026-03-28 | 6/300 |
|
|
[考研] 調(diào)劑考研 +3 | 王杰一 2026-03-29 | 3/150 |
|
|
[考研] 學(xué)碩274求調(diào)劑 +9 | Li李魚 2026-03-26 | 9/450 |
|
|
[考研] 本科新能源科學(xué)與工程,一志愿華理能動(dòng)285求調(diào)劑 +7 | AZMK 2026-03-28 | 11/550 |
|
|
[考研] 本科新能源科學(xué)與工程,一志愿華理能動(dòng)285求調(diào)劑 +3 | AZMK 2026-03-27 | 5/250 |
|
|
[考研] 292求調(diào)劑 +14 | 鵝鵝鵝額額額額?/a> 2026-03-25 | 15/750 |
|
|
[材料工程] 一志愿C9材料與化工專業(yè)總分300求調(diào)劑 +8 | 曼111 2026-03-24 | 9/450 |
|
|
[考研] 材料求調(diào)劑 一志愿哈工大總分298分,前三科223分 +5 | dongfang59 2026-03-27 | 5/250 |
|
|
[考研] 330一志愿中國海洋大學(xué) 化學(xué)工程 085602 有讀博意愿 求調(diào)劑 +3 | wywy.. 2026-03-27 | 4/200 |
|
|
[考博] 26申博 +3 | 加油沖啊! 2026-03-26 | 3/150 |
|
|
[考研] 考研化學(xué)308分求調(diào)劑 +10 | 你好明天你好 2026-03-23 | 12/600 |
|
|
[考研] 314求調(diào)劑 +3 | 溪云珂 2026-03-26 | 3/150 |
|
|
[考研] 生物學(xué) 296 求調(diào)劑 +4 | 朵朵- 2026-03-26 | 6/300 |
|
|
[考研] 302求調(diào)劑 +4 | 錦衣衛(wèi)藤椒 2026-03-25 | 4/200 |
|
|
[考研]
|
黃粱一夢(mèng)千年 2026-03-24 | 3/150 |
|
|
[論文投稿] 急發(fā)核心期刊論文 +3 | 賢達(dá)問津 2026-03-23 | 5/250 |
|