下面的模拟是一个弹跳球模型 . 而不是将状态端口连接到确定初始条件,而是有线积分器输出 . 显示第一个时间步之后的结果,初始条件块的输出为零 . 为什么?
单步执行模型时,在模型的底部有一个指向 View diagnostics 的超链接 . 在诊断中,您将看到以下消息:
View diagnostics
Detected algebraic loop path(s) through integrator reset or IC ports. Results may not be intuitive (see documentation). Use integrator state port to avoid algebraic loops.
注意 Results may not be intuitive 部分 . 基本上代数循环求解器会覆盖IC块,您需要使用状态端口来反馈初始条件 .
Results may not be intuitive
1 回答
单步执行模型时,在模型的底部有一个指向
View diagnostics
的超链接 . 在诊断中,您将看到以下消息:注意
Results may not be intuitive
部分 . 基本上代数循环求解器会覆盖IC块,您需要使用状态端口来反馈初始条件 .