Uploaded April 2022 | Updated November 2026, 13 hours ago
FluidX3D source code: github.com/ProjectPhysX/FluidX3D
With a novel "Esoteric-Pull" in-place streaming scheme, combined with FP32/FP16 mixed precision, the memory requirements for the Volume-of-Fluid lattice Boltzmann method is cut down from 181 to 67 Bytes/Node, about 1/3 of vanilla LBM.
This enables colossal resolutions. The simulation in the video is a d = 7 mm diameter terminal velocity (9.55 m/s) raindrop impact (D3Q19 SRT) at 20° inclination, simulated for 1.5 milliseconds. The box is 5d x 5d x 4.25d and the pool height is 2d. Velocity, density and fluid mass are solved at 697 million lattice points (936 x 936 x 796). The simulation requires 48 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.
Raytracing is done at 7680x4320 pixel (8K) resolution with 1-10 rays per pixel; 302 frames (5.56GB) are generated. Combined simulation and rendering time is 2 hours and 25 minutes, of which simulation time alone is about 25 minutes.
The simulation was conducted on one of the login nodes at Jülich Supercomputing Centre (JSC) JURECA-DC.
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
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 GPUs.
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
#FluidX3D #OpenCL #Raytracing #GPU #LBM
FluidX3D source code: github.com/ProjectPhysX/FluidX3D
With a novel "Esoteric-Pull" in-place streaming scheme, combined with FP32/FP16 mixed precision, the memory requirements for the Volume-of-Fluid lattice Boltzmann method is cut down from 181 to 67 Bytes/Node, about 1/3 of vanilla LBM.
This enables colossal resolutions. The simulation in the video is a d = 7 mm diameter terminal velocity (9.55 m/s) raindrop impact (D3Q19 SRT) at 20° inclination, simulated for 1.5 milliseconds. The box is 5d x 5d x 4.25d and the pool height is 2d. Velocity, density and fluid mass are solved at 697 million lattice points (936 x 936 x 796). The simulation requires 48 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.
Raytracing is done at 7680x4320 pixel (8K) resolution with 1-10 rays per pixel; 302 frames (5.56GB) are generated. Combined simulation and rendering time is 2 hours and 25 minutes, of which simulation time alone is about 25 minutes.
The simulation was conducted on one of the login nodes at Jülich Supercomputing Centre (JSC) JURECA-DC.
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
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 GPUs.
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
#FluidX3D #OpenCL #Raytracing #GPU #LBM


![PhysX3D [GRAVITY SIMULATION] Portraits of the Planets
Es wurde wirklich Zeit, die Rotation von Himmelskörpern in PhysX3D einzubauen. Die dazu notwendigen Daten für die Planeten unseres Sonnensystems zu bekommen stellte sich als Herausforderung heraus. Die Inklination der Rotationsachse und die Rotationsperiode zu finden war leicht, aber um die Rotationsachse korrekt definieren zu können, wird noch einen weiterer Winkel benötigt: die Rektaszension.
Außerdem hat Saturn seine charakteristischen Ringe bekommen.
Mehr Informationen auf: http://www.projectphysx.de
Musik: John Murphy - Sunshine (Adagio in d Minor) PhysX3D [GRAVITY SIMULATION] Portraits of the Planets](https://i.ytimg.com/vi/O1cLkJP2nfk/mqdefault.jpg)






![PhysX3D [GRAVITY SIMULATION] 25k body galaxy @20x playback speed
This is PhysX3D simulating a galaxy containing 25000 stars. For calculation brute force and RK4 integration is being used on a notebook GPU (Nvidia GTX 960M, 1.54TFlops). The GPU calculates roughly 3.5 Billion particle interactions every second.
This simulation took 12 minutes to calculate.
More information at: http://www.projectphysx.de
Music: Puddle of Infinity - Open Sea Morning PhysX3D [GRAVITY SIMULATION] 25k body galaxy @20x playback speed](https://i.ytimg.com/vi/TmBf2DI-3cE/mqdefault.jpg)
