run_coral_ss: Run coral-_Symbiodinium_ model to steady state.

Description Usage Arguments Value See Also Examples

View source: R/run_coral_ss.R

Description

This function runs the coral-Symbiodinium bioenergetic model in a constant environment until it reaches a steady state.

Usage

1
run_coral_ss(env, pars = def_pars(), dt = 0.1)

Arguments

env

A list defining the constant environment in which to run model to steady state, with three named elements:

L

External light in mol photons m^-2 d^-1 (numeric).

N

External [DIN] in mol N L^-1 (numeric).

X

External [prey] in C-mol X L^-1 (numeric).

pars

A list of (named) parameter values to use in the simulation. Parameter names must match those returned by def_pars().

dt

The time step (in days) to use in the numerical analysis. Values > 0.1 are not recommended.

Value

A list with the following named elements:

env

A list of the environment (L, N, X) used in the simulation

pars

A list of the parameter values used in the simulation

H

A tibble of all host biomass-specific model fluxes at each time step

S

A tibble of all symbiont biomass-specific model fluxes at each time step

See Also

init_env, def_pars

Examples

1
ssrun <- run_coral_ss(env=list(L=20, N=1e-7, X=0), pars=def_pars(), dt=0.1)

jrcunning/coRal documentation built on March 24, 2021, 1:28 a.m.