在 dymola 中初始化期间出错但以成功结束 [英] Error during initialization in dymola but ended with success

查看:25
本文介绍了在 dymola 中初始化期间出错但以成功结束的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在模拟我在 dymola 中构建的模型时,它以一些有关初始化的错误开始,但以成功结束.这是否意味着非线性求解器成功地处理了错误?

When simulating the model I build in dymola, it started with some error about initialization but ended with a success. Does this mean the nonlinear solver handled the error successfully or not?

推荐答案

在初始化期间,求解器正在使用例如搜索一组一致的变量牛顿法.这样做时,可能会发生变量超出其有效范围的情况.在您的情况下,这意味着应计算负数的平方根.求解器识别出这个问题,跳过该点的计算并打印您看到的消息.之后它尝试继续使用其他值(在尝试处理此问题"中).在您的情况下,算法成功执行此操作,这就是您的模拟成功启动和完成的原因.

During the initialization the solver is searching for a consistent set of variables using e.g. Newton's method. While doing this it can happen, that variables get out of their valid range. In your case, this means that the square root of a negative number shall be computed. The solver recognizes this problem, skips the computation of this point and prints the message you see. Afterwards it tries to continue with other values (in the "attempt to handle this problem"). In your case the algorithm succeeds in doing so, which is why your simulation is started and finished successfully.

如果您想避免此类消息,为迭代中使用的变量设置合适的 start 值会有所帮助.作为更高级的选项,您可以尝试使用描述的 homotopy 运算符 此处.此处列出了其他可能性.

If you want to avoid such messages, it can help to set suitable start values for the variables used in the iteration. As a more advanced option you could try to use the homotopy operator described here. Other possibilities are listed here.

这篇关于在 dymola 中初始化期间出错但以成功结束的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆