| 5 | 1/1 | 返回列表 |
| 查看: 9421 | 回復(fù): 6 | |||
| 當(dāng)前只顯示滿足指定條件的回帖,點(diǎn)擊這里查看本話題的所有回帖 | |||
[求助]
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ù)什么意思? |

木蟲 (小有名氣)
|
軟件界面,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í)情況溫度也不是跳變的。 |
新蟲 (初入文壇)
鐵桿木蟲 (職業(yè)作家)

金蟲 (小有名氣)
| 最具人氣熱帖推薦 [查看全部] | 作者 | 回/看 | 最后發(fā)表 | |
|---|---|---|---|---|
|
[考研] 359求調(diào)劑 +5 | 王了個(gè)楠 2026-03-25 | 5/250 |
|
|---|---|---|---|---|
|
[考研] 348求調(diào)劑 +6 | 小懶蟲不懶了 2026-03-28 | 6/300 |
|
|
[考研] 材料與化工304求B區(qū)調(diào)劑 +4 | 邱gl 2026-03-26 | 7/350 |
|
|
[考研] 290求調(diào)劑 +3 | dfffsar 2026-03-29 | 3/150 |
|
|
[考研] 總分293求調(diào)劑 +8 | 加一一九 2026-03-25 | 11/550 |
|
|
[考研] 一志愿南昌大學(xué)324求調(diào)劑 +5 | hanamiko 2026-03-29 | 5/250 |
|
|
[考研] 352分-085602-一志愿985 +5 | 海納百川Ly 2026-03-29 | 5/250 |
|
|
[考研] 356求調(diào)劑 +3 | gysy?s?a 2026-03-28 | 3/150 |
|
|
[考研] 求調(diào)劑 +7 | 爭(zhēng)取九點(diǎn)睡 2026-03-28 | 8/400 |
|
|
[考研] 本科新能源科學(xué)與工程,一志愿華理能動(dòng)285求調(diào)劑 +7 | AZMK 2026-03-28 | 11/550 |
|
|
[考研]
|
y7czhao 2026-03-26 | 10/500 |
|
|
[考研] 0703化學(xué)求調(diào)劑,各位老師看看我!! +5 | 祁祺祺 2026-03-25 | 5/250 |
|
|
[考研] 086000調(diào)劑 +3 | 7901117076 2026-03-26 | 3/150 |
|
|
[考研] 一志愿上海理工能源動(dòng)力(085800)310分求調(diào)劑 +3 | zhangmingc 2026-03-27 | 4/200 |
|
|
[考研] 復(fù)試調(diào)劑,一志愿南農(nóng)083200食品科學(xué)與工程 +5 | XQTJZ 2026-03-26 | 5/250 |
|
|
[考研] 0703化學(xué)一志愿南京師范大學(xué)303求調(diào)劑 +3 | zzffylgg 2026-03-24 | 3/150 |
|
|
[考研] 調(diào)劑 +4 | 柚柚yoyo 2026-03-26 | 4/200 |
|
|
[考研] 303求調(diào)劑 +6 | 藍(lán)山月 2026-03-25 | 6/300 |
|
|
[考研] 【2026考研調(diào)劑】制藥工程 284分 求相關(guān)專業(yè)調(diào)劑名額 +4 | 袁奐奐 2026-03-25 | 8/400 |
|
|
[考研] 各位老師您好:本人初試372分 +5 | jj涌77 2026-03-25 | 6/300 |
|