# liquid simulation Stall

**URL:** <https://forums.chaos.com/t/liquid-simulation-stall/41751>\
**Category:** Issues\
**Created:** [June 15, 2012, 12:10pm UTC](https://forums.chaos.com/t/liquid-simulation-stall/41751 "2012-06-15T12:10:13Z")\
**Posts on this page:** 13\
**Page:** 1

<div class="post-metadata">

**Author:** ![GrahamMac](https://dub1.discourse-cdn.com/chaosprd/user_avatar/forums.chaos.com/grahammac/32/24447_2.png) [@GrahamMac](https://forums.chaos.com/u/GrahamMac)\
**Post date:** [June 15, 2012, 12:10pm UTC](https://forums.chaos.com/t/liquid-simulation-stall/41751/1 "2012-06-15T12:10:13Z")

</div>

Using Max 2012 x64, Vray 2.2, PhoenixFD 2.0 (system: Core i7 920, 12GB RAM)

I have a moderately complex liquid simulation (5-10 million cells) using Foam and splashes which stalls once the simulation has got to a certain point (Never the same frame but normally around the 200 mark).  
I can see no sudden change in the simulation (compared to previous frames) which can account for any significant extra computational demands and the CPU usage (around 10-20% displayed for 3Dmax.exe in TskMgr) suggests that Phoenix is doing something.

PhoenixFD and the Max UI remain completely operative during the stall and I can pause/stop the sim. Restoring or un-pausing don’t allow the sim to get past the stall point though.

RAM consumption hovers around 3-4GB during simulation.  
If I switch off either the splashes or the foam the stall does not occur.

Could anyone suggest what might cause Phoenix FD to stall like this?

Thanks

---

<div class="post-metadata">

**Author:** ![Ivaylo\_Katev](https://dub1.discourse-cdn.com/chaosprd/user_avatar/forums.chaos.com/ivaylo_katev/32/3695_2.png) [@Ivaylo\_Katev](https://forums.chaos.com/u/Ivaylo_Katev)\
**Post date:** [June 15, 2012, 12:35pm UTC](https://forums.chaos.com/t/liquid-simulation-stall/41751/2 "2012-06-15T12:35:50Z")

</div>

the most common reason for such a behavior is too big count of the splashes/foam particles. what is the count of the particles in the last frames?

---

<div class="post-metadata">

**Author:** ![GrahamMac](https://dub1.discourse-cdn.com/chaosprd/user_avatar/forums.chaos.com/grahammac/32/24447_2.png) [@GrahamMac](https://forums.chaos.com/u/GrahamMac)\
**Post date:** [June 15, 2012, 12:49pm UTC](https://forums.chaos.com/t/liquid-simulation-stall/41751/3 "2012-06-15T12:49:48Z")

</div>

Where would I find this particle count?

---

<div class="post-metadata">

**Author:** ![Ivaylo\_Katev](https://dub1.discourse-cdn.com/chaosprd/user_avatar/forums.chaos.com/ivaylo_katev/32/3695_2.png) [@Ivaylo\_Katev](https://forums.chaos.com/u/Ivaylo_Katev)\
**Post date:** [June 15, 2012, 1:05pm UTC](https://forums.chaos.com/t/liquid-simulation-stall/41751/4 "2012-06-15T13:05:08Z")

</div>

in the input panel

---

<div class="post-metadata">

**Author:** ![GrahamMac](https://dub1.discourse-cdn.com/chaosprd/user_avatar/forums.chaos.com/grahammac/32/24447_2.png) [@GrahamMac](https://forums.chaos.com/u/GrahamMac)\
**Post date:** [June 15, 2012, 2:26pm UTC](https://forums.chaos.com/t/liquid-simulation-stall/41751/5 "2012-06-15T14:26:16Z")

</div>

I ran the simulation again to check. It stalled at frame 196 (total cells 5.7 million) and the Input roll out content display shows:  
Foam 8585  
Splashes 335

I then reduced the Maximal step from 2.2 to 1 (on a hunch) and it no longer stalls! by frame 332 the Input roll out content display shows:  
Foam 79662  
Splashes 3802

Note: This is a slow motion simulations with Time scale at 0.1 and standard gravity at 0.01.

---

<div class="post-metadata">

**Author:** ![Ivaylo\_Katev](https://dub1.discourse-cdn.com/chaosprd/user_avatar/forums.chaos.com/ivaylo_katev/32/3695_2.png) [@Ivaylo\_Katev](https://forums.chaos.com/u/Ivaylo_Katev)\
**Post date:** [June 15, 2012, 2:40pm UTC](https://forums.chaos.com/t/liquid-simulation-stall/41751/6 "2012-06-15T14:40:34Z")

</div>

well, i suppose the reason was big count of the splashes. we should add a limitation of the particle birth to prevent such a situations. btw, one possible reason is the use of FT advection, it produces small underwater bubbles and they very powerful particle incubators.

---

<div class="post-metadata">

**Author:** ![GrahamMac](https://dub1.discourse-cdn.com/chaosprd/user_avatar/forums.chaos.com/grahammac/32/24447_2.png) [@GrahamMac](https://forums.chaos.com/u/GrahamMac)\
**Post date:** [June 15, 2012, 3:20pm UTC](https://forums.chaos.com/t/liquid-simulation-stall/41751/7 "2012-06-15T15:20:02Z")

</div>

Thanks for your help Ivaylo,

Sorry I wasn’t very clear in my previous post.  
What I meant was that in my second test (Maximal step set to 1) the simulation did not stall (at any point) and its splash/foam count was much much higher than in the previous simulation which did stall.

---

<div class="post-metadata">

**Author:** ![Ivaylo\_Katev](https://dub1.discourse-cdn.com/chaosprd/user_avatar/forums.chaos.com/ivaylo_katev/32/3695_2.png) [@Ivaylo\_Katev](https://forums.chaos.com/u/Ivaylo_Katev)\
**Post date:** [June 15, 2012, 3:34pm UTC](https://forums.chaos.com/t/liquid-simulation-stall/41751/8 "2012-06-15T15:34:55Z")

</div>

no, you was quite clear 🙂  
but i suspect the stall is caused by the particles explosion in the current frame, that is still not exported and you can’t see the actual particle count. we can prove this starting simulation without particles - if i’m wrong it will stall too.

---

<div class="post-metadata">

**Author:** ![GrahamMac](https://dub1.discourse-cdn.com/chaosprd/user_avatar/forums.chaos.com/grahammac/32/24447_2.png) [@GrahamMac](https://forums.chaos.com/u/GrahamMac)\
**Post date:** [June 15, 2012, 4:16pm UTC](https://forums.chaos.com/t/liquid-simulation-stall/41751/9 "2012-06-15T16:16:20Z")

</div>

Thanks Ivaylo,

It all makes sense now!  
I will run another test later but I expect it will confirm your prediction!! 🙂

---

<div class="post-metadata">

**Author:** ![Paul\_Oblomov](https://dub1.discourse-cdn.com/chaosprd/user_avatar/forums.chaos.com/paul_oblomov/32/41296_2.png) [@Paul\_Oblomov](https://forums.chaos.com/u/Paul_Oblomov)\
**Post date:** [June 15, 2012, 10:33pm UTC](https://forums.chaos.com/t/liquid-simulation-stall/41751/10 "2012-06-15T22:33:40Z")

</div>

Yep. Forward transfer makes water look boiled. I remember boiled water was a hard task. With phx - it is simple 😄

---

<div class="post-metadata">

**Author:** ![GrahamMac](https://dub1.discourse-cdn.com/chaosprd/user_avatar/forums.chaos.com/grahammac/32/24447_2.png) [@GrahamMac](https://forums.chaos.com/u/GrahamMac)\
**Post date:** [June 16, 2012, 9:47am UTC](https://forums.chaos.com/t/liquid-simulation-stall/41751/11 "2012-06-16T09:47:39Z")

</div>

Your prediction is confirmed Ivaylo!  
Additionally, it turns out if I have only foam OR splashes switched on and restore the sim just before the stall, everything is ok and the stall does not occur.

Looking at the input content information for the frame just before the stall originally occurred, shows foam: 7631 splashes: 327

Interestingly, when I had only foam or splashes active (circumventing the stall) the amount of foam or splashes did not suddenly increase in number at all over the frame where the stall previously occurred or at any frame after.

---

<div class="post-metadata">

**Author:** ![Ivaylo\_Katev](https://dub1.discourse-cdn.com/chaosprd/user_avatar/forums.chaos.com/ivaylo_katev/32/3695_2.png) [@Ivaylo\_Katev](https://forums.chaos.com/u/Ivaylo_Katev)\
**Post date:** [June 18, 2012, 5:32am UTC](https://forums.chaos.com/t/liquid-simulation-stall/41751/12 "2012-06-18T05:32:31Z")

</div>

well, if you have a cache file that leads to stall after restore, send it to us with the scene of course

---

<div class="post-metadata">

**Author:** ![GrahamMac](https://dub1.discourse-cdn.com/chaosprd/user_avatar/forums.chaos.com/grahammac/32/24447_2.png) [@GrahamMac](https://forums.chaos.com/u/GrahamMac)\
**Post date:** [June 18, 2012, 6:58am UTC](https://forums.chaos.com/t/liquid-simulation-stall/41751/13 "2012-06-18T06:58:18Z")

</div>

Thanks Ivaylo,

For now everything is fine. I’ve done a lot of simulating with splashes and foam together and this stalling issue is certainly not common, so I’m not too concerned!  
I will send you the files you suggested if I get further stalls.
