Jump to content

Flip pouring into closed container?


WhyGee

Recommended Posts

After studying Alejandro's file, I adjusted it a bit so that you won't have to edit the flipsolver HDA.

Here are my adjustments:

  • Pulled out three nodes related to computing the collisionweights.
  • Set the Volume Motion -> Collisions -> Volume Fraction Method to None (to disable internal collision weight computation).

So far, everything seems to still work as before :D

H16.0.557 - collisionWeights_v001_jlim.zip

Link to comment
Share on other sites

Thanks for the updated file Jeff.

I am trying to get the sphere to fill up with fluid. So I added a Divergence field, but I think your Gas Solvers are blocking the divergence field from operating correctly. Do you know of a way to make the sphere fill up with fluid?

 

ap_collisionWeights_v001_jlim.hiplc

Edited by Atom
Link to comment
Share on other sites

Hi again,

I've ran both setups and there is still an affect on the fluid as it passes through. I've tried playing with the thresholds but unable to get rid of this behavior and it ruins the smooth stream as expected if the container was actually opened at point of entry. Included is a preview of what I mean. If you have an idea how to fix this it would be great. Otherwise looks like the 2 stream approach is going to have to do. 

Thanks alot!

Yaniv

fill_test_v1.mp4

Link to comment
Share on other sites

Heya Atom,

This is honestly the first time I tried looking into what the divergence field does. I've been seeing it before but never bothered using it. Thanks to you, I know now what it actually does :D

I adjusted the scene, hopefully it is what you were after, notes are below:

  • You added a source volume that should pipe in a divergence field, but your volume path is pointing to "/obj/geo1/OUT_source".
    This source (from Alejandro's setup) does not contain volumes, it only has particles.
    So the effect is that no divergence data is being written to the divergence field of the sim.
  • You could probably create a new Fluid Source SOP to generate a proper volume for the divergence field, then source it afterwards.
  • Or, in the hip file setup attached below, I simply added a @divergence attribute to the particles and used the Flip Solver's "Divergence by Attribute".

So far, the sim does seem to spread out a bit more after adding the divergence.

I hope this helps!

H16.0.557 Indie - ap_collisionWeights_v001_jlim_2.zip

  • Like 1
  • Haha 1
Link to comment
Share on other sites

I tried a couple of things, but in the end, it still had a bit of an effect to the fluid whenever it passes through the collision.
I've only minimized the effect.. check the file out to see if it is something highly noticeable.

changes/notes:

  • Removed the Fluid Source at the SOPs level because particles are the only ones needed in the setup.
  • Removed the Threshold Collision Weights DOP as the Flip Solver was already doing the same internally (albeit on a different sequence).
  • I increased the Gas Particle to Field -> Max Extrapolate Cells, in the hopes to extend where the cWeight gets applied.

flip_closed_container_2.gif

H16.0.557 Indie - collisionWeights_v001_jlim_fill_test2.zip

Link to comment
Share on other sites

Although I'm still hoping that there should still be a much simpler setup.. If only there was a way to avoid setting up multiple volumes, and just use the existing collision volumes. Then continue with the attribute approach to set a particle as colliding / not colliding.

Need more time to experiment with this! hehe :D

Link to comment
Share on other sites

I agree this effect should be much more straight forward.

Thanks for the hip, I'll have a look now to see how it behaves in my scene. The previous file tends to get worse when the sim resolution is finer so I hope your setup will work.

Cheers

Yaniv

Link to comment
Share on other sites

On 5/5/2017 at 1:04 PM, galagast said:

After studying Alejandro's file, I adjusted it a bit so that you won't have to edit the flipsolver HDA.

Here are my adjustments:

  • Pulled out three nodes related to computing the collisionweights.
  • Set the Volume Motion -> Collisions -> Volume Fraction Method to None (to disable internal collision weight computation).

So far, everything seems to still work as before :D

H16.0.557 - collisionWeights_v001_jlim.zip

Nice changes!

On 5/5/2017 at 2:06 PM, Atom said:

Thanks for the updated file Jeff.

I am trying to get the sphere to fill up with fluid. So I added a Divergence field, but I think your Gas Solvers are blocking the divergence field from operating correctly. Do you know of a way to make the sphere fill up with fluid?

 

ap_collisionWeights_v001_jlim.hiplc

You don't need to define a new divergence volume if you want the divergence to work as it should. You only need to activate the field in the flip object, then define the divergence attribute on the particles directly. 

Regards filling faster, you can use the same rules for the collisionWeights to define the divergence and help the fluid gain volume when is inside the collision object, also you can create particles on demand when the fluid expands, so you can use reseeding for this or create your own dynamic setup for on demand particle generation.

Here is a mod to the Jim's file that shows that, it will became unstable at the end mainly because of the volume gain, but you can animate the reseeding toggle and kill the divergence, or test the fluid volume against the volume of the collision object to deactivate the expansion, a more procedural solution.

Finally one limitation on this collision weight technique is that if you use so much extrapolation the fluid will escape at the zone where the fluid stream is flowing, all of this is because of the fluid reconstruction with the gas particle to field.

Hope that helps!

Alejandro

 

ap_collisionWeights_v001_jlim_FasterFilling.hiplc

Edited by Pazuzu
  • Like 2
Link to comment
Share on other sites

  • 7 years later...
On 5/6/2017 at 1:13 PM, galagast said:

I tried a couple of things, but in the end, it still had a bit of an effect to the fluid whenever it passes through the collision.
I've only minimized the effect.. check the file out to see if it is something highly noticeable.

changes/notes:

  • Removed the Fluid Source at the SOPs level because particles are the only ones needed in the setup.
  • Removed the Threshold Collision Weights DOP as the Flip Solver was already doing the same internally (albeit on a different sequence).
  • I increased the Gas Particle to Field -> Max Extrapolate Cells, in the hopes to extend where the cWeight gets applied.

flip_closed_container_2.gif

H16.0.557 Indie - collisionWeights_v001_jlim_fill_test2.zip

@galagast Hi galagast,


I checked your hip file and realized that you have edited some nodes, inside the Flip-Solver. Can you tell me what nodes have changed there?

 

Thanks.

Link to comment
Share on other sites

Hello Masoud, it's been a while since i last saw that file :D
as of the moment, i can't recall the modifications i did.
over the weekend, i might have time to take a quick look.

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...