Research Article
An Improved Particle Number-Based Oil Spill Model Using Implicit Viscosity in Marine Simulator
Algorithm 2
Constant density Constraint
(calculation flow of the constant density constraint solver).
(1) | while: | (2) | for i in particles: | (3) | compute intermediate density: | (4) | compute density constraint: | (5) | compute Lagrange multipliers: and | (6) | compute position correction: | (7) | for i in particles: | (8) | update position: |
|