run_sim: Run the simulation

Description Usage Arguments Value Author(s)

Description

Run the simulation

Usage

1
2
run_sim(initial_species_densities, initial_resource_densities, dt, t_max,
  max_growth_rates, mortality_rates, hsrs, srcs, supply_rates, turnover_rate)

Arguments

initial_species_densities

the species densities at time zero

initial_resource_densities

the resource densities at time zero

dt

delta timestep

t_max

simulation will run in steps of dt until (not inclusive) this time point is reached

max_growth_rates

max growth rate of all species

mortality_rates

mortality rates of all species

hsrs

a matrix of half-saturation constants of species (rows) on resources (columns). Can be created by create_hsrs

srcs

a matrix of species' resource content of species (rows) of resources (columns). Can be created by create_srcs

supply_rates

the rate at which resources are pumped into the system

turnover_rate

the turnover rate of the whole system

Value

a data frame with the species densities and resource concentrations (as columns) in time (as rows)

Author(s)

Richel J.C. Bilderbeek


richelbilderbeek/huisweis documentation built on May 9, 2019, 7:36 a.m.