Increase FLIP viscosity with particle age?

   3361   3   1
User Avatar
Member
133 posts
Joined: April 2014
Offline
How would one increase FLIP viscosity based on particle age, to get a thickening/coagulating effect? My searching only found one how-to from 2012, which doesn't work in H17+. I understand setting viscosity by attribute, but it appears FLIP particles don't have an age attribute, so I'm not sure how to shoehorn one in there.



Thanks!
User Avatar
Member
192 posts
Joined: Oct. 2018
Offline
There is Age Particles in the flip solver in the Particle Motion > Behavior section right under Add ID Attribute.

But you can also give your source a temperature attribute and then use the Gas Temperature Update dop which lets you map your temperature to viscosity. It also has options for cooling your temperature too so it gets thicker the more it cools down.
User Avatar
Member
133 posts
Joined: April 2014
Offline
Thanks! The add ID attribute, aside from being big and obvious, worked like a charm.

I'll have to play with the Gas Temperature Update DOP a bit when I have the time–it works, just very very quickly. It's always good to know an alternate solution.
User Avatar
Member
192 posts
Joined: Oct. 2018
Offline
Yeah, you might need to play with the cooling rate in the Gas Temperature Update and maybe even remap the values. There's a few of examples that use it in the Viscous Fluids shelf.
  • Quick Links