Skip to contents

Convolves the Green's function obtained with getGreens() with the spawning density from spawning_density() to produce the number density as a function of length and time.

Usage

getNumberDensity(
  pars,
  l_max,
  Delta_l = 1,
  t_max = 10,
  Delta_t = 0.05,
  single_cohort = TRUE
)

Arguments

pars

A list containing the model parameters: k, L_inf, d, m.

l_max

The maximum size

Delta_l

The size step size (cm).

t_max

The maximum simulation time.

Delta_t

The time step size (years). Default is 0.05.

single_cohort

Logical; if TRUE (default) include only individuals born within the first year.

Value

A matrix holding the number density u(t,l). Rows correspond to time and columns to length.