| 查看: 3499 | 回復(fù): 11 | ||
Master.Che捐助貴賓 (初入文壇)
|
[求助]
Fluent UDF熱流隨時間的變化 已有3人參與
|
|
我在論壇里找了一些,然后自己看了一些例子,但是還是不行有誰能給我看看,哪里錯了,怎么改的,或者給我一些建議在哪找相關(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) } |
銀蟲 (小有名氣)
木蟲 (正式寫手)
捐助貴賓 (初入文壇)
|
是這個意思,看來仁兄做過啊 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 |
捐助貴賓 (初入文壇)
|
我把他改成你這個,也不行啊 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. |
銀蟲 (小有名氣)
捐助貴賓 (初入文壇)
| 最具人氣熱帖推薦 [查看全部] | 作者 | 回/看 | 最后發(fā)表 | |
|---|---|---|---|---|
|
[考研] 一志愿華南師大 070300(化學(xué))304分求調(diào)劑 +3 | 0703武芊慧雪304 2026-03-18 | 3/150 |
|
|---|---|---|---|---|
|
[考研] 一志愿重慶大學(xué)085700資源與環(huán)境專碩,總分308求調(diào)劑 +3 | 墨墨漠 2026-03-18 | 3/150 |
|
|
[考研] 308求調(diào)劑 +3 | 阿姐阿姐家啊 2026-03-18 | 3/150 |
|
|
[考研] 求調(diào)劑,一志愿:南京航空航天大學(xué)大學(xué) ,080500材料科學(xué)與工程學(xué)碩,總分289分 +4 | @taotao 2026-03-19 | 4/200 |
|
|
[考研] 一志愿中南化學(xué)(0703)總分337求調(diào)劑 +8 | niko- 2026-03-19 | 9/450 |
|
|
[考研] 材料學(xué)碩297已過四六級求調(diào)劑推薦 +11 | adaie 2026-03-19 | 11/550 |
|
|
[考研] 316求調(diào)劑 +5 | 梁茜雯 2026-03-19 | 5/250 |
|
|
[考研] 0817 化學(xué)工程 299分求調(diào)劑 有科研經(jīng)歷 有二區(qū)文章 +22 | rare12345 2026-03-18 | 22/1100 |
|
|
[考研] 286分人工智能專業(yè)請求調(diào)劑愿意跨考! +3 | lemonzzn 2026-03-17 | 4/200 |
|
|
[考研] 288求調(diào)劑,一志愿華南理工大學(xué)071005 +5 | ioodiiij 2026-03-17 | 5/250 |
|
|
[考研] 0703化學(xué)調(diào)劑 +4 | 18889395102 2026-03-18 | 4/200 |
|
|
[考研] 0703化學(xué)調(diào)劑,求各位老師收留 +10 | 秋有木北 2026-03-14 | 10/500 |
|
|
[考研] 312求調(diào)劑 +8 | 陌宸希 2026-03-16 | 9/450 |
|
|
[考研] 304求調(diào)劑 +12 | 小熊joy 2026-03-14 | 13/650 |
|
|
[考研] 280求調(diào)劑 +6 | 咕嚕曉曉 2026-03-18 | 7/350 |
|
|
[考研] 268求調(diào)劑 +6 | 簡單點0 2026-03-17 | 6/300 |
|
|
[考研] 材料工程專碩274一志愿211求調(diào)劑 +6 | 薛云鵬 2026-03-15 | 6/300 |
|
|
[考研] 275求調(diào)劑 +4 | 太陽花天天開心 2026-03-16 | 4/200 |
|
|
[考研] 0703化學(xué)調(diào)劑 290分有科研經(jīng)歷,論文在投 +7 | 膩膩gk 2026-03-14 | 7/350 |
|
|
[考研] 327求調(diào)劑 +6 | 拾光任染 2026-03-15 | 11/550 |
|