Skip to contents

Rcpp simulate fishpop growth.

Usage

rcpp_fishpop_growth(
  fishpop,
  fishpop_track,
  fishpop_attr,
  seafloor,
  pop_k,
  pop_linf,
  pop_a,
  pop_b,
  pop_n_body,
  pop_reserves_max,
  extent,
  dimensions,
  min_per_i
)

Arguments

fishpop, fishpop_track

Matrix with fishpop values and starting population.

fishpop_attr

Matrix with id, threshold of pop_reserves_thres_mean, and pop_reserves_consump values

seafloor

Matrix with seafloor values.

pop_k, pop_linf, pop_a, pop_b

Numeric with parameters.

pop_n_body, pop_reserves_max, min_per_i

Numeric with parameters.

extent

Vector with extent (xmin,xmax,ymin,ymax).

dimensions

Vector with dimensions (nrow, ncol).

Value

void

Details

Function to simulate consumption, mortality, growth and excretion of fish individuals.

Each fish individual has to follow the von Bertalanffy growth curve (Froese and Pauly 2019) and the corresponding amount of nutrients for this are calculated based on a bioenergetics model (Allgeier et al. 2020). The nutrients are consumed from the detritus pool. If the available amount is not big enough, fish can either use their reserves. If there are no reserves, individuals die. Last, if the detritus pool is big enough, individuals can additionally fill up their reserves.

If individuals are acting accordingly to movement state 1 or 2 (only for movement = 'behav'), the consumption requirement must be met by the reserves only.

If 0 < pop_reserves_consump < 1, only a ratio of the pop_reserves_max can be consumed each time step.

References

Allgeier, J.E., Cline, T.J., Walsworth, T.E., Wathen, G., Layman, C.A., Schindler, D.E., 2020. Individual behavior drives ecosystem function and the impacts of harvest. Sci. Adv. 6, eaax8329. <https://doi.org/10.1126/sciadv.aax8329>

Froese, R., Pauly, D., 2019. FishBase. World Wide Web electronic publication [WWW Document]. <www.fishbase.org>