Jump to content

Reduce velocity in custom area in fluid sim


abramov-cg

Recommended Posts

If you want to just replace the velocity in that area, I think you could just use the pump from the shelf tools, and change the velocity mixing mode to copy.

(Source Volume -> Volume Operation -> Velocity -> Copy)

Link to comment
Share on other sites

I don't understand how I can use mask field to control global velocity.
From help:

The mask can be used to modify forces and torques when attached to Force data.

And I want to reduce vel in custom area, not for only one force

Edited by abramov-cg
Link to comment
Share on other sites

Thanks man - this is amazing. Its works.

It is very strange that we can't do this using gas calculate or gas linear combination.

One more problem.. I want to do smooth transition between this velocities, but when we use two way switch we get sharp border.

Link to comment
Share on other sites

As you can see from the file, I first tried using gas linear combination nodes, but for some reason it didn't quite work so I changed to using a Field VOP.

 

To get a smooth transition, instead of the two way switch, use a Mix VOP, with the "pump" volume value as the mix bias.

  • Like 1
Link to comment
Share on other sites

As you can see from the file, I first tried using gas linear combination nodes, but for some reason it didn't quite work so I changed to using a Field VOP.

 

I just had to revisit this, with a little more attention to detail it works now :)

This one just multiplies down the velocity in the pump area, but extending to an alpha blend should be just a couple of extra gas linear combinations.

pump_02_ee.hip

  • Like 4
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...