Learn R Programming

BacArena (version 1.0.1)

Substance-class: Structure of the S4 class "Substance"

Description

Structure of the S4 class Substance representing substances in the environment which can be produced or consumed.

Arguments

Slots

smax
A number representing the start concentration of the substance for each grid cell in the environment.
diffmat
A sparse matrix containing all concentrations of the substance in the environment.
name
A character vector representing the name of the substance.
difunc
A character vector ("pde","cpp" or "r") describing the function for diffusion.
difspeed
A number indicating the diffusion speed (given by cm^2/s).
diffgeometry
Diffusion coefficient defined on all grid cells (initially set by constructor).
pde
R-function that computes the values of the derivatives in the diffusion system
boundS
A number defining the attached amount of substance at the boundary (Warning: boundary-function must be set in pde!)