| 5 | 1/1 | 返回列表 |
| 查看: 9418 | 回復(fù): 6 | ||
| 當前只顯示滿足指定條件的回帖,點擊這里查看本話題的所有回帖 | ||
[求助]
comsol中分段函數(shù)的輸入 已有3人參與
|
||
| 請教朋友,comsol 里溫度是矩形波,簡單地說,t=0-12h, 溫度=298K, t=12-24h,溫度=308K,在參數(shù)設(shè)置里怎么輸入?? 我看到有個論壇上說是T=298*(t>=0 & t<=12)+308*(t>12 & t<=24) , 但輸入后提示不對。 不知道如何處理??萬分感謝。 還看到有用 int1(T) 的,這個可以嗎??這個函數(shù)什么意思? |

鐵桿木蟲 (職業(yè)作家)

新蟲 (初入文壇)
木蟲 (小有名氣)
|
軟件界面,help>search "step function" 里面有詳細說明: 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.不過對于瞬態(tài)問題求解,為了保證這階躍點附近點的結(jié)果精度以及模型的收斂,不建議直接step階躍函數(shù)。函數(shù)說分段的,這斷點處沒辦法微分運算。需要高級選項做平滑處理。 在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ù)了, 當然也可以選用你提到的interpolation插值函數(shù) 相應(yīng)的 t f(t) 填入關(guān)鍵點,如 0,298; 11.95,298;12,303; 12.05,308; 24,308. 會生成需要的函數(shù) 以后調(diào)用int1 函數(shù) 總之需要避免劇烈的突變造成的函數(shù)不連續(xù),真實情況溫度也不是跳變的。 |
金蟲 (小有名氣)
| 最具人氣熱帖推薦 [查看全部] | 作者 | 回/看 | 最后發(fā)表 | |
|---|---|---|---|---|
|
[考研] 化學(xué)308分調(diào)劑 +7 | 你好明天你好 2026-03-30 | 8/400 |
|
|---|---|---|---|---|
|
[基金申請] 面上5B能上會嗎? +7 | redcom 2026-03-29 | 7/350 |
|
|
[考研] 283求調(diào)劑(080500) +14 | A child 2026-03-27 | 14/700 |
|
|
[考研] 化學(xué)工程085602 305分求調(diào)劑 +25 | RichLi_ 2026-03-25 | 25/1250 |
|
|
[考研] 一志愿北京工業(yè)大學(xué),324分求調(diào)劑 +6 | 零八# 2026-03-28 | 6/300 |
|
|
[考研] 311求調(diào)劑 +6 | 冬十三 2026-03-24 | 6/300 |
|
|
[考研] 294分080500材料科學(xué)與工程求調(diào)劑 +8 | 柳溪邊 2026-03-26 | 8/400 |
|
|
[考研] 329求調(diào)劑 +10 | 鈕恩雪 2026-03-25 | 10/500 |
|
|
[考研] 291求調(diào)劑 +5 | Y-cap 2026-03-29 | 6/300 |
|
|
[考研] 275求調(diào)劑 +10 | jjjjjjjjjjl 2026-03-27 | 10/500 |
|
|
[考研] 298調(diào)劑 +3 | jiyingjie123 2026-03-27 | 3/150 |
|
|
[考研] 求調(diào)劑 一志愿 本科 北科大 化學(xué) 343 +6 | 13831862839 2026-03-24 | 7/350 |
|
|
[考研] 調(diào)劑 +4 | 柚柚yoyo 2026-03-26 | 4/200 |
|
|
[考研] 281求調(diào)劑 +6 | Koxui 2026-03-24 | 7/350 |
|
|
[考研] 打過很多競賽,085406控制工程300分,求調(diào)劑 +3 | askeladz 2026-03-26 | 3/150 |
|
|
[考研] 材料與化工304求B區(qū)調(diào)劑 +3 | 邱gl 2026-03-25 | 3/150 |
|
|
[考研] 材料專碩 335 分求調(diào)劑 +4 | 拒絕冷暴力 2026-03-25 | 4/200 |
|
|
[考研] 生物學(xué)學(xué)碩求調(diào)劑 +7 | 小羊睡著了? 2026-03-23 | 10/500 |
|
|
[考研] 求調(diào)劑 +6 | 研研,接電話 2026-03-24 | 7/350 |
|
|
[考研] 材料專碩331求調(diào)劑 +4 | 鮮當牛 2026-03-24 | 4/200 |
|