Giter Site home page Giter Site logo

Comments (4)

janbender avatar janbender commented on May 18, 2024

What do you mean with "long time"?
Since you use a fixed small time step size, the simulation will be rather slow. You also use very small values for maxError and maxErrorV, which will increase the number of required pressure solver iterations significantly. A simulation with an implicit viscosity is always slower since a linear system for the viscosity has to be solved. Finally, you enabled the vorticity solver which has not much effect since a highly viscous fluid is typically not turbulent.

from splishsplash.

PavelBlend avatar PavelBlend commented on May 18, 2024

And how long did it take to calculate this simulation? And on which processor?
https://youtu.be/elZieJNBYqk?t=160

from splishsplash.

janbender avatar janbender commented on May 18, 2024

I think the simulation took a few hours on two Xeon processors.

However, you cannot compare FLIP particles with SPH particles. SPH solves the Navier-Stokes equations on the particle discretization while FLIP solves it on a fixed grid and only uses the particles to transport the quantities. It is easy to simulate millions of FLIP particles even in real-time. Take a grid with just one cell and put all inside. However, this gives you no more details. So you should compare the number of cells with the number of SPH particles.

That said SPlisHSPlasH is typically not that slow. Did you build the library in "Release" mode? Does it run in parallel. Can you give me some simulation times?

from splishsplash.

mskr avatar mskr commented on May 18, 2024

Release Mode makes a huge difference here.

image
(with the second option you can still debug, set breakpoints etc.)

For example, simulating until t=0.01 in DamBreakModel.json took 12.573 s in Debug Mode and 0.584 s in Release With Debug Info Mode, so you get 21.5x speedup.

from splishsplash.

Related Issues (20)

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.