+ create: (id <Zone>)aZonesetSizeX: (unsigned)xY: (unsigned)ysetDiffusionConstant: (double)dsetEvaporationRate: (double)e Convenience constructor for Diffuse2d
Phase: Setting
- setEvaporationRate: (double)e Set the evaporation rate. Values over 1.0 don't make much sense
- setDiffusionConstant: (double)d Set the diffusion constant. Values over 1.0 might not be valid.
Phase: Using
- stepRule Run discrete approximation to diffusion. Roughly, it's newHeat = evapRate * (self + diffuseConstant*(nbdavg - self)) where nbdavg is the weighted average of the 8 neighbours.