You are here

Submodel

Spatial diffsion over a grid: using an array to handle interactions between cells

ModelId: 
gridspread1
SimileVersion: 
3.1+

 This simulates diffusion over a grid of cells. We use a multiple-instance submodel to represent the set of cells. Each cell has a unique (row,column) attribute. The amount of substance flowing out of each cell is held outside the submodel in an array (with as many elements as there are cells), and this is used to calculate the amount flowing into neighbouring cells.

 

 

Subscribe to RSS - Submodel