Skip to contents

Main consumption calculation function called from simulation loop

Usage

calculate_consumption(
  temperature,
  weight,
  p_value,
  processed_consumption_params,
  method = "rate"
)

Arguments

temperature

Water temperature (°C)

weight

Fish weight (g)

p_value

Proportion of maximum consumption (0-5)

processed_consumption_params

List with processed consumption parameters

method

Calculation method ("maximum", "rate", "specific")

Value

Specific consumption (g prey/g fish/day)