How do I solve the convergence problem in Simscape?

9 views (last 30 days)
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.

Answers (1)

Shachindra
Shachindra on 8 Nov 2023
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.

Categories

Find more on Discrete Events and Mode Charts in Help Center and File Exchange

Products

Community Treasure Hunt

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

Start Hunting!