Jump to content

Override FLIP velocity field with custom field


portdusk

Recommended Posts

I know this is probably a very straight-forward problem, but I can't seem to wrap my head around it. Any advice or explanations would be greatly appreciated.

I created a custom vector field in DOPs, and I want to take the data from that field and copy it into the vel field in my FLIP fluid object.

The custom field is not the same size/number of divisions as the velocity field. I want to copy the values based on their 3D position in space, so I can't be stretching or distorting the custom field to match the FLIP vel field.

I tried using a gas calculate, with "vel" being my destination field and "RBD_vel" being the source, but all that happens is the visualizations for both disappear in the viewport. Are they being copied, and I'm just not seeing the new visualizations?

If anyone knows how to copy data between fields I would really appreciate some help!

post-7694-133694213724_thumb.png

  • Like 2
Link to comment
Share on other sites

Well with a little tinkering I found the solution. I simply had the nodes placed in the wrong order, so they weren't being processed correctly by the flip solver.

I reordered my node tree, and now my point velocity from an imported geometry is being transformed into a field and then used to override the FLIP velocity field.

post-7694-133696220929_thumb.png

  • Like 1
Link to comment
Share on other sites

Glad you found an answer. Depending on your setup, you possibly could also use the "Pump From Object" shelf tool. This tool uses a FluidSource SOP to create a velocity field from geometry point velocities, then a SourceVolume DOP to bring those velocities into the FLIP simulation, giving you a fair bit of control.

Attached is an example of using a simple POP net to transfer particles velocities to a FLIP tank, all set up with shelf tools. A similar setup should work with Pyro sims as well.

pump_from_particles.hip

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