You are here

Model entry

Individual-based model of population dynamics with movement of individual animals - Model catalogue - Simulistics.com

Search Simulistics Model catalogue Listed by keyword Listed by ID Listed by title Listed by date added

Individual-based model of population dynamics with movement of individual animals

Model : animal1
Simile version : 3.1+
Date added : 2003-06-20
Keywords : Individual-based ; Population dynamics ; Movement ;

Description

This models the dynamics of a population of animals, represented as a set of individuals that come into existence, live for a while, then die. When the animals are alive, they move around according to a simple random walk.

Files

Model file

Click on the icon to download the model file. (You will need Simile to examine and run the model. A free evaluation version is available from the products page.)

Some browsers may attempt to display the model file, rather than open it in Simile; in this case, use the browser back button to return to this page, and use the context menu (invoked by right-clicking on the link) to save the target file to disk.

animal1.sml

Diagram

Equations

Equations in Desktop
	N = sum({one})
	
	Equations in ANIMAL
	X:    initial value = rand(30,70)
	Y:    initial value = rand(30,70)
	Dir:  initial value = rand(0,6.28)

	create = 100
	r = rand(0,2*0.7)
	m = 0.6

	xchange = (if outside == 1 then speed*cos(dir+3.14) else speed*cos(dir))
	dirchange = (if outside == 1 then 3.14/dt(1) else rand(-0.4,0.4)/dt(1))
	ychange = (if outside == 1 then speed*sin(dir+3.14) else speed*sin(dir))

	speed = 5
	size = 3
	outside = (if (x<0;x>100;y<0;y>100)then 1 else 0)
	one = 1

Results

|

|