| 查看: 3498 | 回復(fù): 11 | ||
Master.Che捐助貴賓 (初入文壇)
|
[求助]
Fluent UDF熱流隨時(shí)間的變化 已有3人參與
|
|
我在論壇里找了一些,然后自己看了一些例子,但是還是不行有誰(shuí)能給我看看,哪里錯(cuò)了,怎么改的,或者給我一些建議在哪找相關(guān)的文章或者例子,謝謝啦 #include "udf.h" DEFINE_HEAT_FLUX(heat_flux, f,t,c0,t0,cid,cir) { real t,heat_flux; face_t f; begin_f_loop(f, thread) { t=RP_Get_Real("flow-time" ;{ if (0<t<14428800) {heat_flux=-60; } else if (14428800<t<23587200) {heat_flux=0; } else if (23587200<t<28944000) {heat_flux=60; } else (28944000<t<31536000) {heat_flux=0; } } F_PROFILE(f,thread,index)=h; } end_f_loop(f,thread) } |
銀蟲 (小有名氣)
木蟲 (正式寫手)
捐助貴賓 (初入文壇)
|
是這個(gè)意思,看來(lái)仁兄做過(guò)啊 cpp -I"C:\Fluent.Inc\fluent6.3.26/src" -I"C:\Fluent.Inc\fluent6.3.26/cortex/src" -I"C:\Fluent.Inc\fluent6.3.26/client/src" -I"C:\Fluent.Inc\fluent6.3.26/multiport/src" -I. -DUDFCONFIG_H="<udfconfig.h>" "D:\FLUENT 模擬\學(xué)校逸夫樓地源熱泵模擬\多孔介質(zhì)\滲? \UDF練習(xí)\1\udf.c" t definition shadows previous definition heat_flux definition shadows previous definition f definition shadows previous definition Error: D:\FLUENT \304\243\304\342\\321\247\320\243\322\335\267\362\302\245\265\330\324\264\310\310\261\303\304\243\304\342\\266\340\277\327\275\351\326\312\\311\370\301\367\UDF\301\267\317\260\1\udf.c: line 6: thread: undeclared variable |
捐助貴賓 (初入文壇)
|
我把他改成你這個(gè),也不行啊 cpp -I"C:\Fluent.Inc\fluent6.3.26/src" -I"C:\Fluent.Inc\fluent6.3.26/cortex/src" -I"C:\Fluent.Inc\fluent6.3.26/client/src" -I"C:\Fluent.Inc\fluent6.3.26/multiport/src" -I. -DUDFCONFIG_H="<udfconfig.h>" "D:\FLUENT 模擬\學(xué)校逸夫樓地源熱泵模擬\多孔介質(zhì)\滲? \UDF練習(xí)\1\udf2.c" Error: D:\FLUENT \304\243\304\342\\321\247\320\243\322\335\267\362\302\245\265\330\324\264\310\310\261\303\304\243\304\342\\266\340\277\327\275\351\326\312\\311\370\301\367\UDF\301\267\317\260\1\udf2.c: line 2: parse error. |
銀蟲 (小有名氣)
|
哈哈 又是一個(gè)搞地源熱泵的 你把熱流密度作為邊界條件了吧 如果不加這個(gè)UDF 單算一個(gè)蓄熱程 你的fluent程序跑的怎么樣? 我看你的時(shí)間也挺長(zhǎng)的 實(shí)在不行 就一段一段的算唄 取熱完成了 把這個(gè)溫度場(chǎng)作為恢復(fù)的初始溫度場(chǎng) 再定義一下邊界條件就可以了 你這個(gè)還沒(méi)有我逐時(shí)動(dòng)態(tài)仿真的麻煩 直接把熱流密度當(dāng)邊界條件 不涉及逐時(shí)的出口溫度調(diào)用 簡(jiǎn)單多了 |
捐助貴賓 (初入文壇)
新蟲 (初入文壇)
| 最具人氣熱帖推薦 [查看全部] | 作者 | 回/看 | 最后發(fā)表 | |
|---|---|---|---|---|
|
[考研] 330求調(diào)劑 +4 | 小材化本科 2026-03-18 | 4/200 |
|
|---|---|---|---|---|
|
[考研] 304求調(diào)劑 +7 | 司空. 2026-03-18 | 7/350 |
|
|
[考研] 一志愿南昌大學(xué),327分,材料與化工085600 +8 | Ncdx123456 2026-03-19 | 8/400 |
|
|
[考研] A區(qū)線材料學(xué)調(diào)劑 +5 | 周周無(wú)極 2026-03-20 | 5/250 |
|
|
[考研] 281求調(diào)劑(0805) +14 | 煙汐憶海 2026-03-16 | 25/1250 |
|
|
[考研] 材料專碩英一數(shù)二306 +6 | z1z2z3879 2026-03-18 | 6/300 |
|
|
[考研] 307求調(diào)劑 +9 | 冷笙123 2026-03-17 | 9/450 |
|
|
[考研] 328求調(diào)劑,英語(yǔ)六級(jí)551,有科研經(jīng)歷 +4 | 生物工程調(diào)劑 2026-03-16 | 12/600 |
|
|
[考研] 085601專碩,總分342求調(diào)劑,地區(qū)不限 +5 | share_joy 2026-03-16 | 5/250 |
|
|
[考研] 297求調(diào)劑 +8 | 戲精丹丹丹 2026-03-17 | 8/400 |
|
|
[考研] 312求調(diào)劑 +8 | 陌宸希 2026-03-16 | 9/450 |
|
|
[考研] 材料,紡織,生物(0856、0710),化學(xué)招生啦 +3 | Eember. 2026-03-17 | 9/450 |
|
|
[考研] 生物學(xué)071000 329分求調(diào)劑 +3 | 我愛(ài)生物生物愛(ài)?/a> 2026-03-17 | 3/150 |
|
|
[考研] 326求調(diào)劑 +5 | 上岸的小葡 2026-03-15 | 6/300 |
|
|
[考研] 302求調(diào)劑 +4 | 小賈同學(xué)123 2026-03-15 | 8/400 |
|
|
[論文投稿] 有沒(méi)有大佬發(fā)小論文能帶我個(gè)二作 +3 | 增銳漏人 2026-03-17 | 4/200 |
|
|
[考研] 283求調(diào)劑 +3 | 聽風(fēng)就是雨; 2026-03-16 | 3/150 |
|
|
[考研] 333求調(diào)劑 +3 | 文思客 2026-03-16 | 7/350 |
|
|
[考研] 0854控制工程 359求調(diào)劑 可跨專業(yè) +3 | 626776879 2026-03-14 | 9/450 |
|
|
[考研] 080500,材料學(xué)碩302分求調(diào)劑學(xué)校 +4 | 初識(shí)可樂(lè) 2026-03-14 | 5/250 |
|