Raytracing 108 Million Voxel CFD Simulation in Real Time @ProjectPhysX
Raytracing 108 Million Voxel CFD Simulation in Real Time  @ProjectPhysX
Uploaded February 2022 | Updated November 2026, 5 hours ago
How much can the FluidX3D OpenCL raytracer handle in real time? - As much as fits into GPU memory, 108 million voxels.
Real time raytracing of an oblique raindrop impact, 1920x1080 pixel, 1-4 rays per pixel.

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

This is a Volume-of-Fluid lattice Boltzmann method (LBM) simulation of a 7 mm diameter terminal velocity (9.55 m/s) raindrop impact (D3Q19 SRT) at 20° inclination. Velocity, density and fluid mass are solved at 108 Million lattice points (504x504x428). The simulation required 12 GB video memory.
For reproducibility: The dimensionless numbers for this setup are Re = 63618, We = 8864, Fr = 36.44, Ca = 0.1393, Bo = 6.674.

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.

I am the lead developer of FluidX3D. The implementation is detailed in my Master's thesis, which is freely available on ResearchGate:
researchgate.net/publication/349552856_High_Performance_Free_Surface_LBM_on_GPUs

The Volume-of-Fluid extension is detailed in this research paper:
mdpi.com/2079-3197/10/2/21

Timestamps:
00:00 intro
00:03 setup
00:08 simulation start
00:48 stereoscopic raytracing for left and right eye
01:00 showcasing refraction
02:52 outro

#FluidX3D #OpenCL #Raytracing #GPU #LBM
Raytracing 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 fieldThe most detailed computer simulation of a raindrop impact ever done (not anymore)Largest CFD sim ever on a single computer: NASA X-59 @ 117 Billion cells - FluidX3D on 2x Xeon 6980PPhysX3D [GRAVITY SIMULATION] Active Galaxy on a notebook GPUReal time OpenCL ray tracing with reflection and transmissionRaytraced 250 Million Voxel Fluid Simulation (Radeon VII)How realistic can a simulation be? - FluidX3D CFD raytraced in 8KPhysX3D [GRAVITY SIMULATION] Stereoscopic 3D Graphics PreviewCessna 172 in FluidX3D CFD - 220 million cells - 10 minutes on Titan Xp GPU
Dr. Moritz Lehmann |

Raytracing 108 Million Voxel CFD Simulation in Real Time

SHARE TO X SHARE TO REDDIT SHARE TO FACEBOOK WALLPAPER