Skip to content

A real-time SPH fluid simulation using CUDA and OpenGL

License

Notifications You must be signed in to change notification settings

FahdSeddik/AquaSimCUDA

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

AquaSimCUDA

A real-time SPH fluid simulation using CUDA and OpenGL

Building the Project

To build AquaSimCUDA, you can use CMake. Follow these steps:

  1. Create a build directory:
    mkdir build && cd build
  2. Run CMake to configure the project:
    cmake ..
  3. Build the project:
    cmake --build .
  4. After building, the executable will be located in the bin directory created by CMake.

Controls

  • Use W, A, S, D to move around.
  • Hold the left mouse button to look around and move.
  • Press Q to move up.
  • Press E to move down.

Simulation Parameters

In the config directory, you will find a .jsonc file. This file allows you to modify the parameters of the simulation.

Important Notes on Containers and Parameters

  • When specifying a container, you must define a region for rendering the marching cubes.
  • Each container requires:
    • Planes at the bottom to be defined separately and assigned a container "name" and a containerId for which they belong to.
    • Minimum and maximum bounds for marching cubes.
  • You can define a list of containers, each containing a list of fluids. However, all containers will share the same parameters (e.g., viscosity, etc.).

Make sure to carefully configure these parameters to ensure proper simulation behavior. Example configurations are provided in the .jsonc file for reference.

About

A real-time SPH fluid simulation using CUDA and OpenGL

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •