使用“在模型中保存起始值"帮助 Dymola 收敛的选项 [英] Using "Save start values in the model" option to help the convergence in Dymola

查看:21
本文介绍了使用“在模型中保存起始值"帮助 Dymola 收敛的选项的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在 dymola 中构建了一个模型.尽管初始化过程中出现了一些错误,但最终计算成功.

I build a model in dymola. Even though there are some errors during the initialization process, but the calculation succeeded at last.

模型成功收敛后,我尝试使用Save start values in the model"选项来获取存储到模型中的正确迭代变量strat值,以便模型在下一次计算中不会出错.但是在我这样做并再次尝试进行计算之后,我仍然遇到了同样的错误.

After the model converged successfully, I tried to use the "Save start values in the model" option to get the right iteration variable strat values stored into the model so that the model would NOT get errors in the next calculation. But after I did this and tried to do calculation once more, I still got the same errors.

所以,我的问题是:我可以使用保存模型中的起始值"来帮助收敛吗?如果是这样,我该怎么做?

So, my question is: Could I use the "Save start values in the model" to help convergence? If so, how should I do it?

推荐答案

原因是我把某个参数的fixed属性设置为false,把某个变量的fixed属性设置为true,这样我就可以用这个变量的值来初始化系统,并计算相应的参数.当使用在模型中保存起始值"选项时,它会将结果存储到参数的起始属性中,但其值属性将保持不变.当我再次进行模拟时,Dymola 不会使用参数的 start 属性,它仍会使用参数的 value 属性.手动修改value属性后,就没有错误了.

The reason is I set the fixed attribute of some parameter as false, the fixed attribute of some variable as true, so I could use the variable's value to initialize the system, and the corresponding parameter would be calculated. when using "save start values in the model" option, it would store the result into the parameter's start attribute, but its value attribute would keep unchanged. When I do simulation again, Dymola would NOT use the parameter's start attribute, it would still use the parameter's value attribute. After I change the value attribute manually, there would be no error anymore.

这篇关于使用“在模型中保存起始值"帮助 Dymola 收敛的选项的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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