Simulation "explodes" just by changing the size of the tank #180
Replies: 2 comments 2 replies
-
I just tested you examples and found out that at the beginning the particles are not in the boundary object. So you cannot expect a stable simulation. A general hint: SPH tends to get chaotic motion if you do not have any viscosity in your simulation. Your visco coeff seems to be rather small. So you should at least use XSPH which is typically used in SPH to smooth the velocity field and to avoid chaotic motions. This SPH tutorial might be useful for you: |
Beta Was this translation helpful? Give feedback.
-
Okay, now the particles are exactly in the geometry. However, you are using an implicit boundary representation with a very low resolution. So either you increase the resolution of the boundary representation (adding the key "mapResolution" to the rigid body) or you use a particle-based boundary representation (by adding the key "boundaryHandlingMethod": 0 to the "Configuration"). Hope that helps! |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi, I'm a master's student trying to use the SPlisHSPlasH open source code for my master's thesis. I am starting with a simple 3D dam break example similar to the one in this video.
What I don't understand is why changing the length of the tank, to allow the water to flow further without hitting the opposite wall, would cause the simulation to "explode" with particles going crazy. After reading a lot in the literature about SPH and its boundary handling methods, I still haven't figured out why this happens.
Below are three scene files I used to generate this simulation. You'll find that the files are identical, except the length of the tank (in the
scale
field ofRigidBodies
). The simulation runs smoothly for a tank length of 0.84 m, explodes for 3.6 m, but works just fine again for 4 m.I'd really appreciate some feedback about why this weird behaviour is happening, as I've been trying to find some answers for months now.
dam_break_tank_length.zip
(Note: If some of the values in the scene JSON files seem awkward, that's because I'm generating them automatically with a python code I wrote, not writing them by hand. That's besides the point because the question here is: why does the simulation explode for specific tank sizes?)
Beta Was this translation helpful? Give feedback.
All reactions