| 查看: 3502 | 回復: 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 模擬\學校逸夫樓地源熱泵模擬\多孔介質(zhì)\滲? \UDF練習\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 模擬\學校逸夫樓地源熱泵模擬\多孔介質(zhì)\滲? \UDF練習\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ā)表 | |
|---|---|---|---|---|
|
[考研] 295求調(diào)劑 +4 | 一志愿京區(qū)211 2026-03-18 | 6/300 |
|
|---|---|---|---|---|
|
[考研] 一志愿南昌大學,327分,材料與化工085600 +9 | Ncdx123456 2026-03-19 | 9/450 |
|
|
[考研] 一志愿中海洋材料工程專碩330分求調(diào)劑 +8 | 小材化本科 2026-03-18 | 8/400 |
|
|
[考研] 一志愿蘇州大學材料求調(diào)劑,總分315(英一) +5 | sbdksD 2026-03-19 | 5/250 |
|
|
[考研] 316求調(diào)劑 +5 | 梁茜雯 2026-03-19 | 5/250 |
|
|
[考研] 本人考085602 化學工程 專碩 +19 | 不知道叫什么! 2026-03-15 | 21/1050 |
|
|
[考研] 求調(diào)劑 +5 | Mqqqqqq 2026-03-19 | 5/250 |
|
|
[考研] 260求調(diào)劑 +3 | 朱芷琳 2026-03-20 | 3/150 |
|
|
[考研] 一志愿 南京航空航天大學大學 ,080500材料科學與工程學碩 +5 | @taotao 2026-03-20 | 5/250 |
|
|
[考研] 0703化學調(diào)劑 ,六級已過,有科研經(jīng)歷 +13 | 曦熙兮 2026-03-15 | 13/650 |
|
|
[考研] 求調(diào)劑 +3 | eation27 2026-03-20 | 3/150 |
|
|
[考研] 286分人工智能專業(yè)請求調(diào)劑愿意跨考! +3 | lemonzzn 2026-03-17 | 4/200 |
|
|
[考研] 求調(diào)劑 +3 | 暗涌afhb 2026-03-16 | 3/150 |
|
|
[考研] 材料學碩318求調(diào)劑 +5 | February_Feb 2026-03-19 | 5/250 |
|
|
[考研]
|
不想起名字112 2026-03-19 | 3/150 |
|
|
[考研] 0817調(diào)劑 +3 | 沒有答案_ 2026-03-14 | 3/150 |
|
|
[考研] 0703化學 305求調(diào)劑 +4 | FY_yy 2026-03-14 | 4/200 |
|
|
[考研] 0854控制工程 359求調(diào)劑 可跨專業(yè) +3 | 626776879 2026-03-14 | 9/450 |
|
|
[考研] 070300化學學碩求調(diào)劑 +6 | 太想進步了0608 2026-03-16 | 6/300 |
|
|
[考研] 中科大材料與化工319求調(diào)劑 +3 | 孟鑫材料 2026-03-14 | 3/150 |
|