Research Article
An Improved Particle Number-Based Oil Spill Model Using Implicit Viscosity in Marine Simulator
Algorithm 3
DFPBF simulation loop (calculation flow of the divergence-free position-based fluid (DFPBF) framework).
| for i in particles: | | search neighborhoods | | while: | | for i in particles: | | compute external forces: | | for i in particles: | | predict intermediate velocity | | predict intermediate position | | update time step size | | for i in particles: | | search neighborhoods | | for i in particles: | | compute reused factor | | ConstantDensityConstraint | | for i in particles: | | update intermediate velocity | | VelocityDivergenceConstraint | | ViscositySolver | | for i in particles: | | update position |
|