click on the screen and drag to move the fluid
روی صفحه کلیک کنید
This code implements a fluid simulation using the Navier-Stokes equations. In this simulation, the transparency of the color in the flow corresponds to the density of the fluid at each point in the simulated space. the user can interactively add density and velocity to any location in the fluid domain by clicking the mouse and moving it.
The simulation is a numerical approximation of fluid flow based on the Navier-Stokes equations, incorporating advection and diffusion terms for both velocity and density. Although the simulation assumes incompressibility to solve the Navier-Stokes equations, it allows for changes in density! The assumption of incompressibility in fluid dynamics, especially for flows at speeds significantly below the speed of sound (low Mach numbers), is generally considered valid and accurate for many engineering applications.