Coder Social home page Coder Social logo

smoothed-particle-hydrodynamics's People

Contributors

maarten-vd-sande avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

smoothed-particle-hydrodynamics's Issues

Making Viscose-elastic sphere

Hi @Maarten-vd-Sande,

I'm very new to fluid simulation and I found your code very helpful. I'm wondering is it possible to make a viscous-elastic object with your code just by changing viscosity or other parameters. I'm going to implement two viscous-elastic spheres and merge them together like two bubbles (in 2D for the first step) something like the following video that I've done in python-blender:

0001-0100.mp4

I would appreciate if you share me your ideas on this issue.
Thanks

Smaller Window

Hi, firstly I would like to thank you for the incredible work you've done.

I am working on implementing an sph algorithm, and your work has greatly helped.
The only issue, I will be displaying the results of this algorithm on an LED matrix, hence I am bound to a 64x64 window. I first tried reducing the simulation window's width, height and limits, however I run into an error whereby dens[i] remains zero, which causes a divide by zero in the integration script.
I traced dens[i] back to the if condition r_2 <= h_2 in compute density pressure, and have determined that the if condition was never satisfied, and so dens[i] remains zero, causing problems later on.
My next instinct was to increase the radius, h, in order to 'force' the if condition. If i set it larger than 63, I get list index out of range (obviously), setting it less I remain with the error above.

Any further suggestions would be greatly appreciated, thanks.

Screenshot_10
Screenshot_11

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.