필터 지우기
필터 지우기

Error - 'Argument of log must be positive'

조회 수: 7 (최근 30일)
Aled
Aled 2021년 1월 13일
댓글: Om 2024년 6월 11일
Hi all,
I am trying to run a simple model to assess mass flow and temperature in a chain of 3-port gas volumes taken from the ventilation custom libary. However i get an error when running the simulation, see attached images.
The mass flow has been set to 0.5kg/s and a temperature of 200degC used at the reservoir and temperature input to the volume blocks.
Thanks
  댓글 수: 1
Om
Om 2024년 6월 11일
Hello,
Does your custom library have a math function block (which has logarithm selected) anywhere?. The error message is indicating an error in the three port vertical section of your custom library.
It seems as if you are trying to take the log of a negative number there, which is not allowed.
You can check its documentation here:
Thanks

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

답변 (0개)

카테고리

Help CenterFile Exchange에서 Get Started with Simulink에 대해 자세히 알아보기

제품

Community Treasure Hunt

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

Start Hunting!

Translated by