Beer Foam Simulation

   6168   1   1
User Avatar
Member
27 posts
Joined: Dec. 2016
Offline
Hello everyone,

I am creating a beer simulation fx.Please find the attachments.

I used two emitters, one to emit beer (with higher density) and another emitter from the base of the glass to emit foam (with much lower density).

As the beer hits the base of the glass, it pushes the foam to go higher and stay on top.


I have two issues,

a) I use a thick collision proxy volume to avoid the leakage of flip particles.But, towards the end I want the beer to fill and spill along the surface outside.How to achieve this? If I reduce the thickness the flip particles tend to leak and there is volume loss as well.

B)I have applied velocity to push the foam particles upwards,but It doesn’t have any impact. As of now the foam particles move upwards because of the velocity created by the beer particles.I want the foam particles to move upwards by applying some external force so that more foam forms on top.How to achieve this?


Any help?

Thanks in advance..
Attachment Not Found

Attachment Not Found
Edited by aaryanguna - Jan. 10, 2018 07:30:08

Attachments:
Beer_Rnd_v08_Test.hip (2.0 MB)
Beer_RnD_v03.mp4 (2.5 MB)
Glass_v01.abc (12.1 KB)

User Avatar
Member
4 posts
Joined: Feb. 2012
Offline
aaryanguna
Hello everyone,

I am creating a beer simulation fx.Please find the attachments.

I used two emitters, one to emit beer (with higher density) and another emitter from the base of the glass to emit foam (with much lower density).

As the beer hits the base of the glass, it pushes the foam to go higher and stay on top.


I have two issues,

a) I use a thick collision proxy volume to avoid the leakage of flip particles.But, towards the end I want the beer to fill and spill along the surface outside.How to achieve this? If I reduce the thickness the flip particles tend to leak and there is volume loss as well.

B)I have applied velocity to push the foam particles upwards,but It doesn’t have any impact. As of now the foam particles move upwards because of the velocity created by the beer particles.I want the foam particles to move upwards by applying some external force so that more foam forms on top.How to achieve this?


Any help?

Thanks in advance..
Image Not Found

Image Not Found
Hi man! about #2 question. You need set "divergence" attribute on the source and turn on it in DOP. It will make "a grow" of your foam.
what about #1 I think there only one way: make very small grid on your VDB collider and a lot of substeps of the simulation.
I guess that the answer is a little bit late, but anyway, I consider it my duty to answer to you, colleague.
  • Quick Links