fluid Package

fluid Package

grid Module

class fluid.grid.Grid(size, cell_size, density, dampening, linear_dampening, angular_dampening)[source]

a grid fluid

particle Module

class fluid.particle.Particle[source]

a particle fluid

add_particle(pos, velocity)[source]

adds a particle to the fluid

pos: a 3 part tuple of the position of the particle velocity: a 3 part tuple of the velocity of the particle

finalize()[source]

must be calledafter all the particles have been added.

get_particles()[source]

returns a list of all the particle positions

Table Of Contents

Previous topic

conf Module

Next topic

geometry Package