How do I solve the convergence problem in Simscape?

The layout is a modification of the example layout 'Steam Rankine Cycle' in Simscape.
When I run to find the steady solution first, I get a series of errors saying:
I have tried to remove the priority setting from all variables, but it fails to give me a converged steady solution.
Any recommendations on how to tackle this problem?
Thank you in advance.

回答(1 个)

Hello,
I am assuming that you are sharing entire error message in the snap. Based on the error message you have shared, looks like issues are concentrated in the subsystem "Steam Condenser". I am assuming you are using default initialization for individual components inside the block.
Simscape/simulink has a robust solver to handle initial conditions, yet it may fail to solve when connected components result into an inconsistent state for entire system, that is being modeled. While initializing, try avoiding huge gradients of physical signals between connected components (e.g. initial temperature of 273K and 373K at connected nodes). Additionally you can refer to the Troubleshooting Simulation Errors section of the documentation.

类别

帮助中心File Exchange 中查找有关 Simscape 的更多信息

产品

Community Treasure Hunt

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

Start Hunting!

Translated by