Calculate contaminant accumulation (Mid-level - Main function)
Source:R/06-contaminant-accumulation.R
calculate_contaminant_accumulation.RdCalculates daily contaminant dynamics (uptake, elimination, body burden) for a fish using one of three bioaccumulation models (CONTEQ 1-3).
Usage
calculate_contaminant_accumulation(
respiration_o2,
consumption,
weight,
temperature,
current_concentration,
processed_contaminant_params
)Experimental
Contaminant modelling is an **experimental feature** under active development. This function can be called directly to compute daily bioaccumulation for a single time step, but it is **not yet integrated** into the main `run_fb4()` simulation loop. Full integration (automatic contaminant tracking across all simulation days, inclusion in `fb4_result` objects, and TMB backend support) is planned for a future release. The API may change.