| 查看: 3847 | 回復(fù): 16 | ||||
轉(zhuǎn)石千仞金蟲 (正式寫手)
擊破長空
|
[求助]
DEFINE_ADJUST()到底能否將溫度邊界條件上的溫度值更新? 已有1人參與
|
|||
|
如題,我在一個(gè)壁面設(shè)置定壁溫邊界條件,然后,我要根據(jù)計(jì)算,采用在DEFINE_ADJUST()里賦值給F_T(f,t)來改變這個(gè)壁溫,現(xiàn)在發(fā)現(xiàn)溫度邊界值并不能改變! 但幫助上說DEFINE_ADJUST()是可以做到的! 請問是什么問題? |
fluent仿真問題。 | Fluent |

金蟲 (正式寫手)
擊破長空

金蟲 (小有名氣)
金蟲 (正式寫手)
擊破長空
|
你好!代碼如下,按你的思路,應(yīng)該怎么作出修改呢?萬分感謝! DEFINE_ADJUST(refresh_the_boundary,domain) { Thread *t; face_t f; domain=Get_Domain(1); thread_loop_f(t,domain) { if(THREAD_ID(t)==boundary_ID) { begin_f_loop(f,t) { //refresh the value of temperature-boundary F_T(f,t)=F_UDMI(f,t,2); } end_f_loop(f,t) } } } |

金蟲 (正式寫手)
擊破長空
|
按照幫助上說明,這個(gè)宏應(yīng)該是可以做到這個(gè)功能的,只是我反復(fù)實(shí)現(xiàn)不了。 我的代碼如下:請求指點(diǎn)一二~~萬分感謝,大神~~ DEFINE_ADJUST(refresh_the_boundary,domain) { Thread *t; face_t f; domain=Get_Domain(1); thread_loop_f(t,domain) { if(THREAD_ID(t)==boundary_ID) { begin_f_loop(f,t) { //refresh the value of temperature-boundary F_T(f,t)=F_UDMI(f,t,2); } end_f_loop(f,t) } } } |

|
不知道你在幫助上的哪里看到這個(gè)宏是可以做到這個(gè)功能的。有對應(yīng)的例子嗎? 可否告訴我一下? 反正我個(gè)人印象中是不能做到的。另外boundary_ID沒有值,F(xiàn)_UDMI(f,t,2) 也沒有值。可能你的代碼沒全貼出來吧 |
金蟲 (正式寫手)
擊破長空
送紅花一朵 |
哦,忘了說明了。那兩個(gè)值都是有的,我沒有貼全代碼。 附幫助: For example, you can use DEFINE_ADJUST to modify flow variables(e.g., velocities,pressure) and compute integrals. You can also use it to integrate a scalar quantity over a domain and adjust a boundary condition based on the result. A function that is defined using DEFINE_ADJUST executes at every iteration and is called at the beginning of every iteration before transport equations aire solved. 上面有一句是可以基于去處結(jié)果適應(yīng)一個(gè)邊界條件,按理,應(yīng)該是可以做到了。望交流~~ |

金蟲 (正式寫手)
擊破長空

| 最具人氣熱帖推薦 [查看全部] | 作者 | 回/看 | 最后發(fā)表 | |
|---|---|---|---|---|
|
[考研] 311求調(diào)劑 +9 | 冬十三 2026-03-15 | 10/500 |
|
|---|---|---|---|---|
|
[考研] 302求調(diào)劑 +9 | 負(fù)心者當(dāng)誅 2026-03-11 | 9/450 |
|
|
[考研] 26考研求調(diào)劑 +6 | 丶宏Sir 2026-03-13 | 6/300 |
|
|
[考研] 08工科 320總分 求調(diào)劑 +4 | 梨花珞晚風(fēng) 2026-03-17 | 4/200 |
|
|
[考研] 275求調(diào)劑 +4 | 太陽花天天開心 2026-03-16 | 4/200 |
|
|
[考研] 302求調(diào)劑 +4 | 小賈同學(xué)123 2026-03-15 | 8/400 |
|
|
[考研] 材料與化工304求B區(qū)調(diào)劑 +7 | 邱gl 2026-03-11 | 8/400 |
|
|
[考研] 考研調(diào)劑 +3 | 淇ya_~ 2026-03-17 | 5/250 |
|
|
[考研]
|
zhouzhen654 2026-03-16 | 3/150 |
|
|
[考研] 326求調(diào)劑 +4 | 諾貝爾化學(xué)獎(jiǎng)覬?/a> 2026-03-15 | 7/350 |
|
|
[考研] 311求調(diào)劑 +5 | 26研0 2026-03-15 | 5/250 |
|
|
[教師之家] 焦慮 +7 | 水冰月月野兔 2026-03-13 | 9/450 |
|
|
[考研] 一志愿哈工大材料324分求調(diào)劑 +5 | 閆旭東 2026-03-14 | 5/250 |
|
|
[考研] 材料080500調(diào)劑求收留 +3 | 一顆meteor 2026-03-13 | 3/150 |
|
|
[考研] 332求調(diào)劑 +3 | zjy101327 2026-03-11 | 6/300 |
|
|
[考研] 308求調(diào)劑 +5 | 是Lupa啊 2026-03-11 | 5/250 |
|
|
[考研] 求材料調(diào)劑 +5 | 隔壁陳先生 2026-03-12 | 5/250 |
|
|
[考研] (081700)化學(xué)工程與技術(shù)-298分求調(diào)劑 +12 | 11啦啦啦 2026-03-11 | 35/1750 |
|
|
[考研] 一志愿211化學(xué)學(xué)碩310分求調(diào)劑 +8 | 努力奮斗112 2026-03-12 | 9/450 |
|
|
[考研] 材料301分求調(diào)劑 +5 | Liyouyumairs 2026-03-12 | 5/250 |
|