Session workflow
eMachineSim.Session は、同じ model を使って条件を変更しながら解析するための workflow です。
基本形
import eMachineSim
session = eMachineSim.Session()
session.initialize(input_json, run_directory)
result = session.solve()
session.finalize()
条件変更
session.update_input({
"thermal_network": {
"gap_thermal_couplings": [
{
"name": "main_airgap_coupling",
"mode": "nu",
"nu": 1.0,
}
]
}
})
result = session.solve()
使いどころ
- gap heat-transfer coefficient を変更して sensitivity を見る
- heat source を変えながら thermal balance を確認する
- structural load condition を変えて結果を比較する
- Python script から複数ケースを管理する
注意
現時点の public API は、細かい FEM assembly step を分離して操作するよりも、JSON 条件を更新して solve() する使い方を主に想定しています。