API Docs for: 0.6.1
Show:

SPHSystem Class

Smoothed-particle hydrodynamics system

Constructor

SPHSystem

()

Item Index

Methods

add

(
  • particle
)

Add a particle to the system.

Parameters:

getNeighbors

(
  • particle
  • neighbors
)

Get neighbors within smoothing volume, save in the array neighbors

Parameters:

  • particle Body
  • neighbors Array

remove

(
  • particle
)

Remove a particle from the system.

Parameters:

Properties

density

Number

Density of the system (kg/m3).

smoothingRadius

Number

Distance below which two particles are considered to be neighbors. It should be adjusted so there are about 15-20 neighbor particles within this radius.

viscosity

Number

Viscosity of the system.