Simscape model yeilds Simulink "State Derivative Fail" Error

3 ビュー (過去 30 日間)
rick
rick 2011 年 11 月 29 日
回答済み: Sabin 2025 年 12 月 23 日 17:24
Uing the Simscape Pneumatic Piston Chamber Block in a simulation runs fine with area, extension and dead volume paramters set to .2m^2, 1m and 1e-5 respectivly. When I change to my actual device parameters of 28cm^2, 2.54cm and .7cm Simulink reports a State Derivative Fail error.
Why?

回答 (1 件)

Sabin
Sabin 2025 年 12 月 23 日 17:24
This error indicates numerical instability in the simulation. When using a smaller area and stroke and a much larger dead volume relative to size, the system dynamics will change drastically likely increasing the stiffness. This can cause the solver to fail if the time step is too large or the model is too stiff for the default solver settings. Double-check your units and parameter values for consistency. If that's all correct try reducing the solver step size or switching to a ode23t or daessc solver (introduced in R2021a).

カテゴリ

Help Center および File ExchangeFoundation and Custom Domains についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by