| 5 | 2/1 | 返回列表 |
| 查看: 2054 | 回復(fù): 20 | |||
| 當(dāng)前只顯示滿足指定條件的回帖,點(diǎn)擊這里查看本話題的所有回帖 | |||
[求助]
UDF編寫 已有1人參與
|
|||
|
我想寫一個(gè)室外溫度參數(shù)隨時(shí)間變化的函數(shù)udf,讀入到fluent中后,顯示undeclared variable,不知道怎么改,求教。函數(shù)是T=-sin[3.14(t+2)/12]*8+31(其中t從0~24) #include "udf.h" DEFINE_PROFILE(inlet_z_temp,thread,position) { real x[ND_ND]; real z; face_t f; begin_f_loop(f,thread) { F_CENTROID(x,f,thread); z=x[2]; F_PROFILE(f,thread,position)=-sin[3.14(t+2)/12]*8+31; } end_f_loop(f,thread) } |

|
#include "udf.h" #define PI 3.1415926 DEFINE_PROFILE(inlet_temp,thread,position) { face_t f; begin_f_loop(f,thread) { real t = CURRENT_TIME;for(t=0;t<=86400;t++) F_PROFILE(f,thread,position)=??sin*??2*pi*(t/3600+2)/24??*141.74+148.81; } end_f_loop(f,thread) } ?????? ????????? line 9: parse error. ???????????? |

銀蟲 (正式寫手)


新蟲 (初入文壇)
| 最具人氣熱帖推薦 [查看全部] | 作者 | 回/看 | 最后發(fā)表 | |
|---|---|---|---|---|
|
[考研] 317求調(diào)劑 +3 | 十閑wx 2026-03-24 | 3/150 |
|
|---|---|---|---|---|
|
[考研] 299求調(diào)劑 +5 | 嗯嗯嗯嗯2 2026-03-27 | 5/250 |
|
|
[考研] 材料調(diào)劑 +8 | 匹克i 2026-03-23 | 8/400 |
|
|
[考研] 329求調(diào)劑 +7 | 鈕恩雪 2026-03-25 | 7/350 |
|
|
[考研] 342求調(diào)劑 +3 | 加油a李zs 2026-03-26 | 3/150 |
|
|
[考研] 336材料求調(diào)劑 +7 | 陳瀅瑩 2026-03-26 | 9/450 |
|
|
[考研] 一志愿鄭州大學(xué),080500學(xué)碩,總分317分求調(diào)劑 +4 | 舉個(gè)栗子oi 2026-03-24 | 5/250 |
|
|
[考研] 071000生物學(xué)求調(diào)劑,初試成績343 +6 | 小小甜面團(tuán) 2026-03-25 | 6/300 |
|
|
[考研] 求調(diào)劑 +5 | 蘆lty 2026-03-25 | 6/300 |
|
|
[考研] 生物學(xué)學(xué)碩,一志愿湖南大學(xué),初試成績338 +4 | YYYYYNNNNN 2026-03-26 | 4/200 |
|
|
[考研] 274求調(diào)劑 +14 | 顧九笙要謙虛 2026-03-24 | 20/1000 |
|
|
[考研] 尋找調(diào)劑 +5 | 倔強(qiáng)芒? 2026-03-21 | 8/400 |
|
|
[考研] 296求調(diào)劑 +5 | www_q 2026-03-20 | 5/250 |
|
|
[考研] 一志愿哈工大,085400,320,求調(diào)劑 +4 | gdlf9999 2026-03-24 | 4/200 |
|
|
[考研] 求調(diào)劑 +3 | QiMing7 2026-03-25 | 3/150 |
|
|
[考研] 318求調(diào)劑 +5 | plum李子 2026-03-21 | 8/400 |
|
|
[考研] 300求調(diào)劑,材料科學(xué)英一數(shù)二 +5 | leaflight 2026-03-24 | 5/250 |
|
|
[考研] 298求調(diào)劑 +8 | 上岸6666@ 2026-03-20 | 8/400 |
|
|
[考研] 求助 +5 | 夢里的無言 2026-03-21 | 6/300 |
|
|
[考研] 求調(diào)劑 +3 | eation27 2026-03-20 | 3/150 |
|