Playing with Gravity in Real Time Fluid Simulation @ProjectPhysX
Playing with Gravity in Real Time Fluid Simulation  @ProjectPhysX
Uploaded April 2022 | Updated November 2026, 5 hours ago
Real time raytracing is done at 1920x1080 pixel resolution with 1-7 rays per pixel (1x reflection, 2x refraction).

In simulation I can easily change its direction or even turn it off. Interactive raytracing with 2x refraction is quite heavy on the GPU; the OpenCL CFD sim gets the remaining compute resources, making its speed change over time.

The simulation software used is FluidX3D, an OpenCL implementation of the lattice Boltzmann method. FluidX3D runs at peak hardware efficiency on the worlds fastest data-center GPUs (8799/5232 MLUPs/s on the Nvidia A100/V100 @ D3Q19 SRT FP32), on gaming GPUs and CPUs and it even runs my smartphone.

The rendering is done by FluidX3D as well, now with raytracing. Simulated light rays from the camera traverse the LBM lattice and check for intersections with the triangles that marching-cubes generates on-the-fly from the isovalues. Triangles never leave registers.
The 3D lattice that the LBM provides already is one of the ideal acceleration structures for raytracing. Any ray only has to check for possible intersections with iso-surface triangles contained within the traversed grid cells. This makes it - when the lattice is not too large - even run in real time on non-RTX GPU​s.

FluidX3D is now built entirely on my open source OpenCL-Wrapper, reducing the entire code on the C++ side to about half. If you want to get into OpenCL yourself, look no further: github.com/ProjectPhysX/OpenCL-Wrapper

Raindrop simulations: doi.org/10.1186/s43591-021-00018-8
Volume-of-Fluid: doi.org/10.3390/computation10020021
Esoteric-Pull: doi.org/10.3390/computation10060092
FP32/FP16 mixed precision: researchgate.net/publication/362275548_Accuracy_and_performance_of_the_lattice_Boltzmann_method_with_64-bit_32-bit_and_customized_16-bit_number_formats
FluidX3D: doi.org/10.15495/EPub_UBT_00005400

Timestamps:
00:00 downwad gravity
00:11 side gravity
00:14 upward gravity
00:20 side gravity
00:26 zero gravity
00:43 downwad gravity
00:46 side gravity
00:49 upward gravity
00:52 side gravity
00:54 zero gravity
01:00 downwad gravity
01:05 side gravity
01:13 upward gravity
01:24 side gravity
01:31 zero gravity
01:39 downwad gravity
01:43 side gravity
01:48 upward gravity

#FluidX3D #OpenCL #Raytracing #GPU #LBM
Playing with Gravity in Real Time Fluid SimulationPhysX3D [GRAVITY SIMULATION] Osculating Orbits vs. PathsKineticGas: Continuous Collision DetectionPhysX3D [GRAVITY SIMULATION] Public Release TrailerReal time CFD with FluidX3D - Cessna 172 - 20 million cells - Titan Xp GPUReal time CFD simulation with FluidX3D700 Million Voxel CFD Simulation zoomed in (48GB Quadro RTX 8000)Running FluidX3D on Intel Arc A750 with interactive ASCII graphics over remote SSHRaytracing 108 Million Voxel CFD Simulation in Real TimeStrange Spinning Top Behaviour at 960fps Slow MotionThunderstorm in 1080p at 240fps slow motion (Samsung S9+)KineticGas: Mixing two gases in gravitational field
Dr. Moritz Lehmann |

Playing with Gravity in Real Time Fluid Simulation

SHARE TO X SHARE TO REDDIT SHARE TO FACEBOOK WALLPAPER