How to ensure convergence during the initialization of the nonlinear system in Dymola

跟風遠走 提交于 2020-01-06 05:21:06

问题


Is there a guide for increasing the ability of convergence during the initialization of the nonlinear system in Dymola? Usually, the connector contains start values, but they are not always suited for the model I build, so there might be a divergence issue during the initialization. How could I avoid this issue?


回答1:


The Dymola User Manual Volume 1 has several chapters, which deal with the initialization of nonlinear systems. In Dymola 2020 the chapters are:

5.6.8 Initial guesses for nonlinear equations in the model during simulation
5.8.3 Discriminating start values
5.8.4 Debugging failed initialization

You can also try to provide min and max values for certain variables and activate the check during simulation, as described in

5.6.10 Bound checking for variables




回答2:


By comparing two different power plant libraries, I think the best practice is to set the start values of each attribute of every connector in the component in the initial equation part. If so, despite that dymola choose which variable as the iteration variable, it would ensure convergence.

Here is a simple example I answered in another question: Non-liner solver couldn't converge during the initialization in Dymola



来源:https://stackoverflow.com/questions/59024746/how-to-ensure-convergence-during-the-initialization-of-the-nonlinear-system-in-d

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!