| 3 | 1/1 | 返回列表 |
| 查看: 772 | 回復(fù): 2 | |||
無(wú)極士金蟲(chóng) (小有名氣)
|
[交流]
【求助】fluent udf 變熱流邊界【已解決】 已有2人參與
|
|
#include "udf.h" DEFINE_PROFILE(unsteady_temperature, thread, position) { real t, temperature; face_t f; begin_f_loop(f, thread) { t = RP_Get_Real("flow-time" ;if (0<(t/3600)<=10) temperature = 1470; F_PROFILE(f, thread, position) = temperature; else temperature = 0; } F_PROFILE(f, thread, position) = temperature; end_f_loop(f, thread) } 這時(shí)我的代碼。 但是在運(yùn)行的時(shí)候,老是提示 else這個(gè)有錯(cuò)誤:pase error。 請(qǐng)問(wèn)大俠幫忙解答一下? 在這在其中編輯取余數(shù)的符號(hào)“%”,為什么不能用? [ Last edited by nono2009 on 2010-8-8 at 06:35 ] |
|
修改為以下程序:可通過(guò)編譯。 #include "udf.h" DEFINE_PROFILE(unsteady_temperature, thread, position) { real t, temperature; face_t f; begin_f_loop(f, thread) { t = RP_Get_Real("flow-time" ;if (0<(t/3600)<=10) temperature = 1470; else temperature = 0; } F_PROFILE(f, thread, position) = temperature; end_f_loop(f, thread) } |
金蟲(chóng) (小有名氣)
| 3 | 1/1 | 返回列表 |
| 最具人氣熱帖推薦 [查看全部] | 作者 | 回/看 | 最后發(fā)表 | |
|---|---|---|---|---|
|
[考研]
|
2117205181 2026-03-21 | 8/400 |
|
|---|---|---|---|---|
|
[考研] 0856材料專碩353求調(diào)劑 +4 | NIFFFfff 2026-03-20 | 4/200 |
|
|
[考研] 一志愿華中科技大學(xué)071000,求調(diào)劑 +4 | 沿岸有貝殼6 2026-03-21 | 4/200 |
|
|
[考研] 286求調(diào)劑 +10 | Faune 2026-03-21 | 10/500 |
|
|
[考研] 材料學(xué)碩301分求調(diào)劑 +7 | Liyouyumairs 2026-03-21 | 7/350 |
|
|
[考研] 材料求調(diào)劑 +5 | @taotao 2026-03-21 | 5/250 |
|
|
[考研] 材料工程專碩 348分求調(diào)劑 +3 | 冬辭. 2026-03-17 | 5/250 |
|
|
[考研] 268求調(diào)劑 +9 | 簡(jiǎn)單點(diǎn)0 2026-03-17 | 9/450 |
|
|
[考研] 265求調(diào)劑 +12 | 梁梁校校 2026-03-19 | 14/700 |
|
|
[考研] 083200學(xué)碩321分一志愿暨南大學(xué)求調(diào)劑 +3 | innocenceF 2026-03-17 | 3/150 |
|
|
[考研] 一志愿重慶大學(xué)085700資源與環(huán)境專碩,總分308求調(diào)劑 +3 | 墨墨漠 2026-03-18 | 3/150 |
|
|
[考研] 296求調(diào)劑 +6 | www_q 2026-03-18 | 10/500 |
|
|
[考研] 求調(diào)劑一志愿南京航空航天大學(xué)289分 +3 | @taotao 2026-03-19 | 3/150 |
|
|
[考研] 一志愿吉林大學(xué)材料學(xué)碩321求調(diào)劑 +11 | Ymlll 2026-03-18 | 15/750 |
|
|
[考研] 261求B區(qū)調(diào)劑,科研經(jīng)歷豐富 +3 | 牛奶很忙 2026-03-20 | 4/200 |
|
|
[考研] 0703化學(xué)調(diào)劑 +5 | pupcoco 2026-03-17 | 8/400 |
|
|
[考研] 277調(diào)劑 +5 | 自由煎餅果子 2026-03-16 | 6/300 |
|
|
[考研] 一志愿南京大學(xué),080500材料科學(xué)與工程,調(diào)劑 +4 | Jy? 2026-03-16 | 4/200 |
|
|
[考研]
|
zhouzhen654 2026-03-16 | 3/150 |
|
|
[考研] 333求調(diào)劑 +3 | 文思客 2026-03-16 | 7/350 |
|