It is a challenging work to simulate wind and waves in virtual scenes of marine simulators. In this paper, a divergence-free position based fluid (DFPBF) framework is introduced for ocean wave modeling in marine simulators. We introduce a set of constant density constraints and divergence-free velocity constraints to enforce incompressibility. By adjusting the position distribution of fluid particles, the particle density is forced to be constant. Constraining the divergence-free velocity field can keep the density change rate at zero. When correcting the position and velocity of particles, we introduced a relaxation correction scheme to accelerate the convergence of the framework. The simulation results show that as the scene scale expands and the number of fluid particles increases, this acceleration effect will be more significant. Secondly, we propose a novel particle-based three-dimensional stochastic fluctuating wind field. The Perlin noise is introduced to disturb the constant horizontal wind field to form a stochastic wind field. On this basis, a stochastic fluctuating wind field simulation framework is proposed. By adjusting the pulse period and pulse width, users can flexibly control the fluid turnover under the action of the wind field. This wind field framework can be easily integrated into the DFPBF model. Based on this wind field model, we simulated some typical wind wave scenarios, including interaction scenarios with lighthouse and lifebuoy, and verified the effectiveness of the wind field model.
This is an open access article distributed under the Creative Commons Attribution License
which permits unrestricted use, distribution, and reproduction in any medium, provided the original work is properly cited