# "Maximum number of iterations exceeded"

**URL:** <https://www.simscale.com/forum/t/maximum-number-of-iterations-exceeded/38847>\
**Category:** Project Support\
**Created:** [August 26, 2016, 7:55am UTC](https://www.simscale.com/forum/t/maximum-number-of-iterations-exceeded/38847 "2016-08-26T07:55:48Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![KLemke](https://www.simscale.com/forum/letter_avatar/klemke/32/6_449c533f586939b6e5f246632a46421f.png) [@KLemke](https://www.simscale.com/forum/u/KLemke)\
**Post date:** [August 26, 2016, 7:55am UTC](https://www.simscale.com/forum/t/maximum-number-of-iterations-exceeded/38847/1 "2016-08-26T07:55:48Z")

</div>

Hello,

currently I’m working on a flow simulation for room ventilation. Everytime I try to start the simulation I get the “Maximum number of iterations exceeded” error.

Some points:

- mesh seems fine
- although there I chose a low velocity at the inlets, the velocities are rising up pretty high in some areas.

> **[hot spots by KLemke | SimScale](https://www.simscale.com/projects/KLemke/hot_spots/)**
>
> Hot spots in a room | Simulation project by KLemke

Do you have any ideas?

---

<div class="post-metadata">

**Author:** ![dheiny](https://www.simscale.com/forum/user_avatar/www.simscale.com/dheiny/32/2_2.png) [@dheiny](https://www.simscale.com/forum/u/dheiny)\
**Post date:** [August 26, 2016, 8:54am UTC](https://www.simscale.com/forum/t/maximum-number-of-iterations-exceeded/38847/2 "2016-08-26T08:54:23Z")

</div>

@KLemke,

I have a suspicion - I’ll run a quick test and get back to you.

Best,

David

---

<div class="post-metadata">

**Author:** ![dheiny](https://www.simscale.com/forum/user_avatar/www.simscale.com/dheiny/32/2_2.png) [@dheiny](https://www.simscale.com/forum/u/dheiny)\
**Post date:** [August 26, 2016, 9:40am UTC](https://www.simscale.com/forum/t/maximum-number-of-iterations-exceeded/38847/3 "2016-08-26T09:40:31Z")

</div>

@KLemke,

the important parameter to change is the relaxation factor for p\_rgh - if you put it to 1.0 your simulation will run. We’ve seen many users running into troubles with this parameter and we’re planning on some changes to make this less error prone.

![](https://www.simscale.com/forum/uploads/default/original/2X/8/898a60133e6710ff6c01841201cd28190c17e00d.png)

In addition, I’d recommend some more changes for speed + efficiency - change the linear system solvers to the following:

 ![](https://www.simscale.com/forum/uploads/default/original/2X/d/d455f676ea8df7f7230d365195205147496c7349.png)

Last but not least, you’re running a steady state analysis with 4m cells but you want to write out 5 steps, which will give you quite some result data, where most of it is not really interesting, is it? So I’d recommend only writing out the last time step but running more iterations. I ran your 200 iterations, but the solution is not yet converged - so 1000 seems a good next try.

 ![](https://www.simscale.com/forum/uploads/default/original/2X/e/e3fa00de674ca2bafaacd68429c9a57e43b88055.png)

 ![](https://www.simscale.com/forum/uploads/default/original/2X/0/05762de5f55f6a14ae71e6080eea8ffe1ecfd74e.png)

Best,

David

---

<div class="post-metadata">

**Author:** ![KLemke](https://www.simscale.com/forum/letter_avatar/klemke/32/6_449c533f586939b6e5f246632a46421f.png) [@KLemke](https://www.simscale.com/forum/u/KLemke)\
**Post date:** [August 26, 2016, 10:53am UTC](https://www.simscale.com/forum/t/maximum-number-of-iterations-exceeded/38847/4 "2016-08-26T10:53:55Z")

</div>

Thank you very much!

---

<div class="post-metadata">

**Author:** ![dheiny](https://www.simscale.com/forum/user_avatar/www.simscale.com/dheiny/32/2_2.png) [@dheiny](https://www.simscale.com/forum/u/dheiny)\
**Post date:** [August 26, 2016, 11:27am UTC](https://www.simscale.com/forum/t/maximum-number-of-iterations-exceeded/38847/5 "2016-08-26T11:27:21Z")

</div>

You’re welcome! What’s the simulation about? Looks interesting!

---

<div class="post-metadata">

**Author:** ![KLemke](https://www.simscale.com/forum/letter_avatar/klemke/32/6_449c533f586939b6e5f246632a46421f.png) [@KLemke](https://www.simscale.com/forum/u/KLemke)\
**Post date:** [August 26, 2016, 11:43am UTC](https://www.simscale.com/forum/t/maximum-number-of-iterations-exceeded/38847/6 "2016-08-26T11:43:42Z")

</div>

It’s about a compressor test rig which will be applied with hot pressure air. The plan is to air-condition the room just with ventilation.

---

<div class="post-metadata">

**Author:** ![STR](https://www.simscale.com/forum/user_avatar/www.simscale.com/str/32/6740_2.png) [@STR](https://www.simscale.com/forum/u/STR)\
**Post date:** [August 26, 2016, 4:54pm UTC](https://www.simscale.com/forum/t/maximum-number-of-iterations-exceeded/38847/7 "2016-08-26T16:54:53Z")

</div>

Glad i found this thread.  
I was experiencing similar issues with a model that has local relatively high velocities. It also kept exceeding max. iterations. Tried a dozen times to get it to work with no succes. I was blaming my mesh however now i will definitely try this solution.

---

<div class="post-metadata">

**Author:** ![dheiny](https://www.simscale.com/forum/user_avatar/www.simscale.com/dheiny/32/2_2.png) [@dheiny](https://www.simscale.com/forum/u/dheiny)\
**Post date:** [August 27, 2016, 5:31am UTC](https://www.simscale.com/forum/t/maximum-number-of-iterations-exceeded/38847/8 "2016-08-27T05:31:19Z")

</div>

@STR,

let me know if it does work with changing this relaxation factor! With the next release more robustness improvements as well as new models to simulate buoyant flows will be deployed which shall make the setup easier.

Best,

David
