Question-and-Answer Resource for the Building Energy Modeling Community
Get started with the Help page
Ask Your Question

Visualisation of airflow network calculation convergence in E+?

asked 2016-02-04 09:54:14 -0600


Sometimes my airflow network calculations converge, but most of the time they don't. And it doesn't seem to make sense to me. I must admit that I altered some components in the source code, but I don't think they cause the problem.

Does anyone know a way to visualise the residuals in an energyplus airflow network calculation? ( Or to save the iteration steps to a textfile. )


edit retag flag offensive close merge delete


Could you be more specific about your modifications?

Jason DeGraw gravatar image Jason DeGraw  ( 2016-02-05 09:16:20 -0600 )edit

Hi Jason, sure. I created a self-regulating vent component that limits the flow through the vent when a maximum dP value is reached. In the cases that do converge this component seems to be working. I am also in the process of creating an advanced hybrid ventilation manager. However the calculations don't reach the point where this is called, so that can't be the problem. I suppose the Newton-Raphson algorithm is not converging because the initial guess is too far away from the solution. By looking at the residuals I hope to get a better insight.

BBel gravatar image BBel  ( 2016-02-05 09:36:02 -0600 )edit

If that is what you are doing, then I wouldn't be too sure that your modifications are not the problem. It depends on exactly how you've changed things, but it could (effectively) decouple parts of the flow network in a way that the solver does not expect. But good luck!

Jason DeGraw gravatar image Jason DeGraw  ( 2016-02-05 19:15:58 -0600 )edit

1 Answer

Sort by ยป oldest newest most voted

answered 2016-02-05 16:44:57 -0600

Since you're already modifying the source code, you could just write to a file while the program is checking for convergence at the beginning of each iteration. See line 719 in below as an example.

image description

edit flag offensive delete link more


Thanks Aaron. I appreciate it. For me this is a good solution. I was already doing something similar with cout to the screen at the same line for both absolute and relative convergence. However I was hoping someone would have a more general solution that would be useful for other forum members without changing the source code.

BBel gravatar image BBel  ( 2016-02-05 18:44:06 -0600 )edit

Ok, I don't know of a built-in feature like this, but someone else on the forum might still know. You've probably already seen this too, but check out the int called LIST which controls some built-in reporting. It's hard coded to 0, so you'd have to recompile to change this. It might be a leftover feature from AIRNET that has been disabled. If you continue to have issues with convergence (and you have some time and patience), you may want to look into modifying the solver to the Levenberg-Marquardt algorithm. I've had success at modeling hydronic flow networks with this method.

aaron gravatar image aaron  ( 2016-02-07 13:46:07 -0600 )edit

@aaron. Thanks for the tips!

BBel gravatar image BBel  ( 2016-02-08 02:16:58 -0600 )edit

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Training Workshops

Question Tools

1 follower


Asked: 2016-02-04 09:54:14 -0600

Seen: 279 times

Last updated: Feb 05 '16