Affiliation:
1. SKL‐IOTSC & ICI‐CAR, Univ. of Macau
2. FST, Univ. of Macau
3. Tencent
4. College of CST, China Univ. of Petroleum
5. Guangdong Univ. of Technology
6. State Key Lab. of CS, ISCAS & Univ. of CAS
Abstract
AbstractWe introduce an efficient technique for recovering the vector potential in wavelet space to simulate pointwise incompressible fluids. This technique ensures that fluid velocities remain divergence‐free at any point within the fluid domain and preserves local volume during the simulation. Divergence‐free wavelets are utilized to calculate the wavelet coefficients of the vector potential, resulting in a smooth vector potential with enhanced accuracy, even when the input velocities exhibit some degree of divergence. This enhanced accuracy eliminates the need for additional computational time to achieve a specific accuracy threshold, as fewer iterations are required for the pressure Poisson solver. Additionally, in 3D, since the wavelet transform is taken in‐place, only the memory for storing the vector potential is required. These two features make the method remarkably efficient for recovering vector potential for fluid simulation. Furthermore, the method can handle various boundary conditions during the wavelet transform, making it adaptable for simulating fluids with Neumann and Dirichlet boundary conditions. Our approach is highly parallelizable and features a time complexity of O(n), allowing for seamless deployment on GPUs and yielding remarkable computational efficiency. Experiments demonstrate that, taking into account the time consumed by the pressure Poisson solver, the method achieves an approximate 2x speedup on GPUs compared to state‐of‐the‐art vector potential recovery techniques while maintaining a precision level of 10−6 when single float precision is employed. The source code of ‘Wavelet Potentials’ can be found in https://github.com/yours321dog/WaveletPotentials.
Funder
VNU Science and Technology Development Fund
National Natural Science Foundation of China
Universidade de Macau
Reference36 articles.
1. A stream function solver for liquid simulations
2. An Immersed Boundary method with divergence-free velocity interpolation and force spreading
3. Curl‐noise for procedural fluid flow;Bridson Robert;ACM Transactions on Graphics (ToG),2007
4. Biswas Ayan Strelitz Richard Woodring Jonathan et al. “A Scalable Streamline Generation Algorithm Via Flux‐Based Isocontour Extraction.”EGPGV@ EuroVis.2016 69–783.
5. Biorthogonal bases of compactly supported wavelets