Research Article

An Improved Particle Number-Based Oil Spill Model Using Implicit Viscosity in Marine Simulator

Algorithm 1

Velocity divergence constraint (calculation flow of the divergence-free velocity constraint solver).
(1)while:
(2)for i in particles:
(3)  compute velocity constraint:
(4)for i in particles:
(5)  compute Lagrange multipliers: and
(6)  compute velocity correction:
(7)for i in particles:
(8) update velocity: