makeInflowFromSoln function

Used for running microPop with multiple compartments Takes the solution (state of system) from the previous compartment (out$solution) and then finds the washout rate of each state variable using removalRateFunc to find the inflow rate to the next downstream compartment

Used for running microPop with multiple compartments Takes the solution (state of system) from the previous compartment (out$solution) and then finds the washout rate of each state variable using removalRateFunc to find the inflow rate to the next downstream compartment

makeInflowFromSoln(out)

Arguments

  • out: output from microPopModel()

Returns

matrix of flow rates (conc/time) with named columns (the same as out$solution)