Questions tagged [fluid-sim]

15 questions
10
votes
1 answer

How could I check the correctness of my result of fluid simulation?

I wrote a particle based fluid simulating program. It's hard to tell if I get the right result. The visualized result seems reasonable, but some part of it looks weird. I don't know wether it's a feature of fluid. Is there some accurate method to…
Yyao
  • 203
  • 1
  • 5
8
votes
0 answers

Code runs differently on different hardware

I wrote a 2D fluid-solver in OpenGL (code here) some time back. While it runs flawlessly on my onboard Intel GPU, the simulation very quickly "blows-up" when same code is run using nvidia card : In the second picture, the fluid is being…
nilspin
  • 81
  • 2
8
votes
1 answer

Conserving Mass in Liquid Simulation

I am trying to implement a 2D version of Foster and Fedkiw's paper, "Practical Animation of Liquids" here: http://physbam.stanford.edu/~fedkiw/papers/stanford2001-02.pdf Mostly everything works, except for section 8: "Conservation of Mass." There,…
6
votes
1 answer

Hodge Decomposition in fluid simulations

I have just started implementing a fluid simulator based on the navier stokes equation. I am following Jos Stam's paper to do so. In this paper, it says that the velocity field must be mass conserving. Which I understand as, the velocity that flows…
Mn9
  • 73
  • 3
5
votes
2 answers

Rigorous and simple explanation for satisfying boundary conditions in Stam and Bridson papers

I read Stable Fluids and the code by Jos Stam and FLUID SIMULATION SIGGRAPH 2007 Course Notes by Robert Bridson. The boundary conditions in the two papers are different in my sight. I don't understand them. How are these two ways related to solving…
Anas Alaa
  • 85
  • 6
4
votes
1 answer

Finite difference wave equation shown in paper is wrong?

I'm trying to produce wave surface animations, and I came across this paper: Fast_Water_Animation_Using_the_Wave_Equation_with_Damping. In the paper they go to provide the following equation: At first I just blindly implemented this, but soon saw…
Krupip
  • 280
  • 1
  • 11
4
votes
2 answers

2D metaballs with marching squares and linear interpolation

I struggle do understand how linear interpolation works in the marching square rendering algorithm context. I created simple example in GDScript (Godot) of random floating metaballs to demonstrate the problem: extends Node2D class Blob: var…
Arsenius
  • 141
  • 3
3
votes
1 answer

Rendering Fluid Simulations?

I've read about Lagrangian and Eulerian fluid simulations and here's what I take from their methods: Lagrangian - Simulating fluid particles by calculating displacement for each particle Eulerian - Simulating fluid particles by calculating…
3
votes
1 answer

Jos Stam's "Stable Fluids" boundary conditions

In the paper Stable Fluids by Jos Stam, I am confused about the boundaries in the set_bnd function in the code. I don't know what kind of boundaries is this. Is it Neumann boundary condition or Dirichlet boundaries? Here is the set_bnd function;…
Anas Alaa
  • 85
  • 6
2
votes
0 answers

How are fluid simulations handled in Computer Graphics?

How are fluid simulations handled in Computer Graphics? For a novice, there are hardly any novice friendly tutorials explaining how particles or fluids can be simulated. Things like smoke, crown splashes and fog are they animated by artists as…
Arjan Singh
  • 2,463
  • 3
  • 20
  • 37
2
votes
1 answer

Fluid sim: CPU vs. GPU

I have very recently started looking into real-time fluid simulation. Idea is to make a game that would use 3D fluid simulation as a core gameplay mechanic. Looking around the web, I found this article that compares the performance of fluid…
Karlovsky120
  • 231
  • 2
  • 8
1
vote
1 answer

Having trouble understanding advection from GPU gems fluid dynamics example

So I am trying to implement a fluid simulation, as described in Chapter 38 of GPU Gems. I am also drawing heavily from the excellent implementation by Pavel. Where I'm getting a bit stuck is with advection. So as I understand it, advection is the…
sak
  • 159
  • 4
1
vote
0 answers

How to extract surface of smoothed particle hydrodynamics smoothly?

I'm working on a fluid simulation project where two spheres are simulated using smoothed particle hydrodynamics (SPH). I have generated two sets of particles inside and on the surface of a sphere. You can see the result in this picture: scatter plot…
Hassan
  • 11
  • 1
1
vote
1 answer

Rendering a particle system as a smooth blob

What is a good algorithm for rendering a particle system as a coherent mesh, in realtime? I am running a smoothed-particle hydrodynamics fluid simulation, and I would like to render the particles not as balls but as a body of water. I understand…
AnnoyinC
  • 294
  • 1
  • 10
0
votes
1 answer

Particle & Fluid Simulation: Where to learn?

Where can I learn about particle and fluid simulation? Is there a good book available? I want to couple volume rendering with fluid/particle simulation to be able to finally render smoke and ocean with foam etc. Is there a chapter in PBRT on it?
Arjan Singh
  • 2,463
  • 3
  • 20
  • 37