diffusion {simecol}R Documentation

A Random Walk Particle Diffusion Model

Description

simecol example: This is a random walk (basic particle diffusion) model.

Usage

data(diffusion)

Format

An S4 object according to the rwalkModel specification. The object contains the following slots:

equations
the movement rules for the particles.
parms
a list with the following components:
ninds
number of simulated particles.
speed
speed of the particles.
area
vector with 4 elements giving the coordinates (left, bottom, right, top) of the coordinate system.
times
Simulation time (discrete time steps, by-argument ignored).
init
data frame holding the start properties (Cartesian coordinates x and y and movement angle a) of the particles.

Details

To see all details, please have a look into the implementation.

See Also

sim, parms, init, times.

Examples

## Not run: 
  data(diffusion)
  plot(sim(diffusion))
  # show "grid of environmental conditions"
  inputs diffusion
  # set conditions to "1", i.e. remove "refugium" in the middle
  inputs(diffusion) <- matrix(1, 100, 100)
  plot(sim(diffusion))
## End(Not run)

[Package simecol version 0.3-11 Index]