A function to simulation the food webs away from equilibrium.
foodwebode(t, y, pars)
The changes in each node biomass along with parameters and mineralization rates.
The ODE time.
The ODE simulation start.
The ODE parameters.
The food web model ode for simulating the model over time: requires y
inputs and pars
parameters from the getPARAMS
function. The function can handle a detritus decomposition experiment as set up by either getPARAMS
or CNsim
. The only pools with nitrogen values are the detritus, because all others have fixed C:N ratios.
Use this function inside CNsim
, stability2
, and calculate_inputs
. See the documentation for these functions.