Description Usage Value References Examples
The model simulates a system with two functional groups of phytoplankton and one vertically migrating zooplankton population.
1 |
S4 object according to the odeModel
specification.
The object contains the following slots:
main |
The differential equations for two phytoplankton groups, zooplankton and phosporus:
|
parms |
Vector with the named parameters of the model, see tables in original publication |
times |
Simulation time and integration interval. |
init |
Vector with start values for the state variables. |
solver |
Character string with the integration method. |
Petzoldt, T., Rudolf, L., Rinke, K. and Benndorf, J. (2009). Effects of zooplankton diel vertical migration on a phytoplankton community: a scenario analysis of the underlying mechanisms. Ecological Modelling, in press. doi:10.1016/j.ecolmodel.2009.02.0
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 | # Scenario analysis for the P - X1/X2 - Z - Lake Model with
# diurnal vertical migration of Daphnia (Z)
sc1 <- sc2 <- sc3 <- sc4 <- sc5 <- dvmphyto <- dvm_phyto()
## --> uncomment the following line for Series 2,
## with completely inedible algae (type "X3")
# parms(dvmphyto)[["ing_max_i"]][2] <- 0
## show parameters
# parms(sc1)
## define scenarios
parms(sc1)["DVM"] <- FALSE
parms(sc2)["DVM"] <- TRUE
parms(sc3)["DVM"] <- TRUE
parms(sc3)[["ing_max_i"]] <- parms(dvmphyto)[["ing_max_i"]] * 3
parms(sc4)["DVM"] <- TRUE
parms(sc4)[["ing_max_i"]] <- parms(dvmphyto)[["ing_max_i"]] * 3
parms(sc4)[["resz_max"]] <- parms(dvmphyto)[["resz_max"]] * 3
parms(sc4)[["mort_max"]] <- parms(dvmphyto)[["mort_max"]] * 3
parms(sc5)["DVM"] <- FALSE
parms(sc5)[["ing_max_i"]] <- parms(dvmphyto)[["ing_max_i"]] / 3
parms(sc5)[["resz_max"]] <- parms(dvmphyto)[["resz_max"]] / 3
parms(sc5)[["mort_max"]] <- parms(dvmphyto)[["mort_max"]] / 3
## it is also possible to use "chained cloning" e.g. to clone
## sc5 as copy of sc4 and then to modify the DVM parameter only
## now we simulate the scenarios one after one
o1 <- out(sim(sc1))
## Not run:
## the simulations take a while, so we skip most of them in package check
o2 <- out(sim(sc2))
o3 <- out(sim(sc3))
o4 <- out(sim(sc4))
o5 <- out(sim(sc5))
## you can now create arbitrary plots and analyses using standard R functions
plot(o1$time/24, o1$Xr, type="l", ylim=c(0,1))
lines(o1$time/24, o1$Xk, col="red")
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.