solver: Sovle for a MENDplus model set up.

Description Usage Arguments Value See Also

View source: R/helper_functions.R

Description

Based on user defined carbon pools and flux functions solve a system of equations.

Usage

1
solver(params, time, state, carbon_pools_func, carbon_fluxes_func, ...)

Arguments

params

data.table containing the following columns: parameter, value, and units.

time

a vector of the time setps

state

a vector of the intial state values, must be named

carbon_pools_func

a function defining the carbon pools

carbon_fluxes_func

a function defining the carbon fluxes between pools

...

additional arguments that can be read into deSolve::ode

Value

a long formatted data.table of the simulation results

See Also

Other helper function: modify_fluxes_func()


kdorheim/MENDplus documentation built on Sept. 18, 2020, 6:18 p.m.