# OpenCLFluid **Repository Path**: mirrors_inducer/OpenCLFluid ## Basic Information - **Project Name**: OpenCLFluid - **Description**: An efficient, yet powerful, interactive fluid simulation using OpenCL. - **Primary Language**: Unknown - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2020-09-25 - **Last Updated**: 2026-10-24 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # OpenCLFluid An efficient, yet powerful, interactive fluid simulation using OpenCL. http://www.intpowertechcorp.com/GDC03.pdf Make sure you have SDL2, OpenGL, and OpenCL installed to run. Currently this will only run on a Mac. To install SDL2 go to https://www.libsdl.org/download-2.0.php and download the Development Library. # Usage ```Bash ./fluid [-pb] [-t ] [-n ] [-v ] [-d ] ``` -p enables profiling. -b enables some debugging information. -t chooses if you want to try to run on the CPU or GPU (defaults to GPU). -n sets the simulations size (defaults to 128). This will generate a n x n simulation grid. Note that the simulation size must be a power of 2. -v sets the viscosity of the fluid (defaults to 0.0001f). -d sets the rate of diffusion of the fluid (defaults to 0.0001f). The profile executable does not use SDL2 and will not render the simulation. It will only print useful profiling information. ```Bash ./profile [-t ] [-n ] ``` # Demo Note: This gif plays much faster than real life. ![demo](https://github.com/sparkasaurusRex/OpenCLFluid/blob/master/demo.gif)