Simscape thermal mass discrete model

조회 수: 10 (최근 30일)
lalumet
lalumet 2015년 1월 16일
Hi, I'm trying to create a model of a lithium battery that will run with a discrete solver. The last hurdle I've come across seems to be the Thermal Mass block which I am using to simulate heat loss in the battery. The Thermal Mass block contains this line : Q == mass * sp_heat * T.der;. The T.der part seems to be what is preventing my model from running with a discrete solver as it is a continuous time derivative function. I have the following questions:
  • Is there a discrete alternative to the Thermal Mass block?
  • If not, is it possible to replace T.der by a discrete counterpart?
  • Is is possible to incorporate the Discrete Differentiator block from the Simulink library into the Thermal Mass source code?
Thanks in advance.

답변 (1개)

Javier Gazzarri
Javier Gazzarri 2015년 2월 6일
Dear Lalumet,
A discrete solver can be used if you set up "Use Local Solver" in the Simscape Solver configuration block. Please see the simple example attached.
Please let me know if this solves your problem.
Best regards,
Javier
  댓글 수: 1
Duilio Graciano Diniz Costa
Duilio Graciano Diniz Costa 2020년 4월 8일
Hi Javier Gazzarri,
Could you please attach the example? I think that have the same problem.
thank you very much,
Duilio

댓글을 달려면 로그인하십시오.

카테고리

Help CenterFile Exchange에서 Elements에 대해 자세히 알아보기

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by