Why do I receive an initialization error when creating custom SimScape 3.8 (R2012b) components?

3 views (last 30 days)
I have created a custom library with pneumatic blocks using Simscape Language in Simscape 3.8 (R2012b).
I am able to create the library successfully with the desired thermal-fluid blocks. However, when I try to
simulate the model with these blocks, I receive the following error message.
Nonlinear solver: Linear Algebra error. Failed to solve using iteration matrix. Initial conditions solve failed to
converge. Equations of one or more components may be dependent or inconsistent. This can cause
problems in transient initialization. Here is the set of components involved: ...

Accepted Answer

MathWorks Support Team
MathWorks Support Team on 20 May 2013
While this error could be caused by a number of issues, with respect to thermal and fluid domains in particular, you may want to introduce small leakages into the system to prevent zero-flow conditions. These zero-flow conditions, depending on how you model the domain, can cause singularities as seen in this error.

More Answers (0)

Categories

Find more on Creating Custom Components and Libraries in Help Center and File Exchange

Products


Release

R2012b

Community Treasure Hunt

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

Start Hunting!