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

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()