| 5 | 1/1 | 返回列表 |
| 查看: 775 | 回復(fù): 2 | |||
| 當(dāng)前只顯示滿足指定條件的回帖,點(diǎn)擊這里查看本話題的所有回帖 | |||
無極士金蟲 (小有名氣)
|
[交流]
【求助】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。 請問大俠幫忙解答一下? 在這在其中編輯取余數(shù)的符號“%”,為什么不能用? [ Last edited by nono2009 on 2010-8-8 at 06:35 ] |
金蟲 (小有名氣)
|
修改為以下程序:可通過編譯。 #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) } |
| 最具人氣熱帖推薦 [查看全部] | 作者 | 回/看 | 最后發(fā)表 | |
|---|---|---|---|---|
|
[考研] 356求調(diào)劑 +3 | gysy?s?a 2026-03-28 | 3/150 |
|
|---|---|---|---|---|
|
[考研] 學(xué)碩274求調(diào)劑 +9 | Li李魚 2026-03-26 | 9/450 |
|
|
[考研] 343求調(diào)劑 +5 | 愛羈絆 2026-03-28 | 5/250 |
|
|
[考研] 083000學(xué)碩274求調(diào)劑 +8 | Li李魚 2026-03-26 | 8/400 |
|
|
[考研] 283求調(diào)劑 +3 | A child 2026-03-28 | 3/150 |
|
|
[考研] 320分,材料與化工專業(yè),求調(diào)劑 +9 | 一定上岸aaa 2026-03-27 | 13/650 |
|
|
[考研]
|
y7czhao 2026-03-26 | 10/500 |
|
|
[考研] 346求調(diào)劑 一志愿070303有機(jī)化學(xué) +3 | 蘿卜燉青菜 2026-03-28 | 3/150 |
|
|
[考研] 0856求調(diào)劑 +11 | zhn03 2026-03-25 | 12/600 |
|
|
[考研] 085602 307分 求調(diào)劑 +7 | 不知道叫什么! 2026-03-26 | 7/350 |
|
|
[考研] 材料求調(diào)劑一志愿哈工大324 +7 | 閆旭東 2026-03-28 | 9/450 |
|
|
[考研] 求調(diào)劑 +8 | 張zz111 2026-03-27 | 9/450 |
|
|
[考研] 一志愿華東理工大學(xué)081700,初試分?jǐn)?shù)271 +6 | kotoko_ik 2026-03-23 | 7/350 |
|
|
[考研] 085601 材料工程 313分 求調(diào)劑 +5 | Ong3 2026-03-27 | 5/250 |
|
|
[考研] 321求調(diào)劑 +6 | wasdssaa 2026-03-26 | 6/300 |
|
|
[考研] 321求調(diào)劑 +6 | Ymlll 2026-03-24 | 6/300 |
|
|
[考研] 求b區(qū)院校調(diào)劑 +4 | 周56 2026-03-24 | 5/250 |
|
|
[考研] 一志愿吉林大學(xué)材料與化工303分求調(diào)劑 +4 | 為學(xué)666 2026-03-24 | 4/200 |
|
|
[考研] 化工專碩求調(diào)劑 +3 | question挽風(fēng) 2026-03-24 | 3/150 |
|
|
[考研] 341求調(diào)劑(一志愿湖南大學(xué)070300) +5 | 番茄頭--- 2026-03-22 | 6/300 |
|