Jump to content

Fluid viscosity based on distance from surface


Skip

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!

Link to comment
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 :)

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...