Jump to content
Sign in to follow this  
Skip

Fluid viscosity based on distance from surface

Recommended Posts

Hi all,

 

I've been playing around with fluids and have been learning about driving viscosity based on a point attributes. But I've hit a mind wall.

 

Could anyone help me understand how I would go about creating a liquid that has viscosity based on the distance from the surface? Or to be more specific, as it "cools" it becomes more viscous, but it does this from the surface into the middle. So if I were to pierce a hole in the outer skin, liquid would pour out.

 

Basically, gooey middle.

 

Thanks in advance!

Share this post


Link to post
Share on other sites

create a "field to particle" node in your dop, where the field in question is "surface" and name the created attribute to whatever you like.

Now, all particles will have an attribute value based on how close they are to your surface.

 

Use that to define how viscuous you liquid is :)

Share this post


Link to post
Share on other sites

Thats great, thank you!

 

I've managed to get some results using this (although I've barely touched microsolvers before, so it's a bit daunting). I feel this is going to take me a wee while to crack!

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×