Alert icon
We're changing our privacy policy. This stuff matters.  Learn more  Dismiss

SPH fluid simulation (3rd) test, dam breaking and ramp.

Loading...

Sign in or sign up now!
Alert icon
Upgrade to the latest Flash Player for improved playback performance. Upgrade now or more info.
3,536
Loading...
Alert icon
Sign in or sign up now!
Alert icon

Uploaded by on Jan 13, 2008

Typical verification in sph codes. I added a ramp to show the sea wave formation and evolution. Programmed in Python-Pylab and simulating a flow with water properties in standard conditions.The animation was built in slow camera mode (1/10).

Category:

Science & Technology

Tags:

License:

Standard YouTube License

  • likes, 0 dislikes

Link to this comment:

Share to:

Uploader Comments (jahkr)

  • Hi! Nice demo!

    Do you use particle-particle collisions or is it a collision-free model (use pressure force)? Thanks!

  • Thanks for comment.

    The SPH (Smoothed particle hydrodynamics) model uses the "interaction" between nearest particles to calculate the pressure. Then the presure gradient is used to get the acceleration.

see all

All Comments (19)

Sign In or Sign Up now to post a comment!
  • cool, well im glad I helped

  • lol, I know that there are much more efficient ways of doing it, but I just wanted to do the easiest way for me. Thanks for all of the help. And natethegreatBlitzMax, I deleted the comment. I think I was going to ask another question or something, but I had solved it myself.

  • thats why I use fixed grid and other stuff but I figured that might complicate rather than simplify things for luketheduke since he was just asking how to make the water react right

  • If you use a double loop the program works very slow (because is n^2 order), will be better to do list with the particles in collision with each one at every time.

  • also you might want to put your types into arrays instead of lists... its generally much faster

  • no problem... and you must use a fixed grid optimization if you want maximum efficiency :)

  • :] It worked! Thank you! It's extremely inefficient, but it works!

  • to answer your question luke that got removed for some reason? idk why

    no I was just saying how to do the part that said "physics stuff here" and make sure you have a variable to make sure you only check collisions once between all points like so

    for i:point = eachin pointlist i.done = true for j:point = eachin pointlist if i.done = false then 'do physics stuff endif next

    next

    i suspect this is your problem

Loading...
Alert icon
0 / 00Unsaved Playlist Return to active list
    1. Your queue is empty. Add videos to your queue using this button:
      or sign in to load a different list.
    Loading...Loading...Saving...
    • Clear all videos from this list
    • Learn more