Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Particles stuck to edges of obstacle #508

Closed
PavelBlend opened this issue Dec 12, 2020 · 6 comments
Closed

Particles stuck to edges of obstacle #508

PavelBlend opened this issue Dec 12, 2020 · 6 comments

Comments

@PavelBlend
Copy link

System Information

Blender Version (including hash): 2.90.1 3e85bb34d0d7
FLIP Fluids Version: 1.0.9
Operating System: Windows 10 64 bit
CPU: AMD A8 5600K
GFX: -
RAM: 16 GB

Describe the bug

Wrong color for debug particles. And the question is: why do particles stick to the border of the obstacle? They don't move.

To Reproduce

Bake the liquid from this scene:
debug_particles_test.zip

Expected Behaviour

Fixed particles should not be red.

Actual Behaviour

Fixed particles are colored red (this color is specified in the high_speed_particle_color parameter).

Screenshots

particles_debug

@rlguy
Copy link
Owner

rlguy commented Dec 15, 2020

Hi PavelBlend,

Thanks for the report! It looks like this could be related to issue #1. At the moment, I am not sure how to solve the issue of stuck particles, but maybe this .blend file will help find a solution. It looks like better collision handling might be a way that this could be fixed.

The reason for the high velocity particles is a side effect of how the FLIP method works where stuck particles can gain velocity/accelerate from the surrounding particles that are moving. If you set the PIC/FLIP ratio to 1.0, they wont have as high velocity but they will still stick.

For some reason the high velocity particles are still not moving. This is something I will need to look into.

@rlguy rlguy added the bug label Dec 15, 2020
@rlguy rlguy changed the title Incorrect Debug Particles Color Particles stuck to edges of obstacle Dec 15, 2020
@rlguy
Copy link
Owner

rlguy commented Mar 4, 2021

Continuing from this comment in issue #420:

PavelBlend
Hello, @rlguy
I experimented with surface tension and again got unstable results:
unstable_particles
unstable_surface_tension.zip

It looks like this instability is being caused by particles becoming stuck to the edges of the obstacle. The stuck particles are gaining high amounts of velocity and when becoming unstuck, they are causing the simulation to explode.

stuck_particles

The highlighted particles are stuck and before releasing, they have velocities around 70 to 100m/s while the surrounding particles are around 3m/s.

A workaround can be to enable the Remove particles with extreme velocities option, but I do not think this is a good solution. There are too many unstable particle for this to be acceptable and the underlying issue that is causing this should be fixed.

I am going to make this a high priority issue that needs to be fixed before the next stable release in early April.

@rlguy
Copy link
Owner

rlguy commented Mar 4, 2021

Update: I have found the cause for this issue and have a solution for a fix. I'll update this issue when the fix is available in experimental version 9.0.9.16 (10-MAR-2021) and will include a write-up on how this was fixed in our next development notes.

@rlguy
Copy link
Owner

rlguy commented Mar 10, 2021

This fix is now available in experimental version 9.0.9.16.

For a detailed explanation, see our development notes # 50 here or on our Blender Artists thread here.

@rlguy rlguy closed this as completed Mar 10, 2021
@PavelBlend
Copy link
Author

It looks like the particles are still not stable:
555
version 9.0.9.17:
test_water.zip

@rlguy
Copy link
Owner

rlguy commented Mar 22, 2021

Thanks for the report and .blend file! I just had a chance to test it and can reproduce the issue.

It looks like the problem is that the domain resolution is too low to accurately resolve the thin walls of the obstacle. Obstacle debug view at 70 resolution:

low_obstacle_resolution

The thin cracks and holes like these will cause simulations to become unstable because the data around these locations are not good and are inconsistent.

The fix is to increase resolution so that the obstacle is fully resolved on the grid with better data. Here is an example at 140 resolution:

higher_obstacle_resolution_140

Let us know if you run into any other problems. We are still testing particle stability related to this issue and also with surface tension.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants