| 7 | 1/1 | 返回列表 |
| 查看: 9391 | 回復: 6 | ||
[求助]
comsol中分段函數(shù)的輸入 已有3人參與
|
| 請教朋友,comsol 里溫度是矩形波,簡單地說,t=0-12h, 溫度=298K, t=12-24h,溫度=308K,在參數(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)問題求解,為了保證這階躍點附近點的結果精度以及模型的收斂,不建議直接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ù) 相應的 t f(t) 填入關鍵點,如 0,298; 11.95,298;12,303; 12.05,308; 24,308. 會生成需要的函數(shù) 以后調(diào)用int1 函數(shù) 總之需要避免劇烈的突變造成的函數(shù)不連續(xù),真實情況溫度也不是跳變的。 |
金蟲 (小有名氣)
木蟲 (正式寫手)
| 7 | 1/1 | 返回列表 |
| 最具人氣熱帖推薦 [查看全部] | 作者 | 回/看 | 最后發(fā)表 | |
|---|---|---|---|---|
|
[考研] 266求調(diào)劑 +5 | 陽陽哇塞 2026-03-14 | 9/450 |
|
|---|---|---|---|---|
|
[考研] 08工科 320總分 求調(diào)劑 +5 | 梨花珞晚風 2026-03-17 | 5/250 |
|
|
[考研] 298-一志愿中國農(nóng)業(yè)大學-求調(diào)劑 +7 | 手機用戶 2026-03-17 | 7/350 |
|
|
[考研] 304求調(diào)劑 +12 | 小熊joy 2026-03-14 | 13/650 |
|
|
[考研] 085601求調(diào)劑 +4 | Du.11 2026-03-16 | 4/200 |
|
|
[考研] 302求調(diào)劑 +4 | 小賈同學123 2026-03-15 | 8/400 |
|
|
[考研]
|
zhouzhen654 2026-03-16 | 3/150 |
|
|
[基金申請] 國自科面上基金字體 +6 | iwuli 2026-03-12 | 7/350 |
|
|
[考研] 333求調(diào)劑 +3 | 文思客 2026-03-16 | 7/350 |
|
|
[考研] 304求調(diào)劑 +5 | 素年祭語 2026-03-15 | 5/250 |
|
|
[考研] 一志愿華中師范071000,325求調(diào)劑 +6 | RuitingC 2026-03-12 | 6/300 |
|
|
[考研] 277材料科學與工程080500求調(diào)劑 +3 | 自由煎餅果子 2026-03-16 | 3/150 |
|
|
[考研] 294求調(diào)劑 +3 | Zys010410@ 2026-03-13 | 4/200 |
|
|
[考研] 求材料調(diào)劑 085600英一數(shù)二總分302 前三科235 精通機器學習 一志愿哈工大 +4 | 林yaxin 2026-03-12 | 4/200 |
|
|
[考研] 0703化學求調(diào)劑 +7 | 綠豆芹菜湯 2026-03-12 | 7/350 |
|
|
[考研] 求b區(qū)學校調(diào)劑 +3 | 周56 2026-03-11 | 3/150 |
|
|
[考研] 一志愿211化學學碩310分求調(diào)劑 +8 | 努力奮斗112 2026-03-12 | 9/450 |
|
|
[考研] 290求調(diào)劑 +7 | ADT 2026-03-12 | 7/350 |
|
|
[考研] 328化工專碩求調(diào)劑 +4 | 。,。,。,。i 2026-03-12 | 4/200 |
|
|
[考研] 081200-11408-276學碩求調(diào)劑 +3 | 崔wj 2026-03-12 | 4/200 |
|