PBPierre Ballifinpbhnblog.ballif.eu·Apr 3 · 11 min readPart 5: The Volume of Fluid methodIn this post, I'll walk through my implementation of the Volume of Fluid method. The overall motivation is to simulate 3D waves and droplets of water, like this: In practice, this post will mostly d00
PBPierre Ballifinpbhnblog.ballif.eu·Nov 23, 2025 · 10 min readPart 4: 3D meshes and Marching CubesMotivation So far, we’ve simulated featureless, undulating orange grids, which I find boring. What’s really cool would be an animation of a droplet of water falling into a water surface, including all00
PBPierre Ballifinpbhnblog.ballif.eu·Aug 31, 2025 · 8 min readCUDA for Wave Simulation - Part 3: Efficient CUDANon-trivial CUDA The current snippet of code calling CUDA is: cuda_step<<< 1, 1 >>> This uses only one CUDA thread, and is probably extremely inefficient. To verify this, let’s add some way to time the program. I could use NVIDIA’s nsys, or just the...00
PBPierre Ballifinpbhnblog.ballif.eu·Aug 17, 2025 · 6 min readPart 2: Basic CUDAThere’s a good first CUDA tutorial here: https://developer.nvidia.com/blog/even-easier-introduction-cuda/. Then there are the docs here: https://docs.nvidia.com/cuda/cuda-c-programming-guide/#. The docs describe three levels of the thread hierarchy —...00
PBPierre Ballifinpbhnblog.ballif.eu·Aug 17, 2025 · 12 min readPart 1: OpenGLMotivation In this series of posts, I'll try to simulate waves on a GPU using CUDA. First, I'll describe the exact scope of the project. The goal is to implement some computational fluid dynamics method to solve some fluid dynamics problem - for now,...00