run_model: Run AlgalGame model

Description Usage Arguments Value References Examples

View source: R/run_model.R

Description

Run AlgalGame model

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
run_model(
  inputs = NULL,
  Ttot = 2,
  dt = 0.001,
  L = 3,
  N = 60,
  ini = NULL,
  opt.abg = "Zhou2019",
  plot = TRUE,
  run.steady = FALSE,
  run.steady.list = list(time = 0),
  moving_avg = FALSE
)

Arguments

inputs

A list of parameters. Run show_parms to see all settings.

Ttot

Total of time

dt

Time interval

L

Column depth

N

Number of vertical grids

ini

Initial states of Biomass and Nutrient

opt.abg

option of abg, default as "Zhou2019"

plot

whether to plot the raster

out_steady

Whether to run steady resolver

out_steady.list

Input params of steady.1D

Value

An out object.

References

Klausmeier C A, Litchman E. Algal games: The vertical distribution of phytoplankton in poorly mixed water columns[J]. Limnology and Oceanography, 2001, 46(8): 1998-2007.

Examples

1
2
3
library(AlgalGame)
res <- run_model()
ggimage(res$out)

bishun945/AlgalGame documentation built on Aug. 29, 2021, 4:40 a.m.