| 7 | 1/1 | 返回列表 |
| 查看: 9392 | 回復(fù): 6 | ||
[求助]
comsol中分段函數(shù)的輸入 已有3人參與
|
| 請(qǐng)教朋友,comsol 里溫度是矩形波,簡(jiǎn)單地說,t=0-12h, 溫度=298K, t=12-24h,溫度=308K,在參數(shù)設(shè)置里怎么輸入?? 我看到有個(gè)論壇上說是T=298*(t>=0 & t<=12)+308*(t>12 & t<=24) , 但輸入后提示不對(duì)。 不知道如何處理??萬分感謝。 還看到有用 int1(T) 的,這個(gè)可以嗎??這個(gè)函數(shù)什么意思? |

新蟲 (初入文壇)
鐵桿木蟲 (職業(yè)作家)

木蟲 (小有名氣)
|
軟件界面,help>search "step function" 里面有詳細(xì)說明: PARAMETERS Enter a Location (s0) of the step. The value of the step function is the initial level for input values that are smaller than the location of the step. In the From field, enter a start level (Lstart . In the To field, enter a final level (Lend). For an input variable s, a start location s0, and initial level Lstart and a final level Lend, the step function’s value is Lstart for s < s0 and Lend for s ≥ s0.不過對(duì)于瞬態(tài)問題求解,為了保證這階躍點(diǎn)附近點(diǎn)的結(jié)果精度以及模型的收斂,不建議直接step階躍函數(shù)。函數(shù)說分段的,這斷點(diǎn)處沒辦法微分運(yùn)算。需要高級(jí)選項(xiàng)做平滑處理。 在global>definitions>functions> step function name step1 parameters location 12; from 298; to 308 smoothing size of transition zone 0.05或者更小,number of continuous derivatives 2或者1 后面調(diào)用step1 函數(shù)了, 當(dāng)然也可以選用你提到的interpolation插值函數(shù) 相應(yīng)的 t f(t) 填入關(guān)鍵點(diǎn),如 0,298; 11.95,298;12,303; 12.05,308; 24,308. 會(huì)生成需要的函數(shù) 以后調(diào)用int1 函數(shù) 總之需要避免劇烈的突變?cè)斐傻暮瘮?shù)不連續(xù),真實(shí)情況溫度也不是跳變的。 |
金蟲 (小有名氣)
新蟲 (小有名氣)
木蟲 (正式寫手)
| 7 | 1/1 | 返回列表 |
| 最具人氣熱帖推薦 [查看全部] | 作者 | 回/看 | 最后發(fā)表 | |
|---|---|---|---|---|
|
[考研] 一志愿華中科技大學(xué),080502,354分求調(diào)劑 +4 | 守候夕陽CF 2026-03-18 | 4/200 |
|
|---|---|---|---|---|
|
[考研] 0703化學(xué)調(diào)劑,求各位老師收留 +9 | 秋有木北 2026-03-14 | 9/450 |
|
|
[考研] 一志愿中國(guó)海洋大學(xué),生物學(xué),301分,求調(diào)劑 +4 | 1孫悟空 2026-03-17 | 4/200 |
|
|
[考研] 一志愿西南交大,求調(diào)劑 +4 | 材化逐夢(mèng)人 2026-03-18 | 4/200 |
|
|
[考研] 0703化學(xué)336分求調(diào)劑 +6 | zbzihdhd 2026-03-15 | 7/350 |
|
|
[考研] 301求調(diào)劑 +9 | yy要上岸呀 2026-03-17 | 9/450 |
|
|
[考研] 308求調(diào)劑 +4 | 是Lupa啊 2026-03-16 | 4/200 |
|
|
[考研] 290求調(diào)劑 +3 | p asserby. 2026-03-15 | 4/200 |
|
|
[考研] 材料與化工專碩調(diào)劑 +5 | heming3743 2026-03-16 | 5/250 |
|
|
[考研] 材料工程專碩274一志愿211求調(diào)劑 +6 | 薛云鵬 2026-03-15 | 6/300 |
|
|
[考研] 0854控制工程 359求調(diào)劑 可跨專業(yè) +3 | 626776879 2026-03-14 | 9/450 |
|
|
[考研] 304求調(diào)劑 +5 | 素年祭語 2026-03-15 | 5/250 |
|
|
[考研] 材料與化工 323 英一+數(shù)二+物化,一志愿:哈工大 本人本科雙一流 +4 | 自由的_飛翔 2026-03-13 | 5/250 |
|
|
[基金申請(qǐng)] 現(xiàn)在如何回避去年的某一個(gè)專家,不知道名字 +3 | zk200107 2026-03-12 | 6/300 |
|
|
[考研] 復(fù)試調(diào)劑 +3 | 呼呼?~+123456 2026-03-14 | 3/150 |
|
|
[考研] 307求調(diào)劑 +5 | 超級(jí)伊昂大王 2026-03-12 | 5/250 |
|
|
[考研] 工科材料085601 279求調(diào)劑 +8 | 困于星晨 2026-03-12 | 10/500 |
|
|
[考研] 一志愿211化學(xué)學(xué)碩310分求調(diào)劑 +8 | 努力奮斗112 2026-03-12 | 9/450 |
|
|
[考博] 福州大學(xué)楊黃浩課題組招收2026年專業(yè)學(xué)位博士研究生,2026.03.20截止 +3 | Xiangyu_ou 2026-03-12 | 3/150 |
|
|
[考研] 081200-11408-276學(xué)碩求調(diào)劑 +3 | 崔wj 2026-03-12 | 4/200 |
|