what is 'Derivative of state in block at time t is not finite. There may be a singularity in the solution.' error? how to address it?

3 ビュー (過去 30 日間)
Hi
I am trying to simulate a thermal fluid system. As soon as I introduce gas-charged accumulator circled red in the circuit, it gives me following error
An error occurred while running the simulation and the simulation was terminated
Caused by:
Derivative of state 'pumpandpipe13082024b.Gas_Charged_Accumulator_TL.T_I' in block 'pumpandpipe13082024b/Gas-Charged Accumulator (TL)' at time 20.0 is not finite. The simulation will be stopped. There may be a singularity in the solution. If not, try reducing the step size (either by reducing the fixed step size or by tightening the error tolerances)
Also, when I introduce elevation gain from port A to port B in pipes TL circled red, i have the following error
An error occurred while running the simulation and the simulation was terminated
Caused by:
  • Derivative of state 'pumpandpipe13082024b.Centrifugal_Pump_TL1.A.T' in block 'pumpandpipe13082024b/Centrifugal Pump (TL)1' at time 16.666666666666668 is not finite. The simulation will be stopped. There may be a singularity in the solution. If not, try reducing the step size (either by reducing the fixed step size or by tightening the error tolerances)
what do these errors mean?
  4 件のコメント
Muhammad Ali
Muhammad Ali 2024 年 8 月 27 日
If using a stiff solver for fluid systems is almost a must, what would happen in the case of real-time simulation, since one of the requirements for this is to 'Choose a fixed-step solver' [from: https://uk.mathworks.com/company/technical-articles/real-time-simulation-of-physical-systems-using-simscape.html].
correct me if I am wrong: the stiff solver is only available with variable-step solver.
Yifeng Tang
Yifeng Tang 2024 年 8 月 27 日
Simscape local solver is what you'll very very likely to turn on for real-time simulation. It contains implicit solvers designed for handling stiffness to some degree. Of course, you won't have the luxury of reducing time step when needed, so the numerical efficiency of the model may need closer attention. See the link below for the real-time workflow in Simscape:
https://www.mathworks.com/help/simscape/real-time-simulation.html

サインインしてコメントする。

回答 (0 件)

カテゴリ

Help Center および File ExchangeThermal Liquid Library についてさらに検索

タグ

製品


リリース

R2023a

Community Treasure Hunt

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

Start Hunting!

Translated by