| 查看: 2034 | 回復(fù): 10 | |||
[交流]
【求助】各位大俠救我,請(qǐng)教一個(gè)簡(jiǎn)單的UDF程序怎么寫,有金幣送! 已有10人參與
|
|||
|
小弟剛學(xué)Fluent,新手一個(gè),剛剛碰到一個(gè)小難題:如何編寫Udf 程序 p(t)=0.12*sin(2200t)+0.7369 這是一個(gè)非定常問題,P(t)為入口壓強(qiáng),t是時(shí)間。 那位大俠可以幫小弟寫出這個(gè)UDF小程序的,小弟送一金幣,萬(wàn)分感激。 |
銅蟲 (小有名氣)
木蟲 (著名寫手)
銀蟲 (小有名氣)
| 查看幫助文檔 |
| 正解... |
木蟲 (正式寫手)
鐵蟲 (小有名氣)
|
/************************************************** ********************* UDF for time dependent pressure ************************************************** **********************/ #include "udf.h" DEFINE_PROFILE(my_profile,t,i) { face_t f; real flow_t; /* to hold current flow time */ real pressure0; flow_t= RP_Get_Real("flow-time" ;begin_f_loop(f,t) { pressure0=0.12*sin(2200flow_t)+0.7369 F_PROFILE(f,t,i)=pressure0; } end_f_loop(f,t); } |

金蟲 (小有名氣)
|
#include "udf.h" DEFINE_PROFILE(my_profile,t,i) { face_t f; real flow_t; /* to hold current flow time */ real pressure0; begin_f_loop(f,t) flow_t= RP_Get_Real("flow-time" ;{ pressure0=0.12*sin(2200flow_t)+0.7369 F_PROFILE(f,t,i)=pressure0; } end_f_loop(f,t); } |
金蟲 (正式寫手)
| 最具人氣熱帖推薦 [查看全部] | 作者 | 回/看 | 最后發(fā)表 | |
|---|---|---|---|---|
|
[考研] 求調(diào)劑 +3 | 暗涌afhb 2026-03-16 | 3/150 |
|
|---|---|---|---|---|
|
[考研] 一志愿吉林大學(xué)材料學(xué)碩321求調(diào)劑 +9 | Ymlll 2026-03-18 | 12/600 |
|
|
[考研]
|
不想起名字112 2026-03-19 | 3/150 |
|
|
[考博] 申博26年 +3 | 八6八68 2026-03-19 | 3/150 |
|
|
[考研] 266求調(diào)劑 +5 | 陽(yáng)陽(yáng)哇塞 2026-03-14 | 10/500 |
|
|
[考研] 材料與化工求調(diào)劑 +7 | 為學(xué)666 2026-03-16 | 7/350 |
|
|
[考研] 085600材料與化工調(diào)劑 324分 +10 | llllkkkhh 2026-03-18 | 12/600 |
|
|
[考研] 一志愿 西北大學(xué) ,070300化學(xué)學(xué)碩,總分287,雙非一本,求調(diào)劑。 +3 | 晨昏線與星海 2026-03-19 | 3/150 |
|
|
[考研] 346求調(diào)劑[0856] +3 | WayneLim327 2026-03-16 | 6/300 |
|
|
[考研] 材料工程專碩調(diào)劑 +5 | 204818@lcx 2026-03-17 | 6/300 |
|
|
[考研] 295求調(diào)劑 +3 | 一志愿京區(qū)211 2026-03-18 | 5/250 |
|
|
[考研] 085601專碩,總分342求調(diào)劑,地區(qū)不限 +5 | share_joy 2026-03-16 | 5/250 |
|
|
[考研] 280求調(diào)劑 +6 | 咕嚕曉曉 2026-03-18 | 7/350 |
|
|
[考研] 334求調(diào)劑 +3 | 志存高遠(yuǎn)意在機(jī)?/a> 2026-03-16 | 3/150 |
|
|
[考研] 考研化學(xué)學(xué)碩調(diào)劑,一志愿985 +4 | 張vvvv 2026-03-15 | 6/300 |
|
|
[考研] 332求調(diào)劑 +6 | Zz版 2026-03-13 | 6/300 |
|
|
[考研] 一志愿蘇州大學(xué)材料工程(085601)專碩有科研經(jīng)歷三項(xiàng)國(guó)獎(jiǎng)兩個(gè)實(shí)用型專利一項(xiàng)省級(jí)立項(xiàng) +6 | 大火山小火山 2026-03-16 | 8/400 |
|
|
[論文投稿] 有沒有大佬發(fā)小論文能帶我個(gè)二作 +3 | 增銳漏人 2026-03-17 | 4/200 |
|
|
[考研] 材料與化工 323 英一+數(shù)二+物化,一志愿:哈工大 本人本科雙一流 +4 | 自由的_飛翔 2026-03-13 | 5/250 |
|
|
[考研] 297求調(diào)劑 +4 | 學(xué)海漂泊 2026-03-13 | 4/200 |
|